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
+49-42Lines changed: 49 additions & 42 deletions
Original file line number
Diff line number
Diff line change
@@ -31,7 +31,9 @@ sections:
31
31
- question: I received an email that my workloads are running on images that are scheduled for deprecation. What does this mean and does deprecation impact my existing workloads?
32
32
answer: |
33
33
Before the scheduled deprecation date, you can continue to deploy new VM or scale set instances up until the deprecation date.
34
+
34
35
After the scheduled deprecation date, you won't be able to deploy new instances using the affected images. If the plan is scheduled for deprecation, all image versions within the plan will no longer be available and if the entire offer is scheduled for deprecation, all plans within the offer will no longer be available following deprecation.
36
+
35
37
- Active VM instances won't be impacted.
36
38
- New VM instances cannot be created from any of the impacted images.
37
39
- Existing virtual machine scale sets deployments cannot be scaled out if configured with any of the impacted images. When a plan or offer is being deprecated, all existing scale sets deployments pinned to any image within the plan or offer respectively cannot be scaled out.
@@ -49,10 +51,10 @@ sections:
49
51
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.
50
52
51
53
52
-
If you are notified that an image is deprecated on the offer, plan (SKU) or version level:
53
-
Using Azure Resource Graph Explorer:
54
-
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.
54
+
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
+
55
56
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
+
56
58
To find the details of the image versions that are being used by VMs:
57
59
58
60
```
@@ -117,7 +119,7 @@ sections:
117
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}"
118
120
```
119
121
120
-
Note: 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.
122
+
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.
121
123
122
124
- question: How do I migrate my workloads to another image?
123
125
answer: |
@@ -128,78 +130,83 @@ sections:
128
130
- Modify the VM or scale set deployment you want to point to the custom image.
129
131
- Here is how to create a custom image by capturing a VM and sharing in to Azure Compute Gallery (formerly known as Shared Image Gallery (SIG): Capture an image of a VM using the portal - Azure Virtual Machines | Microsoft Docs
130
132
131
-
Note: 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.
133
+
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.
132
134
133
-
- You want to migrate to another Offer/Plan/Version:
135
+
**You want to migrate to another offer/plan/version:**
134
136
First search for other offers, plans or versions from the same publisher with the following commands (Replace all highlighted values as needed):
az vm image list --location "west europe" --publisher "MicrosoftWindowsServer" --offer "WindowsServer" --sku "2019-Datacenter-with-Containers" --all"
176
-
```
178
+
```
179
+
az vm image list --location "west europe" --publisher "MicrosoftWindowsServer" --offer "WindowsServer" --sku "2019-Datacenter-with-Containers" --all"
180
+
```
177
181
178
182
179
183
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.
180
184
181
-
Scale sets, in general, support [image reference replacement](../virtual-machine-scale-sets/virtual-machine-scale-sets-upgrade-scale-set#os-updates.md) but VMs do not.
185
+
Scale sets, in general, support [image reference replacement](../virtual-machine-scale-sets/virtual-machine-scale-sets-upgrade-scale-set.md#os-updates) but VMs do not.
182
186
183
187
184
188
185
-
Migrating scale set workloads to newer image with minimal downtime:
189
+
**Migrating scale set workloads to newer image with minimal downtime**
186
190
187
191
Scale set, suggestions for updating the version should include:
188
-
1. To avoid downtime, ensure the upgrade policy is set to manual or rolling.
189
-
a. If set to manual, existing instances won’t be reimaged until it’s manually upgraded.
190
-
b. If set to rolling, existing instances will be automatically upgraded and reimaged by batch.
191
-
2. Update image reference using steps in Modify an Azure virtual machine scale set: Modify an Azure virtual machine scale set - Azure Virtual Machine Scale Sets | Microsoft Docs
192
-
3. Ensure that all existing instances are upgraded and on the latest model. You can also scale out and migrate workload to the new instances then delete the old instances, instead of upgrading the existing instances.
193
-
4. Once the existing instances are all upgraded to the new image, change the upgrade policy back to what it was if needed.
192
+
- To avoid downtime, ensure the upgrade policy is set to manual or rolling.
193
+
If set to manual, existing instances won’t be reimaged until it’s manually upgraded.
194
+
If set to rolling, existing instances will be automatically upgraded and reimaged by batch.
195
+
- Update image reference using steps in Modify an Azure virtual machine scale set: Modify an Azure virtual machine scale set - Azure Virtual Machine Scale Sets | Microsoft Docs
196
+
- Ensure that all existing instances are upgraded and on the latest model. You can also scale out and migrate workload to the new instances then delete the old instances, instead of upgrading the existing instances.
197
+
- Once the existing instances are all upgraded to the new image, change the upgrade policy back to what it was if needed.
194
198
195
199
196
200
197
201
- question: Are all image versions lower than the indicated version also deprecated?
198
202
answer: |
199
203
Generally, yes. However, it is recommended to confirm against the list of valid versions in a Plan using Virtual Machine Images - List - REST API (Azure Compute) | Microsoft Docs
200
204
201
-
How can I check if a specific image is deprecated or scheduled for deprecation:
205
+
- question: How can I check if a specific image is deprecated or scheduled for deprecation?
206
+
answer: |
202
207
You can check if an image is deprecated or scheduled for deprecation using the [REST API](/rest/api/compute/virtual-machine-images/get?tabs=HTTP).
208
+
209
+
203
210
If the image is deprecated, you will get a **VM Image is Deprecated** response. If the image is scheduled for deprecation, the response would show the date of the scheduled deprecation.
0 commit comments