Skip to content
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

AddAzureADGroupMember not working #6485

Closed
gbrueckl opened this issue Jun 19, 2018 · 4 comments
Closed

AddAzureADGroupMember not working #6485

gbrueckl opened this issue Jun 19, 2018 · 4 comments
Assignees
Labels
Resource Authorization AzRole* in Az.Resources Service Attention This issue is responsible by Azure service team.
Milestone

Comments

@gbrueckl
Copy link

Description

when calling Add-AzureRmADGroupMember I receive the following error message:

Add-AzureRmADGroupMember : The URI
'https://graph.windows.net//Microsoft.Azure.Commands.Common.Authentication.Abstractions.AzureTenant/directoryObjects/75b92f08-93a5-1234-9d4f-b5b2d6338cd0'
is not valid since it is not based on 'https://graph.windows.net/6a8611db-1234-454c-be8e-68a7d768d450/'.

Script/Steps for Reproduction

$readerGroup = Get-AzureRmADGroup -DisplayName "myGroupName"

$user = Get-AzureRmADUser -StartsWith 'myUserName'

Add-AzureRmADGroupMember -TargetGroupObjectId $readerGroup.Id -MemberObjectId $user.Id -PassThru

Module Version

Get-Module -Name AzureRM -ListAvailable

ModuleType Version    Name                                ExportedCommands                                                                                  
---------- -------    ----                                ----------------                                                                                  
Script     6.2.1      AzureRM                                                                                                                               
Script     5.7.0      AzureRM   

Environment Data

$PSVersionTable

Name                           Value                                                                                                                        
----                           -----                                                                                                                        
PSVersion                      5.1.16299.431                                                                                                                
PSEdition                      Desktop                                                                                                                      
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}                                                                                                      
BuildVersion                   10.0.16299.431                                                                                                               
CLRVersion                     4.0.30319.42000                                                                                                              
WSManStackVersion              3.0                                                                                                                          
PSRemotingProtocolVersion      2.3                                                                                                                          
SerializationVersion           1.1.0.1  

Debug Output

DEBUG: 16:44:41 - GetAzureADGroupCommand begin processing with ParameterSet 'DisplayNameParameterSet'.
DEBUG: 16:44:41 - using account id '1c71ec5f-c2bc-4648-9d49-369a4f7792a4'...
DEBUG: [Common.Authentication]: Authenticating using Account: '1c71ec5f-c2bc-4648-9d49-369a4f7792a4', environment: 'AzureCloud', tenant: '6a8611db-10e0-454c-
be8e-68a7d768d450'
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 : 
DEBUG: 06/19/2018 14:44:41: b1c151b1-cd4e-42c9-8ec8-28c1cb031aff - AcquireTokenHandlerBase: === Token Acquisition started:
	Authority: https://login.microsoftonline.com/6a8611db-10e0-454c-be8e-68a7d768d450/
	Resource: https://graph.windows.net/
	ClientId: 1c71ec5f-c2bc-4648-9d49-369a4f7792a4
	CacheType: Microsoft.Azure.Commands.Common.Authentication.ProtectedFileTokenCache (34 items)
	Authentication Target: Client
	

DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 : 
DEBUG: 06/19/2018 14:44:41:  - TokenCache: Deserialized 34 items to token cache.

DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Verbose: 1 : 
DEBUG: 06/19/2018 14:44:41: b1c151b1-cd4e-42c9-8ec8-28c1cb031aff - TokenCache: Looking up cache for a token...

DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 : 
DEBUG: 06/19/2018 14:44:41: b1c151b1-cd4e-42c9-8ec8-28c1cb031aff - TokenCache: An item matching the requested resource was found in the cache

DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Verbose: 1 : 
DEBUG: 06/19/2018 14:44:41: b1c151b1-cd4e-42c9-8ec8-28c1cb031aff - TokenCache: 7.85863900166667 minutes left until token in cache expires

DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 : 
DEBUG: 06/19/2018 14:44:41: b1c151b1-cd4e-42c9-8ec8-28c1cb031aff - TokenCache: A matching item (access token or refresh token or both) was found in the cache


DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 : 
DEBUG: 06/19/2018 14:44:41: b1c151b1-cd4e-42c9-8ec8-28c1cb031aff - AcquireTokenHandlerBase: === Token Acquisition finished successfully. An access token was 
retuned:
	Access Token Hash: 9oEC/zy653acnejIF/MVeF/QbgAD7zFTA5ng+9htw6w=
	Refresh Token Hash: [No Refresh Token]
	Expiration Time: 06/19/2018 14:52:32 +00:00
	User Hash: null
	

DEBUG: ============================ HTTP REQUEST ============================

HTTP Method:
GET

Absolute Uri:
https://graph.windows.net/6a8611db-10e0-454c-be8e-68a7d768d450/groups?$filter=displayName eq 'Platform%2FDV0%2FKeyvault%2FReader'&api-version=1.6

Headers:
x-ms-client-request-id        : d939ffcb-75e7-4f64-bfc0-055f47b55742
accept-language               : en-US

Body:



DEBUG: ============================ HTTP RESPONSE ============================

Status Code:
OK

Headers:
Pragma                        : no-cache
ocp-aad-diagnostics-server-name: o2jptezrhM3d8cjNmfGVf6otZB+cKWBXbY/uNvFoTVc=
request-id                    : ccf442fb-7767-4dad-9c5f-ca2173fb7402
client-request-id             : f109bf93-4396-4feb-ae8a-f8337dcc9359
x-ms-dirapi-data-contract-version: 1.6
ocp-aad-session-key           : KRkViUh9itzVXJC_7TYEKMsTIUhnFIqDmz55VQ0VNOkq0aNVyNw4a1zK_03AQ-dRn8DCpKY_kXiQ8S35JTF1FjiCfMQUdh35YBma126iBqtayM5w_EdANTpfL7hhP
346.enYBi6l2G-ZBzY9c5uBTOaPwVoHkn7FIlFHqvkpkpwk
X-Content-Type-Options        : nosniff
DataServiceVersion            : 3.0;
Strict-Transport-Security     : max-age=31536000; includeSubDomains
Access-Control-Allow-Origin   : *
Duration                      : 630337
Cache-Control                 : no-cache
Server                        : Microsoft-IIS/10.0
X-AspNet-Version              : 4.0.30319
X-Powered-By                  : ASP.NET,ASP.NET
Date                          : Tue, 19 Jun 2018 14:44:42 GMT

Body:
{
  "odata.metadata": "https://graph.windows.net/6a8611db-10e0-454c-be8e-68a7d768d450/$metadata#directoryObjects/Microsoft.DirectoryServices.Group",
  "value": [
    {
      "odata.type": "Microsoft.DirectoryServices.Group",
      "objectType": "Group",
      "objectId": "43613cb5-8c75-4fbe-a4c3-19c99d170345",
      "deletionTimestamp": null,
      "description": null,
      "dirSyncEnabled": null,
      "displayName": "Platform/DV0/Keyvault/Reader",
      "lastDirSyncTime": null,
      "mail": null,
      "mailNickname": "9ccb10ed-6c33-4ea7-8b2c-1fedad01b8d6",
      "mailEnabled": false,
      "onPremisesDomainName": null,
      "onPremisesNetBiosName": null,
      "onPremisesSamAccountName": null,
      "onPremisesSecurityIdentifier": null,
      "provisioningErrors": [],
      "proxyAddresses": [],
      "securityEnabled": true
    }
  ]
}


