azure-xplat-cli
azure-xplat-cli copied to clipboard
azure ad group sometimes does not produce valid json
CLI Version: 0.10.7 OS Type: Linux (Debian 8.6) Installation via: docker
Mode: ARM
Environment: AzureCloud
Description:
azure ad group doesn't always produced valid json.
Examples:
azure ad group show --json --search non-existent-group
data: No matching group was found
# Expected output is an empty json document `{}`. Instead got string above.
# Do this when you have no acitve directory groups
azure ad group list --json
# Expected output is an empty json document `{}`. Got no output
@carinadigital - Thanks for reporting this. We will look into this. Btw, the list command will return a json array [ ].
Actually the service returns a json array for the show command as well when used with --search option. Search option is a filter string (query parameter) and can all the ad groups that start with the provided string.
@shuagarw - Please look into fixing this, if possible in the upcoming release, code freeze December 7, installers out December 14.