Unable to deploy because of invalid characters in the storage account name

Dhruv Singla 170 Reputation points
2025-06-24T07:16:09.1433333+00:00

I am following this official microsoft tutorial - link. I have completed till the stage of creating function app from azure.

User's image

But the deployment part fails
User's image

This is the log in the output channel

12:12:10 httpFuncApp01: Creating zip package...
12:12:10 httpFuncApp01: Adding 5 files to zip package...
12:12:10 httpFuncApp01: /Users/dhruv/Documents/functions_azure/http_func/function_app.py
12:12:10 httpFuncApp01: /Users/dhruv/Documents/functions_azure/http_func/__pycache__/function_app.cpython-312.pyc
12:12:10 httpFuncApp01: /Users/dhruv/Documents/functions_azure/http_func/.funcignore
12:12:10 httpFuncApp01: /Users/dhruv/Documents/functions_azure/http_func/requirements.txt
12:12:10 httpFuncApp01: /Users/dhruv/Documents/functions_azure/http_func/host.json
12:12:10 httpFuncApp01: Zip package size: 2.4 kB
12:12:13 httpFuncApp01: Starting deployment pipeline.
12:12:13 httpFuncApp01: [Kudu-SourcePackageUriDownloadStep] Skipping download. Zip package is present at /tmp/zipdeploy/545023c2-561b-4003-b3b1-d7e40e3ece6f.zip
12:12:13 httpFuncApp01: [Kudu-ValidationStep] starting.
12:12:13 httpFuncApp01: [StorageAccessibleCheck] Error while checking access to storage account using Kudu.Legion.Core.Storage.BlobContainerStorage: BlobUploadFailedException: Failed to upload blob to storage account: The specifed resource name contains invalid characters.
12:12:13 httpFuncApp01: InaccessibleStorageException: Failed to access storage account for deployment: BlobUploadFailedException: Failed to upload blob to storage account: The specifed resource name contains invalid characters.
12:12:16 httpFuncApp01: Deployment failed.

I have checked the naming convention for storage account - only lowercase letters and numbers. The name of the storage account follows this convention. Can anyone help me to see what is the actual reason for failure?

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
0 comments No comments
{count} votes

Answer accepted by question author
  1. Abiola Akinbade 30,450 Reputation points Volunteer Moderator
    2025-06-24T07:32:05.07+00:00

    Hello Dhruv Singla,

    Thanks for your question

    httpfuncapp012 looks like a good name imo. So i would suggest the following checks:

    • Check for Invalid Characters in Project Paths
    • Check that none of your file or folder names contain spaces, unicode characters or special symbols
    • Create a new, clean folder for your Function App code and redeploy
      • func azure functionapp publish httpFuncApp01 --python
    • Another option is to manually create and rerun your pipeline

    Also see:

    https://learn.microsoft.com/en-us/azure/azure-resource-manager/troubleshooting/error-storage-account-name?source=recommendations&tabs=bicep

    You can mark it 'Accept Answer' and 'Upvote' if this helped you

    Regards,

    Abiola


0 additional answers

Sort by: Most 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.