No permission to recreate deleted resource group so I can't follow training course

Shokouh Orouji 25 Reputation points
2023-10-10T01:46:34.94+00:00

Hi there, I am using Microsoft learn sandbox, I have deleted the resource group and I do not have permission to create it again, so I am not able to follow the tasks. can someone please help me to solve this issue?

Azure Training
Azure Training
Azure: A cloud computing platform and infrastructure for building, deploying and managing applications and services through a worldwide network of Microsoft-managed datacenters.Training: Instruction to develop new skills.
1,041 questions
{count} vote

Accepted answer
  1. Dillon Silzer 54,751 Reputation points
    2023-10-12T02:39:00.76+00:00

    Just to add another tidbit to this -- in the future if you delete a RG (Resource Group) there is no way to restore it. I'd recommend using Resource locks to ensure that you do not delete anything that you do not want to accidentally disappear

    Lock your resources to protect your infrastructure

    https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/lock-resources?tabs=json.

    As an administrator, you can lock an Azure subscription, resource group, or resource to protect them from accidental user deletions and modifications. The lock overrides any user permissions.

    You can set locks that prevent either deletions or modifications. In the portal, these locks are called Delete and Read-only. In the command line, these locks are called CanNotDelete and ReadOnly.

    • CanNotDelete means authorized users can read and modify a resource, but they can't delete it.
    • ReadOnly means authorized users can read a resource, but they can't delete or update it. Applying this lock is similar to restricting all authorized users to the permissions that the Reader role provides.

    If this is helpful please accept answer.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. AmaranS 2,685 Reputation points Microsoft Vendor
    2023-10-10T06:46:17.8266667+00:00

    Hi @Shokouh Orouji

    Based on our understanding of the issue, you’re practicing the following Learn Path Exercise:

    I've made multiple attempts to replicate the issue, but regrettably, I have been unable to do so.

    It's possible that the sandbox may have expired when you attempted to create the resource again, as sandboxes are available for only 1 hour. I kindly recommend activating a new sandbox and attempting to create the resource once more.

    If the issue persists, please don't hesitate to reach out to us. We are here to assist you and are happy to provide further support.