简体   繁体   中英

Using new Azure dotnet SDK for ElasticPool size

I'm trying to use the new Azure dotnet SDK for managing the size of our pool.

Using the following code I can return some of the pool details:

ResourceIdentifier id = new ResourceIdentifier(idStr);
ArmClient client = new ArmClient(new DefaultAzureCredential());
ElasticPoolResource ep = client.GetElasticPoolResource(id);
ep = ep.Get();

But I'm then struggling how to read or update any of the values. Is anyone aware of any examples of how to use this new SDK with ElasticPools specifically as I'm not getting very far using the standard documentation.

But I'm then struggling how to read or update any of the values. Is anyone aware of any examples of how to use this new SDK with ElasticPools specifically as I'm not getting very far using the standard documentation.

According to documentation , you can get the size of elastic pool using MaxSizeRangeCapability Class which includes following properties:

  • LogSize
  • MaxValue
  • MinValue
  • ScaleSize

Alternatively, you can use Elastic Pools - Create Or Update

You can refer to these examples: ElasticPoolResource.cs , MaxSizeRangeCapability.cs and ElasticPoolPerformanceLevelCapability.cs

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM