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/extensions/troubleshoot.md
+12-8Lines changed: 12 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -73,26 +73,30 @@ Once the extension has been removed, the template can be re-executed to run the
73
73
74
74
### Trigger a new GoalState to the VM
75
75
You might notice that an extension hasn't been executed, or is failing to execute because of a missing "Windows Azure CRP Certificate Generator" (that certificate is used to secure the transport of the extension's protected settings).
76
-
That certificate will be automatically re-generated by restarting the Windows Guest Agent from inside the Virtual Machine:
76
+
That certificate will be automatically regenerated by restarting the Windows Guest Agent from inside the Virtual Machine:
77
77
- Open the Task Manager
78
78
- Go to the Details tab
79
79
- Locate the WindowsAzureGuestAgent.exe process
80
80
- Right-click, and select "End Task". The process will be automatically restarted
81
81
82
82
83
-
You can also trigger a new GoalState to the VM, by executing an "empty update":
83
+
You can also trigger a new GoalState to the VM, by executing a "VM Reapply". VM [Reapply](https://docs.microsoft.com/rest/api/compute/virtualmachines/reapply) is an API introduced in 2020 to reapply a VM's state. We recommend doing this at a time when you can tolerate a short VM downtime. While Reapply itself does not cause a VM reboot, and the vast majority of times calling Reapply will not reboot the VM, there is a very small risk that some other pending update to the VM model gets applied when Reapply triggers a new goal state, and that other change could require a restart.
84
84
85
-
Azure PowerShell:
85
+
Azure portal:
86
+
87
+
In the portal, select the VM and in the left pane under the **Support + troubleshooting**, select **Redeploy + reapply**, then select **Reapply**.
88
+
89
+
90
+
Azure PowerShell *(replace the RG Name and VM Name with your values)*:
Azure CLI*(replace the RG Name and VM Name with your values)*:
93
97
94
98
```azurecli
95
-
az vm update -g <rgname> -n <vmname>
99
+
az vm reapply -g <RG Name> -n <VM Name>
96
100
```
97
101
98
-
If an "empty update" didn't work, you can add a new empty Data Disk to the VM from the Azure Management Portal, and then remove it later once the certificate has been added back.
102
+
If a "VM Reapply" didn't work, you can add a new empty Data Disk to the VM from the Azure Management Portal, and then remove it later once the certificate has been added back.
0 commit comments