Hi , Welcome to MS Q&A , you can perform below steps for your query
- Identify the Service Principal: First, you need to identify the service principal used by your Azure DevOps pipeline. You can find this information in the Azure DevOps pipeline settings.
- Assign Role: Once you have the service principal's details, you can use the Azure CLI to assign the required role. You can use the
az role assignment create
command to
Replaceaz role assignment create --role "Owner" --assignee <service_principal_id> --scope /subscriptions/xxxxxx/resourceGroups/rg_ServiceBusSimpleSendReceive
<service_principal_id>
with the actual ID of your service principal. - Verify: After assigning the role, you can verify if the assignment was successful by checking the role assignments for the specified scope using the
az role assignment list
command.
By doing this, you're granting the necessary permission for the service principal to perform role assignments within the specified scope, resolving the error you encountered during the deployment.
Kindly check and accept , if it helps , Thanks!