How do I find the properties of a resource with az

2019-08-02 15:48发布

问题:

How can I see the configuration of a resource in a resource group? I've provisioned a database through the portal and I'd like to see what that configuration is in the template language.

回答1:

You can use the Azure Resource Manager REST API to list the template deployments for your resource group. A reference to the API is here.

Near the top of the response is a templateLink that you can follow to get the deployment template. For example, this is what I get back for one of my deployments where I used the Web App + SQL Database configuration from the Azure Portal to create a new web app.