Azure / Azure/azure-cli

Add subscription_id to service principal json

Open
#21,693 4 comments 0 reactions 1 assignee Claimed by @jiasli View on GitHub
act-identity-squad Auto-Assign customer-reported feature-request Graph
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

**Is your feature request related to a problem? Please describe.**

Since `--sdk-auth` is now deprecated from `az ad sp create-for-rbac` it's expected to use the original json output when creating a service principal. However, the json that's output is completely different. There's two issues:

- The key names are all different (This is not good from a compatibility standpoint but it's easy to handle)
- The subscription_id is missing (This is not nice because then it requires all SDK calls to provide the subscription)

**Describe the solution you'd like**

Given service principals are tied to a specific subscription it would be helpful for the subscription_id to be added to the original json output. This would be helpful in terms of compatibility for users who relied on the `--sdk-auth` option.

**Describe alternatives you've considered**

Keep `--sdk-auth` option

**Additional context**

No

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.