Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to compare azure resources configuration

Tags:

c#

.net

cloud

azure

I have two resources of the same kind and want to find a easy way to compare their configuration to find differences.

In my project I have several resources of the same kind but with slightly different configuration. I want to make a list of the configuration differences and want to find a easy way to do so.

I'm quite new to azure but I know there is a Resource explorer who shows me configuration in JSON format, but I'm not sure if this shows me the whole configuration or just a part of it and I don't know how to access it / download this configuration via CLI for comparison.

The resources are of different kind e.g. comsos db, key vault, data lake etc.

Whats the best way to do this task?

like image 226
Tobias von Falkenhayn Avatar asked Sep 19 '25 22:09

Tobias von Falkenhayn


1 Answers

As I know, the Azure Storage Explorer will inculde the whole(or close to whole, this depends on specific case) configuration.

If you want to use CLI, you could use this command - az resource show, it shows the details of the resources, just specify the --resource-type with what resource you want.

az resource show [--api-version]
                 [--ids]
                 [--include-response-body {false, true}]
                 [--name]
                 [--namespace]
                 [--parent]
                 [--resource-group]
                 [--resource-type]
                 [--subscription]
like image 90
Joy Wang Avatar answered Sep 22 '25 11:09

Joy Wang