{iothub} partitionIds are empty if user changes shared access policy registryReadWrite
- Dominant language
- Python
- Stars
- 4.6k
- Forks
- 3.5k
- Avg merge
- 3d 2h
- Merged PRs (30d)
- 60
Description
### Describe the bug
The below command correctly lists _paritionIds_ until I update the shared access policy named _registryReadWrite_ to as below (enabled all 4 options)

### Related command
az iot hub show -n `` --query properties.eventHubEndpoints.events.partitionIds
### Errors
partitionIds array is empty
### Issue script & Debug output
[az.log](https://github.com/user-attachments/files/16469600/az.log)
### Expected behavior
_patitionIds_ should be listed irrespective of whether _registryReadWrite_ policy is updated or not.
### Environment Summary
azure-cli 2.62.0
core 2.62.0
telemetry 1.1.0
Extensions:
azure-iot 0.24.0
Dependencies:
msal 1.28.1
azure-mgmt-resource 23.1.1
Python location '/opt/homebrew/Cellar/azure-cli/2.62.0/libexec/bin/python'
Extensions directory '/Users/kpp/.azure/cliextensions'
Python (Darwin) 3.11.9 (main, Apr 2 2024, 08:25:04) [Clang 15.0.0 (clang-1500.3.9.4)]
Legal docs and information: aka.ms/AzureCliLegal
Your CLI is up-to-date.
### Additional context
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.