According to the Azure CLI, the option '--upn-or-object-id' has been deprecated and will be removed in a future release. We now have to use '--id' instead. Please correct the outdated command as highlighted in the screenshot below.
Thank you!
⚠Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
@goh-chunlin Thank you for bringing this to our notice, our team will look into it and update the document accordingly.
@moiradillon12 will update this in a next round of revisions.
This is fixed in https://github.com/MicrosoftDocs/azure-docs/pull/58510. So when that merges, we can close this one too.
That PR has a commit that is specific to this issue. For reference: https://github.com/MicrosoftDocs/azure-docs/pull/58510/commits/4a7e688894d9dbd30568fb389c64469e528159fb
@goh-chunlin The documentation updates have been merged into the master repository and these changes will be reflected in the public facing document at some point today. We will now proceed to close this thread. If there are further questions regarding this matter, please comment and we will gladly continue the discussion.