azure - 无法通过arm模板将网站扩展添加到azure web应用程序

标签 azure azure-web-app-service

我正在尝试使用 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/" }
                              ]
                           }

但是当我部署我的arm模板时,我收到此错误,并且我似乎找不到部署失败的原因:

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 模板添加网站扩展并知道我的错误是什么,或者可以指导我正确的方向吗?

最佳答案

根据您的分支名称为 linux-appservice,我假设您正在尝试在 Linux 应用服务中执行此操作。如果是这样,请注意 Linux 应用程序不支持站点扩展。

关于azure - 无法通过arm模板将网站扩展添加到azure web应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52856255/

相关文章:

Azure 表存储分区限制

azure - 微软地址验证API

azure - 如何在运行 Linux 的 Azure 应用服务上运行 PowerShell 脚本?

node.js - 在 Angular4 CLI 中读取 Azure 应用程序设置

c# - 此类 Azure 网站挂起的原因可能是什么?

powershell - 如何使用 Powershell 在 Azure 网站上执行部署交换?

C# 调用 DataLakeDirectoryClient.CreateSubDirectoryAsync 创建子目录和同名的零字节文件

c# - TimerTrigger 立即执行,然后每 5 分钟执行一次

azure - 如何使用自托管 ExtensionBundle

azure - 如何使 Azure AD 身份验证接受 url 查询字符串访问 token