How do I find the properties of a resource with az

2019-08-02 16:09发布

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条回答
beautiful°
2楼-- · 2019-08-02 16:37

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.

enter image description here

查看更多
登录 后发表回答