Broker Listener Args
Instance broker resource Uses Azure REST API version 2024-11-01. In version 2.x of the Azure Native provider, it used API version 2024-07-01-preview. Other available API versions: 2024-07-01-preview, 2024-08-15-preview, 2024-09-15-preview, 2025-04-01. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native iotoperations [ApiVersion]
. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.
Example Usage
BrokerListener_CreateOrUpdate
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var brokerListener = new AzureNative.IoTOperations.BrokerListener("brokerListener", new()
{
BrokerName = "resource-name123",
ExtendedLocation = new AzureNative.IoTOperations.Inputs.ExtendedLocationArgs
{
Name = "qmbrfwcpwwhggszhrdjv",
Type = AzureNative.IoTOperations.ExtendedLocationType.CustomLocation,
},
InstanceName = "resource-name123",
ListenerName = "resource-name123",
Properties = new AzureNative.IoTOperations.Inputs.BrokerListenerPropertiesArgs
{
Ports = new[]
{
new AzureNative.IoTOperations.Inputs.ListenerPortArgs
{
AuthenticationRef = "tjvdroaqqy",
AuthorizationRef = "inxhvxnwswyrvt",
NodePort = 7281,
Port = 1268,
Protocol = AzureNative.IoTOperations.BrokerProtocolType.Mqtt,
Tls = new AzureNative.IoTOperations.Inputs.TlsCertMethodArgs
{
CertManagerCertificateSpec = new AzureNative.IoTOperations.Inputs.CertManagerCertificateSpecArgs
{
Duration = "qmpeffoksron",
IssuerRef = new AzureNative.IoTOperations.Inputs.CertManagerIssuerRefArgs
{
Group = "jtmuladdkpasfpoyvewekmiy",
Kind = AzureNative.IoTOperations.CertManagerIssuerKind.Issuer,
Name = "ocwoqpgucvjrsuudtjhb",
},
PrivateKey = new AzureNative.IoTOperations.Inputs.CertManagerPrivateKeyArgs
{
Algorithm = AzureNative.IoTOperations.PrivateKeyAlgorithm.Ec256,
RotationPolicy = AzureNative.IoTOperations.PrivateKeyRotationPolicy.Always,
},
RenewBefore = "hutno",
San = new AzureNative.IoTOperations.Inputs.SanForCertArgs
{
Dns = new[]
{
"xhvmhrrhgfsapocjeebqtnzarlj",
},
Ip = new[]
{
"zbgugfzcgsmegevzktsnibyuyp",
},
},
SecretName = "oagi",
},
Manual = new AzureNative.IoTOperations.Inputs.X509ManualCertificateArgs
{
SecretRef = "secret-name",
},
Mode = AzureNative.IoTOperations.TlsCertMethodMode.Automatic,
},
},
},
ServiceName = "tpfiszlapdpxktx",
ServiceType = AzureNative.IoTOperations.ServiceType.ClusterIp,
},
ResourceGroupName = "rgiotoperations",
});
});
package main
import (
iotoperations "github.com/pulumi/pulumi-azure-native-sdk/iotoperations/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := iotoperations.NewBrokerListener(ctx, "brokerListener", &iotoperations.BrokerListenerArgs{
BrokerName: pulumi.String("resource-name123"),
ExtendedLocation: &iotoperations.ExtendedLocationArgs{
Name: pulumi.String("qmbrfwcpwwhggszhrdjv"),
Type: pulumi.String(iotoperations.ExtendedLocationTypeCustomLocation),
},
InstanceName: pulumi.String("resource-name123"),
ListenerName: pulumi.String("resource-name123"),
Properties: &iotoperations.BrokerListenerPropertiesArgs{
Ports: iotoperations.ListenerPortArray{
&iotoperations.ListenerPortArgs{
AuthenticationRef: pulumi.String("tjvdroaqqy"),
AuthorizationRef: pulumi.String("inxhvxnwswyrvt"),
NodePort: pulumi.Int(7281),
Port: pulumi.Int(1268),
Protocol: pulumi.String(iotoperations.BrokerProtocolTypeMqtt),
Tls: &iotoperations.TlsCertMethodArgs{
CertManagerCertificateSpec: &iotoperations.CertManagerCertificateSpecArgs{
Duration: pulumi.String("qmpeffoksron"),
IssuerRef: &iotoperations.CertManagerIssuerRefArgs{
Group: pulumi.String("jtmuladdkpasfpoyvewekmiy"),
Kind: pulumi.String(iotoperations.CertManagerIssuerKindIssuer),
Name: pulumi.String("ocwoqpgucvjrsuudtjhb"),
},
PrivateKey: &iotoperations.CertManagerPrivateKeyArgs{
Algorithm: pulumi.String(iotoperations.PrivateKeyAlgorithmEc256),
RotationPolicy: pulumi.String(iotoperations.PrivateKeyRotationPolicyAlways),
},
RenewBefore: pulumi.String("hutno"),
San: &iotoperations.SanForCertArgs{
Dns: pulumi.StringArray{
pulumi.String("xhvmhrrhgfsapocjeebqtnzarlj"),
},
Ip: pulumi.StringArray{
pulumi.String("zbgugfzcgsmegevzktsnibyuyp"),
},
},
SecretName: pulumi.String("oagi"),
},
Manual: &iotoperations.X509ManualCertificateArgs{
SecretRef: pulumi.String("secret-name"),
},
Mode: pulumi.String(iotoperations.TlsCertMethodModeAutomatic),
},
},
},
ServiceName: pulumi.String("tpfiszlapdpxktx"),
ServiceType: pulumi.String(iotoperations.ServiceTypeClusterIp),
},
ResourceGroupName: pulumi.String("rgiotoperations"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.iotoperations.BrokerListener;
import com.pulumi.azurenative.iotoperations.BrokerListenerArgs;
import com.pulumi.azurenative.iotoperations.inputs.ExtendedLocationArgs;
import com.pulumi.azurenative.iotoperations.inputs.BrokerListenerPropertiesArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var brokerListener = new BrokerListener("brokerListener", BrokerListenerArgs.builder()
.brokerName("resource-name123")
.extendedLocation(ExtendedLocationArgs.builder()
.name("qmbrfwcpwwhggszhrdjv")
.type("CustomLocation")
.build())
.instanceName("resource-name123")
.listenerName("resource-name123")
.properties(BrokerListenerPropertiesArgs.builder()
.ports(ListenerPortArgs.builder()
.authenticationRef("tjvdroaqqy")
.authorizationRef("inxhvxnwswyrvt")
.nodePort(7281)
.port(1268)
.protocol("Mqtt")
.tls(TlsCertMethodArgs.builder()
.certManagerCertificateSpec(CertManagerCertificateSpecArgs.builder()
.duration("qmpeffoksron")
.issuerRef(CertManagerIssuerRefArgs.builder()
.group("jtmuladdkpasfpoyvewekmiy")
.kind("Issuer")
.name("ocwoqpgucvjrsuudtjhb")
.build())
.privateKey(CertManagerPrivateKeyArgs.builder()
.algorithm("Ec256")
.rotationPolicy("Always")
.build())
.renewBefore("hutno")
.san(SanForCertArgs.builder()
.dns("xhvmhrrhgfsapocjeebqtnzarlj")
.ip("zbgugfzcgsmegevzktsnibyuyp")
.build())
.secretName("oagi")
.build())
.manual(X509ManualCertificateArgs.builder()
.secretRef("secret-name")
.build())
.mode("Automatic")
.build())
.build())
.serviceName("tpfiszlapdpxktx")
.serviceType("ClusterIp")
.build())
.resourceGroupName("rgiotoperations")
.build());
}
}
BrokerListener_CreateOrUpdate_Complex
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var brokerListener = new AzureNative.IoTOperations.BrokerListener("brokerListener", new()
{
BrokerName = "resource-name123",
ExtendedLocation = new AzureNative.IoTOperations.Inputs.ExtendedLocationArgs
{
Name = "qmbrfwcpwwhggszhrdjv",
Type = AzureNative.IoTOperations.ExtendedLocationType.CustomLocation,
},
InstanceName = "resource-name123",
ListenerName = "resource-name123",
Properties = new AzureNative.IoTOperations.Inputs.BrokerListenerPropertiesArgs
{
Ports = new[]
{
new AzureNative.IoTOperations.Inputs.ListenerPortArgs
{
AuthenticationRef = "example-authentication",
Port = 8080,
Protocol = AzureNative.IoTOperations.BrokerProtocolType.WebSockets,
},
new AzureNative.IoTOperations.Inputs.ListenerPortArgs
{
AuthenticationRef = "example-authentication",
Port = 8443,
Protocol = AzureNative.IoTOperations.BrokerProtocolType.WebSockets,
Tls = new AzureNative.IoTOperations.Inputs.TlsCertMethodArgs
{
CertManagerCertificateSpec = new AzureNative.IoTOperations.Inputs.CertManagerCertificateSpecArgs
{
IssuerRef = new AzureNative.IoTOperations.Inputs.CertManagerIssuerRefArgs
{
Group = "jtmuladdkpasfpoyvewekmiy",
Kind = AzureNative.IoTOperations.CertManagerIssuerKind.Issuer,
Name = "example-issuer",
},
},
Mode = AzureNative.IoTOperations.TlsCertMethodMode.Automatic,
},
},
new AzureNative.IoTOperations.Inputs.ListenerPortArgs
{
AuthenticationRef = "example-authentication",
Port = 1883,
},
new AzureNative.IoTOperations.Inputs.ListenerPortArgs
{
AuthenticationRef = "example-authentication",
Port = 8883,
Tls = new AzureNative.IoTOperations.Inputs.TlsCertMethodArgs
{
Manual = new AzureNative.IoTOperations.Inputs.X509ManualCertificateArgs
{
SecretRef = "example-secret",
},
Mode = AzureNative.IoTOperations.TlsCertMethodMode.Manual,
},
},
},
ServiceType = AzureNative.IoTOperations.ServiceType.LoadBalancer,
},
ResourceGroupName = "rgiotoperations",
});
});
package main
import (
iotoperations "github.com/pulumi/pulumi-azure-native-sdk/iotoperations/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := iotoperations.NewBrokerListener(ctx, "brokerListener", &iotoperations.BrokerListenerArgs{
BrokerName: pulumi.String("resource-name123"),
ExtendedLocation: &iotoperations.ExtendedLocationArgs{
Name: pulumi.String("qmbrfwcpwwhggszhrdjv"),
Type: pulumi.String(iotoperations.ExtendedLocationTypeCustomLocation),
},
InstanceName: pulumi.String("resource-name123"),
ListenerName: pulumi.String("resource-name123"),
Properties: &iotoperations.BrokerListenerPropertiesArgs{
Ports: iotoperations.ListenerPortArray{
&iotoperations.ListenerPortArgs{
AuthenticationRef: pulumi.String("example-authentication"),
Port: pulumi.Int(8080),
Protocol: pulumi.String(iotoperations.BrokerProtocolTypeWebSockets),
},
&iotoperations.ListenerPortArgs{
AuthenticationRef: pulumi.String("example-authentication"),
Port: pulumi.Int(8443),
Protocol: pulumi.String(iotoperations.BrokerProtocolTypeWebSockets),
Tls: &iotoperations.TlsCertMethodArgs{
CertManagerCertificateSpec: &iotoperations.CertManagerCertificateSpecArgs{
IssuerRef: &iotoperations.CertManagerIssuerRefArgs{
Group: pulumi.String("jtmuladdkpasfpoyvewekmiy"),
Kind: pulumi.String(iotoperations.CertManagerIssuerKindIssuer),
Name: pulumi.String("example-issuer"),
},
},
Mode: pulumi.String(iotoperations.TlsCertMethodModeAutomatic),
},
},
&iotoperations.ListenerPortArgs{
AuthenticationRef: pulumi.String("example-authentication"),
Port: pulumi.Int(1883),
},
&iotoperations.ListenerPortArgs{
AuthenticationRef: pulumi.String("example-authentication"),
Port: pulumi.Int(8883),
Tls: &iotoperations.TlsCertMethodArgs{
Manual: &iotoperations.X509ManualCertificateArgs{
SecretRef: pulumi.String("example-secret"),
},
Mode: pulumi.String(iotoperations.TlsCertMethodModeManual),
},
},
},
ServiceType: pulumi.String(iotoperations.ServiceTypeLoadBalancer),
},
ResourceGroupName: pulumi.String("rgiotoperations"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.iotoperations.BrokerListener;
import com.pulumi.azurenative.iotoperations.BrokerListenerArgs;
import com.pulumi.azurenative.iotoperations.inputs.ExtendedLocationArgs;
import com.pulumi.azurenative.iotoperations.inputs.BrokerListenerPropertiesArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var brokerListener = new BrokerListener("brokerListener", BrokerListenerArgs.builder()
.brokerName("resource-name123")
.extendedLocation(ExtendedLocationArgs.builder()
.name("qmbrfwcpwwhggszhrdjv")
.type("CustomLocation")
.build())
.instanceName("resource-name123")
.listenerName("resource-name123")
.properties(BrokerListenerPropertiesArgs.builder()
.ports(
ListenerPortArgs.builder()
.authenticationRef("example-authentication")
.port(8080)
.protocol("WebSockets")
.build(),
ListenerPortArgs.builder()
.authenticationRef("example-authentication")
.port(8443)
.protocol("WebSockets")
.tls(TlsCertMethodArgs.builder()
.certManagerCertificateSpec(CertManagerCertificateSpecArgs.builder()
.issuerRef(CertManagerIssuerRefArgs.builder()
.group("jtmuladdkpasfpoyvewekmiy")
.kind("Issuer")
.name("example-issuer")
.build())
.build())
.mode("Automatic")
.build())
.build(),
ListenerPortArgs.builder()
.authenticationRef("example-authentication")
.port(1883)
.build(),
ListenerPortArgs.builder()
.authenticationRef("example-authentication")
.port(8883)
.tls(TlsCertMethodArgs.builder()
.manual(X509ManualCertificateArgs.builder()
.secretRef("example-secret")
.build())
.mode("Manual")
.build())
.build())
.serviceType("LoadBalancer")
.build())
.resourceGroupName("rgiotoperations")
.build());
}
}
BrokerListener_CreateOrUpdate_Simple
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var brokerListener = new AzureNative.IoTOperations.BrokerListener("brokerListener", new()
{
BrokerName = "resource-name123",
ExtendedLocation = new AzureNative.IoTOperations.Inputs.ExtendedLocationArgs
{
Name = "qmbrfwcpwwhggszhrdjv",
Type = AzureNative.IoTOperations.ExtendedLocationType.CustomLocation,
},
InstanceName = "resource-name123",
ListenerName = "resource-name123",
Properties = new AzureNative.IoTOperations.Inputs.BrokerListenerPropertiesArgs
{
Ports = new[]
{
new AzureNative.IoTOperations.Inputs.ListenerPortArgs
{
Port = 1883,
},
},
},
ResourceGroupName = "rgiotoperations",
});
});
package main
import (
iotoperations "github.com/pulumi/pulumi-azure-native-sdk/iotoperations/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := iotoperations.NewBrokerListener(ctx, "brokerListener", &iotoperations.BrokerListenerArgs{
BrokerName: pulumi.String("resource-name123"),
ExtendedLocation: &iotoperations.ExtendedLocationArgs{
Name: pulumi.String("qmbrfwcpwwhggszhrdjv"),
Type: pulumi.String(iotoperations.ExtendedLocationTypeCustomLocation),
},
InstanceName: pulumi.String("resource-name123"),
ListenerName: pulumi.String("resource-name123"),
Properties: &iotoperations.BrokerListenerPropertiesArgs{
Ports: iotoperations.ListenerPortArray{
&iotoperations.ListenerPortArgs{
Port: pulumi.Int(1883),
},
},
},
ResourceGroupName: pulumi.String("rgiotoperations"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.iotoperations.BrokerListener;
import com.pulumi.azurenative.iotoperations.BrokerListenerArgs;
import com.pulumi.azurenative.iotoperations.inputs.ExtendedLocationArgs;
import com.pulumi.azurenative.iotoperations.inputs.BrokerListenerPropertiesArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var brokerListener = new BrokerListener("brokerListener", BrokerListenerArgs.builder()
.brokerName("resource-name123")
.extendedLocation(ExtendedLocationArgs.builder()
.name("qmbrfwcpwwhggszhrdjv")
.type("CustomLocation")
.build())
.instanceName("resource-name123")
.listenerName("resource-name123")
.properties(BrokerListenerPropertiesArgs.builder()
.ports(ListenerPortArgs.builder()
.port(1883)
.build())
.build())
.resourceGroupName("rgiotoperations")
.build());
}
}
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:iotoperations:BrokerListener hoqjaachratt /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/brokers/{brokerName}/listeners/{listenerName}
Constructors
Properties
Name of broker.
Edge location of the resource.
Name of instance.
Name of Instance broker listener resource
The resource-specific properties for this resource.
The name of the resource group. The name is case insensitive.