Skip to content

Commit bd19d80

Browse files
committed
fix: ✨ Add ManagementGroup parameters for WorkloadIdentityFederation
* Added `ManagementGroupId` and `ManagementGroupName` parameters to the `New-AzDoServiceConnection` function for the `WorkloadIdentityFederation` parameter set. * This enhances the functionality by allowing management group details to be specified when creating service connections with Workload Identity Federation.
1 parent d1e0a74 commit bd19d80

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

AzureDevOpsPowerShell/Public/Api/ServiceEndpoints/Endpoints/New-AzDoServiceConnection.ps1

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,11 +102,13 @@ function New-AzDoServiceConnection {
102102

103103
# ID of the Management group.
104104
[Parameter(Mandatory, ValueFromPipelineByPropertyName, ParameterSetName = 'ManagementGroup')]
105+
[Parameter(ValueFromPipelineByPropertyName, ParameterSetName = 'WorkloadIdentityFederation')]
105106
[string]
106107
$ManagementGroupId,
107108

108109
# Name of the Management group.
109110
[Parameter(Mandatory, ValueFromPipelineByPropertyName, ParameterSetName = 'ManagementGroup')]
111+
[Parameter(ValueFromPipelineByPropertyName, ParameterSetName = 'WorkloadIdentityFederation')]
110112
[string]
111113
$ManagementGroupName,
112114

0 commit comments

Comments
 (0)