azcopy

does AzCopy have an exit code which can be used to throw error in a PowerShell script

笑着哭i 提交于 2019-12-11 13:01:24
问题 Like Robocopy (http://ss64.com/nt/robocopy-exit.html) does Azcopy have an exit code. If not what would be the best way to throw error for Azcopy when transfer was not successful inside a PowerShell script. 回答1: Exit code 0 means transferring succeeded, other exit codes means different kinds of error in AzCopy. Currently we haven't officially announced meaning of all error codes. 来源: https://stackoverflow.com/questions/37746054/does-azcopy-have-an-exit-code-which-can-be-used-to-throw-error-in

AzCopy login fails

匆匆过客 提交于 2019-12-05 23:15:25
问题 After running azcopy login and signing in with my Azure account, I see the following response on the sign in page: “User account from identity provider does not exist in tenant ‘Microsoft’ and cannot access the application in that tenant. This account needs to be added as an external user in the tenant first. Sign out and sign back in again with a different Azure Active Directory user account.” Am I missing something like an App Registration? 回答1: You are probably facing this issue because

AzCopy login fails

纵然是瞬间 提交于 2019-12-04 04:04:25
After running azcopy login and signing in with my Azure account, I see the following response on the sign in page: “User account from identity provider does not exist in tenant ‘Microsoft’ and cannot access the application in that tenant. This account needs to be added as an external user in the tenant first. Sign out and sign back in again with a different Azure Active Directory user account.” Am I missing something like an App Registration? You are probably facing this issue because you are not specifying your Azure AD tenant-id while trying to login with azcopy.exe So instead of azcopy.exe

Is there an API call I can make to Azure Storage to tell if my container has been deleted?

大城市里の小女人 提交于 2019-12-01 13:54:51
I want to clear a storage account then "restore" to it using AzCopy. I clear last nights storage using $ctx = New-AzureStorageContext -StorageAccountName $storage -StorageAccountKey $key Get-AzureStorageContainer a* -Context $ctx | Remove-AzureStorageContainer -Force And then use AzCopy but get; The remote server returned an error: (409) Conflict. The specified container is being deleted. Try operation later. I don't want to loop, trying to create the storage again. How can I wait for the Remove operation to complete? Is there a Get-AzureStorageContainer status? "Deleting?" Is there a Get

Is there an API call I can make to Azure Storage to tell if my container has been deleted?

你离开我真会死。 提交于 2019-12-01 13:07:23
问题 I want to clear a storage account then "restore" to it using AzCopy. I clear last nights storage using $ctx = New-AzureStorageContext -StorageAccountName $storage -StorageAccountKey $key Get-AzureStorageContainer a* -Context $ctx | Remove-AzureStorageContainer -Force And then use AzCopy but get; The remote server returned an error: (409) Conflict. The specified container is being deleted. Try operation later. I don't want to loop, trying to create the storage again. How can I wait for the

How do I avoid the prompts while using azcopy on Linux in a script?

家住魔仙堡 提交于 2019-11-30 16:59:02
问题 I've got a Python script that runs the AzCopy command to backup my storage accounts. However, it keeps throwing a prompt with the following message. Incomplete operation with different command line detected at the journal directory "/home/azureuser/Microsoft/Azure/AzCopy". Do you want to overwrite the journal to start a new operation? Choose Yes to overwrite, choose No to cancel current operation. (Yes/No) y On the Windows version of AzCopy I could add the /Y parameter. But I'm on a Linux