question

Yi-8680 avatar image
0 Votes"
Yi-8680 asked MayankBargali-MSFT edited

Azure Functions runtime error

Hello,

I have an Azure Function App and it has an error message "Microsoft.Azure.Storage.Common: The specifed resource name contains invalid characters.".

116625-16268531791.jpg

The container name is "$web" and the Connection string is copied from Storage accounts -> Access keys.

I am unsure of what to do for this error. Thank you for your help.

Regards,
Yi




azure-functions
16268531791.jpg (11.8 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

MayankBargali-MSFT avatar image
0 Votes"
MayankBargali-MSFT answered MayankBargali-MSFT edited

@Yi-8680 Looks like you are defining the path as "$web" in your binding of your function app (function.json)
You cannot use $ with the starting of container name in your azure function binding.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

JaliyaUdagedara avatar image
0 Votes"
JaliyaUdagedara answered JaliyaUdagedara edited

Are you trying to change the AzureWebJobsStorage by any chance or are you going to add a new app setting that is required for your function?

And please note the following for Container Names,

A container name must be a valid DNS name, conforming to the following naming rules:
Container names must start or end with a letter or number, and can contain only letters, numbers, and the dash (-) character.
Every dash (-) character must be immediately preceded and followed by a letter or number; consecutive dashes are not permitted in container names.
All letters in a container name must be lowercase.
Container names must be from 3 through 63 characters long.

Reference: Naming and Referencing Containers, Blobs, and Metadata



5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.