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
First off, I'm not a programmer so this may be a silly question but when I try to use the Update-MgTenantRelationshipDelegatedAdminRelationship command following the instruction below:
I'm able to create the GDP relationship fine and lock for approval, and create the access assignement but if I try to update and existing adminrelationship I keep getting this error and am not sure how to work past it in Powerhsell or see what's missing here. Does anyone know what the required precondition it's looking for ? or how to work past this in powershell ?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi All,
First off, I'm not a programmer so this may be a silly question but when I try to use the Update-MgTenantRelationshipDelegatedAdminRelationship command following the instruction below:
Import-Module Microsoft.Graph.Identity.Partner
$params = @{
displayName = "Updated Contoso admin relationship"
duration = "P31D"
customer = @{
tenantId = "52eaad04-13a2-4a2f-9ce8-93a294fadf36"
}
accessDetails = @{
unifiedRoles = @(
@{
roleDefinitionId = "44367163-eba1-44c3-98af-f5787879f96a"
}
@{
roleDefinitionId = "29232cdf-9323-42fd-ade2-1d097af3e4de"
}
@{
roleDefinitionId = "69091246-20e8-4a56-aa4d-066075b2a7a8"
}
@{
roleDefinitionId = "3a2c62db-5318-420d-8d74-23affee5d9d5"
}
)
}
autoExtendDuration = "P180D"
}
Update-MgTenantRelationshipDelegatedAdminRelationship -DelegatedAdminRelationshipId $delegatedAdminRelationshipId -BodyParameter $params
I get the below response..
Update-MgTenantRelationshipDelegatedAdminRelationship : A precondition is required.
Status: 428 (428)
ErrorCode: preconditionRequired
Date: 2024-11-15T15:13:21
Headers:
Transfer-Encoding : chunked
Vary : Accept-Encoding
Strict-Transport-Security : max-age=31536000
request-id : 466a8061-112f-400c-bb2e-e0fb54962caa
client-request-id : f1c8fa02-f94c-441f-8c85-742cb6011ee5
x-ms-ags-diagnostic : {"ServerInfo":{"DataCenter":"East US 2","Slice":"E","Ring":"5","ScaleUnit":"002","RoleInstance":"BN2PEPF00004400"}}
Date : Fri, 15 Nov 2024 15:13:20 GMT
At line:31 char:1
I'm able to create the GDP relationship fine and lock for approval, and create the access assignement but if I try to update and existing adminrelationship I keep getting this error and am not sure how to work past it in Powerhsell or see what's missing here. Does anyone know what the required precondition it's looking for ? or how to work past this in powershell ?
Thanks in Advance.
Beta Was this translation helpful? Give feedback.
All reactions