locked
I am getting Error code InvalidResourceName while trying to upload files from my Grunt build to Azure Storage Blob RRS feed

  • Question

  • Hi,

    I am using Azure Pipeline to build and deploy frontend code to Azure Storage Blob. I am using grunt build. Azure storage container name is $web, command I am using is :
    az storage blob upload-batch --account-name something --account-key something --destination ‘$web’ --source ./

    I am getting below error:

    ERROR: The specifed resource name contains invalid characters. ErrorCode: InvalidResourceName
    <?xml version="1.0" encoding="utf-8"?><Error><Code>InvalidResourceName</Code><Message>The specifed resource name contains invalid characters.
    RequestId:38be3216-801e-0024-29e0-8fe4cc000000
    Time:2019-10-31T11:44:23.9279110Z</Message></Error>
    Traceback (most recent call last):
    ... bunch of python stuff ...

    azure.common.AzureHttpError: The specifed resource name contains invalid characters. ErrorCode: InvalidResourceName
    <?xml version="1.0" encoding="utf-8"?><Error><Code>InvalidResourceName</Code><Message>The specifed resource name contains invalid characters.
    RequestId:38be3216-801e-0024-29e0-8fe4cc000000
    Time:2019-10-31T11:44:23.9279110Z</Message></Error>
    WARNING:
    To open an issue, please run: 'az feedback'

    The file which contains '<?xml version="1.0" encoding="utf-8"?>' line is named fleet.iml, is this file causing an issue?

    • Edited by atabak5 Thursday, October 31, 2019 12:27 PM
    Thursday, October 31, 2019 12:17 PM

Answers

  • In the destination parameter, can you try to pass $web instead of ‘$web’ 


    Regards,
    Vaibhav

    • Marked as answer by atabak5 Thursday, October 31, 2019 12:51 PM
    Thursday, October 31, 2019 12:28 PM

All replies

  • In the destination parameter, can you try to pass $web instead of ‘$web’ 


    Regards,
    Vaibhav

    • Marked as answer by atabak5 Thursday, October 31, 2019 12:51 PM
    Thursday, October 31, 2019 12:28 PM
  • I was following a blog blindly. It was my bad, thanks Vaibhav

    @

    Thursday, October 31, 2019 12:52 PM