How to Scale Azure cloud service up and down from Rest API with WebAPI

后端 未结 1 481
南笙
南笙 2020-12-21 00:28

I am creating a demo where I need to be able to scale up my cloud service deployment from a WebAPI.

I went over the rest API documentation and didn\'t seem to find w

相关标签:
1条回答
  • 2020-12-21 01:15

    As such there's no such function in Service Management REST API for scaling. Since the number of instances for a particular role is stored in the service configuration file, what you would need to do is read this configuration information using Get Deployment operation, locate the Instances node and change the value of count attribute. Then you would need to call Change Deployment Configuration for new instance count to be effective.

    0 讨论(0)
提交回复
热议问题