Service principal with access to a single resource group #1811
-
Hello. I set up a pipeline to provision resources through a GitHub Action. The service principal logged into by the GitHub Action only has access to a specific resource group. When the GitHub Action tries to provision the resources it fails with a 403 Forbidden:
The bicep templates are not creating a new resource group and are only referencing the resource group the service principal has access to. Is there a way to configure the provisioning to allow this scenario to succeed? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
the SP needs |
Beta Was this translation helpful? Give feedback.
the SP needs
contributor
access role for the entire Azure Subscription. That's currently an expectation fromazd
, as the first deployment is done at Subscription level (even if the resource group already exists)