ArmIotHubModelFactory.IotHubLocationDescription Method

Definition

Initializes a new instance of IotHubLocationDescription.

public static Azure.ResourceManager.IotHub.Models.IotHubLocationDescription IotHubLocationDescription (Azure.Core.AzureLocation? location = default, Azure.ResourceManager.IotHub.Models.IotHubReplicaRoleType? role = default);
static member IotHubLocationDescription : Nullable<Azure.Core.AzureLocation> * Nullable<Azure.ResourceManager.IotHub.Models.IotHubReplicaRoleType> -> Azure.ResourceManager.IotHub.Models.IotHubLocationDescription
Public Shared Function IotHubLocationDescription (Optional location As Nullable(Of AzureLocation) = Nothing, Optional role As Nullable(Of IotHubReplicaRoleType) = Nothing) As IotHubLocationDescription

Parameters

location
Nullable<AzureLocation>

The name of the Azure region.

role
Nullable<IotHubReplicaRoleType>

The role of the region, can be either primary or secondary. The primary region is where the IoT hub is currently provisioned. The secondary region is the Azure disaster recovery (DR) paired region and also the region where the IoT hub can failover to.

Returns

A new IotHubLocationDescription instance for mocking.

Applies to