question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Blueprint module does not accept ResourceGroup.Name values with long computed expressions

See original GitHub issue

Describe the bug Receiving a validation error through the Az.BluePrint powershell module regarding the importing of a Blueprint with a computed ResourceGroup.name value. The error indicates only 90 characters are supported in the resource group name. However, this is not actually true as the value allows [] expansion values exceeding 90 characters.

Expected behavior The computable value should be accepted.

Actual behavior (include Exception or Stack Trace) Import-AzBlueprintWithArtifact : 'Name' exceeds maximum length of '90'.

To Reproduce

    "resourceGroups": {
            "ApplicationResourceGroup": {
                "location": "[parameters('l')]",
                "name": "[concat(parameters('u'),'-',parameters('e'),'-',parameters('d'),'-',parameters('a'),'-rg')]"
            }
        }

Attempt to import the Blueprint, and receive the error.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
ScottMetzelcommented, Jun 3, 2020

Thanks for the information @alex-frankel; I caught that announcement and look forward to template specs!

As a workaround, I simply shortened some parameter names to get the string value of the function at or below 90 characters in length… works fine otherwise.

1reaction
alex-frankelcommented, Jun 3, 2020

This is an issue with our APIs, not with the SDK. With the planned changes to move blueprint definitions to template specs, this is not likely something we are going to fix. We just announced templateSpecs at build, so details are a bit scarce, but we should have more info to share in 1-2 months.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Use parameters to creating dynamic blueprints - Azure ...
A simple example is the resource group artifact. When a resource group is created, it has two required values that must be provided:...
Read more >
How to import modules into Azure Automation Account ...
I can reproduce your issue, because the most of the modules have their dependencies, if its dependency has not been installed, it will...
Read more >
Azure naming conventions examples. Well-defined ...
Azure naming conventions examples. Well-defined naming and metadata tagging conventions help to quickly locate and manage resources. PDF RSS.
Read more >
Deploying a Schematics blueprint using the command line
This tutorial uses a sample blueprint to create two blueprint modules referencing a resource group and creating an IBM Cloud® Object Storage instance...
Read more >
Best practices for using Terraform
Name all configuration objects using underscores to delimit multiple words. This practice ensures consistency with the naming convention for resource types, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found