0
votes

I am trying out the Azure automation feature and I encountered the error below when the system tried to create the Run As account:

An error occurred while creating the Azure Run As account (service principal) for account automateTest2.

Error details: {"odata.error":{"code":"Authorization_RequestDenied","message":{"lang":"en","value":"Insufficient privileges to complete the operation."}}}.

I am still quite new to Azure and my subscription is a free trial one.

Appreciate your assistance on this.

Thank you.

2

2 Answers

2
votes

The user performing these steps must be a member of the Subscription Admins role and co-administrator of the subscription which is granting access to the subscription for the user. The user must also be added as a User to that subscriptions default Active Directory; the account does not need to be assigned to a privileged role.

Source: https://docs.microsoft.com/en-us/azure/automation/automation-sec-configure-azure-runas-account

1
votes

Well, the error is pretty obvious, you need more permission to do that, try contributor role or owner role (of your subscription) to create those.