The client with the object identifier does not have permission to perform the action "Microsoft.DataFactory / datafactories / datapipelines / read" by area

I tried to programmatically invoke a data factory pipeline from an Azure function. The following error throws him out.

link: http://eatcodelive.com/2016/02/24/starting-an-azure-data-factory-pipeline-from-c-net/

AuthorizationFailed: Client 'XXXX-XXXXX-XXXX' with object identifier 'XXX829e05'XXXX-XXXXX' does not have authority to perform the action 'Microsoft.DataFactory / datafactories / datapipelines / read' over scope '/ subscription / XXXXXX-4bf5-84c6 - 3a352XXXXXX / resourcegroups / fffsrg / vendors /Microsoft.DataFactory/datafactories/ADFTestFFFS/datapipelines/ADFTutorialPipelineCustom.

I tried to find similar problems, but none of the search results gave me a solution to my problem. Could you tell us what could be the problem?

The goal is to start the data factory pipeline whenever a file is added to a blob. therefore, to achieve the result, we try to call the data factory pipeline from the azure function using the blob trigger.

+12
source share
7 answers

You receive an error message that you do not have permission to perform the "Microsoft.DataFactory / datafactories / datapipelines / read" action on the pipeline area because you do not have the appropriate permissions for the datafactory.

"Contributor"/"DataFactoryContributor" . Azure RBAC :

https://docs.microsoft.com/en-us/azure/active-directory/role-based-access-built-in-roles

ADF Azure, AAD - ADF. AAD :

https://docs.microsoft.com/en-us/azure/azure-resource-manager/resource-group-authenticate-service-principal

, Active Directory, , " " ADF.

+6

1:
2: .
enter image description here

3: Access Control IAM, Add. enter image description here

4. " " . , Azure AD ( Azure Active Directory), . Azure Resource Management. enter image description here

5. , , "" , . . enter image description here

+6

, , , ( 2). az login --subscription .

+2

. Azure RBAC https://blogs.msdn.microsoft.com/azure4fun/2016/10/20/common-problem-when-using-azure-resource-groups-rbac/

, .

, , , .

, , , . .

, , .

Azure ( ) , . , , Microsoft.Compute, .

.

, Azure (ARM) , . Azure, , , , ARM . ( ) .

Azure . , IoTHub .

, , , . , IoThub.

, , , , HDInsight, IotHub SQLDW… .., , , , .

+2

:

  • 1. Azure Active.
  • 2: 'Data Factory Contributor . , .

. , Azure.
:

  • 1: $azureAdApplication = New-AzureRmADApplication -DisplayName <AppName> -HomePage <URL> -IdentifierUris <URL with domain> -Password <Password>
  • 2: New-AzureRmRoleAssignment -RoleDefinitionName "Data Factory Contributor" -ServicePrincipalName $azureAdApplication.ApplicationId
0

I decided by following this post: https://www.nwcadence.com/blog/resolving-authorizationfailed-2016 using the command in PowerShell:

Get-AzureRmResourceProvider -ListAvailable | Select-Object ProviderNamespace | Foreach-Object { Register-AzureRmResourceProvider -ProviderName $_.ProviderNamespace}
0
source

Source: https://habr.com/ru/post/1669254/


All Articles