[Reference feedback]: No such parameter to add serviceManagementReference in az ad sp create-for-rbac
Type of issue
Other (describe below)
Reference command name
When I run az ad sp create-for-rbac --name myname --create-cert
It shows serviceManagementReference field is required for Create, but is missing in the request. However, there is no way to add serviceManagementReference in this command.
Feedback
Can you add a parameter to add serviceManagementReference?
Page URL
No response
Content source URL
No response
Author
No response
Document Id
No response
Thank you for opening this issue, we will look into it.
It is by design that --service-management-reference is not added to az ad sp create-for-rbac.
--service-management-reference was added to az ad app create/update in https://github.com/Azure/azure-cli/pull/29860. This feature was released with Azure CLI 2.65.0 on 2024-10-08.
Even though az ad sp create-for-rbac automatically creates an application, this command is only used for creating application + service principal that are used to manage Azure resources through RBAC, not for creating general-purpose application. We don’t want to add --service-management-reference to az ad sp command group which will confuse users.
However, we are still reviewing this proposal internally and will give a final conclusion.
--service-management-reference has been added to az ad sp create-for-rbac in https://github.com/Azure/azure-cli/pull/31212.
@Tonychen0227, --service-management-reference is a required argument only in Microsoft. It is not an argument that should be used by external users.
Awesome, thanks @jiasli !