Edit

Share via


Update or delete a standby pool for Azure Container Instances

Important

For standby pools to successfully create and manage resources, it requires access to the associated resources in your subscription. Ensure the correct permissions are assigned to the standby pool resource provider in order for your standby pool to function properly. For detailed instructions, see configure role permissions for standby pools.

This article steps through updating or deleting a standby pool for Azure Container Instances.

Update a standby pool

A standby pool can be updated at any point in time. The settings that are adjustable after creation include maxReadyCapacity and the associated containerGroupProfile. If you update the container group profile of the standby pool, the new profile must also be in the same subscription and ___location as the standby pool. Once the profile has been updated, the pool will drain all existing instances and replaced them with new ones.

Update an existing standby pool using az standby-container-group-pool update.

az standby-container-group-pool update \
   --resource-group myResourceGroup 
   --___location WestCentralUS \
   --name myStandbyPool \
   --max-ready-capacity 20 \
   --refill-policy always \
   --container-profile-id "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.ContainerInstance/containerGroupProfiles/mycontainergroupprofile"

Delete a standby pool

Delete an existing standby pool using az standby-container-group-pool delete.

az standby-container-group-pool delete \
   --resource-group myResourceGroup \
   --name myStandbyPool 

Next steps

Get standby pool and container details using the standby pool runtime view APIs.