Skip to content
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

{Compute} az sig image-definition: Migrate commands #664

Merged
merged 1 commit into from
Dec 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions Commands/sig/image-definition/_list-community.md
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
```
9 changes: 9 additions & 0 deletions Commands/sig/image-definition/_show-community.md
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 -->
26 changes: 25 additions & 1 deletion Commands/sig/image-definition/_update.md
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
```
8 changes: 7 additions & 1 deletion Commands/sig/image-definition/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,17 @@ Manage shared gallery image with VM
- [list](/Commands/sig/image-definition/_list.md)
: List gallery image definitions in a gallery.

- [list-community](/Commands/sig/image-definition/_list-community.md)
: List VM Image definitions in a gallery community

- [show](/Commands/sig/image-definition/_show.md)
: Get information about a gallery image definition.

- [show-community](/Commands/sig/image-definition/_show-community.md)
: Get a community gallery image.

- [show-shared](/Commands/sig/image-definition/_show-shared.md)
: Get a shared gallery image

- [update](/Commands/sig/image-definition/_update.md)
: Update a gallery image definition.
: Update a VM Image definition.
114 changes: 97 additions & 17 deletions Commands/tree.json
Original file line number Diff line number Diff line change
Expand Up @@ -208034,22 +208034,22 @@
],
"versions": [
{
"name": "2019-12-01",
"name": "2021-10-01",
"resources": [
{
"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/galleries/{}/images/{}",
"plane": "mgmt-plane",
"version": "2019-12-01"
"version": "2021-10-01"
}
]
},
{
"name": "2021-10-01",
"name": "2019-12-01",
"resources": [
{
"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/galleries/{}/images/{}",
"plane": "mgmt-plane",
"version": "2021-10-01"
"version": "2019-12-01"
}
]
}
Expand All @@ -208066,22 +208066,22 @@
],
"versions": [
{
"name": "2019-12-01",
"name": "2021-10-01",
"resources": [
{
"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/galleries/{}/images/{}",
"plane": "mgmt-plane",
"version": "2019-12-01"
"version": "2021-10-01"
}
]
},
{
"name": "2021-10-01",
"name": "2019-12-01",
"resources": [
{
"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/galleries/{}/images/{}",
"plane": "mgmt-plane",
"version": "2021-10-01"
"version": "2019-12-01"
}
]
}
Expand Down Expand Up @@ -208119,6 +208119,36 @@
}
]
},
"list-community": {
"help": {
"short": "List VM Image definitions in a gallery community"
},
"names": [
"sig",
"image-definition",
"list-community"
],
"versions": [
{
"examples": [
{
"commands": [
"sig image-version list-community --public-gallery-name publicGalleryName --gallery-image-definition MyImage --location myLocation"
],
"name": "List an image versions in a gallery community."
}
],
"name": "2023-07-03",
"resources": [
{
"id": "/subscriptions/{}/providers/microsoft.compute/locations/{}/communitygalleries/{}/images",
"plane": "mgmt-plane",
"version": "2023-07-03"
}
]
}
]
},
"show": {
"help": {
"short": "Get information about a gallery image definition."
Expand All @@ -208130,22 +208160,44 @@
],
"versions": [
{
"name": "2019-12-01",
"name": "2021-10-01",
"resources": [
{
"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/galleries/{}/images/{}",
"plane": "mgmt-plane",
"version": "2019-12-01"
"version": "2021-10-01"
}
]
},
{
"name": "2021-10-01",
"name": "2019-12-01",
"resources": [
{
"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/galleries/{}/images/{}",
"plane": "mgmt-plane",
"version": "2021-10-01"
"version": "2019-12-01"
}
]
}
]
},
"show-community": {
"help": {
"short": "Get a community gallery image."
},
"names": [
"sig",
"image-definition",
"show-community"
],
"versions": [
{
"name": "2023-07-03",
"resources": [
{
"id": "/subscriptions/{}/providers/microsoft.compute/locations/{}/communitygalleries/{}/images/{}",
"plane": "mgmt-plane",
"version": "2023-07-03"
}
]
}
Expand Down Expand Up @@ -208186,7 +208238,7 @@
},
"update": {
"help": {
"short": "Update a gallery image definition."
"short": "Update a VM Image definition."
},
"names": [
"sig",
Expand All @@ -208195,22 +208247,50 @@
],
"versions": [
{
"name": "2019-12-01",
"examples": [
{
"commands": [
"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\""
],
"name": "Change the shared image definition's recommended configuration"
},
{
"commands": [
"sig image-definition update --resource-group MyResourceGroup --gallery-name MyGallery --gallery-image-definition MyImage --resource-group MyResourceGroup --remove recommended.vCpUs.min"
],
"name": "Remove a shared image definition's configuration property"
}
],
"name": "2021-10-01",
"resources": [
{
"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/galleries/{}/images/{}",
"plane": "mgmt-plane",
"version": "2019-12-01"
"version": "2021-10-01"
}
]
},
{
"name": "2021-10-01",
"examples": [
{
"commands": [
"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\""
],
"name": "Change the shared image definition's recommended configuration"
},
{
"commands": [
"sig image-definition update --resource-group MyResourceGroup --gallery-name MyGallery --gallery-image-definition MyImage --resource-group MyResourceGroup --remove recommended.vCpUs.min"
],
"name": "Remove a shared image definition's configuration property"
}
],
"name": "2019-12-01",
"resources": [
{
"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/galleries/{}/images/{}",
"plane": "mgmt-plane",
"version": "2021-10-01"
"version": "2019-12-01"
}
]
}
Expand Down
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": ""}]}]}
Loading
Loading