DEBUG: AzureQoSEvent: CommandName - Get-AzureRmADGroup; IsSuccess - True; Duration - 00:00:00.2239194; Exception - ;
DEBUG: Finish sending metric.
DEBUG: 16:44:41 - GetAzureADGroupCommand end processing.
DEBUG: 16:44:41 - GetAzureADGroupCommand end processing.
DEBUG: 16:44:41 - GetAzureADUserCommand begin processing with ParameterSet 'SearchStringParameterSet'.
DEBUG: 16:44:41 - using account id '1c71ec5f-c2bc-4648-9d49-369a4f7792a4'...
DEBUG: [Common.Authentication]: Authenticating using Account: '1c71ec5f-c2bc-4648-9d49-369a4f7792a4', environment: 'AzureCloud', tenant: '6a8611db-10e0-454c-
be8e-68a7d768d450'
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 : 
DEBUG: 06/19/2018 14:44:41: a7a69f1f-9376-49dd-8c70-b831db1d5b48 - AcquireTokenHandlerBase: === Token Acquisition started:
	Authority: https://login.microsoftonline.com/6a8611db-10e0-454c-be8e-68a7d768d450/
	Resource: https://graph.windows.net/
	ClientId: 1c71ec5f-c2bc-4648-9d49-369a4f7792a4
	CacheType: Microsoft.Azure.Commands.Common.Authentication.ProtectedFileTokenCache (34 items)
	Authentication Target: Client
	

DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 : 
DEBUG: 06/19/2018 14:44:41:  - TokenCache: Deserialized 34 items to token cache.

DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Verbose: 1 : 
DEBUG: 06/19/2018 14:44:41: a7a69f1f-9376-49dd-8c70-b831db1d5b48 - TokenCache: Looking up cache for a token...

DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 : 
DEBUG: 06/19/2018 14:44:41: a7a69f1f-9376-49dd-8c70-b831db1d5b48 - TokenCache: An item matching the requested resource was found in the cache

DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Verbose: 1 : 
DEBUG: 06/19/2018 14:44:41: a7a69f1f-9376-49dd-8c70-b831db1d5b48 - TokenCache: 7.84559217333333 minutes left until token in cache expires

DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 : 
DEBUG: 06/19/2018 14:44:41: a7a69f1f-9376-49dd-8c70-b831db1d5b48 - TokenCache: A matching item (access token or refresh token or both) was found in the cache


DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 : 
DEBUG: 06/19/2018 14:44:41: a7a69f1f-9376-49dd-8c70-b831db1d5b48 - AcquireTokenHandlerBase: === Token Acquisition finished successfully. An access token was 
retuned:
	Access Token Hash: 9oEC/zy653acnejIF/MVeF/QbgAD7zFTA5ng+9htw6w=
	Refresh Token Hash: [No Refresh Token]
	Expiration Time: 06/19/2018 14:52:32 +00:00
	User Hash: null
	

DEBUG: ============================ HTTP REQUEST ============================

HTTP Method:
GET

Absolute Uri:
https://graph.windows.net/6a8611db-10e0-454c-be8e-68a7d768d450/users?$filter=startswith(displayName,'pranay')&api-version=1.6

Headers:
x-ms-client-request-id        : 86b85e90-c7df-4881-a56c-e339ab1dd278
accept-language               : en-US

Body:



DEBUG: ============================ HTTP RESPONSE ============================

Status Code:
OK

Headers:
Pragma                        : no-cache
ocp-aad-diagnostics-server-name: d/jM8nCpchafFRnc4AyZkLYaF8pRwSLQN2CeZZaPLTo=
request-id                    : 62a2b081-908c-4eeb-a7e9-acaa9c456f2d
client-request-id             : b7df7ce2-e32f-4cc2-905f-ac5927ac951e
x-ms-dirapi-data-contract-version: 1.6
ocp-aad-session-key           : IlPlZ4uiz7SFXPQyONJeGdmCAOedECRzWSEE0CAVkSNZ8HHQeS6I9crKhq1GFPlwPzMw1o2igONRIhYROiThGcg0Zu8HABlrL2CYZOmvdOFWDWnayQOhy3VB1EZsM
kkL.WdxjDvHzDH9YR6AZW3vVbChuox1lflq62g6QEv7A7sQ
X-Content-Type-Options        : nosniff
DataServiceVersion            : 3.0;
Strict-Transport-Security     : max-age=31536000; includeSubDomains
Access-Control-Allow-Origin   : *
Duration                      : 591430
Cache-Control                 : no-cache
Server                        : Microsoft-IIS/10.0
X-AspNet-Version              : 4.0.30319
X-Powered-By                  : ASP.NET,ASP.NET
Date                          : Tue, 19 Jun 2018 14:44:43 GMT

