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 vm image: Migrate commands #663

Merged
merged 6 commits into from
Dec 24, 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
550 changes: 550 additions & 0 deletions Commands/tree.json

Large diffs are not rendered by default.

57 changes: 57 additions & 0 deletions Commands/vm/image/_list-offers.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# [Command] _vm image list-offers_

List a list of virtual machine image offers for the specified location and publisher.

## Versions

### [2017-03-30](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb21wdXRlL2xvY2F0aW9ucy97fS9wdWJsaXNoZXJzL3t9L2FydGlmYWN0dHlwZXMvdm1pbWFnZS9vZmZlcnM=/2017-03-30.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/providers/microsoft.compute/locations/{}/publishers/{}/artifacttypes/vmimage/offers 2017-03-30 -->

#### examples

- List all offers from Microsoft in the West US region.
```bash
vm image list-offers -l westus -p MicrosoftWindowsServer
```

- List all offers from OpenLocic in the West US region.
```bash
vm image list-offers -l westus -p OpenLogic
```

### [2017-12-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb21wdXRlL2xvY2F0aW9ucy97fS9wdWJsaXNoZXJzL3t9L2FydGlmYWN0dHlwZXMvdm1pbWFnZS9vZmZlcnM=/2017-12-01.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/providers/microsoft.compute/locations/{}/publishers/{}/artifacttypes/vmimage/offers 2017-12-01 -->

#### examples

- List all offers from Microsoft in the West US region.
```bash
vm image list-offers -l westus -p MicrosoftWindowsServer
```

- List all offers from OpenLocic in the West US region.
```bash
vm image list-offers -l westus -p OpenLogic
```

### [2020-06-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb21wdXRlL2xvY2F0aW9ucy97fS9wdWJsaXNoZXJzL3t9L2FydGlmYWN0dHlwZXMvdm1pbWFnZS9vZmZlcnM=/2020-06-01.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/providers/microsoft.compute/locations/{}/publishers/{}/artifacttypes/vmimage/offers 2020-06-01 -->

#### examples

- List all offers from Microsoft in the West US region.
```bash
vm image list-offers -l westus -p MicrosoftWindowsServer
```

- List all offers from OpenLocic in the West US region.
```bash
vm image list-offers -l westus -p OpenLogic
```

### [2024-07-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb21wdXRlL2xvY2F0aW9ucy97fS9wdWJsaXNoZXJzL3t9L2FydGlmYWN0dHlwZXMvdm1pbWFnZS9vZmZlcnM=/2024-07-01.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/providers/microsoft.compute/locations/{}/publishers/{}/artifacttypes/vmimage/offers 2024-07-01 -->
57 changes: 57 additions & 0 deletions Commands/vm/image/_list-publishers.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# [Command] _vm image list-publishers_

List a list of virtual machine image publishers for the specified Azure location.

## Versions

### [2017-03-30](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb21wdXRlL2xvY2F0aW9ucy97fS9wdWJsaXNoZXJz/2017-03-30.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/providers/microsoft.compute/locations/{}/publishers 2017-03-30 -->

#### examples

- List all publishers in the West US region.
```bash
vm image list-publishers -l westus
```

- List all publishers with names starting with "Open" in westus.
```bash
vm image list-publishers -l westus --query "[?starts_with(name, 'Open')]"
```

### [2017-12-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb21wdXRlL2xvY2F0aW9ucy97fS9wdWJsaXNoZXJz/2017-12-01.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/providers/microsoft.compute/locations/{}/publishers 2017-12-01 -->

#### examples

- List all publishers in the West US region.
```bash
vm image list-publishers -l westus
```

- List all publishers with names starting with "Open" in westus.
```bash
vm image list-publishers -l westus --query "[?starts_with(name, 'Open')]"
```

### [2020-06-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb21wdXRlL2xvY2F0aW9ucy97fS9wdWJsaXNoZXJz/2020-06-01.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/providers/microsoft.compute/locations/{}/publishers 2020-06-01 -->

#### examples

- List all publishers in the West US region.
```bash
vm image list-publishers -l westus
```

- List all publishers with names starting with "Open" in westus.
```bash
vm image list-publishers -l westus --query "[?starts_with(name, 'Open')]"
```

### [2024-07-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb21wdXRlL2xvY2F0aW9ucy97fS9wdWJsaXNoZXJz/2024-07-01.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/providers/microsoft.compute/locations/{}/publishers 2024-07-01 -->
42 changes: 42 additions & 0 deletions Commands/vm/image/_list-skus.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# [Command] _vm image list-skus_

