Comments (3)
+1
from azure-blueprints.
I don't think we support object parameters. I think the tag values need to be passed individually. Have you tried that?
from azure-blueprints.
Hi @pkhabazi
The reason I believe you are getting the error message 'Error converting value "[parameters('tags')]" to type 'System.Collections.Generic.IDictionary`2[System.String,System.String]' is because the "[parameters('tags')]" expression within the resourceGroups section does not actually get substituted with the "tags" object you defined in the parameters section. The ARM interpreter is passing a literal string "[parameters('tags')]" to the function that attempts conversion to a System.Collections.Generic.IDictionary<String,String> object and that is why it fails.
So in your first example, you are actually trying to pass a string to the tags element while it is expecting an object. In your second example, you are passing an object. Keep in mind that in the second example, the "[parameters('tagsvalue')]" string is also not getting replaced with "value1" when you run the Import-AzBlueprintWithArtifact command. It just sets the value of the "Tags1" key to the "[parameters('tagsvalue')]" string.
VS Code's syntax highlighting for ARM templates is misleading in this case. The color coding for the "[parameters('tags')]" expression in the resourceGroups section should be represented in the standard red denoting a string.
from azure-blueprints.
Related Issues (20)
- Parameter Names are Case Sensitive
- Blueprint as arm template deployment [for your example]
- Need guidance on properly formatted default access policy for keyvault in CAF Foundation HOT 1
- ARM-Template Sample for Full Blueprint definition HOT 1
- Assigning a Blueprint to a ManagementGroup HOT 7
- Deleting assignments using REST API HOT 2
- Creating or updating an assignment using REST API HOT 3
- Blueprint Assignment IaC Issue HOT 1
- Unable to use artifacts function to specify roleDefinitionId. HOT 3
- Authentication via managed identity for assign blueprint with rest api
- Need apiVersion on fw to ip reference in ASBF & ASBF_Gov
- Linter for azure blueprints HOT 1
- Set-AzBlueprintAssignment using earlier published version of the definition HOT 5
- Creating a blueprint of target scope 'managementGroup' fails HOT 1
- delegated subnet, created by blueprint, does not allow actions of service; blocked by deny assignment
- Assignment with user-assigned managed identity at management group scope : The request did not have a subscription or a valid tenant level resource provider HOT 2
- Blueprints HOT 3
- Deny assignment using blueprint for particular Management group HOT 1
- This repo is missing important files
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from azure-blueprints.