How do you use Managed Identity with AzCopy?

To use Managed Identity with AzCopy, first enable a system-assigned or user-assigned identity on your Azure resource (like a VM or Azure Arc machine). Then, in your command console, use azcopy login --identity for system-assigned identities, or azcopy login --identity --identity-client-id "" (or object ID) for user-assigned identities to log in. For scripts, set the AZCOPY_AUTO_LOGIN_TYPE environment variable to MSI and specify the identity with AZCOPY_MSI_CLIENT_ID, AZCOPY_MSI_OBJECT_ID, or AZCOPY_MSI_RESOURCE_STRING environment variables.
Meld u aan om te vragen, te beantwoorden, te delen, leuk te vinden en te stemmen.