Symptoms
When trying to download content from an Azure storage container, you receive this error:
You are not authorized to perform this operation. Please make sure that you have entered the correct storage account name and a valid access key. This can also occur when attempting to access an expired storage account.
Error code
Any error code ending with -276 |
Details
This error can occur when you click on Download Manifest package in the application.
Solution
This error can occur in two situations:
You are not authorized to access the storage account. This can occur when you configure ShareGate Migrate to use your own Azure storage container.
Your Azure storage container is expired. This can occur with containers provided by Microsoft. ShareGate Migrate uses these containers by default unless you configured a container yourself in the options.
For (1)
Solution #1: Make sure the storage account and access key are valid.
The first step would be to confirm that the storage account name and the access key you entered are valid. The procedure to obtain the storage account and the access key is described here under the "Manage your storage access" keys section.
After re-entering the storage account name and access key, if you still get the " You are not authorized to perform this operation." message, make sure that when you are selecting the access key, you manually select it all. If you try to click 3 times in the box containing the key in order to select all the text, some part of the key may be missing.
Solution #2: Regenerating the access keys
In your Azure Management Portal, click Storage.
Click the name of the storage account you want to open.
Click Manage Keys.
Click regenerate, and copy the new access key in ShareGate Migrate.
For (2)
Microsoft provides Azure containers for ongoing migrations that expire after 5 days.
There is no way to recover anything from an expired container. To avoid this issue, you can also set up a custom storage account.