How can I troubleshoot Azure ARM template validation errors?

前端 未结 8 1732
终归单人心
终归单人心 2021-02-06 22:27

I have made some small changes to an Azure ARM template file and now when I try to deploy or validate via the xplat cli I get this message.

error: Inval

8条回答
  •  误落风尘
    2021-02-06 22:44

    Building on @nftw:

    $deploymentGroupName = 'deploymentGroupName'
    $correlationId = ((Get-AzureRMLog -ResourceGroup $deploymentGroupName)[0]).CorrelationId
    $logentry = (Get-AzureRMLog -CorrelationId $correlationId -DetailedOutput)
    #$logentry
    $rawStatusMessage = $logentry.Properties
    $status = $rawStatusMessage.Content.statusMessage | ConvertFrom-Json
    $status.error.details
    $status.error.details.details
    

提交回复
热议问题