Skip to content

az redisenterprise returns inconsistent id #31791

@eulesv

Description

@eulesv

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Auto-ResolveAuto resolve by botRedis CacheService AttentionThis issue is responsible by Azure service team.act-codegen-extensibility-squadbugThis issue requires a change to an existing behavior in the product in order to be resolved.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions