Closed meepstei closed 4 years ago
Investigating this since as per @meepstei this was when using cloudShell with the latest modules.
This doesn't repro when running locally using the latest module @markcowl is there a cloudshell expert that can help us?
@meepstei the usage of the command is incorrect the usage is as follows:
Set-AzWebApp -ResourceGroupName "Default-Web-WestUS" -Name "ContosoWebApp" -AppServicePlan "ContosoPlan"
Note: there is only a single AppServicePlan which is the new/target ASP you want to move the App (in the above Ex. ContosoWebApp to) . Like you mentioned this works first time because the first APPServicePlan you give the one it gets moved to, the second time you get a success because the APP already exists on that ASP. Please re-try in the above format & let me know if that works. Thanks!
See documentation here https://docs.microsoft.com/en-us/powershell/module/az.websites/set-azwebapp?view=azps-2.7.0
@panchagnula CloudShell is just using linux powershell core. Can you tell what the issue is that the customer is experiencing? Normally we would ask for specific repro steps and a debug trace if we cannot repro the issue.
@markcowl I am experiencing the same issue from my side using Cloudshell and locally. I did try using the command Sisira provided and the App Service Plan still is not changing.
Set-AzWebApp -ResourceGroupName
When testing locally with Sisira the other day, the command did change the App Service Plan one time, the first time. After this, it would not change the app service plan. (I provided Sisira screenshots of my personal subscription).
Closing this since the fix is merged
Description
When running the following commands, the App Service Plan should change to the targeted ASP
Set-azWebApp -Name -ResourceGroupName -AppServicePlan <targetASP
or
Set-azureRM -Name -ResourceGroupName -AppServicePlan <targetASP
Does not look like anything changes after running the commands
Steps to reproduce
Environment data
Module versions
Debug output
Error output
all modules set.txt output of powershell change ASP.txt