-
Notifications
You must be signed in to change notification settings - Fork 222
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
{Compute}
az sig image-definition
: Migrate commands (#664)
- Loading branch information
Showing
13 changed files
with
409 additions
and
29 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# [Command] _sig image-definition list-community_ | ||
|
||
List VM Image definitions in a gallery community | ||
|
||
## Versions | ||
|
||
### [2023-07-03](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb21wdXRlL2xvY2F0aW9ucy97fS9jb21tdW5pdHlnYWxsZXJpZXMve30vaW1hZ2Vz/2023-07-03.xml) **Stable** | ||
|
||
<!-- mgmt-plane /subscriptions/{}/providers/microsoft.compute/locations/{}/communitygalleries/{}/images 2023-07-03 --> | ||
|
||
#### examples | ||
|
||
- List an image versions in a gallery community. | ||
```bash | ||
sig image-version list-community --public-gallery-name publicGalleryName --gallery-image-definition MyImage --location myLocation | ||
``` |
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,9 @@ | ||
# [Command] _sig image-definition show-community_ | ||
|
||
Get a community gallery image. | ||
|
||
## Versions | ||
|
||
### [2023-07-03](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb21wdXRlL2xvY2F0aW9ucy97fS9jb21tdW5pdHlnYWxsZXJpZXMve30vaW1hZ2VzL3t9/2023-07-03.xml) **Stable** | ||
|
||
<!-- mgmt-plane /subscriptions/{}/providers/microsoft.compute/locations/{}/communitygalleries/{}/images/{} 2023-07-03 --> |
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 |
---|---|---|
@@ -1,13 +1,37 @@ | ||
# [Command] _sig image-definition update_ | ||
|
||
Update a gallery image definition. | ||
Update a VM Image definition. | ||
|
||
## Versions | ||
|
||
### [2019-12-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb21wdXRlL2dhbGxlcmllcy97fS9pbWFnZXMve30=/2019-12-01.xml) **Stable** | ||
|
||
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/galleries/{}/images/{} 2019-12-01 --> | ||
|
||
#### examples | ||
|
||
- Change the shared image definition's recommended configuration | ||
```bash | ||
sig image-definition update --resource-group MyResourceGroup --gallery-name MyGallery --gallery-image-definition MyImage --resource-group MyResourceGroup --set recommended.vCpUs.min=myNewvCpUsMin recommended.vCpUs.max=myNewvCpUsMax recommended.memory.min=myNewMemoryMin recommended.memory.max=myNewMemoryMax description="newDescription" | ||
``` | ||
|
||
- Remove a shared image definition's configuration property | ||
```bash | ||
sig image-definition update --resource-group MyResourceGroup --gallery-name MyGallery --gallery-image-definition MyImage --resource-group MyResourceGroup --remove recommended.vCpUs.min | ||
``` | ||
### [2021-10-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb21wdXRlL2dhbGxlcmllcy97fS9pbWFnZXMve30=/2021-10-01.xml) **Stable** | ||
<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/galleries/{}/images/{} 2021-10-01 --> | ||
#### examples | ||
- Change the shared image definition's recommended configuration | ||
```bash | ||
sig image-definition update --resource-group MyResourceGroup --gallery-name MyGallery --gallery-image-definition MyImage --resource-group MyResourceGroup --set recommended.vCpUs.min=myNewvCpUsMin recommended.vCpUs.max=myNewvCpUsMax recommended.memory.min=myNewMemoryMin recommended.memory.max=myNewMemoryMax description="newDescription" | ||
``` | ||
|
||
- Remove a shared image definition's configuration property | ||
```bash | ||
sig image-definition update --resource-group MyResourceGroup --gallery-name MyGallery --gallery-image-definition MyImage --resource-group MyResourceGroup --remove recommended.vCpUs.min | ||
``` |
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
1 change: 1 addition & 0 deletions
1
...vc29mdC5jb21wdXRlL2xvY2F0aW9ucy97fS9jb21tdW5pdHlnYWxsZXJpZXMve30vaW1hZ2Vz/2023-07-03.json
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 @@ | ||
{"plane": "mgmt-plane", "resources": [{"id": "/subscriptions/{}/providers/microsoft.compute/locations/{}/communitygalleries/{}/images", "version": "2023-07-03", "swagger": "mgmt-plane/compute/ResourceProviders/Microsoft.Compute/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9wcm92aWRlcnMvTWljcm9zb2Z0LkNvbXB1dGUvbG9jYXRpb25zL3tsb2NhdGlvbn0vY29tbXVuaXR5R2FsbGVyaWVzL3twdWJsaWNHYWxsZXJ5TmFtZX0vaW1hZ2Vz/V/MjAyMy0wNy0wMw=="}], "commandGroups": [{"name": "sig image-definition", "commands": [{"name": "list-community", "version": "2023-07-03", "resources": [{"id": "/subscriptions/{}/providers/microsoft.compute/locations/{}/communitygalleries/{}/images", "version": "2023-07-03", "swagger": "mgmt-plane/compute/ResourceProviders/Microsoft.Compute/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9wcm92aWRlcnMvTWljcm9zb2Z0LkNvbXB1dGUvbG9jYXRpb25zL3tsb2NhdGlvbn0vY29tbXVuaXR5R2FsbGVyaWVzL3twdWJsaWNHYWxsZXJ5TmFtZX0vaW1hZ2Vz/V/MjAyMy0wNy0wMw=="}], "argGroups": [{"name": "", "args": [{"type": "ResourceLocation", "var": "$Path.location", "options": ["l", "location"], "required": true, "idPart": "name"}, {"type": "string", "var": "$Path.publicGalleryName", "options": ["public-gallery-name"], "required": true, "idPart": "child_name_1", "help": {"short": "The public name of the community gallery."}}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}]}], "operations": [{"operationId": "CommunityGalleryImages_List", "http": {"path": "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/communityGalleries/{publicGalleryName}/images", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "location", "arg": "$Path.location", "required": true}, {"type": "string", "name": "publicGalleryName", "arg": "$Path.publicGalleryName", "required": true}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2023-07-03"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"type": "string", "name": "nextLink"}, {"type": "array<object>", "name": "value", "required": true, "item": {"type": "object", "props": [{"type": "object", "name": "identifier", "props": [{"type": "string", "name": "uniqueId"}], "clientFlatten": true}, {"readOnly": true, "type": "string", "name": "location"}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"type": "string", "name": "architecture", "enum": {"items": [{"value": "Arm64"}, {"value": "x64"}]}}, {"type": "object", "name": "artifactTags", "additionalProps": {"item": {"type": "string"}}}, {"type": "object", "name": "disallowed", "props": [{"type": "array<string>", "name": "diskTypes", "item": {"type": "string"}}]}, {"type": "string", "name": "disclaimer"}, {"type": "dateTime", "name": "endOfLifeDate"}, {"type": "string", "name": "eula"}, {"type": "array<object>", "name": "features", "item": {"type": "object", "props": [{"type": "string", "name": "name"}, {"type": "string", "name": "value"}]}, "identifiers": ["name"]}, {"type": "string", "name": "hyperVGeneration", "enum": {"items": [{"value": "V1"}, {"value": "V2"}]}}, {"type": "object", "name": "identifier", "required": true, "props": [{"type": "string", "name": "offer"}, {"type": "string", "name": "publisher"}, {"type": "string", "name": "sku"}]}, {"type": "string", "name": "osState", "required": true, "enum": {"items": [{"value": "Generalized"}, {"value": "Specialized"}]}}, {"type": "string", "name": "osType", "required": true, "enum": {"items": [{"value": "Linux"}, {"value": "Windows"}]}}, {"type": "string", "name": "privacyStatementUri"}, {"type": "object", "name": "purchasePlan", "props": [{"type": "string", "name": "name"}, {"type": "string", "name": "product"}, {"type": "string", "name": "publisher"}]}, {"type": "object", "name": "recommended", "props": [{"type": "@ResourceRange_read", "name": "memory"}, {"type": "object", "name": "vCPUs", "props": [{"type": "integer32", "name": "max"}, {"type": "integer32", "name": "min"}], "cls": "ResourceRange_read"}]}], "clientFlatten": true}, {"readOnly": true, "type": "string", "name": "type"}]}}]}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "array", "ref": "$Instance.value", "clientFlatten": true, "nextLink": "$Instance.nextLink"}], "confirmation": ""}]}]} |
Oops, something went wrong.