CmdID / az / az billing-benefits / az billing-benefits savings-plan-order / az billing-benefits savings-plan-order savings-plan
az billing-benefits savings-plan-order savings-plan update
Update savings plan. Azure CLI extensions reference
6 examples 7 options Its page in the Azure CLI extensions reference
Examples
Update display name
az billing-benefits savings-plan-order savings-plan update --savings-plan-order-id 30000000-aaaa-bbbb-cccc-200000000017 --savings-plan-id 30000000-aaaa-bbbb-cccc-200000000019 --display-name "cliTest"Identify--savings-plan-order-idOrder ID of the savings plan--savings-plan-idID of the savings plan--display-nameDisplay nameUpdate savings plan applied scope to "Shared"
az billing-benefits savings-plan-order savings-plan update --savings-plan-order-id 30000000-aaaa-bbbb-cccc-200000000017 --savings-plan-id 30000000-aaaa-bbbb-cccc-200000000019 --applied-scope-type SharedIdentify--savings-plan-order-idOrder ID of the savings plan--savings-plan-idID of the savings plan--applied-scope-typeType of the Applied Scope.Update savings plan applied scope to "Single"
az billing-benefits savings-plan-order savings-plan update --savings-plan-order-id 30000000-aaaa-bbbb-cccc-200000000017 --savings-plan-id 30000000-aaaa-bbbb-cccc-200000000019 --applied-scope-type Single --applied-scope-prop "{subscription-id:/subscriptions/30000000-aaaa-bbbb-cccc-200000000004}"Identify--savings-plan-order-idOrder ID of the savings plan--savings-plan-idID of the savings plan--applied-scope-typeType of the Applied Scope.--applied-scope-propProperties specific to applied scope type.Update savings plan applied scope to "Single" resource group
az billing-benefits savings-plan-order savings-plan update --savings-plan-order-id 30000000-aaaa-bbbb-cccc-200000000017 --savings-plan-id 30000000-aaaa-bbbb-cccc-200000000019 --applied-scope-type Single --applied-scope-prop "{subscription-id:/subscriptions/30000000-aaaa-bbbb-cccc-200000000004/resourceGroups/rgName}"Identify--savings-plan-order-idOrder ID of the savings plan--savings-plan-idID of the savings plan--applied-scope-typeType of the Applied Scope.--applied-scope-propProperties specific to applied scope type.Update savings plan applied scope to "ManagementGroup"
az billing-benefits savings-plan-order savings-plan update --savings-plan-order-id 30000000-aaaa-bbbb-cccc-200000000017 --savings-plan-id 30000000-aaaa-bbbb-cccc-200000000019 --applied-scope-type ManagementGroup --applied-scope-prop "{tenantId:10000000-aaaa-bbbb-cccc-20000000006,managementGroupId:/providers/Microsoft.Management/managementGroups/TestRg}"Identify--savings-plan-order-idOrder ID of the savings plan--savings-plan-idID of the savings plan--applied-scope-typeType of the Applied Scope.--applied-scope-propProperties specific to applied scope type.Update savings plan renewal setting
az billing-benefits savings-plan-order savings-plan update --savings-plan-order-id 30000000-aaaa-bbbb-cccc-200000000017 --savings-plan-id 30000000-aaaa-bbbb-cccc-200000000019 --renew true --renew-properties "{purchase-properties:{applied-scope-type:Shared,billing-plan:P1M,billing-scope-id:/subscriptions/30000000-aaaa-bbbb-cccc-200000000015,commitment:{amount:10.0,currency-code:USD,grain:Hourly},display-name:name1,renew:true,term:P1Y,sku:Compute_Savings_Plan}}"Identify--savings-plan-order-idOrder ID of the savings plan--savings-plan-idID of the savings plan--renewSetting this to true will automatically purchase a new benefit on the expiration date time.Options
--applied-scope-propProperties specific to applied scope type.--applied-scope-typeType of the Applied Scope.--display-nameDisplay name--renew-properties--renewSetting this to true will automatically purchase a new benefit on the expiration date time.--savings-plan-idID of the savings plan--savings-plan-order-idOrder ID of the savings plan