Body:
{
  "odata.metadata": "https://graph.windows.net/6a8611db-10e0-454c-be8e-68a7d768d450/$metadata#directoryObjects/Microsoft.DirectoryServices.User",
  "value": [
    {
      "odata.type": "Microsoft.DirectoryServices.User",
      "objectType": "User",
      "objectId": "75b92f08-93a5-4309-9d4f-b5b2d6338cd0",
      "deletionTimestamp": null,
      "accountEnabled": true,
      "ageGroup": null,
      "assignedLicenses": [],
      "assignedPlans": [],
      "city": null,
      "companyName": null,
      "consentProvidedForMinor": null,
      "country": null,
      "createdDateTime": "2018-04-11T14:24:13Z",
      "creationType": "Invitation",
      "department": null,
      "dirSyncEnabled": null,
      "displayName": "Pranay Tare",
      "employeeId": null,
      "facsimileTelephoneNumber": null,
      "givenName": null,
      "immutableId": null,
      "isCompromised": null,
      "jobTitle": null,
      "lastDirSyncTime": null,
      "legalAgeGroupClassification": null,
      "mail": "[email protected]",
      "mailNickname": "ptare_pmone.com#EXT#",
      "mobile": null,
      "onPremisesDistinguishedName": null,
      "onPremisesSecurityIdentifier": null,
      "otherMails": [
        "[email protected]"
      ],
      "passwordPolicies": null,
      "passwordProfile": null,
      "physicalDeliveryOfficeName": null,
      "postalCode": null,
      "preferredLanguage": null,
      "provisionedPlans": [],
      "provisioningErrors": [],
      "proxyAddresses": [
        "SMTP:[email protected]"
      ],
      "refreshTokensValidFromDateTime": "2018-04-11T14:24:13Z",
      "showInAddressList": false,
      "signInNames": [],
      "sipProxyAddress": null,
      "state": null,
      "streetAddress": null,
      "surname": null,
      "telephoneNumber": null,
      "usageLocation": null,
      "userIdentities": [],
      "userPrincipalName": "ptare_pmone.com#EXT#@herdev.onmicrosoft.com",
      "userType": "Guest"
    }
  ]
}


DEBUG: AzureQoSEvent: CommandName - Get-AzureRmADUser; IsSuccess - True; Duration - 00:00:00.1896729; Exception - ;
DEBUG: Finish sending metric.
DEBUG: 16:44:42 - GetAzureADUserCommand end processing.
DEBUG: 16:44:42 - GetAzureADUserCommand end processing.
DEBUG: 16:44:42 - AddAzureADGroupMemberCommand begin processing with ParameterSet 'MemberObjectIdWithGroupObjectId'.
DEBUG: 16:44:42 - using account id '1c71ec5f-c2bc-4648-9d49-369a4f7792a4'...
DEBUG: [Common.Authentication]: Authenticating using Account: '1c71ec5f-c2bc-4648-9d49-369a4f7792a4', environment: 'AzureCloud', tenant: '6a8611db-10e0-454c-
be8e-68a7d768d450'
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 : 
DEBUG: 06/19/2018 14:44:42: e19f0797-13f3-4716-ac68-6176e5357dd4 - AcquireTokenHandlerBase: === Token Acquisition started:
	Authority: https://login.microsoftonline.com/6a8611db-10e0-454c-be8e-68a7d768d450/
	Resource: https://graph.windows.net/
	ClientId: 1c71ec5f-c2bc-4648-9d49-369a4f7792a4
	CacheType: Microsoft.Azure.Commands.Common.Authentication.ProtectedFileTokenCache (34 items)
	Authentication Target: Client
	

DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 : 
DEBUG: 06/19/2018 14:44:42:  - TokenCache: Deserialized 34 items to token cache.

DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Verbose: 1 : 
DEBUG: 06/19/2018 14:44:42: e19f0797-13f3-4716-ac68-6176e5357dd4 - TokenCache: Looking up cache for a token...

DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 : 
DEBUG: 06/19/2018 14:44:42: e19f0797-13f3-4716-ac68-6176e5357dd4 - TokenCache: An item matching the requested resource was found in the cache

DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Verbose: 1 : 
DEBUG: 06/19/2018 14:44:42: e19f0797-13f3-4716-ac68-6176e5357dd4 - TokenCache: 7.83691330333333 minutes left until token in cache expires

DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 : 
DEBUG: 06/19/2018 14:44:42: e19f0797-13f3-4716-ac68-6176e5357dd4 - TokenCache: A matching item (access token or refresh token or both) was found in the cache


DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 : 
DEBUG: 06/19/2018 14:44:42: e19f0797-13f3-4716-ac68-6176e5357dd4 - AcquireTokenHandlerBase: === Token Acquisition finished successfully. An access token was 
retuned:
	Access Token Hash: 9oEC/zy653acnejIF/MVeF/QbgAD7zFTA5ng+9htw6w=
	Refresh Token Hash: [No Refresh Token]
	Expiration Time: 06/19/2018 14:52:32 +00:00
	User Hash: null
	

DEBUG: ============================ HTTP REQUEST ============================

HTTP Method:
POST

Absolute Uri:
https://graph.windows.net/6a8611db-10e0-454c-be8e-68a7d768d450/groups/43613cb5-8c75-4fbe-a4c3-19c99d170345/$links/members?api-version=1.6

Headers:
x-ms-client-request-id        : 773a667c-1e41-44e7-8594-b447784b5fe4
accept-language               : en-US

Body:
{
  "url": "https://graph.windows.net//Microsoft.Azure.Commands.Common.Authentication.Abstractions.AzureTenant/directoryObjects/75b92f08-93a5-4309-9d4f-b5b2d63
38cd0"
}


DEBUG: ============================ HTTP RESPONSE ============================

Status Code:
BadRequest

Headers:
ocp-aad-diagnostics-server-name: hd4Rk9rH6SUfNSndh15Pd1AEoIfv1eHJMsiRDn1e+z8=
request-id                    : 32c4fe14-6fcd-4ff8-9049-4ea2c8423d89
client-request-id             : 988eccc7-c141-417e-8dbe-127f2c685e1c
x-ms-dirapi-data-contract-version: 1.6
ocp-aad-session-key           : sdMoe_i95LXzZQ32w3ituIkYsZ3D2OGZWkvXiwMwrNpC668xBScL6ITToEJlS1XJjHr-Jgr3hOD0kweHZvJhaDbQHl690AxG9t3o2bDWCkT9U7A1Dq8J4AVC5kzp4
KmC.Y6WtNfGbQMEXzaWCAAc5zunqX9HYO9SCLGGEdL70Z6I
X-Content-Type-Options        : nosniff
DataServiceVersion            : 3.0;
Strict-Transport-Security     : max-age=31536000; includeSubDomains
Access-Control-Allow-Origin   : *
Duration                      : 489271
Cache-Control                 : private
Server                        : Microsoft-IIS/10.0
X-AspNet-Version              : 4.0.30319
X-Powered-By                  : ASP.NET,ASP.NET
Date                          : Tue, 19 Jun 2018 14:44:44 GMT

Body:
{
  "odata.error": {
    "code": "Request_BadRequest",
    "message": {
      "lang": "en",
      "value": "The URI 'https://graph.windows.net//Microsoft.Azure.Commands.Common.Authentication.Abstractions.AzureTenant/directoryObjects/75b92f08-93a5-43
09-9d4f-b5b2d6338cd0' is not valid since it is not based on 'https://graph.windows.net/6a8611db-10e0-454c-be8e-68a7d768d450/'."
    }
  }
}


DEBUG: Caught exception, type: Microsoft.Azure.Graph.RBAC.Version1_6.Models.GraphErrorException
Add-AzureRmADGroupMember : The URI 
'https://graph.windows.net//Microsoft.Azure.Commands.Common.Authentication.Abstractions.AzureTenant/directoryObjects/75b92f08-93a5-4309-9d4f-b5b2d6338cd0' 
is not valid since it is not based on 'https://graph.windows.net/6a8611db-10e0-454c-be8e-68a7d768d450/'.
At line:5 char:1
+ Add-AzureRmADGroupMember -TargetGroupObjectId $readerGroup.Id -Member ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [Add-AzureRmADGroupMember], Exception
    + FullyQualifiedErrorId : Microsoft.Azure.Commands.ActiveDirectory.AddAzureADGroupMemberCommand
 
