-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Service Connection with Management Group Scope #11151
Comments
@jreed14 Management group scope service connection is not supported for Azure CLI task currently, and I am not aware of any immediate plan to add this support. But this is something we should do. @pulkitaggarwl to add this to backlog and plan. |
@bishal-pdMSFT - What would be the recommended alternative approach until this is hopefully implemented? |
@bhicks329 no good alternative other than using a Subscription/Resource group scoped service connection. |
This is a pretty big problem to have with no workaround. So I have only one option. Use multiple service connections that are scoped to the subscription. This is quite a loss of agility for what management groups provide big orgs |
I've just come across this page due to me noticing that this doesn't work for ARM service connections scoped to a Management Group either (unless i'm missing something, but it works if i scope it to an individual subscription) I'm currently trying to learn how Management Groups work to improve governance across Dev/Prod subscriptions, and this is a bit of an issue when we're being advised to use Management Groups to improve governance, but then they don't work in scenarios like this |
I've also confirmed this is still an issue. Has this issue been added to the backlog since February? Having this feature would mean a lot to us as well. @bishal-pdMSFT could you or @pulkitaggarwl please provide a update? |
@pulkitaggarwl can you please take a look here? |
By the way if you specify a valid subscriptionId input then it should just work even if service connection is that management group scope. |
Hi @bishal-pdMSFT I tried passing a Here is what I am trying:
Is there something I am doing wrong here? Or maybe I'm not following your work-around? |
FYI the azure resource group deployment (ARM Template) supports management groups if you use version 3 (preview). Still waiting on CLI support |
Thanks to @mbrancato a PR is out for adding this support. Please see if the PR is sufficient to handle this issue. |
@bishal-pdMSFT is there an update to this? |
Same issue. Save me please. |
I'm having the same issue when will this be fixed? I'm having to recode my whole pipeline in terraform because I can't pass a simple variable value from a PowerShell script that does some stuff before my pipeline runs... Does PR 12922 work for Management Group and Azure CLI, or just ARM? |
Same issue with the Azure File Copy task Cannot choose a service connection that is scoped to a management group, even though it has contrib permissions to the underlying subscription. |
Wow can't believe this is still open 😆 |
Hi 👋 Per the above discussion, it seems the task used to fail even before reaching the script. But the script ran without any issues for me. Can I get some repro steps? @felickz Are you still facing the issue? Can you provide details? |
Hi @NinadKavimandan 👋 @bishal-pdMSFT : Seems you too had encountered the issue same that the Release editor wasn't displaying the Management scoped Service Connections in the dropdowns, was there a fix for the issue or alternative? Seems the issue still exists. @mbrancato |
This issue is stale because it has been open for 180 days with no activity. Remove the stale label or comment on the issue otherwise this will be closed in 5 days |
Hey @NinadKavimandan, I see this was auto-closed about 11 months ago, but this is still not done? Can we get an update on this please? |
Please folks can this thread be re-opened ? It seems the limitation still persists :( |
Anything happening yet in the backend on this one? |
@NinadKavimandan any update would be much appreciated |
When using an Azure DevOps Service Connection that is scoped for a Management Group I'm not able to use the Azure CLI task. It appears part of the out of box task (excluding any commands or scripts specified) on the Azure CLI step is to:
Step #3 fails when service connections is scoped for a management group because there is no subscription specified. It runs:
The whole pipeline fails before even getting to specified code or script in the CLI task.
The text was updated successfully, but these errors were encountered: