forked from Azure/azure-cli-extensions
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request Azure#160 from yanzhudd/migrate_vm
Add command models for compute
- Loading branch information
Showing
31 changed files
with
1,467 additions
and
1,534 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# [Command] _vm extension image list-names_ | ||
|
||
List the names of available extensions. | ||
|
||
## Versions | ||
|
||
### [2022-11-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb21wdXRlL2xvY2F0aW9ucy97fS9wdWJsaXNoZXJzL3t9L2FydGlmYWN0dHlwZXMvdm1leHRlbnNpb24vdHlwZXM=/2022-11-01.xml) **Stable** | ||
|
||
<!-- mgmt-plane /subscriptions/{}/providers/microsoft.compute/locations/{}/publishers/{}/artifacttypes/vmextension/types 2022-11-01 --> | ||
|
||
#### examples | ||
|
||
- Find Docker extensions by publisher and location. | ||
```bash | ||
vm extension image list-names --publisher Microsoft.Azure.Extensions -l westus --query "[?starts_with(name, 'Docker')]" | ||
``` | ||
|
||
- Find CustomScript extensions by publisher and location. | ||
```bash | ||
vm extension image list-names --publisher Microsoft.Azure.Extensions -l westus --query "[?starts_with(name, 'Custom')]" | ||
``` |
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# [Command] _vm extension image list-versions_ | ||
|
||
List the versions for available extensions. | ||
|
||
## Versions | ||
|
||
### [2022-11-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb21wdXRlL2xvY2F0aW9ucy97fS9wdWJsaXNoZXJzL3t9L2FydGlmYWN0dHlwZXMvdm1leHRlbnNpb24vdHlwZXMve30vdmVyc2lvbnM=/2022-11-01.xml) **Stable** | ||
|
||
<!-- mgmt-plane /subscriptions/{}/providers/microsoft.compute/locations/{}/publishers/{}/artifacttypes/vmextension/types/{}/versions 2022-11-01 --> | ||
|
||
#### examples | ||
|
||
- Find the available versions for the Docker extension. | ||
```bash | ||
vm extension image list-versions --publisher Microsoft.Azure.Extensions -l westus -n DockerExtension -o table | ||
``` |
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# [Command] _vm extension image show_ | ||
|
||
Display information for an extension. | ||
|
||
## Versions | ||
|
||
### [2022-11-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb21wdXRlL2xvY2F0aW9ucy97fS9wdWJsaXNoZXJzL3t9L2FydGlmYWN0dHlwZXMvdm1leHRlbnNpb24vdHlwZXMve30vdmVyc2lvbnMve30=/2022-11-01.xml) **Stable** | ||
|
||
<!-- mgmt-plane /subscriptions/{}/providers/microsoft.compute/locations/{}/publishers/{}/artifacttypes/vmextension/types/{}/versions/{} 2022-11-01 --> | ||
|
||
#### examples | ||
|
||
- Show the CustomScript extension version 2.0.2. | ||
```bash | ||
vm extension image show -l westus -n CustomScript --publisher Microsoft.Azure.Extensions --version 2.0.2 | ||
``` | ||
|
||
- Show the latest version of the Docker extension. | ||
```bash | ||
vm extension image list-versions --publisher Microsoft.Azure.Extensions -l westus -n DockerExtension --query "[].name" -o tsv | sort | tail -n 1 | ||
vm extension image show -l westus \\ --publisher Microsoft.Azure.Extensions -n DockerExtension --version LatestVersion | ||
``` |
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# [Group] _vm extension image_ | ||
|
||
Find the available VM extensions for a subscription and region. | ||
|
||
## Commands | ||
|
||
- [list-names](/Commands/vm/extension/image/_list-names.md) | ||
: List the names of available extensions. | ||
|
||
- [list-versions](/Commands/vm/extension/image/_list-versions.md) | ||
: List the versions for available extensions. | ||
|
||
- [show](/Commands/vm/extension/image/_show.md) | ||
: Display information for an extension. |
Oops, something went wrong.