Dec 01 2020 09:06 AM
Dec 01 2020 09:28 AM
Dec 01 2020 10:32 AM - edited Dec 01 2020 10:33 AM
@vigneshkrcegmailcom I was wondering, what errors are you getting when you try to provision the resource?
I took your template and pasted it into my Visual Studio Code. The type that you provided: "Microsoft.Resources/resourceGroups isn't recognized. I reviewed the documentation on docs.microsoft.com and see:
You might try to change that.
Otherwise please update what errors you are receiving, please.
Dec 02 2020 02:37 AM
Hi Stephan,
Can you please help me to create Multiple RG with TAG's for each RG.
The script i am trying is given below but it is throwing error.
Ultimate aim is to create Multiple RG's with TAG's
Template File i am using is :
{
"contentVersion": "1.0.0.0",
"parameters": {
"rgName": {
"type": "array"
},
"tags": {
"type": "object",
"defaultValue": {}
}
},
"variables": {},
"resources": [
{
"copy": {
"name": "RGLoop",
"count": "[length(parameters('rgName'))]"
},
"type": "Microsoft.Resources/resourceGroups",
"apiVersion": "2019-10-01",
"name": "[parameters('rgName')[copyIndex('RGLoop')].Name]",
"location": "eastus",
"tags": "[parameters('tags')[copyIndex('RGLoop')].tags]",
"properties": {}
}
],
"outputs": {}
}
==============================
Paramater is given below:
{
"contentVersion": "1.0.0.0",
"parameters": {
"rgname": {
"value": [
{
"name": "TestRG"
}
]
},
"tags": {
"value": [
{
"Environment": "Test",
"Team": "skg",
"Application": "SKG",
"Business Unit": "non-production",
"POC": "Vignesh",
"ManagedBy": "Own"
}
]
}
}
}
=========================================
Error I am Getting is:
Dec 02 2020 04:26 AM
The Error message i am getting is