You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/virtual-machines/deprecated-images.yml
+58-48Lines changed: 58 additions & 48 deletions
Original file line number
Diff line number
Diff line change
@@ -48,13 +48,17 @@ sections:
48
48
- question: How can I identify the VMs and scale sets in my subscription that are running on images that are scheduled for deprecation?
49
49
answer: |
50
50
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
+
51
53
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.
52
54
53
55
54
56
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.
55
57
58
+
56
59
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.
57
60
61
+
58
62
To find the details of the image versions that are being used by VMs:
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}"
91
96
```
92
97
93
-
To find scale set using a deprecated Version (Replace highlighted value with version you are looking for):
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}"
98
102
```
99
103
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):
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}"
List scale sets with deprecated images at plan/SKU level.
117
121
118
122
```
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}"
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:
130
135
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.
131
136
132
137
**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.
134
141
135
-
**To migrate to another offer:**
142
+
**To migrate to another offer:**
143
+
144
+
Using the Azure CLI:
136
145
137
-
PowerShell:
146
+
```
147
+
az vm image list --location "west europe" --publisher "MicrosoftWindowsServer"
0 commit comments