Azure / Azure/azure-cli

az redisenterprise returns inconsistent id

Open
#31,791 4 comments 0 reactions 0 assignees View on GitHub
act-codegen-extensibility-squad Auto-Resolve bug Redis Cache Service Attention
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

### Describe the bug

When you create an Azure Managed Redis through az cli you obtain an id with the following format:

/subscriptions/[sub]/resourceGroups/[rg]/providers/Microsoft.Cache/redisEnterprise/[name]/databases/default

When you run the show command for the previously created resource you get:

/subscriptions/[sub]/resourceGroups/[rg]/providers/Microsoft.Cache/redisEnterprise/[name]

### Related command

az redisenterprise create -g group -n name --sku Balanced_B5 --query id o tsv
az redisenterprise show -g group -n name --query id -o tsv

### Errors

Values returned should be the same but they are different

### Issue script & Debug output

[skip]

### Expected behavior

Same output for both commands

### Environment Summary

azure-cli 2.74.0 *

core 2.74.0 *
telemetry 1.1.0

Extensions:
bastion 1.4.0
redisenterprise 1.2.1

Dependencies:
msal 1.32.3
azure-mgmt-resource 23.3.0

Python location '/opt/az/bin/python3'
Config directory '/home/eule/.azure'
Extensions directory '/home/eule/.azure/cliextensions'

Python (Linux) 3.12.10 (main, May 27 2025, 09:12:38) [GCC 11.4.0]

Legal docs and information: aka.ms/AzureCliLegal

### Additional context

_No response_

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.