According to the documentation, the displayName parameter of the az sql server ad-admin create is optional:

However, when I execute this command:
az sql server ad-admin create --server <servername> --resource-group <resourcegroup> --object-id <objectid>
I'm presented with this error:
##[error]ERROR: (InvalidResourceIdSegment) The 'parameters.properties' segment in the url is invalid.
When I add the display-name parameter to that command, the command runs and finishes successfully.
I think the documentation must be changed and it must be stated that both the --object-id and --display-name parameters are mandatory.
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
According to the documentation, the
displayNameparameter of theaz sql server ad-admin createis optional:However, when I execute this command:
I'm presented with this error:
When I add the display-name parameter to that command, the command runs and finishes successfully.
I think the documentation must be changed and it must be stated that both the
--object-idand--display-nameparameters are mandatory.Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.