How to fix "InvalidTemplateDeployment" error

Shabuddin Shaik 0 Reputation points
2024-12-04T13:45:58.3733333+00:00

Hi ,

I am using trail subscription, when i am going to deploy storage account using ARM templates i am getting below error.

{"code": "InvalidTemplateDeployment", "message": "The template deployment 'newteststorage' is not valid according to the validation procedure. The tracking id is '9d376280-9648-4872-b4aa-0c8a1afd0e05'. See inner errors for details."}

Inner Errors:

{"code": "PreflightValidationCheckFailed", "message": "Preflight validation failed. Please refer to the details for the specific errors."}

Inner Errors:

{"code": "StorageAccountAlreadyTaken", "target": "storageaccount1001", "message": "The storage account named storageaccount1001 is already taken."}

Surprisingly i can able to deploy successfully with different ARM template JSON file

Azure OpenAI Service
Azure OpenAI Service
An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
3,806 questions
{count} votes

1 answer

Sort by: Most helpful
  1. navba-MSFT 27,480 Reputation points Microsoft Employee
    2024-12-06T04:11:28.29+00:00

    @Shabuddin Shaik Welcome to Microsoft Q&A Forum, Thank you for posting your query here!

    .

    Please leverage the below ARM template and check if that works fine for you. You need click on Deploy to Azure button:

    https://github.com/Azure/azure-quickstart-templates/tree/master/quickstarts/microsoft.storage/storage-account-create

    User's image

    .

    Hope this helps. If you have any follow-up questions, please let me know. I would be happy to help.

    0 comments No comments

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.