Hello @Dhanavath Vishnu ,
welcome to this moderated Azure community forum.
It seems you want to get a list of all Azure IoT Hub configurations via code so you can automate the output.
It seems you can get all configuration using this Rest API call.
An individual configuration can be extracted using this call.
The CLI equivalents are this for the list and this for the individual configuration.
Notice, I tried the "LIST" CLI version but the response was empty. I also checked the same "LIST" command with --debug which showed the underlying REST API calls. There, I could see the actual configurations.
The "SHOW" CLI command gave me a response for the right layer so that command is working:
It's not clear to me why this "LIST" command fails to create a valid response. Hopefully, you are more successful.
Therefor, I recommend relying on the REST API calls (with the --debug output as an example) because these seem te work alright.
With those JSON responses, you can build up your own report.
If the response helped, do "Accept Answer". If it doesn't work, please let us know the progress. All community members with similar issues will benefit by doing so. Your contribution is highly appreciated.