Skip to content

Commit 50d777f

Browse files
committed
formatting
1 parent 65a05a2 commit 50d777f

File tree

1 file changed

+58
-48
lines changed

1 file changed

+58
-48
lines changed

articles/virtual-machines/deprecated-images.yml

Lines changed: 58 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,17 @@ sections:
4848
- question: How can I identify the VMs and scale sets in my subscription that are running on images that are scheduled for deprecation?
4949
answer: |
5050
You can search for the scheduled or deprecated image in your subscription (your subscription ID and name is provided at the bottom of the email notification you received) in the following ways:
51+
52+
5153
If you are notified that an image is deprecated on only the Offer or plan (SKU) level, you can search for all virtual machines from the top search bar on the Azure Portal and edit the columns as seen below to include Publisher, Offer, Plan as below. This will not give the version information, only up to the Plan information.
5254
5355
5456
If you are notified that an image is deprecated on the offer, plan (SKU) or version level, you can use Azure Resource Graph Explorer on the Azure portal to find the specific version for images in your subscription that your VM or scale set is running on.
5557
58+
5659
Run the queries below in the Azure Resource Graph explorer query window and uncomment the optional filters (delete the “//” to uncomment a line) to the Offer, Plan (SKU) or version level you are looking for.
5760
61+
5862
To find the details of the image versions that are being used by VMs:
5963
6064
```
@@ -79,44 +83,45 @@ sections:
7983
|project name, subscriptionId, resourceGroup, ImagePublisher=properties.virtualMachineProfile.storageProfile.imageReference.publisher,ImageOffer=properties.virtualMachineProfile.storageProfile.imageReference.offer,imageSku=properties.virtualMachineProfile.storageProfile.imageReference.sku, imageVersion=properties.virtualMachineProfile.storageProfile.imageReference.version
8084
```
8185
82-
83-
8486
85-
PowerShell:
8687
87-
List VM with deprecated images at version level. To find VMs using a deprecated Version (Replace highlighted value with version you are looking for):
88+
**Using Azure CLI:**
89+
90+
91+
List VM with deprecated image at Plan/SKU level.
8892
8993
```
90-
(Get-AzVM -ResourceGroupName $rgname -Name $vmname).StorageProfile.ImageReference.ExactVersion
94+
az vm show --resource-group $rgName --name $vmName --query "storageProfile.imageReference.exactVersion
95+
az vm list --query "[?storageProfile.imageReference.sku=='2016-Datacenter'].{VM:id, imageOffer:storageProfile.imageReference.offer, imagePublisher:StorageProfile.imageReference.publisher, imageSku: storageProfile.imageReference.sku, imageVersion:storageProfile.imageReference.version}"
9196
```
9297
93-
To find scale set using a deprecated Version (Replace highlighted value with version you are looking for):
98+
List VM with deprecated image at version level.
9499
95100
```
96-
$vmsslist = Get-AzVmss
97-
$vmsslist | where {$_.virtualMachineProfile.storageProfile.imageReference.Version -eq '14393.4402.2105052108'} | Select-Object -Property ResourceGroupName, Name, @{label='imageOffer'; expression={$_.virtualMachineProfile.storageProfile.imageReference.Offer}}, @{label='imagePublisher'; expression={$_.virtualMachineProfile.storageProfile.imageReference.Publisher}}, @{label='imageSKU'; expression={$_.virtualMachineProfile.storageProfile.imageReference.Sku}}, @{label='imageVersion'; expression={$_.virtualMachineProfile.storageProfile.imageReference.Version}}
101+
az vm list --query "[?storageProfile.imageReference.version=='14393.4402.2105052108'].{VM:id, imageOffer:storageProfile.imageReference.offer, imagePublisher:StorageProfile.imageReference.publisher, imageSku: storageProfile.imageReference.sku, imageVersion:storageProfile.imageReference.version}"
98102
```
99103
100-
List scale sets with deprecated images at plan/SKU level
101-
To find scale sets using a deprecated SKU (Replace highlighted value with SKU you are looking for):
104+
105+
**Using PowerShell:**
106+
107+
List VM with deprecated images at version level.
102108
103109
```
104-
$vmsslist = Get-AzVmss
105-
$vmsslist | where {$_.virtualMachineProfile.storageProfile.imageReference.Sku -eq '2016-Datacenter'} | Select-Object -Property ResourceGroupName, Name, @{label='imageOffer'; expression={$_.virtualMachineProfile.storageProfile.imageReference.Offer}}, @{label='imagePublisher'; expression={$_.virtualMachineProfile.storageProfile.imageReference.Publisher}}, @{label='imageSKU'; expression={$_.virtualMachineProfile.storageProfile.imageReference.Sku}}, @{label='imageVersion'; expression={$_.virtualMachineProfile.storageProfile.imageReference.Version}}
110+
(Get-AzVM -ResourceGroupName $rgname -Name $vmname).StorageProfile.ImageReference.ExactVersion
106111
```
107112
108-
Using Azure CLI:
109-
List VM with deprecated image at Plan/SKU level
113+
To find scale set using a deprecated version.
110114
111115
```
112-
az vm show --resource-group $rgName --name $vmName --query "storageProfile.imageReference.exactVersion
113-
az vm list --query "[?storageProfile.imageReference.sku=='2016-Datacenter'].{VM:id, imageOffer:storageProfile.imageReference.offer, imagePublisher:StorageProfile.imageReference.publisher, imageSku: storageProfile.imageReference.sku, imageVersion:storageProfile.imageReference.version}"
116+
$vmsslist = Get-AzVmss
117+
$vmsslist | where {$_.virtualMachineProfile.storageProfile.imageReference.Version -eq '14393.4402.2105052108'} | Select-Object -Property ResourceGroupName, Name, @{label='imageOffer'; expression={$_.virtualMachineProfile.storageProfile.imageReference.Offer}}, @{label='imagePublisher'; expression={$_.virtualMachineProfile.storageProfile.imageReference.Publisher}}, @{label='imageSKU'; expression={$_.virtualMachineProfile.storageProfile.imageReference.Sku}}, @{label='imageVersion'; expression={$_.virtualMachineProfile.storageProfile.imageReference.Version}}
114118
```
115119
116-
List VM with deprecated image at version level
120+
List scale sets with deprecated images at plan/SKU level.
117121
118122
```
119-
az vm list --query "[?storageProfile.imageReference.version=='14393.4402.2105052108'].{VM:id, imageOffer:storageProfile.imageReference.offer, imagePublisher:StorageProfile.imageReference.publisher, imageSku: storageProfile.imageReference.sku, imageVersion:storageProfile.imageReference.version}"
123+
$vmsslist = Get-AzVmss
124+
$vmsslist | where {$_.virtualMachineProfile.storageProfile.imageReference.Sku -eq '2016-Datacenter'} | Select-Object -Property ResourceGroupName, Name, @{label='imageOffer'; expression={$_.virtualMachineProfile.storageProfile.imageReference.Offer}}, @{label='imagePublisher'; expression={$_.virtualMachineProfile.storageProfile.imageReference.Publisher}}, @{label='imageSKU'; expression={$_.virtualMachineProfile.storageProfile.imageReference.Sku}}, @{label='imageVersion'; expression={$_.virtualMachineProfile.storageProfile.imageReference.Version}}
120125
```
121126
122127
When an image is deprecated, there is no impact on existing VMs and no action is required. You can choose to migrate your workloads to a new image if you have a specific concern.
@@ -130,52 +135,57 @@ sections:
130135
We recommend that you create custom images from free Marketplace images (images that do not have Plan Info) that are scheduled for deprecation or already deprecated. For Paid Marketplace images, we suggest you create custom images from the latest version of the image. Workloads running on custom images created from a deprecated paid image will no longer work after the paid image is deprecated.
131136
132137
**You want to migrate to another offer/plan/version:**
133-
First search for other offers, plans or versions from the same publisher with the following commands (Replace all highlighted values as needed):
138+
139+
140+
First, search for other offers, plans, or versions from the same publisher.
134141
135-
**To migrate to another offer:**
142+
**To migrate to another offer:**
143+
144+
Using the Azure CLI:
136145
137-
PowerShell:
146+
```
147+
az vm image list --location "west europe" --publisher "MicrosoftWindowsServer"
148+
```
149+
138150
139-
```
140-
Get-AzVMImage -Location "west europe" -PublisherName “MicrosoftWindowsServer”
141-
```
151+
Using PowerShell:
142152
143-
Azure CLI:
153+
```
154+
Get-AzVMImage -Location "west europe" -PublisherName “MicrosoftWindowsServer”
155+
```
144156
145-
```
146-
az vm image list --location "west europe" --publisher "MicrosoftWindowsServer"
147-
```
148157
149-
**To migrate to another Plan:**
150-
Search for other plans under the same offer and then migrate to that plan.
158+
**To migrate to another Plan:**
159+
160+
Search for other plans under the same offer and then migrate to that plan.
151161
152-
PowerShell:
162+
PowerShell:
153163
154-
```
155-
Get-AzVMImage -Location "west europe" -PublisherName “MicrosoftWindowsServer” -Offer “WindowsServer”
156-
```
164+
```
165+
Get-AzVMImage -Location "west europe" -PublisherName “MicrosoftWindowsServer” -Offer “WindowsServer”
166+
```
157167
158-
Azure CLI:
168+
Azure CLI:
159169
160-
```
161-
az vm image list --location "west europe" --publisher "MicrosoftWindowsServer" --offer "WindowsServer"
162-
```
170+
```
171+
az vm image list --location "west europe" --publisher "MicrosoftWindowsServer" --offer "WindowsServer"
172+
```
163173
164-
**To migrate to another version:**
174+
**To migrate to another version:**
165175
166-
Search for another version (we suggest migrating to the latest version)
176+
Search for another version. We suggest migrating to the latest version.
167177
168-
PowerShell:
178+
PowerShell:
169179
170-
```
171-
Get-AzVMImage -Location "west europe" -PublisherName “MicrosoftWindowsServer” -Offer “WindowsServer” -Skus "2019-Datacenter-with-Containers"
172-
```
180+
```
181+
Get-AzVMImage -Location "west europe" -PublisherName “MicrosoftWindowsServer” -Offer “WindowsServer” -Skus "2019-Datacenter-with-Containers"
182+
```
173183
174-
Azure CLI:
184+
Azure CLI:
175185
176-
```
177-
az vm image list --location "west europe" --publisher "MicrosoftWindowsServer" --offer "WindowsServer" --sku "2019-Datacenter-with-Containers" --all"
178-
```
186+
```
187+
az vm image list --location "west europe" --publisher "MicrosoftWindowsServer" --offer "WindowsServer" --sku "2019-Datacenter-with-Containers" --all"
188+
```
179189
180190
181191
You need to verify that your workloads are supported and will run properly on the new image before migrating your workloads to the new image.

0 commit comments

Comments
 (0)