Cannot find resource group in Powershell

Michael Hawthorne 20 Reputation points
2024-01-10T17:33:42.4366667+00:00

I had ran the Landing zone accelerator while studying for my certifications, and now I am having problems deleting all the resources it created. Specifically the Firewall. I need to deallocate the public IP before it will let me, but somehow I messed up my resource group to the point that Get-AzResourceGroup command finds no such group exists. I can see the RG in the portal, and the 4 resources associated. User's image

Azure Cost Management
Azure Cost Management
A Microsoft offering that enables tracking of cloud usage and expenditures for Azure and other cloud providers.
3,577 questions
0 comments No comments
{count} votes

Accepted answer
  1. Andreas Baumgarten 123.4K Reputation points MVP Volunteer Moderator
    2024-01-10T18:15:43.8566667+00:00

    Hi @Michael Hawthorne ,

    could you please check if you are running PowerShell on the right Azure Subscription (running Get-AzContext)? Here it happens from time to time I am in the context of the wrong Azure Subscription and I can't find the Azure resources via PowerShell than.


    (If the reply was helpful please don't forget to upvote and/or accept as answer, thank you) Regards Andreas Baumgarten

    2 people found this answer helpful.

0 additional answers

Sort by: Most helpful

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.