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
To apply a configuration to a dedicated host, you also need to include `-ResourceType hosts`, `-ResourceParentName` with the name of the host group, and `-ResourceParentType hostGroups`.
Use [Get-AzMaintenanceUpdate](https://docs.microsoft.com/powershell/module/az.maintenance/get-azmaintenanceupdate) to see if there are pending updates. Use `-subscription` to specify the Azure subscription of the VM if it is different from the one that you are logged into.
129
+
Use [Get-AzMaintenanceUpdate](https://docs.microsoft.com/powershell/module/az.maintenance/get-azmaintenanceupdate) to see if there are pending updates. Use `-subscription` to specify the Azure subscription of the VM if it is different from the one that you are logged into.
130
+
131
+
If there are no updates, the command will return an error message: `Resource not found...StatusCode: 404`.
130
132
131
133
### Isolated VM
132
134
@@ -184,6 +186,39 @@ New-AzApplyUpdate `
184
186
-ProviderName Microsoft.Compute
185
187
```
186
188
189
+
## Check update status
190
+
Use [Get-AzApplyUpdate](https://docs.microsoft.com/powershell/module/az.maintenance/get-azapplyupdate) to check on the status of an update. The commands shown below show the status of the latest update by using `default` for the `-ApplyUpdateName` parameter. You can substitute the name of the update (returned by the [New-AzApplyUpdate](https://docs.microsoft.com/powershell/module/az.maintenance/new-azapplyupdate) command) to get the status of a specific update.
191
+
192
+
If there are no updates to show, the command will return an error message: `Resource not found...StatusCode: 404`.
193
+
194
+
### Isolated VM
195
+
196
+
Check for updates to a specific virtual machine.
197
+
198
+
```azurepowershell-interactive
199
+
Get-AzApplyUpdate `
200
+
-ResourceGroupName myResourceGroup `
201
+
-ResourceName myVM `
202
+
-ResourceType VirtualMachines `
203
+
-ProviderName Microsoft.Compute `
204
+
-ApplyUpdateName default
205
+
```
206
+
207
+
### Dedicated host
208
+
209
+
Check for updates to a dedicated host.
210
+
211
+
```azurepowershell-interactive
212
+
Get-AzApplyUpdate `
213
+
-ResourceGroupName myResourceGroup `
214
+
-ResourceName myHost `
215
+
-ResourceType hosts `
216
+
-ResourceParentName myHostGroup `
217
+
-ResourceParentType hostGroups `
218
+
-ProviderName Microsoft.Compute `
219
+
-ApplyUpdateName default
220
+
```
221
+
187
222
## Remove a maintenance configuration
188
223
189
224
Use [Remove-AzMaintenanceConfiguration](https://docs.microsoft.com/powershell/module/az.maintenance/remove-azmaintenanceconfiguration) to delete a maintenance configuration.
0 commit comments