12/17/2021, 9:20 AM
Hello all, I was trying to create an Azure Automation Account using AzureClassic provider by following this document , but it always give me this error
checking for presence of existing Automation Account "automationaccountname" (Resource Group "resourcegroupname"): automation.AccountClient#Get: Failure responding to request: StatusCode=403 -- Original Error: autorest/azure: Service returned an error. Status=403 Code="AuthorizationFailed" Message="The client '<|>' with object id 'object-id' does not have authorization to perform action 'Microsoft.Automation/automationAccounts/read' over scope '/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/automationaccountname' or the scope is invalid. If access was recently granted, please refresh your credentials."
I already gave my self every permissions (Owner, Contributor, Runbook Operator). I can create it when using AzureNative Provider. The reason I don't want to go with AzureNative is that it only allows me to create the runbook content by using Content Link Uri. I appreciate any help on this!