2017-08-03 59 views

回答

1

使用自动化时,您不需要这样做,唯一的例外是 - 程序化部署。某些市场解决方案要求您启用程序化部署才能自动部署所述解决方案。这只能手动完成(讽刺性强的是这个)。

这可以在解决方案页面或订阅刀片>编程部署中完成。

1

如果我的理解是正确的。如果您使用PowerShell部署模板,则不需要单击Terms & Conditions。您可以将模板和参数json文件下载到本地,并使用New-AzureRmResourceGroupDeployment通过脚本部署此模板。

enter image description here

使用下面的脚本部署的模板。

# existing resource group where you would like to deploy 
$RGName="resourcegroupname" 
# path to the template 
$TemplateFile="c:\path\file.json" 
#path to the parameter 
$ParameterFile="c:\path\parameter.json" 
# validate the template 
Test-AzureRmResourceGroupDeployment -ResourceGroupName $RGName -TemplateFile $TemplateFile -TemplateParameterFile $ParameterFile 
# deploy to the specified resource group 
New-AzureRmResourceGroupDeployment -ResourceGroupName $RGName -TemplateFile $TemplateFile -TemplateParameterFile $ParameterFile -Verbose 
+0

通常这是我会做的,但我得到一个错误,声称有验证错误。在配置程序化部署之后,@ 4c74356b41指出,问题已解决。 – LillaTheHun

相关问题