How to fix (ResourceGroupNotFound) learn- issue

Anonymous
2024-10-16T02:03:39.7266667+00:00

When running az keyvault set-policy -n <keyvault-name> --key-permissions get --spn <clientId>, I get the error:

(ResourceGroupNotFound) Resource group 'learn-863f910a-xxxx-xxxx-xxxx-4c6f3e30d049' could not be found.

Code: ResourceGroupNotFound

*Message: Resource group 'learn-863f910a-xxxx-xxxx-xxxx-4c6f3e30d049' could not be found.

I have validated that I am not connected to any Concierge subscriptions (*Microsoft Learn sandbox) which could explain the occurence of "learn" and that my Entra ID tenant is connected to only this subscription.

Azure Key Vault
Azure Key Vault
An Azure service that is used to manage and protect cryptographic keys and other secrets used by cloud apps and services.
Microsoft Security | Microsoft Entra | Microsoft Entra ID
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Akhilesh Vallamkonda 15,345 Reputation points Moderator
    2024-10-16T19:56:07.12+00:00

    Hi @Sven Hoelbling

    Thank you for post!

    Based on the error message you received; it seems that the resource group 'learn-863f910a-xxxx-xxxx-xxxx-4c6f3e30d049' could not be found. This error message suggests that there may be an issue with the resource group or the subscription that you are trying to access.

    To resolve this issue, you may want to check if the resource group 'learn-863f910a-xxxx-xxxx-xxxx-4c6f3e30d049' exists in the subscription that you are trying to access. If the resource group does not exist, you may want to create a resource group.

    Reference: Create a key vault using the Azure CLI

    Hope this helps. Do let us know if you any further queries by responding in the comments section.

    Thanks,

    Akhilesh.


    If this answers your query, do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.


Your answer

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