0
votes

Is it possible to export the JSON definition for an existing app service in Azure?

Ie this json object: https://docs.microsoft.com/en-us/azure/templates/microsoft.web/sites

The app service was created using the Azure Portal UI and I want to recreate it using the Azure CLI command line.

1
You use az group export --name to export json file?Shui shengbao

1 Answers

1
votes

You could use az group export --name *** >test.json to capture a resource group as a template. Please refer to this link.

But currently resource type Microsoft.Web/sites does not support export, please refer to this feedback.

Note: If also could find the error log on Azure Portal.

enter image description here