microsoft / AzureTipsAndTricks

Learn some of our favorite Azure tips and tricks—some long-standing, and new ones that have recently been added to become more productive with Azure. Star the repo now to shave hours off your coding tasks tomorrow.
http://azuredev.tips
Creative Commons Attribution 4.0 International
1.49k stars 489 forks source link

Powershell / Change Web App Traffic Percentages #11

Closed gamehhh78 closed 5 years ago

gamehhh78 commented 5 years ago

Hello, whenever another deployment slot is created in a WebApp, in the WebGUI you are able to adjust those percentages. How can that be accomplished using Powershell? Are there ARM or AZ commands that will do this?

WebAppTrafficPercentages
mbcrump commented 5 years ago

That is located on this very site. Bottom line, is yes you can do it. I hope this helps!

gamehhh78 commented 5 years ago

Thank you, however it looks like the ASM commands were to be deprecated in Jan 2019, and anytime I run set-azurewebsite I get 'Request to downlevel servicve failed'. I was hoping there would be a more recent way of altering traffic via powershell with ARM or AZ modules, but its not looking like that is the case. Still searching for a solution....