Azure / azure-cli

Azure Command-Line Interface
MIT License
3.96k stars 2.94k forks source link

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

Open kiranpradeep opened 1 month ago

kiranpradeep commented 1 month ago

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

Related command

az iot hub show -n <name> --query properties.eventHubEndpoints.events.partitionIds

Errors

partitionIds array is empty

Issue script & Debug output

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

yonzhan commented 1 month ago

Thank you for opening this issue, we will look into it.

microsoft-github-policy-service[bot] commented 1 month ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @Azure/azure-iot-cli-triage.