An Azure service that is used to provision Windows and Linux virtual machines.
Hello @Han Cicimen ,
Hey Han, it looks like Azure is rejecting your VM’s network‐profile update because it thinks your NIC is pointing at a subnet in a different subscription – which of course you say isn’t true. In my experience this kind of error usually means there’s a stale or mismatched networkProfile on the VM that the Compute RP can’t reconcile. Here’s what you can try:
- Verify subscription alignment • Make sure the VM, the NIC resource, and the VNet/subnet all live in the same subscription. • If you deliberately moved any of these between subscriptions, you’ll need to use Azure’s “Move resources” workflow so that they truly share the same subscription.
- Inspect and correct the NIC deleteOption • Run: az vm show \
• Look at the--resource-group MyResourceGroup \ --name MyVmName \ --query "properties.networkProfile.networkInterfaces"deleteOptionon each network interface configuration. If it’s set toDetach, switch it toDelete(or remove the property) by running: az vm update \--resource-group MyResourceGroup \ --name MyVmName \ --set properties.networkProfile.networkInterfaces[0].properties.deleteOption=Delete - Reapply the VM provisioning state • In the portal, go to your VM > Help + support > Redeploy + reapply > Reapply. • Or use CLI: az vm reapply \
This forces Azure to reload the NIC configuration and clear any stale references.--resource-group MyResourceGroup \ --name MyVmName - Detach and reattach the NIC (if the VM is deallocated) • Stop/deallocate the VM • Go to Networking > Detach the problematic NIC • Re-attach it via Networking > Add network interface • Start the VM again
If none of that works, it could be a backend sync issue. In that case, please share:
• The subscription IDs for the VM, NIC, and VNet
• The output of your az vm show … --query properties.networkProfile.networkInterfaces (JSON snippet)
• Any Activity Log errors around the time you tried to start the VM
With that info we can drill in further. Hope this helps!
Reference docs
• Resolve VM startup issues: https://docs.microsoft.com/azure/virtual-machines/states-billing#cannot-stop-start-or-restart-a-vm
• Redeploy + Reapply VM state: https://learn.microsoft.com/troubleshoot/azure/virtual-machines/windows/restart-resize-error-troubleshooting#issue-error-when-you-stop-start-restart-or-redeploy-an-existing-vm
• Move resources between subscriptions: https://docs.microsoft.com/azure/azure-resource-manager/management/move-support-resources
Note: This content was drafted with the help of an AI system. Please verify the information before relying on it for decision-making.