我正在尝试使用ARM模板自动将网站扩展安装到我的Web应用程序中。
该网站扩展的代码如下:
{
"apiVersion": "2016-08-01",
"name": "phpMyAdmin",
"type": "siteextensions",
"dependsOn": [
"[resourceId('Microsoft.Web/Sites', variables('webAppPortalName'))]",
"[resourceId('Microsoft.Web/Sites/config', variables('webAppPortalName'), 'web')]"
],
"properties": {
}
在我的网站资源的属性中,我声明:
"properties":{
"RepoUrl":"https://github.com/azureappserviceoss/wordpress-azure",
"branch":"linux-appservice",
"IsManualIntegration":true,
"appSettings": [
{ "Name": "SCM_SITEEXTENSIONS_FEED_URL", "Value": "http://www.siteextensions.net/api/v2/" }
]
}
但是,当我部署我的手臂模板时,出现此错误,并且我似乎找不到为什么部署失败:
New-AzureRmResourceGroupDeployment : 15:15:43 - Resource Microsoft.Web/sites/siteextensions 'website-webapp/phpMyAdmin' failed with message '{
"id": "/subscriptions/a6e10cb0-79e5-4b68-af13-d17fc5f7505a/resourcegroups/xxxxxxxxxx/providers/Microsoft.Web/sites/website-webapp/siteextensions/phpMyAdmin",
"name": "bmtwebsite-webapp/phpMyAdmin",
"type": "Microsoft.Web/sites/siteextensions",
"location": "West Europe",
"properties": {
"id": "phpMyAdmin",
"title": null,
"type": "Gallery",
"summary": null,
"description": null,
"version": null,
"extension_url": null,
"project_url": null,
"icon_url": null,
"license_url": null,
"feed_url": null,
"authors": null,
"installer_command_line_params": null,
"published_date_time": null,
"download_count": 0,
"local_is_latest_version": null,
"local_path": null,
"installed_date_time": null,
"provisioningState": "Failed",
"comment": "'phpMyAdmin' not found."
}
}'
收到此大错误消息后,我得到了这个错误,这是我认为更普遍的错误。
At line:1 char:1
+ New-AzureRmResourceGroupDeployment -ResourceGroupName "xxxxxxxxxx" ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [New-AzureRmResourceGroupDeployment], Exception
+ FullyQualifiedErrorId : Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.NewAzureResourceGroupDeploymentCmdlet
New-AzureRmResourceGroupDeployment : 15:17:46 - Template output evaluation skipped: at least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-debu
g for usage details.
At line:1 char:1
+ New-AzureRmResourceGroupDeployment -ResourceGroupName "xxxxxxxxxxx" ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [New-AzureRmResourceGroupDeployment], Exception
+ FullyQualifiedErrorId : Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.NewAzureResourceGroupDeploymentCmdlet
任何人都试图用ARM模板添加站点扩展,并且知道我的错误似乎是什么,或者可以指导我朝正确的方向发展吗?
答案 0 :(得分:2)
基于您的分支名称为linux-appservice
,我假设您正在Linux应用服务中尝试这样做。如果是这样,请注意Linux Apps不支持站点扩展。