Bicep Storage

Elena Ladyjenskaia 0 Reputation points
2025-01-07T20:21:26.3133333+00:00

Dear helper,

Receive this error:

{"code":"ParentResourceNotFound","message":"Failed to perform 'write' on resource(s) of type 'storageAccounts/blobServices', because the parent resource '/subscriptions/XXXXXXXXXXxxx/resourceGroups/bla-9008/providers/Microsoft.Storage/storageAccounts/{storageaccountname}' could not be found."}

Please help to solve. Many thanks :)

This question is related to the following Learning Module

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,970 questions
{count} votes

1 answer

Sort by: Most helpful
  1. VarunTha 11,235 Reputation points Microsoft Vendor
    2025-01-08T17:15:02.4633333+00:00

    Hi Elena Ladyjenskaia,
    Thank you for reaching out to Microsoft Q & A forum. 

    I understand the error you encountered while working with Bicep and Azure Storage. To resolve the issue, please follow these steps:

    1.Create a Storage Account: In the Unit 7 page of your training, there is a section titled "Create a storage account for toy design documents." You will find the Azure CLI command there:

    az storage account create \
    --name {storageaccountname} \ 
    --location eastus
    
    

    2.Execution Instructions: Instead of copying the entire command, simply execute az storage account create. This will prompt you to enter the storage account name and location. Please provide the required values and continue with the process.

    3.Testing: We have also tried this from our end and received positive results, as shown in the screenshots below:

    User's image

    User's image

    I hope this helps you resolve the issue. If you have any further questions or need additional assistance, please feel free to ask.

    If you have found the answer provided to be helpful, please click on the "Accept answer" button so that it is useful for other members in the Microsoft Q&A community.


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.