azure-iot-cli-extension | Azure IoT extension for Azure CLI | Azure library
kandi X-RAY | azure-iot-cli-extension Summary
kandi X-RAY | azure-iot-cli-extension Summary
The Azure IoT extension for Azure CLI aims to accelerate the development, management and automation of Azure IoT solutions. It does this via addition of rich features and functionality to the official Azure CLI.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Update a TDDS device enrollment
- Serialize data to URL
- Return a PairCollection instance
- Remove None values from a dict
- Update a device enrollment group
- Return an instance of the SDK
- Constructs the SDK map
- Find the target for a resource
- List all instances in a resource group
- Create a device enrollment
- List private links
- Updates a scheduled job
- Load help for the DigitalTwins instance
- Deletes a relationship
- List accounts by resource group
- List all private endpoints in a resource group
- Return the help for the device update
- List private endpoints
- Adds a new event route
- List operation operations
- Load the help for the IoT hub
- List operation statuses
- Adds a relationship to a relationship
- Adds a new twin
- List devices
- Create a device enrollment group
azure-iot-cli-extension Key Features
azure-iot-cli-extension Examples and Code Snippets
Community Discussions
Trending Discussions on azure-iot-cli-extension
QUESTION
I have an Azure IoT Hub with a bunch of devices that our team's E2E tests generate. I want to purge the Hub every once in a while using the Azure CLI.
I am running the Azure CLI locally on Powershell, using the Azure IoT extension.
From my research, there is a way to get a list of all the devices in a hub printed to the console in JSON format:
...ANSWER
Answered 2019-Jun-12 at 17:19This does not seem possible today with just one command. The underlying REST interface (which is what the cli and everything else uses) also does not have a bulk delete: https://docs.microsoft.com/en-us/rest/api/iothub/service/deletedevice
The IoT extension Github has some automation samples: https://github.com/Azure/azure-iot-cli-extension/blob/dev/docs/scenario-automation.md
There they mass-create devices using a simple for loop. You can probably reuse some of that and combine it with the az iot hub device-identity list
command
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install azure-iot-cli-extension
Install the Azure CLI You must have at least v2.3.1, which you can verify with az --version
Add, Update or Remove the IoT extension with the following commands: Add: az extension add --name azure-iot Update: az extension update --name azure-iot Remove: az extension remove --name azure-iot
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page