background
I try to export all the firewall rules via azure cli
command
az redis firewall-rules list -g my-resource -n my-redis-name
expected
It will list out all the firewall rules based on the -g and -n across diff subscription
actual
It only searches the resources from the default subscription with -g and -n criteria
resolution
change this line

--subscription
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.
Please specify it, otherwise, only the default subscription will be searched.
reason
Unlike the az mysql server firewall-rule list [--ids] we can offer the ids to filter the targeted resources. It does not share the same behaviors. An engineer like me cannot filter a resource from the resource id directly.
It is better to support az redis firewall-rules list --ids my-resource-id0,my-resource-id1
references
- https://docs.microsoft.com/en-us/cli/azure/mysql/server/firewall-rule?view=azure-cli-latest#az_mysql_server_firewall_rule_list
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
background
I try to export all the firewall rules via azure cli
command
az redis firewall-rules list -g my-resource -n my-redis-nameexpected
It will list out all the firewall rules based on the
-gand-nacross diff subscriptionactual
It only searches the resources from the default subscription with
-gand-ncriteriaresolution
change this line

reason
Unlike the
az mysql server firewall-rule list [--ids]we can offer the ids to filter the targeted resources. It does not share the same behaviors. An engineer like me cannot filter a resource from theresource iddirectly.It is better to support
az redis firewall-rules list --ids my-resource-id0,my-resource-id1references
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.