-
Notifications
You must be signed in to change notification settings - Fork 21.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove jq in FHIR object id lookup instructions #58510
Conversation
Currently the FHIR documentation on how to look up Azure Active Directory object IDs using the Azure CLI depends on the external tool `jq` to extract specific items from JSON payloads returned by the CLI. However, the Azure CLI supports querying the JSON responses natively via [--query](https://docs.microsoft.com/en-us/cli/azure/query-azure-cli). As such, this change updates the documentation to use `--query` instead of `jq` which removes an external tool dependency and also makes the Azure CLI snippets work on Windows.
@c-w : Thanks for your contribution! The author(s) have been notified to review your proposed change. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the contribution. One small comment if you could check.
@@ -25,7 +25,7 @@ $(Get-AzureADUser -Filter "UserPrincipalName eq 'myuser@consoso.com'").ObjectId | |||
or you can use the Azure CLI: | |||
|
|||
```azurecli-interactive | |||
az ad user show --upn-or-object-id myuser@consoso.com | jq -r .objectId | |||
az ad user show --upn-or-object-id myuser@consoso.com --query objectId --out tsv |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the latest versions of Azure CLI uses just --id
instead of --upn-or-object-id
, can you validate that works for you and correct at the same time?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, indeed, there's a deprecation warning with the --upn-or-object-id
argument:
I updated this to --id
in 4a7e688 which returns the same result as --upn-or-object-id
but without the deprecation warning:
@c-w : Thanks for your contribution! The author(s) have been notified to review your proposed change. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @c-w. Looks good.
Linking customer originating issue: #58000 |
Currently the FHIR documentation on how to look up Azure Active Directory object IDs using the Azure CLI depends on the external tool
jq
to extract specific items from JSON payloads returned by the CLI.However, the Azure CLI supports querying the JSON responses natively via --query. As such, this change updates the documentation to use
--query
instead ofjq
which removes an external tool dependency and also makes the Azure CLI snippets work on Windows.