Azure / azure-cli

Azure Command-Line Interface
MIT License
3.99k stars 2.98k forks source link

Webapp slots does not clone the runtime from the production slot with --configuration-source parameter #17055

Open MortenKartevoll opened 3 years ago

MortenKartevoll commented 3 years ago

Describe the bug The app slot defaults to .net framework 4.8 (because 4.8 is the default of az webapp list-runtimes I guess) even though the runtime version of production slot is set to "DOTNETCORE|3.1".

I am hosting an app service with Windows and when I try to create a slot with following command:

az webapp deployment slot create `
        --name $appName `
        --resource-group $rgName `
        --slot $slotName `
        --configuration-source $appName `

It does not copy the runtime. This would not bother me that much if there was a possibility to change the runtime for a deployment slot after creating it, but I cannot figure out a way to do either. Is there a way to copy the runtime or eventually set it directly on the created slot?

To Reproduce

az webapp create `
            --resource-group $rgName `
            --name $appName `
            --plan $planId  `
            --runtime '"DOTNETCORE|3.1"'
az webapp deployment slot create `
        --name $appName `
        --resource-group $rgName `
        --slot $slotName `
        --configuration-source $appName `

Expected behavior I expect the runtime in the new slot to be the same as the production slot.

Environment summary { "azure-cli": "2.17.1", "azure-cli-core": "2.17.1", "azure-cli-telemetry": "1.0.6", "extensions": { "azure-devops": "0.17.0" } } OS: Windows 10 Shell type: Powershell 5.1

Additional context I have tried to set the --windows-fx-version, to no success, and it makes sense since the documentation says: "A docker image name used for your windows container web app, e.g., microsoft/nanoserver:ltsc2016."

ghost commented 3 years ago

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

Issue Details
**Describe the bug** The app slot defaults to .net framework 4.8 (because 4.8 is the default of az webapp list-runtimes I guess) the even though the runtime version of production slot is set to "DOTNETCORE|3.1". I am hosting an app service with Windows and when I try to create a slot with following command: ``` az webapp deployment slot create ` --name $appName ` --resource-group $rgName ` --slot $slotName ` --configuration-source $appName ` ``` It does not copy the runtime. Does would not bother me that much if there was a possibility to change the runtime for a deployment slot after creating it, but I cannot figure out a way to do either. Is there a way to copy the runtime or eventually set it directly on the created slot? **To Reproduce** ``` az webapp create ` --resource-group $rgName ` --name $appName ` --plan $planId ` --runtime '"DOTNETCORE|3.1"' az webapp deployment slot create ` --name $appName ` --resource-group $rgName ` --slot $slotName ` --configuration-source $appName ` ``` **Expected behavior** I expect the runtime in the new slot to be the same as the production slot. **Environment summary** { "azure-cli": "2.17.1", "azure-cli-core": "2.17.1", "azure-cli-telemetry": "1.0.6", "extensions": { "azure-devops": "0.17.0" } } OS: Windows 10 Shell type: Powershell 5.1 **Additional context** I have tried to set the --windows-fx-version, to no success, and it makes sense since the documentation says: "A docker image name used for your windows container web app, e.g., microsoft/nanoserver:ltsc2016."
Author: MortenKartevoll
Assignees: -
Labels: `Service Attention`, `Web Apps`
Milestone: -
yonzhan commented 3 years ago

webapp

MortenKartevoll commented 3 years ago

I would really like some feedback on this.

HerrNiklasRaab commented 3 years ago

Possible duplicate of https://github.com/Azure/azure-cli/issues/6638

OPthyago commented 2 years ago

I would really like some feedback on this.

Me too

btardif commented 1 year ago

@seligj95 we have a queue for Slot related features?

seligj95 commented 1 year ago

@seligj95 we have a queue for Slot related features?

new queue for slots created, will triage there

seligj95 commented 1 year ago

Related to https://github.com/Azure/azure-cli/issues/6638

sijucm commented 6 months ago

time waste is what Microsoft is. random settings and parameters and half baked products wasting time if you read their documentation.