Skip to content

Commit

Permalink
docs: add examples for Update-AzSubscription (#15748)
Browse files Browse the repository at this point in the history
* docs: add examples for Update-AzSubscription

* Update ChangeLog.md

Co-authored-by: Yabo Hu <[email protected]>
  • Loading branch information
matsest and VeryEarly authored Aug 27, 2021
1 parent ae19270 commit 83ab5b8
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion src/Subscription/Subscription/help/Update-AzSubscription.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 83ab5b8

Please sign in to comment.