An Azure service that is used to provision Windows and Linux virtual machines.
Hello Moya,
Thank you for getting back to me.
I tried to reproduce the issue but for me the extension was installed successfully and thus was removed successfully both from Portal UI and via Az-cli commands.
Can you please try to re-provision the extension, this will get the extension in successful provisioning state then you can easily remove the extension?
Steps to provision the extension:
- Create a Log Analytics Work-space (let's say test-oms-workspace) in same region as your VM.
- Get the work-space id and the workspace key using below commands respectively.
az monitor log-analytics workspace show --resource-group <rg> --workspace-name test-oms-workspace --query customerId -o tsv
az monitor log-analytics workspace get-shared-keys --resource-group <rg> --workspace-name test-oms-workspace --query primarySharedKey -o tsv
- Install extension using below command,
az vm extension set \
--resource-group <rg-name> \
--vm-name <vm-name> \
--name OmsAgentForLinux \
--publisher Microsoft.EnterpriseCloud.Monitoring \
--version 1.13.0 \
--settings '{"workspaceId":"<id>"}' \
--protected-settings '{"workspaceKey":"<key>"}'
- Goto to VM portal and see if the extension is in successful provisioning state or not. If yes try to delete it, if not, let us know about it.