azure-cli icon indicating copy to clipboard operation
azure-cli copied to clipboard

WebApp: Can't set 64bit using "az webapp" cmd

Open hanhsia opened this issue 6 years ago • 6 comments

I didn't find any doc about how to set platform "64bit" using cli. The only way is to change it in azure portal. But i want to autmate it using az command. By default, it sets to 32bit platform in configuration. But my .net core app is compiled to win-64. if i deploy this .net core app, web app service will report error. So is there any way to set it using az command?

hanhsia avatar Nov 12 '20 02:11 hanhsia

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @AzureAppServiceCLI, @antcp.


Issue meta data
Issue content: I didn't find any doc about how to set platform "64bit" using cli. The only way is to change it in azure portal. But i want to autmate it using az command. By default, it sets to 32bit platform in configuration. But my .net core app is compiled to win-64. if i deploy this .net core app, web app service will report error. So is there any way to set it using az command?
Issue author: hanhsia
Assignees: -
Milestone: -

ghost avatar Nov 12 '20 03:11 ghost

route to appropriate team to help look at it.

yungezz avatar Nov 12 '20 03:11 yungezz

I am wondering how to do this as well.

gpict avatar Nov 14 '20 00:11 gpict

This is working for me: az webapp config set --name $WEBAPP_NAME --resource-group $RESOURCEGROUP_NAME --use-32bit-worker-process false

gpict avatar Nov 14 '20 00:11 gpict

that's it. thanks.

hanhsia avatar Nov 14 '20 15:11 hanhsia

Hello

This should work. Set-AzureWebsite "websitenamegoeshere" -Use32BitWorkerProcess $false From: https://learn.microsoft.com/en-us/azure/templates/microsoft.web/sites/config?pivots=deployment-language-bicep

Use32BitWorkerProcess is described here: https://learn.microsoft.com/en-us/azure/templates/microsoft.web/sites/config?pivots=deployment-language-bicep

lukenpp avatar Apr 14 '25 14:04 lukenpp