Skip to main content

iot_hubs

Creates, updates, deletes, gets or lists an iot_hubs resource.

Overview

Nameiot_hubs
TypeResource
Idazure.iot_hub.iot_hubs

Fields

The following fields are returned by SELECT queries:

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
manual_failoverexeciotHubName, subscriptionId, resourceGroupName, failoverRegionapi-versionManually initiate a failover for the IoT Hub to its secondary region. To learn more, see https://aka.ms/manualfailover

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
iotHubNamestringName of the IoT hub to failover
resourceGroupNamestringName of the resource group containing the IoT hub resource
subscriptionIdstringThe subscription identifier.
api-versionstringThe version of the API.

Lifecycle Methods

Manually initiate a failover for the IoT Hub to its secondary region. To learn more, see https://aka.ms/manualfailover

EXEC azure.iot_hub.iot_hubs.manual_failover 
@iotHubName='{{ iotHubName }}' --required,
@subscriptionId='{{ subscriptionId }}' --required,
@resourceGroupName='{{ resourceGroupName }}' --required,
@api-version='{{ api-version }}'
@@json=
'{
"failoverRegion": "{{ failoverRegion }}"
}'
;