-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Aladdin generated examples for Accounts, KeyVault, Monitor, Storage (#…
…11569) * Add new examples to Accounts, KeyVault, Monitor, Storage - Add new examples to the following modules: Accounts KeyVault Monitor Storage * Add new examples to Accounts, KeyVault, Monitor, Storage - Add new examples to the following modules: Accounts KeyVault Monitor Storage * Fix up the type name. Co-authored-by: Maoliang Huang <[email protected]>
- Loading branch information
1 parent
34d5f9c
commit 401f1b1
Showing
26 changed files
with
162 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,22 +48,22 @@ After executing this cmdlet, you will need to login again using Connect-AzAccoun | |
|
||
## EXAMPLES | ||
|
||
### Logout of the current account | ||
``` | ||
### Example 1: Logout of the current account | ||
```powershell | ||
PS C:\> Disconnect-AzAccount | ||
``` | ||
|
||
Logs out of the Azure account associated with the current context. | ||
|
||
### Logout of the account associated with a particular context | ||
``` | ||
### Example 2: Logout of the account associated with a particular context | ||
```powershell | ||
PS C:\> Get-AzContext "Work" | Disconnect-AzAccount -Scope CurrentUser | ||
``` | ||
|
||
Logs out the account associated with the given context (named 'Work'). Because this uses the 'CurrentUser' scope, all credentials and contexts will be permanently deleted. | ||
|
||
### Log out a particular user | ||
``` | ||
### Example 3: Log out a particular user | ||
```powershell | ||
PS C:\> Disconnect-AzAccount -Username '[email protected]' | ||
``` | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,16 +30,16 @@ Rename an Azure context. By default contexts are named by user account and subs | |
|
||
## EXAMPLES | ||
|
||
### Rename a context using named parameters | ||
``` | ||
### Example 1: Rename a context using named parameters | ||
```powershell | ||
PS C:\> Rename-AzContext -SourceName "[[email protected]; 12345-6789-2345-3567890]" -TargetName "Work" | ||
``` | ||
|
||
Rename the context for '[email protected]' with subscription '12345-6789-2345-3567890' to 'Work'. After this command, you will be able to target the context using | ||
'Select-AzContext Work'. Note that you can tab through the values for 'SourceName' using tab completion. | ||
|
||
### Rename a context using positional parameters | ||
``` | ||
### Example 2: Rename a context using positional parameters | ||
```powershell | ||
PS C:\> Rename-AzContext "My context" "Work" | ||
``` | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,8 +30,8 @@ selected context. | |
|
||
## EXAMPLES | ||
|
||
### Example 1 : Target a named context | ||
``` | ||
### Example 1: Target a named context | ||
```powershell | ||
PS C:\> Select-AzContext "Work" | ||
Name Account SubscriptionName Environment TenantId | ||
|
@@ -41,6 +41,14 @@ Work [email protected] Subscription1 AzureCloud xxxxxxxx-x.. | |
|
||
Target future Azure PowerShell cmdlets at the account, tenant, and subscription in the 'Work' context. | ||
|
||
### Example 2 | ||
|
||
Select a subscription and account to target in Azure PowerShell cmdlets in this powershell session. (autogenerated) | ||
|
||
```powershell <!-- Aladdin Generated Example --> | ||
Select-AzContext -Name TestEnvironment -Scope Process | ||
``` | ||
|
||
## PARAMETERS | ||
|
||
### -DefaultProfile | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.