If an exists command is available for a resource (might not be needed if one were to use show), the only two valid returns should be 'true' or 'false'.
Currently, az group exists returns 'true' when exists and empty when it doesn't exist. By doing this, one can't say if [ $(az group exists -n group-that-doesnt-exit) == 'true' ] since that would cause a -bash: [: ==: unary operator expected to be thrown when null is returned.
If an exists command is available for a resource (might not be needed if one were to use show), the only two valid returns should be 'true' or 'false'.
Currently,
az group existsreturns 'true' when exists and empty when it doesn't exist. By doing this, one can't sayif [ $(az group exists -n group-that-doesnt-exit) == 'true' ]since that would cause a-bash: [: ==: unary operator expectedto be thrown when null is returned.