You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -280,23 +280,23 @@ function Test-RaValidateInputParameters ($cmdName)
280
280
# Check if Scope is valid.
281
281
$scope="/subscriptions/e9ee799d-6ab2-4084-b952-e7c86344bbab/Should be 'ResourceGroups'/any group name"
282
282
$invalidScope="Scope '/subscriptions/e9ee799d-6ab2-4084-b952-e7c86344bbab/Should be 'ResourceGroups'/any group name' should begin with '/subscriptions/<subid>/resourceGroups'."
$scope="/subscriptions/e9ee799d-6ab2-4084-b952-e7c86344bbab/ResourceGroups/groupname/Should be 'Providers'/any provider name"
294
294
$invalidScope="Scope '/subscriptions/e9ee799d-6ab2-4084-b952-e7c86344bbab/ResourceGroups/groupname/Should be 'Providers'/any provider name' should begin with '/subscriptions/<subid>/resourceGroups/<groupname>/providers'."
$invalidScope="Scope '/subscriptions/e9ee799d-6ab2-4084-b952-e7c86344bbab/ResourceGroups/groupname/Providers/providername' should have at least one pair of resource type and resource name. e.g. '/subscriptions/<subid>/resourceGroups/<groupname>/providers/<providername>/<resourcetype>/<resourcename>'."
@@ -305,7 +305,7 @@ function Test-RaValidateInputParameters ($cmdName)
305
305
$resource.ResourceType="Microsoft.KeyVault/"
306
306
$invalidResourceType="Scope '/subscriptions/"+$subscription.Id+"/resourceGroups/"+$resource.ResourceGroupName+"/providers/Microsoft.KeyVault/"+$resource.Name+"' should have even number of parts."
307
307
Assert-Throws { &$cmdName`
308
-
-ObjectId $groups[0].Id.Guid`
308
+
-ObjectId $groups[0].Id `
309
309
-RoleDefinitionName $definitionName`
310
310
-ResourceGroupName $resource.ResourceGroupName`
311
311
-ResourceType $resource.ResourceType`
@@ -455,7 +455,7 @@ function Test-RaDeletionByScope
@@ -33,7 +31,7 @@ public class AddAzureADGroupMemberCommand : ActiveDirectoryBaseCmdlet
33
31
[Parameter(Mandatory=true,ParameterSetName=ParameterSet.MemberObjectIdWithGroupObject,HelpMessage="The object id of the member(s) to add to the group.")]
34
32
[Parameter(Mandatory=true,ParameterSetName=ParameterSet.MemberObjectIdWithGroupObjectId,HelpMessage="The object id of the member(s) to add to the group.")]
35
33
[ValidateNotNullOrEmpty]
36
-
publicGuid[]MemberObjectId{get;set;}
34
+
publicstring[]MemberObjectId{get;set;}
37
35
38
36
[Parameter(Mandatory=true,ParameterSetName=ParameterSet.MemberUPNWithGroupDisplayName,HelpMessage="The UPN of the member(s) to add to the group.")]
39
37
[Parameter(Mandatory=true,ParameterSetName=ParameterSet.MemberUPNWithGroupObject,HelpMessage="The UPN of the member(s) to add to the group.")]
@@ -43,7 +41,7 @@ public class AddAzureADGroupMemberCommand : ActiveDirectoryBaseCmdlet
43
41
[Parameter(Mandatory=true,ParameterSetName=ParameterSet.MemberObjectIdWithGroupObjectId,HelpMessage="The object id of the group to add the member(s) to.")]
44
42
[Parameter(Mandatory=true,ParameterSetName=ParameterSet.MemberUPNWithGroupObjectId,HelpMessage="The object id of the group to add the member(s) to.")]
45
43
[ValidateNotNullOrEmpty]
46
-
publicGuidTargetGroupObjectId{get;set;}
44
+
publicstringTargetGroupObjectId{get;set;}
47
45
48
46
[Parameter(Mandatory=true,ValueFromPipeline=true,ParameterSetName=ParameterSet.MemberObjectIdWithGroupObject,HelpMessage="The object representation of the group to add the member(s) to.")]
49
47
[Parameter(Mandatory=true,ValueFromPipeline=true,ParameterSetName=ParameterSet.MemberUPNWithGroupObject,HelpMessage="The object representation of the group to add the member(s) to.")]
@@ -73,7 +71,7 @@ public override void ExecuteCmdlet()
0 commit comments