Share via

The resource you are looking for has been removed, had its name changed, or is temporarily unavailable"

hari 0 Reputation points
2025-12-19T09:57:42.18+00:00

The resource you are looking for has been removed, had its name changed, or is temporarily unavailable"


Moved from: Community Center | Not monitored

Azure Advisor
Azure Advisor

An Azure personalized recommendation engine that helps users follow best practices to optimize Azure deployments.


2 answers

Sort by: Most helpful
  1. Bharath Y P 9,730 Reputation points Microsoft External Staff Moderator
    2025-12-19T18:10:47.1166667+00:00

    Hello hari, It sounds like you're encountering an issue with a resource not being found in the Azure portal, possibly due to it being removed, renamed, or temporarily unavailable.

    The "resource removed" error occurs when Azure Resource Manager (ARM) cannot locate the target resource in the specified subscription or resource group. Common causes include:

    • The resource was accidentally or intentionally deleted.
    • You are querying the wrong subscription or resource group.
    • Soft-delete (if supported) has retained a tombstoned copy rather than the live resource.

    Verify Resource Existence

    • Action: In the Azure portal or Azure CLI, confirm the resource’s subscription and resource group • Portal: Navigate to All resources → filter by name, resource group, subscription • CLI:
      
          az login
      
          az account set --subscription "<YourSubscriptionNameOrID>"
      
          az resource show \
      
            --name "<ResourceName>" \
      
            --resource-group "<ResourceGroupName>"
      
      
    • Expected outcome: You either see the live resource or receive a “not found” message indicating it has been deleted or you are targeting the wrong scope.

    Restore or Redeploy the Resource

    • If soft-delete is supported and enabled for this resource type (for example, Azure Key Vault, Storage Account, App Service): • Portal:
      1. Go to the Recovery Services or Deleted resources blade.
      2. Locate your resource and click Restore or Recover.
      • CLI: Use the resource-specific restore command (example for Key Vault):
      
          az keyvault recover --name "<VaultName>"
      
      
    • If soft-delete is not available or recovery window has expired: • Redeploy via ARM template:
      1. Open your infrastructure-as-code repository.
      2. Execute:
        
               az deployment group create \
        
                 --resource-group "<ResourceGroupName>" \
        
                 --template-file "./azuredeploy.json" \
        
                 --parameters @azuredeploy.parameters.json
        
        
      • Or manually recreate the resource in the portal with the same configuration.
    • Expected outcome: The resource is present again in the correct subscription and resource group with the desired configuration.

    Verification

    • In the portal or via CLI, run the same verification commands from Step 1 to ensure the resource is listed and healthy.
    • Optionally, perform a simple connectivity or functionality test (e.g., hit the endpoint, list container, retrieve a secret).

    Prevention

    • Enable soft-delete and retention policies for resource types that support it (Key Vault, Storage Accounts, App Services, etc.).
    • Apply ReadOnly or CanNotDelete resource locks on critical resources:
      
        az lock create \
      
          --name "PreventDeletion" \
      
          --lock-type CanNotDelete \
      
          --resource-group "<ResourceGroupName>" \
      
          --resource-name "<ResourceName>" \
      
          --resource-type "<ResourceProvider/ResourceType>"
      
      
    • Implement role-based access control (RBAC) with least-privilege assignments to reduce accidental deletions.
    • Automate deployments with CI/CD and ARM templates to allow rapid redeployment and version control.

    Additional Resources

    Hope this helps! If you have any more details to share about your situation, I can provide more specific guidance.

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments

  2. AI answer

    2025-12-19T09:57:51.2533333+00:00

    When you encounter the message "The resource you are looking for has been removed, had its name changed, or is temporarily unavailable," it typically indicates that the requested resource cannot be found on the server. This can occur for several reasons:

    1. Resource Removal: The resource may have been deleted from the server.
    2. Name Change: The resource could have been renamed, and the URL you are using is no longer valid.
    3. Temporary Unavailability: The resource might be temporarily unavailable due to maintenance or other issues.
    4. DNS Configuration Issues: If this is related to a custom domain, ensure that the domain is properly registered and verified.
    5. Backend Configuration Issues: If using Azure Front Door, check that the backend configuration is correct and that the CNAME records are pointing to the right host.

    To resolve this issue, verify the URL for correctness, check the server for the existence of the resource, and ensure that any necessary configurations (like DNS or Azure settings) are properly set up.

    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

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.