Reputation: 492
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.
Upvotes: 0
Views: 84
Reputation: 1864
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:
Alternatively, you can use Elastic Pools - Create Or Update
You can refer to these examples: ElasticPoolResource.cs, MaxSizeRangeCapability.cs and ElasticPoolPerformanceLevelCapability.cs
Upvotes: 0