Update-AzureAD Cmdlet
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")