VM exists but is not found in portal or az cli, cannot be deleted

Martin Bruce 6 Reputation points
2020-08-03T15:53:54.207+00:00

I have a VM which exists (I can ssh to it, use it's web server..) is reported in the output of az vm list for my resource group.
However, if I try to show the vm or perform any operations on it, I am informed it is not found. Similarly, the vm is not shown in the Azure portal.

As a result, I'm unable to delete the VM. (The link in the error message isn't much help.)
Any suggestions as to how to fix this appreciated.

ubuntu@access:~/Desktop$ az vm list -g SE-Arch -o table
Name    ResourceGroup    Location    Zones
------  ---------------  ----------  -------
cfyman  SE-Arch          westus
jump    SE-Arch          westus
ubuntu@access:~/Desktop$ az vm show -n cfyman -g SE-Arch -o table
The Resource 'Microsoft.Compute/virtualMachines/cfyman' under resource group 'SE-Arch' was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix
ubuntu@access:~/Desktop$
Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,805 questions
{count} vote

2 answers

Sort by: Most helpful
  1. Michael Fischer 1 Reputation point
    2020-08-04T12:30:25.067+00:00

    I have the same issue with a windows vm.
    The vm is up and running, but i cannot see it in the azure portal.
    All resources from this vm are visible.

    0 comments No comments

  2. vipullag-MSFT 26,296 Reputation points
    2020-08-05T13:40:20.483+00:00

    @Martin Bruce

    Apologies for the inconvenience caused due to this issue.

    It could be due to sync issue from ARM to Portal. Try in a different browser if that helps. However, you can open a support case t get the issue checked.

    Here are similar issues reported in the past which have few suggestion, requesting to please check them once.

    https://video2.skills-academy.com/en-us/answers/questions/30505/azure-portal-not-show-existing-resources-like-stor.html

    https://video2.skills-academy.com/en-us/answers/questions/30451/my-linux-vm-can-not-be-found-under-the-virtual-mac.html

    Please 'Accept as answer' if it helped, so that it can help others in the community looking for help on similar topics.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.