-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Aladdin generated examples for Accounts, KeyVault, Monitor, Storage #11569
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
dingmeng-xue
merged 4 commits into
Azure:master
from
aladdindoc:AutogeneratedExamples04132020T221425Z
Apr 16, 2020
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
7a0d323
Add new examples to Accounts, KeyVault, Monitor, Storage
kceiw 977c536
Add new examples to Accounts, KeyVault, Monitor, Storage
kceiw 696b033
Merge branch 'AutogeneratedExamples04142020T152419Z' into Autogenerat…
kceiw 53811ee
Fix up the type name.
kceiw File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.