List a list of virtual machine image SKUs for the specified location, publisher, and offer.

## Versions

### [2017-03-30](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb21wdXRlL2xvY2F0aW9ucy97fS9wdWJsaXNoZXJzL3t9L2FydGlmYWN0dHlwZXMvdm1pbWFnZS9vZmZlcnMve30vc2t1cw==/2017-03-30.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/providers/microsoft.compute/locations/{}/publishers/{}/artifacttypes/vmimage/offers/{}/skus 2017-03-30 -->

#### examples

- List all skus available for CentOS published by OpenLogic in the West US region.
```bash
vm image list-skus -l westus -f CentOS -p OpenLogic
```

### [2017-12-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb21wdXRlL2xvY2F0aW9ucy97fS9wdWJsaXNoZXJzL3t9L2FydGlmYWN0dHlwZXMvdm1pbWFnZS9vZmZlcnMve30vc2t1cw==/2017-12-01.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/providers/microsoft.compute/locations/{}/publishers/{}/artifacttypes/vmimage/offers/{}/skus 2017-12-01 -->

#### examples

- List all skus available for CentOS published by OpenLogic in the West US region.
```bash
vm image list-skus -l westus -f CentOS -p OpenLogic
```

### [2020-06-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb21wdXRlL2xvY2F0aW9ucy97fS9wdWJsaXNoZXJzL3t9L2FydGlmYWN0dHlwZXMvdm1pbWFnZS9vZmZlcnMve30vc2t1cw==/2020-06-01.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/providers/microsoft.compute/locations/{}/publishers/{}/artifacttypes/vmimage/offers/{}/skus 2020-06-01 -->

#### examples

- List all skus available for CentOS published by OpenLogic in the West US region.
```bash
vm image list-skus -l westus -f CentOS -p OpenLogic
```

### [2024-07-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb21wdXRlL2xvY2F0aW9ucy97fS9wdWJsaXNoZXJzL3t9L2FydGlmYWN0dHlwZXMvdm1pbWFnZS9vZmZlcnMve30vc2t1cw==/2024-07-01.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/providers/microsoft.compute/locations/{}/publishers/{}/artifacttypes/vmimage/offers/{}/skus 2024-07-01 -->
21 changes: 21 additions & 0 deletions Commands/vm/image/_list.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# [Command] _vm image list_

List a list of all virtual machine image versions for the specified location, publisher, offer, and SKU.

## Versions

### [2017-03-30](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb21wdXRlL2xvY2F0aW9ucy97fS9wdWJsaXNoZXJzL3t9L2FydGlmYWN0dHlwZXMvdm1pbWFnZS9vZmZlcnMve30vc2t1cy97fS92ZXJzaW9ucw==/2017-03-30.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/providers/microsoft.compute/locations/{}/publishers/{}/artifacttypes/vmimage/offers/{}/skus/{}/versions 2017-03-30 -->

### [2017-12-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb21wdXRlL2xvY2F0aW9ucy97fS9wdWJsaXNoZXJzL3t9L2FydGlmYWN0dHlwZXMvdm1pbWFnZS9vZmZlcnMve30vc2t1cy97fS92ZXJzaW9ucw==/2017-12-01.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/providers/microsoft.compute/locations/{}/publishers/{}/artifacttypes/vmimage/offers/{}/skus/{}/versions 2017-12-01 -->

### [2020-06-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb21wdXRlL2xvY2F0aW9ucy97fS9wdWJsaXNoZXJzL3t9L2FydGlmYWN0dHlwZXMvdm1pbWFnZS9vZmZlcnMve30vc2t1cy97fS92ZXJzaW9ucw==/2020-06-01.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/providers/microsoft.compute/locations/{}/publishers/{}/artifacttypes/vmimage/offers/{}/skus/{}/versions 2020-06-01 -->

### [2024-07-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb21wdXRlL2xvY2F0aW9ucy97fS9wdWJsaXNoZXJzL3t9L2FydGlmYWN0dHlwZXMvdm1pbWFnZS9vZmZlcnMve30vc2t1cy97fS92ZXJzaW9ucw==/2024-07-01.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/providers/microsoft.compute/locations/{}/publishers/{}/artifacttypes/vmimage/offers/{}/skus/{}/versions 2024-07-01 -->
57 changes: 57 additions & 0 deletions Commands/vm/image/_show.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# [Command] _vm image show_

