Set-AzureADServicePrincipal
This article provides migration details from Set-AzureADServicePrincipal command to Microsoft Graph PowerShell.
Important
Using PATCH to set passwordCredential is not supported. Use the addPassword and removePassword methods to update the password or secret for a servicePrincipal.
Summary
- Azure AD Command: Set-AzureADServicePrincipal
- Azure AD Module: AzureAD
- Microsoft Graph Command: Update-MgServicePrincipal (Community Examples)
- Graph Module: Microsoft.Graph.Applications
- Graph Endpoint: PATCH /servicePrincipals/{servicePrincipal-id}
Permissions
Permission type | Permissions (from least to most privileged) |
---|---|
Delegated (work or school account) | Application.ReadWrite.All |
Delegated (personal Microsoft account) | Not supported. |
Application | Application.ReadWrite.OwnedBy, Application.ReadWrite.All |
View more details on permissions.
Property Mapping
Azure AD Name | Microsoft Graph Name |
---|---|
AccountEnabled | AccountEnabled |
AlternativeNames | AlternativeNames |
AppId | AppId |
AppRoleAssignmentRequired | AppRoleAssignmentRequired |
ErrorUrl | NA |
Homepage | Homepage |
KeyCredentials | KeyCredentials |
LogoutUrl | LogoutUrl |
PasswordCredentials | PasswordCredentials |
PublisherName | NA |
ReplyUrls | ReplyUrls |
DisplayName | DisplayName |
SamlMetadataUrl | NA |
ServicePrincipalNames | ServicePrincipalNames |
ServicePrincipalType | ServicePrincipalType |
Tags | Tags |
Σχόλια
https://aka.ms/ContentUserFeedback.
Σύντομα διαθέσιμα: Καθ' όλη τη διάρκεια του 2024 θα καταργήσουμε σταδιακά τα ζητήματα GitHub ως μηχανισμό ανάδρασης για το περιεχόμενο και θα το αντικαταστήσουμε με ένα νέο σύστημα ανάδρασης. Για περισσότερες πληροφορίες, ανατρέξτε στο θέμα:Υποβολή και προβολή σχολίων για