Missing Azure REST APIs. Need not Worry

Today I came across a situation where I had to automate the process of creating and setting up an Azure IoT Central solution entirely using Azure REST APIs and found they are not available or not documented as of May 14th, 2021. However, you would de…


This content originally appeared on DEV Community and was authored by Ilyas F

Alt Text

Today I came across a situation where I had to automate the process of creating and setting up an Azure IoT Central solution entirely using Azure REST APIs and found they are not available or not documented as of May 14th, 2021. However, you would definitely find AZ CLI commands available, finding the REST APIs for the specific action is very simple.

Azure IoT Central - AZ CLI commands
Azure IoT Central - REST API reference

This gap might be fixed when you read this article in the future, so I highly recommend to refer the Azure IoT Central - REST API reference to check if the APIs are documented.

The Solution - AZ CLI to the rescue

Login to your AZ CLI and set the default subscription.

az login
az account set -s <<subscription name or id>>

Next fire the respective AZ CLI command that you didn't find the REST API, in my case creating a new Azure IoT Central App with the --debug argument.

az iot central app create --name myiotcentral001
                          --resource-group rg_iotcentral
                          --subdomain myiotcentral001
                          --debug

This will generate a lot of debugging statements, but give your attention to the lines where it makes a call to the REST API. Refer to the below screenshot.

Alt Text

So you know, how to find the REST APIs of Azure!
Happy Azure!


This content originally appeared on DEV Community and was authored by Ilyas F


Print Share Comment Cite Upload Translate Updates
APA

Ilyas F | Sciencx (2021-05-14T17:10:52+00:00) Missing Azure REST APIs. Need not Worry. Retrieved from https://www.scien.cx/2021/05/14/missing-azure-rest-apis-need-not-worry/

MLA
" » Missing Azure REST APIs. Need not Worry." Ilyas F | Sciencx - Friday May 14, 2021, https://www.scien.cx/2021/05/14/missing-azure-rest-apis-need-not-worry/
HARVARD
Ilyas F | Sciencx Friday May 14, 2021 » Missing Azure REST APIs. Need not Worry., viewed ,<https://www.scien.cx/2021/05/14/missing-azure-rest-apis-need-not-worry/>
VANCOUVER
Ilyas F | Sciencx - » Missing Azure REST APIs. Need not Worry. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2021/05/14/missing-azure-rest-apis-need-not-worry/
CHICAGO
" » Missing Azure REST APIs. Need not Worry." Ilyas F | Sciencx - Accessed . https://www.scien.cx/2021/05/14/missing-azure-rest-apis-need-not-worry/
IEEE
" » Missing Azure REST APIs. Need not Worry." Ilyas F | Sciencx [Online]. Available: https://www.scien.cx/2021/05/14/missing-azure-rest-apis-need-not-worry/. [Accessed: ]
rf:citation
» Missing Azure REST APIs. Need not Worry | Ilyas F | Sciencx | https://www.scien.cx/2021/05/14/missing-azure-rest-apis-need-not-worry/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.