New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AzCopy doesn't support sovereign cloud environments #1544
Comments
Hi @weikhe how did you add the account? Was it via:
Thanks! |
Hi @MRayermannMSFT |
We may not have the end points when using name and key. Have you tried to sign-in? |
Ok, thanks for the followup. I'll get back to you. 😄 |
If you sign in, it will work. For your scenario though, I've identified where the issue is and the change we need to make to fix it. Can you wait for 1.10 to come out, or would you like me to give you steps to unblock you now (you'll be editing the app's JavaScript). |
Great, I can wait for 1.10, thanks! |
Fixed merged into master for 1.10.0 |
Storage Explorer Version: 1.9.0
Build Number: 20190701.8
Platform/OS: Windows 10
Architecture: x64
Regression From:
Bug Description
Preview feature "Use AzCopy for Improved Blob Upload and Download" doesn't support sovereign cloud environment (Azure China/ Azure Germany/ Azure US Government). If want to upload files in these environments, it will fail, because AzCopy is still using "core.windows.net" domain for target account, which causes key mismatch and upload fails.
The AzCopy command I copied from my local Storage Explorer:
$env:AZCOPY_CRED_TYPE = "Anonymous";
./azcopy.exe copy "<file path>" "https://<account name>.blob.core.windows.net/<.......> --follow-symlinks --recursive --from-to=LocalBlob --blob-type=BlockBlob --put-md5;
$env:AZCOPY_CRED_TYPE = "";
Steps to Reproduce
Expected Experience
It should be able to detect account's environment, and change domain in AzCopy commandline accordingly.
Actual Experience
It keeps using "core.windows.net" as account's domain in AzCopy no matter account's real environment, which causes key mismatch and upload fails
Additional Context
The text was updated successfully, but these errors were encountered: