microsoft / azure-vhd-utils

Azure VHD utilities.
Other
96 stars 41 forks source link

allow special characters in blob names #33

Closed carnott-redhat closed 8 years ago

carnott-redhat commented 8 years ago

I am trying to upload a vhd to Azure but am getting an error based on the name I have chosen:

[carnott@shamir ~]$ vhd upload --localvhdpath rhel-72.vhd --stgaccountname <account_name> --stgaccountkey <account_key> --containername <container_name> --blobname rhel-72-{`uuidgen`}.vhd
2016/08/04 21:11:48 Using default parallelism [8*NumCPU] : 32
2016/08/04 21:11:48 storage: service returned without a response body (403 Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature.)

And upon further testing the following blob name works: rhel-72-uuidgen.vhd Furthermore, azure storage blob upload completes with no issues:

azure storage blob upload --container <container_name> --blob rhel-72-{`uuidgen`}.vhd --account-name <account_name> --account-key <account_key> --file rhel-72.vhd
anuchandy commented 8 years ago

Looks like it's a bug in the storage SDK [that this util depends on] issue seems fixed https://github.com/Azure/azure-sdk-for-go/issues/351 https://github.com/Azure/azure-sdk-for-go/pull/361

Can you try pulling the latest storage SDK and try try?

carnott-redhat commented 8 years ago

Yep, everything looks good when you rebuild, as you get the latest version of azure-sdk-for-go; I did have to do a fresh go get, as the old directory had some caches that stuck me on the previous version.