问题
I downloaded the arm template for Web App + MySQL from azure gallery:
https://gallery.azure.com/artifact/...
and now trying to make a deployment using this. But I don't know/can't find out what values to supply for some parameters like HostingEnvironment, what are the accepted values, where can I find them?
I tried out "Free" and "Shared" for value, both are wrong.
"ErrorEntity": {
"Code": "NotFound",
"Message": "Cannot find HostingEnvironment with name Shared.",
"ExtendedCode": "51004",
"MessageTemplate": "Cannot find {0} with name {1}.",
"Parameters": [
"HostingEnvironment",
"Shared"
],
InnerErrors": null
}
回答1:
The HostingEnvironment is the name of the App Service Environment. If you don't need it, try to leave it empty. Otherwise fork the template and remove the property.
来源:https://stackoverflow.com/questions/40019741/azure-resource-manager-template-hostingenvironment