From 83ab5b8136d0a6fce12dbf0cde714a43178dfc09 Mon Sep 17 00:00:00 2001 From: Mats Estensen Date: Fri, 27 Aug 2021 09:44:04 +0200 Subject: [PATCH] docs: add examples for Update-AzSubscription (#15748) * docs: add examples for Update-AzSubscription * Update ChangeLog.md Co-authored-by: Yabo Hu --- .../help/Update-AzSubscription.md | 26 ++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/src/Subscription/Subscription/help/Update-AzSubscription.md b/src/Subscription/Subscription/help/Update-AzSubscription.md index d843e60b57cc..198101e20bcb 100644 --- a/src/Subscription/Subscription/help/Update-AzSubscription.md +++ b/src/Subscription/Subscription/help/Update-AzSubscription.md @@ -29,10 +29,34 @@ PS C:\> Update-AzSubscription -SubscriptionId "86869d42-1782-4337-98b0-c905fb937 Name : My Subscription Id : 86869d42-1782-4337-98b0-c905fb937d46 TenantId : a5dcb057-fd83-4384-9d49-5198004d33a5 +State : Cancelled +``` + +Cancels the subscription + +### Example 2 +```powershell +PS C:\> Update-AzSubscription -SubscriptionId "86869d42-1782-4337-98b0-c905fb937d46" -Action "Enable" + +Name : My Subscription +Id : 86869d42-1782-4337-98b0-c905fb937d46 +TenantId : a5dcb057-fd83-4384-9d49-5198004d33a5 +State : Enabled +``` + +Enables the subscription + +### Example 3 +```powershell +PS C:\> Update-AzSubscription -SubscriptionId "86869d42-1782-4337-98b0-c905fb937d46" -Action "Rename" -Name "Updated Subscription Name" + +Name : Updated Subscription Name +Id : 86869d42-1782-4337-98b0-c905fb937d46 +TenantId : a5dcb057-fd83-4384-9d49-5198004d33a5 State : Enabled ``` -Updates the subscription +Renames the subscription ## PARAMETERS