Reputation: 14596
I am aware that, from a Windows environment, I cannot set my webapp to dotnetcore
runtime due to the following bug : https://github.com/Azure/azure-rest-api-specs/issues/7688
However I'm trying to do it this way :
az resource create -g my-rg --resource-type "Microsoft.Web/sites/config" -n my-app --properties '{""siteConfig"": { ""metadata"": [{""CURRENT_STACK"": ""dotnetcore""}] }}'
There's no error message. But when I go to the azure portal, I see that the stack is not set to dotnetcore and remains on current value (dotnet). Is it the correct way to change the stack ?
Upvotes: 2
Views: 1394
Reputation: 29995
You can use the code below:
az resource create -g my-rg --resource-type "Microsoft.Web/sites/config" -n my-app --properties "{\"siteConfig\": { \"metadata\": [{\"name\":\"CURRENT_STACK\",\"value\":\"dotnetcore\"}] }}"
I test it at my side, it can change the runtime:
Upvotes: 4