如何比较azure中的两个应用服务设置

时间:2017-12-13 13:48:53

标签: azure azure-web-sites azure-app-service-envrmnt

如何比较两种不同App Services中的App Service配置设置?

2 个答案:

答案 0 :(得分:3)

您可以使用Azure Resource Explorer导航并查看App Service的配置的JSON表示。这是内置于Azure中的,不需要额外的工具。

对于我所拥有的概念验证应用程序,我将其导航为:

subscriptions
  -> My Subscription
    -> resourceGroups
      -> My PoC Apps
        -> providers
          -> Microsoft.Web
            -> sites
              -> MyTestApp
                -> config (click on config for some, expand it and browse children for other config)`

我假设您知道如何通过各种方式比较两个不同的JSON块(DIFF工具等),所以我不会解释那个部分。

答案 1 :(得分:0)

您可以通过PowerShell获取应用服务的所有配置详细信息

使用Login-AzureRmAccount

登录您的Azure订阅

要在命令下执行所有配置设置。

Get-AzureRmWebApp -Name YourAppServiceName1;Get-AzureRmWebApp -Name YourAppServiceName2