Error when trying to deploy ARM template
I’m receiving the following error when trying to deploy an Azure VM using an ARM template. Hoping someone can help!
New-AzResourceGroupDeployment -ResourceGroupName $rgName -TemplateFile $templateFile -TemplateParameterFile $parametersFile
New-AzResourceGroupDeployment: Cannot retrieve the dynamic parameters for the cmdlet. Your Azure credentials have not been set up or have expired, please run Connect-AzAccount to set up your Azure credentials.
SharedTokenCacheCredential authentication failed: Unknown Status: Unexpected
Error: 0xcaa5004b
Context: (pii)
Tag: 0x21213023 (error code 3399811147) (internal error code 555823139)
I downloaded the template and parameters JSON files from Azure (from the create new VM process).
I have tried authentication with both Connect-AzAccount and Connect-AzAccount -DeviceCode.
I’m receiving the following error when trying to deploy an Azure VM using an ARM template. Hoping someone can help! New-AzResourceGroupDeployment -ResourceGroupName $rgName -TemplateFile $templateFile -TemplateParameterFile $parametersFile New-AzResourceGroupDeployment: Cannot retrieve the dynamic parameters for the cmdlet. Your Azure credentials have not been set up or have expired, please run Connect-AzAccount to set up your Azure credentials.SharedTokenCacheCredential authentication failed: Unknown Status: UnexpectedError: 0xcaa5004bContext: (pii)Tag: 0x21213023 (error code 3399811147) (internal error code 555823139) I downloaded the template and parameters JSON files from Azure (from the create new VM process). I have tried authentication with both Connect-AzAccount and Connect-AzAccount -DeviceCode. Read More