copying files from storage account created by other user to local path using Event grid and Hybrid Workers(AzureAutomation)

2020-12-29T11:01:38.383+00:00

copying files from storage account created by other user to local path using Event grid and Hybrid Workers(AzureAutomation)

How to grant permission by User A who created Storage Account (test) to User B?
How will the User B, see this test (Storage Account) as Source Resource in Create Event Subscription dialog ?

51879-image.png

Azure Storage Accounts
Azure Storage Accounts
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
2,686 questions
Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,114 questions
Azure Event Grid
Azure Event Grid
An Azure event routing service designed for high availability, consistent performance, and dynamic scale.
313 questions
0 comments No comments
{count} votes

Accepted answer
  1. MayankBargali-MSFT 68,471 Reputation points
    2020-12-30T04:36:40.26+00:00

    Hi @SHIVAKUMAR Madhurashree K (Madhura)

    Welcome to Microsoft Q&A! Thanks for posting the question.

    Please confirm if my understanding is correct. You have two different users, one who creates the storage account and the other who creates the event grid subscription. You want to limit the permission to those users but at the same time the user who has the permission to create the event grid subscription should able to view the storage account in the drop down list while creating the event grid subscription with topic type as "Storage Account".

    Can you provide more details on what do you mean by "Consider the situation where User A and B are in different regions."

    In your scenario, if both the user is in the same subscription or both the subscriptions are in the same tenant then you can give the permission to the user and your above scenario will work as expected.

    If the subscription is in a different tenant then it will not work as you cannot view the resources of subscription that are part of different tenants in the Azure portal. At a time you will only see all subscriptions where you have permission that is part of the same tenant.
    To view other tenants you need to switch directory (tenants) from the Azure portal.

    You can refer to associate an Azure Subscription for more details on how to Associate or add an Azure subscription to your Azure Active Directory tenant.

    Once your same or different subscriptions are in the same tenant then you can refer to storage in build roles and see if the inbuild roles help you. If you only need to restrict them only to view then you only need Microsoft.Storage/storageAccounts/read action permission on that susbcription and you can create the custom role and assign only Microsoft.Storage/storageAccounts/read permission to that role as below screenshot. You can refer to Azure custom roles document for more details.

    51970-image.png

    Once you have defined the custom role you can assign this custom role to your user who will be creating the event grid subscription.
    That user should also have write access to event grid subscription on that subscription. Please refer to this document for build-in or custom roles for event grid resources.

    Hope the above helps you and feel free to get back to me if you need any assistance.

    0 comments No comments

0 additional answers

Sort by: Most helpful