无效的模板部署

时间:2017-02-21 19:53:54

标签: powershell azure templates

直到几周前,我可以根据我们创建的模板部署新的Azure VM。现在我收到以下错误消息

   VERBOSE: Performing the operation "Replacing resource group ..." on target "".
VERBOSE: 12:45:43 PM - Created resource group 'Core613a-RGP' in location 'eastus2'
Creating storage account core613astr ...
VERBOSE: Performing the operation "Creating Deployment" on target "Core613a-RGP".
New-AzureRmResourceGroupDeployment : 12:51:18 PM - Error: Code=InvalidTemplateDeployment; Message=The template
deployment 'azuredeploy-Core613a-0221-1851' is not valid according to the validation procedure. The tracking id is
'ce71bcac-7a7b-40a8-b920-06f5322984fe'. See inner errors for details. Please see https://aka.ms/arm-deploy for usage
details.
At C:\Code\Azure\Core613a\Deploy-Core613a.ps1:191 char:1
+ New-AzureRmResourceGroupDeployment -Name ((Get-ChildItem $TemplateFil ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [New-AzureRmResourceGroupDeployment], Exception
    + FullyQualifiedErrorId : Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.NewAzureResourceGroupDep
   loymentCmdlet


New-AzureRmResourceGroupDeployment : The deployment validation failed
At C:\Code\Azure\Core613a\Deploy-Core613a.ps1:191 char:1
+ New-AzureRmResourceGroupDeployment -Name ((Get-ChildItem $TemplateFil ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : CloseError: (:) [New-AzureRmResourceGroupDeployment], InvalidOperationException
    + FullyQualifiedErrorId : Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.NewAzureResourceGroupDep
   loymentCmdlet

Get-AzureRmPublicIpAddress : The Resource 'Microsoft.Network/publicIPAddresses/Core613a-PIP' under resource group
'Core613a-RGP' was not found.
StatusCode: 404
ReasonPhrase: Not Found
OperationID : 'c272c46b-edef-4846-a460-7529d372a400'
At C:\Code\Azure\Core613a\Deploy-Core613a.ps1:202 char:13
+ ...  $vmPubIP = Get-AzureRmPublicIpAddress -ResourceGroupName $ResourceGr ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : CloseError: (:) [Get-AzureRmPublicIpAddress], NetworkCloudException
    + FullyQualifiedErrorId : Microsoft.Azure.Commands.Network.GetAzurePublicIpAddressCommand



The property 'DnsSettings' cannot be found on this object. Verify that the property exists.
At C:\Code\Azure\Core613a\Deploy-Core613a.ps1:205 char:41
+ ... te-Host "Your FQDN is:            $($vmPubIP.DnsSettings.Fqdn)" -fore ...
+                                         ~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], PropertyNotFoundException
    + FullyQualifiedErrorId : PropertyNotFoundStrict

Your FQDN is:
The property 'IpAddress' cannot be found on this object. Verify that the property exists.
At C:\Code\Azure\Core613a\Deploy-Core613a.ps1:206 char:41
+     Write-Host "Your IP address is:      $($vmPubIP.IpAddress)" -fore ...
+                                            ~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], PropertyNotFoundException
    + FullyQualifiedErrorId : PropertyNotFoundStrict

我的假设会在验证程序中发生变化,但我不确定如何跟踪问题。

以下内容用于启动整个过程 Deployment Script

这是部署模板 Deployment Template

参数模板 Parameters Template

0 个答案:

没有答案