Get a virtual machine image.

## Versions

### [2017-03-30](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb21wdXRlL2xvY2F0aW9ucy97fS9wdWJsaXNoZXJzL3t9L2FydGlmYWN0dHlwZXMvdm1pbWFnZS9vZmZlcnMve30vc2t1cy97fS92ZXJzaW9ucy97fQ==/2017-03-30.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/providers/microsoft.compute/locations/{}/publishers/{}/artifacttypes/vmimage/offers/{}/skus/{}/versions/{} 2017-03-30 -->

#### examples

- Get the details for a VM image available in the Azure Marketplace.
```bash
vm image show --location westus --urn publisher:offer:sku:version
```

- Show information for the latest available CentOS image from OpenLogic.
```bash
vm image show -l westus -f CentOS -p OpenLogic --sku 7.3 --version $(az vm image list -p OpenLogic -s 7.3 --all --query "[?offer=='CentOS'].version" -o tsv | sort -u | tail -n 1)
```

### [2017-12-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb21wdXRlL2xvY2F0aW9ucy97fS9wdWJsaXNoZXJzL3t9L2FydGlmYWN0dHlwZXMvdm1pbWFnZS9vZmZlcnMve30vc2t1cy97fS92ZXJzaW9ucy97fQ==/2017-12-01.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/providers/microsoft.compute/locations/{}/publishers/{}/artifacttypes/vmimage/offers/{}/skus/{}/versions/{} 2017-12-01 -->

#### examples

- Get the details for a VM image available in the Azure Marketplace.
```bash
vm image show --location westus --urn publisher:offer:sku:version
```

- Show information for the latest available CentOS image from OpenLogic.
```bash
vm image show -l westus -f CentOS -p OpenLogic --sku 7.3 --version $(az vm image list -p OpenLogic -s 7.3 --all --query "[?offer=='CentOS'].version" -o tsv | sort -u | tail -n 1)
```

### [2020-06-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb21wdXRlL2xvY2F0aW9ucy97fS9wdWJsaXNoZXJzL3t9L2FydGlmYWN0dHlwZXMvdm1pbWFnZS9vZmZlcnMve30vc2t1cy97fS92ZXJzaW9ucy97fQ==/2020-06-01.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/providers/microsoft.compute/locations/{}/publishers/{}/artifacttypes/vmimage/offers/{}/skus/{}/versions/{} 2020-06-01 -->

#### examples

- Get the details for a VM image available in the Azure Marketplace.
```bash
vm image show --location westus --urn publisher:offer:sku:version
```

- Show information for the latest available CentOS image from OpenLogic.
```bash
vm image show -l westus -f CentOS -p OpenLogic --sku 7.3 --version $(az vm image list -p OpenLogic -s 7.3 --all --query "[?offer=='CentOS'].version" -o tsv | sort -u | tail -n 1)
```

### [2024-07-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb21wdXRlL2xvY2F0aW9ucy97fS9wdWJsaXNoZXJzL3t9L2FydGlmYWN0dHlwZXMvdm1pbWFnZS9vZmZlcnMve30vc2t1cy97fS92ZXJzaW9ucy97fQ==/2024-07-01.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/providers/microsoft.compute/locations/{}/publishers/{}/artifacttypes/vmimage/offers/{}/skus/{}/versions/{} 2024-07-01 -->
9 changes: 9 additions & 0 deletions Commands/vm/image/edge-zone/_list-offers.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# [Command] _vm image edge-zone list-offers_

List a list of virtual machine image offers for the specified location, edge zone and publisher.

## Versions

### [2024-07-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb21wdXRlL2xvY2F0aW9ucy97fS9lZGdlem9uZXMve30vcHVibGlzaGVycy97fS9hcnRpZmFjdHR5cGVzL3ZtaW1hZ2Uvb2ZmZXJz/2024-07-01.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/providers/microsoft.compute/locations/{}/edgezones/{}/publishers/{}/artifacttypes/vmimage/offers 2024-07-01 -->
9 changes: 9 additions & 0 deletions Commands/vm/image/edge-zone/_list-publishers.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# [Command] _vm image edge-zone list-publishers_

List a list of virtual machine image publishers for the specified Azure location and edge zone.

## Versions

### [2024-07-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb21wdXRlL2xvY2F0aW9ucy97fS9lZGdlem9uZXMve30vcHVibGlzaGVycw==/2024-07-01.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/providers/microsoft.compute/locations/{}/edgezones/{}/publishers 2024-07-01 -->
9 changes: 9 additions & 0 deletions Commands/vm/image/edge-zone/_list-skus.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# [Command] _vm image edge-zone list-skus_

