Skip to content
This repository has been archived by the owner on Jan 2, 2024. It is now read-only.

ARM deploy step fails with "Resource Group rgExample-Group could not be found." #13

Open
cpc-camarj opened this issue Jan 16, 2023 · 3 comments

Comments

@cpc-camarj
Copy link

After reviewing the permissions for the service principal, it appears that Reader access to the resource group containing the Data Factory is a pre-requisite. Is this something that others have experienced?

This also raised an interesting problem: How to handle the triggers that are stopped by the PrePostDeploymentScript.ps1 script if the ARM Deploy step fails without making any changes to the Azure Data Factory?

@DCavanaugh98
Copy link

I am also seeing the same issue. Was the resolution for you to ensure that the SP had the Reader access to the proper resource group?

image

@cpc-camarj
Copy link
Author

cpc-camarj commented Mar 22, 2023

@DCavanaugh98, I was able to resolve this by ensuring that the Data Factory Contributor role was assigned at the resource group level.

Here is the supporting documentation: https://learn.microsoft.com/en-us/azure/data-factory/concepts-roles-permissions#scope-of-the-data-factory-contributor-role.

At the same time, this information needs to be included in the README. If I have some time, I'll open a PR.

@saipratheek-banda-maersk

@DCavanaugh98 , as @cpc-camarj mentioned, try the "Data Factory Contributor role assignment at the resource group level" if that still does not work, try at a subscription level. It worked for me, since i was using the Github Actions to deploy ARM templates.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants