Check to see if the VM is still listed in the Log Analytics Workspace in subscription A.
- Sign in to the Azure portal.
- Navigate to the Log Analytics Workspace and Automation account in Subscription A.
- In the left-hand menu, select "Virtual Machine (deprecated)" under the "Classic" section.
- Check if the VM is still listed in the connected machines list.
- If the VM is still listed, select it from the list and click on the "Disconnect" button to remove it from the Log Analytics Workspace and Automation account.
If this fails to work, please comment down below with any error messages you received from the portal or the VM itself after running cmdlets.