Cmdlets for Azure Active Directory

Build 24.0.9060

Update-AzureAD Cmdlet

Parameters   Output Objects  

Updates Azure Active Directory data.

Syntax

Update-AzureAD [parameters]

Remarks

The Update-AzureAD cmdlet allows you to use a syntax similar to SQL UPDATE statements to update Azure Active Directory data.

$conn = Connect-AzureAD -OAuthClientId 'MyApplicationId' -OAuthClientSecret 'MySecretKey' -CallbackURL 'http://localhost:33333'
Update-AzureAD -Connection $conn -Table "DirectoryRoles" -Columns @("displayName") -Values @("Billing Administrator") -Id "Jq74mCczmFXk1tC10GB"
The Where parameter can also be used to specify the primary key of the table:
Update-AzureAD -Connection $conn -Table "DirectoryRoles" -Columns @("displayName") -Values @("Billing Administrator") -Where "Id = 'Jq74mCczmFXk1tC10GB'"
The primary key can also be passed to the cmdlet along the pipeline:
Select-AzureAD -Connection $conn -Table DirectoryRoles -Where "Id = 'Jq74mCczmFXk1tC10GBs'" | Update-AzureAD -Columns @("Id") -Values @("Jq74mCczmFXk1tC10GBs 2")

Copyright (c) 2024 CData Software, Inc. - All rights reserved.
Build 24.0.9060