List a list of virtual machine image SKUs for the specified location, edge zone, publisher, and offer.

## Versions

### [2024-07-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb21wdXRlL2xvY2F0aW9ucy97fS9lZGdlem9uZXMve30vcHVibGlzaGVycy97fS9hcnRpZmFjdHR5cGVzL3ZtaW1hZ2Uvb2ZmZXJzL3t9L3NrdXM=/2024-07-01.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/providers/microsoft.compute/locations/{}/edgezones/{}/publishers/{}/artifacttypes/vmimage/offers/{}/skus 2024-07-01 -->
9 changes: 9 additions & 0 deletions Commands/vm/image/edge-zone/_list.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# [Command] _vm image edge-zone list_

List a list of all virtual machine image versions for the specified location, edge zone, publisher, offer, and SKU.

## Versions

### [2024-07-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb21wdXRlL2xvY2F0aW9ucy97fS9lZGdlem9uZXMve30vcHVibGlzaGVycy97fS9hcnRpZmFjdHR5cGVzL3ZtaW1hZ2Uvb2ZmZXJzL3t9L3NrdXMve30vdmVyc2lvbnM=/2024-07-01.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/providers/microsoft.compute/locations/{}/edgezones/{}/publishers/{}/artifacttypes/vmimage/offers/{}/skus/{}/versions 2024-07-01 -->
9 changes: 9 additions & 0 deletions Commands/vm/image/edge-zone/_show.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# [Command] _vm image edge-zone show_

Get a virtual machine image in an edge zone.

## Versions

### [2024-07-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5jb21wdXRlL2xvY2F0aW9ucy97fS9lZGdlem9uZXMve30vcHVibGlzaGVycy97fS9hcnRpZmFjdHR5cGVzL3ZtaW1hZ2Uvb2ZmZXJzL3t9L3NrdXMve30vdmVyc2lvbnMve30=/2024-07-01.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/providers/microsoft.compute/locations/{}/edgezones/{}/publishers/{}/artifacttypes/vmimage/offers/{}/skus/{}/versions/{} 2024-07-01 -->
20 changes: 20 additions & 0 deletions Commands/vm/image/edge-zone/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# [Group] _vm image edge-zone_

Information on available virtual machine images.

## Commands

- [list](/Commands/vm/image/edge-zone/_list.md)
: List a list of all virtual machine image versions for the specified location, edge zone, publisher, offer, and SKU.

- [list-offers](/Commands/vm/image/edge-zone/_list-offers.md)
: List a list of virtual machine image offers for the specified location, edge zone and publisher.

- [list-publishers](/Commands/vm/image/edge-zone/_list-publishers.md)
: List a list of virtual machine image publishers for the specified Azure location and edge zone.

- [list-skus](/Commands/vm/image/edge-zone/_list-skus.md)
: List a list of virtual machine image SKUs for the specified location, edge zone, publisher, and offer.

- [show](/Commands/vm/image/edge-zone/_show.md)
: Get a virtual machine image in an edge zone.
25 changes: 25 additions & 0 deletions Commands/vm/image/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# [Group] _vm image_

Information on available virtual machine images.

## Subgroups

- [edge-zone](/Commands/vm/image/edge-zone/readme.md)
: Information on available virtual machine images.

## Commands

- [list](/Commands/vm/image/_list.md)
: List a list of all virtual machine image versions for the specified location, publisher, offer, and SKU.

- [list-offers](/Commands/vm/image/_list-offers.md)
: List a list of virtual machine image offers for the specified location and publisher.

- [list-publishers](/Commands/vm/image/_list-publishers.md)
: List a list of virtual machine image publishers for the specified Azure location.

- [list-skus](/Commands/vm/image/_list-skus.md)
: List a list of virtual machine image SKUs for the specified location, publisher, and offer.

- [show](/Commands/vm/image/_show.md)
: Get a virtual machine image.
3 changes: 3 additions & 0 deletions Commands/vm/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ Manage Linux or Windows virtual machines.
- [host](/Commands/vm/host/readme.md)
: Manage Dedicated Hosts for Virtual Machines

- [image](/Commands/vm/image/readme.md)
: Information on available virtual machine images.

## Commands

- [assess-patches](/Commands/vm/_assess-patches.md)
Expand Down
Loading
Loading