Skip to content

Upcoming breaking changes in the cmdlet 'New-AzADServicePrincipal' #14818

Answered by dcaro
mdowst asked this question in Q&A
Discussion options

You must be logged in to vote

When invoked, the New-AzADServicePrincpal cmdlet transparently creates an AAD application. One of the values of the ServicePrincipalNames property of the service principal is derived from the IdentifierUris of created application. With the current implementation, if a value is provided to the -DisplayName parameter, the application 'IdentifierUri' is set to 'https://{displayname}', thus the ServicePrincipalNames becomes 'http://{displayname}'.

Since 'http://{displayname}' is not a valid address, for security considerations, we will not set the IdentifierUris of the application anymore in the future. The IdentifierUril value will have to be explicitly set when using the New-AzADApplication

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@dcaro
Comment options

Answer selected by mdowst
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants