Hi there,
I discovered some strange behaviour while I wrote an Azure Resource Manager (ARM) Template with a uniqueString.
The Documentation said that I can create a unique string with calling the uniqueString ARM function and giving them the ResourceGroupId and the DeploymentName like this:
"variables": {
"mcosDeploymentId": "[uniqueString(resourceGroup().id, deployment().name)]"
},
But when I wrote that code Visual Studio will mark the ".name" as an error with the following Error Message:
A property of 'deployment' must be one of the following: templateLink, template, parameters, mode, provisioningState
This is some strange behaviour because I use the deployment().name as an parameter. So I tried to deploy the template via Azure Portal and everything worked as expected.
So there might be an Issue within the IntelliSense of the Azure SDK for Visual Studio.
Visual Studio Enterprise 2017
Version 15.7.4
Version 2.9
This has been fixed in Visual Studio. If you have an Internet connection, you should see the fix after one or possibly two restarts of Visual Studio.
Thank you @StephenWeatherford for taking care of this one!
Most helpful comment
Thank you @StephenWeatherford for taking care of this one!