Azure / Azure/azure-cli

{iothub} partitionIds are empty if user changes shared access policy registryReadWrite

Open
#29,641 2 comments 0 reactions 0 assignees View on GitHub
act-observability-squad Auto-Assign bug customer-reported IoT IoT/CLI Service Attention
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)

![policy](https://github.com/user-attachments/assets/db512422-4f7c-4602-b839-311b15a56fb4)

### 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

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.