Adding Azure role assignment to automation account

Mattps 5 Reputation points
2024-01-15T13:45:43.77+00:00

Hi All,

I am trying to add an Azure role assignment to an Azure automation account, so I can connect to SharePoint online using PowerShell. All the examples online use PowerShell for this, but I am not able to get any of the commands to be recognised. So I thought I'd try this in the Azure GUI. I am selecting:

Scope: Resource Group Subscription: *** Resource Group: *** Role: The problem is I can't see anything the list that resembles the PowerShell command (-AppRole "Sites.FullControl.All".

Can anyone offer an advice please?

Thanks in advance, Matt

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
Microsoft 365 and Office | SharePoint | For business | Windows
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Ling Zhou_MSFT 23,670 Reputation points Microsoft External Staff
    2024-01-16T02:30:09.8266667+00:00

    Hi @Mattps,

    Per the description shared, are you trying to assign permissions to roles added to your automation account?

    If I understand you correctly, you can refer to this article to assign permissions to roles in your automation account: Roles in Automation accounts.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

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