DEBUG: AzureQoSEvent: CommandName - Add-AzureRmADGroupMember; IsSuccess - False; Duration - 00:00:00.3514956; Exception - System.Exception: The URI 'https://
graph.windows.net//Microsoft.Azure.Commands.Common.Authentication.Abstractions.AzureTenant/directoryObjects/75b92f08-93a5-4309-9d4f-b5b2d6338cd0' is not vali
d since it is not based on 'https://graph.windows.net/6a8611db-10e0-454c-be8e-68a7d768d450/'.;
DEBUG: Finish sending metric.
DEBUG: 16:44:42 - AddAzureADGroupMemberCommand end processing.
DEBUG: 16:44:42 - AddAzureADGroupMemberCommand end processing.
Resolve-AzureRmError

Message        : The URI 'https://graph.windows.net//Microsoft.Azure.Commands.Common.Authentication.Abstractions.AzureTenant/directoryObjects/75b92f08-93a5-
                 4309-9d4f-b5b2d6338cd0' is not valid since it is not based on 'https://graph.windows.net/6a8611db-10e0-454c-be8e-68a7d768d450/'.
StackTrace     : 
Exception      : System.Exception
InvocationInfo : {Add-AzureRmADGroupMember}
Line           : Add-AzureRmADGroupMember -TargetGroupObjectId $readerGroup.Id -MemberObjectId $user.Id -PassThru
                 
Position       : At line:5 char:1
                 + Add-AzureRmADGroupMember -TargetGroupObjectId $readerGroup.Id -Member ...
                 + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId      : 37



   HistoryId: 30


Message        : The URI 'https://graph.windows.net//Microsoft.Azure.Commands.Common.Authentication.Abstractions.AzureTenant/directoryObjects/75b92f08-93a5-
                 4309-9d4f-b5b2d6338cd0' is not valid since it is not based on 'https://graph.windows.net/6a8611db-10e0-454c-be8e-68a7d768d450/'.
StackTrace     : 
Exception      : System.Exception
InvocationInfo : {Add-AzureRmADGroupMember}
Line           : Add-AzureRmADGroupMember -TargetGroupObjectId $readerGroup.Id -MemberObjectId $user.Id -PassThru
Position       : At line:5 char:1
                 + Add-AzureRmADGroupMember -TargetGroupObjectId $readerGroup.Id -Member ...
                 + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId      : 30
@cormacpayne cormacpayne self-assigned this Jun 19, 2018
@cormacpayne cormacpayne added the Resource Authorization AzRole* in Az.Resources label Jun 19, 2018
@cormacpayne cormacpayne added this to the 2018-06-29 milestone Jun 19, 2018
@cormacpayne
Copy link
Member

This will be fixed in the upcoming (July 3rd) version of AzureRM.Resources

@bsiegel bsiegel added the Service Attention This issue is responsible by Azure service team. label Sep 26, 2018
@MurrayFoxcroft
Copy link

This seems to still be an issue on 6.10.0 is there any work around?

@MurrayFoxcroft
Copy link

I am seeing
Add-AzureRmADGroupMember : The URI 'https://graph.windows.net//Microsoft.Azure.Commands.Common.Authentication.Abstractions.AzureTenant/directoryObj
ects/1062c690-55dd-477b-97ee-9dd13cc4b72a' is not valid since it is not based on 'https://graph.windows.net/62368045-c91f-477d-a117-8432f56a91e4/'.
At line:3 char:1

@gbrueckl
Copy link
Author

for me this worked once I used the latest version of AzureRM.Resources
You also need to have the latest AzureRM.Profile

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resource Authorization AzRole* in Az.Resources Service Attention This issue is responsible by Azure service team.
Projects
None yet
Development

No branches or pull requests

4 participants