Hi,
I have created an ARM template with parameter name envType that will get one of the following values : test, dev, ppr, prod
"envType": {
"type": "string",
"defaultValue": "Test",
"metadata": {
"description": "Type of the Environment: Dev, Test, Ppr, Prd "
},
"allowedValues": [
"Dev",
"Test",
"Ppr",
"Prd"
]
},
I wanted to use concat function to join environment parameter to all the resources name in suffix .
I created a template for network group security and it failed with following error:
"Resource name [concat('NSGSubnetData',parameters('envType'))] is invalid. The name can be up to 80 characters long. It must begin with a word character, and it must end with a word character or with ''. The name may contain word characters or '.', '-', ''."}
I do the deploy using azure devops pipeline.
What I did wrong.
Please advise how can I fix it.
Thanks,
Tzvia