How to compare two app services settings in azure
Asked Answered
C

2

6

How can I compare the App Service configuration settings in two different App Services?

Charactery answered 13/12, 2017 at 13:48 Comment(2)
Do you want to compare web app appsettings?Counterwork
If yes, (Get-AzureRmWebApp -Name shuicli -ResourceGroupName shuiapp).SiteConfig.Appsettings export it to a csv fileCounterwork
C
8

You can use the Azure Resource Explorer to navigate to and view a JSON representation of the conifguration of an App Service. This is built into Azure and doesn't require additional tooling.

For a Proof-of-Concept application I have, I navigated it as such:

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)`

I'm assuming you know how to compare two different blocks of JSON via various means (DIFF tools, etc), so I won't explain that part.

Cacodyl answered 13/12, 2017 at 13:57 Comment(0)
T
0

You can you PowerShell to get all the configuration details of your app services

Login to your Azure Subscription using Login-AzureRmAccount

To get all Configuration Settings execute below command.

Get-AzureRmWebApp -Name YourAppServiceName1;Get-AzureRmWebApp -Name YourAppServiceName2
Tabard answered 13/12, 2017 at 15:23 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.