Blueprint module does not accept ResourceGroup.Name values with long computed expressions
See original GitHub issueDescribe 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:
- Created 3 years ago
- Comments:7
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
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.