c# - Azure management API: How to change web app pricing tier? -


i'm automating creation of azure web apps using management sdk (i.e. https://github.com/azure/azure-sdk-for-net) , it's not obvious how change web apps app service plan pricing tier using sdk. want change web apps i'm creating 'free' 'shared'.

how can this?

look @ webhostingplanoperations.updateasync() (webhostingplanoperations.cs).

notice takes webhostingplanupdateparameters object parameter (located in models, here). within that, can set:

  • workersize (0, 1, or 2 small, medium or large)
  • skuoptions (which takes skuoptions enum, in models, here).

skuoptions values:

  • free = 0
  • shared = 1
  • basic = 2
  • standard = 3
  • premium = 4

Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -