I'm automating the creation of Azure web apps using the management SDK (i.e. https://github.com/Azure/azure-sdk-for-net) and it's not obvious how to change a web apps app service plan pricing tier using this SDK. Specifically I want to change the web apps I'm creating from 'Free' to 'Shared'.
How can I do this?
Look at WebHostingPlanOperations.UpdateAsync()
(WebHostingPlanOperations.cs).
Notice that it takes a WebHostingPlanUpdateParameters
object as a parameter (located in Models, here). Within that, you can set:
WorkerSize
(0, 1, or 2 for Small, Medium or Large)SkuOptions
(which takes a SkuOptions
enum, also in Models, here).SkuOptions
values:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With