Endpoint Servicebus Queue Args
Manages an IotHub ServiceBus Queue Endpoint
Note: Endpoints can be defined either directly on the
azure.iot.IoTHub
resource, or using theazurerm_iothub_endpoint_*
resources - but the two ways of defining the endpoints cannot be used together. If both are used against the same IoTHub, spurious changes will occur. Also, defining aazurerm_iothub_endpoint_*
resource and another endpoint of a different type directly on theazure.iot.IoTHub
resource is not supported.
Example Usage
resources:
example:
type: azure:core:ResourceGroup
properties:
name: example-resources
location: West Europe
exampleNamespace:
type: azure:servicebus:Namespace
name: example
properties:
name: exampleNamespace
location: ${example.location}
resourceGroupName: ${example.name}
sku: Standard
exampleQueue:
type: azure:servicebus:Queue
name: example
properties:
name: exampleQueue
namespaceId: ${exampleNamespace.id}
enablePartitioning: true
exampleQueueAuthorizationRule:
type: azure:servicebus:QueueAuthorizationRule
name: example
properties:
name: exampleRule
queueId: ${exampleQueue.id}
listen: false
send: true
manage: false
exampleIoTHub:
type: azure:iot:IoTHub
name: example
properties:
name: exampleIothub
resourceGroupName: ${example.name}
location: ${example.location}
sku:
name: B1
capacity: '1'
tags:
purpose: example
exampleEndpointServicebusQueue:
type: azure:iot:EndpointServicebusQueue
name: example
properties:
resourceGroupName: ${example.name}
iothubId: ${exampleIoTHub.id}
name: example
connectionString: ${exampleQueueAuthorizationRule.primaryConnectionString}
Import
IoTHub ServiceBus Queue Endpoint can be imported using the resource id
, e.g. g
$ pulumi import azure:iot/endpointServicebusQueue:EndpointServicebusQueue servicebus_queue1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Devices/iotHubs/hub1/endpoints/servicebusqueue_endpoint1
Constructors
Properties
Type used to authenticate against the Service Bus Queue endpoint. Possible values are keyBased
and identityBased
. Defaults to keyBased
.
The connection string for the endpoint. This attribute can only be specified and is mandatory when authentication_type
is keyBased
.
URI of the Service Bus endpoint. This attribute can only be specified and is mandatory when authentication_type
is identityBased
.
Name of the Service Bus Queue. This attribute can only be specified and is mandatory when authentication_type
is identityBased
.
ID of the User Managed Identity used to authenticate against the Service Bus Queue endpoint.
The name of the resource group under which the Service Bus Queue has been created. Changing this forces a new resource to be created.