in azure batch service how we add storage account that is in another subscription

manish verma 481 Reputation points
2024-12-08T06:23:27.9833333+00:00

Hi All,

i have a batch service account. now i have a new storage account that is provision in another subscription. now the requirement is how we add this storage account in batch service

Azure Batch
Azure Batch
An Azure service that provides cloud-scale job scheduling and compute management.
348 questions
{count} votes

1 answer

Sort by: Most helpful
  1. anashetty 1,145 Reputation points Microsoft Vendor
    2024-12-09T08:00:12.35+00:00

    Hi manish verma,

    Welcome to the Microsoft Q&A Platform! Thank you for asking your question here.To add storage account from another subscription to the azure batch service, you need to have certain permissions and roles.

    See that you have Owner or Contributor role in the Batch Account and check if its managed identity then ensure it has access to the storage account in the other subscription.

    Add the role 'Storage Blob Data Contributor' or 'Storage Blob Data Owner' in the Add role assignment of IAM section. In the "Assign access to" dropdown, select either "Managed identity" or "User assigned managed identity" according to your batch service setup, search for and select your Batch account's managed identity, and then click "Save" to assign the roleUntitledNow go to the batch account, click on storage account then add storage account, the storage account will appear the add it.

    Ensure that your Azure Batch service account and Storage account are in same region, or in supported region for cross-subscription resource linking.

    For more information please refer Use managed identities in an Azure Batch account

    If you have any further queries, please do let us know. If the answer is helpful, please click "Accept Answer" and "Upvote it."User's image


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.