BrokerAuthentication

class BrokerAuthentication : KotlinCustomResource

Instance broker authentication resource Uses Azure REST API version 2024-07-01-preview. Other available API versions: 2024-08-15-preview, 2024-09-15-preview, 2024-11-01, 2025-04-01.

Example Usage

BrokerAuthentication_CreateOrUpdate

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var brokerAuthentication = new AzureNative.IoTOperations.BrokerAuthentication("brokerAuthentication", new()
{
AuthenticationName = "resource-name123",
BrokerName = "aio-broker",
ExtendedLocation = new AzureNative.IoTOperations.Inputs.ExtendedLocationArgs
{
Name = "ycsyubcxttlusbhfdqaynmkaatnbyv",
Type = AzureNative.IoTOperations.ExtendedLocationType.CustomLocation,
},
InstanceName = "aio-instance",
Properties = new AzureNative.IoTOperations.Inputs.BrokerAuthenticationPropertiesArgs
{
AuthenticationMethods = new[]
{
new AzureNative.IoTOperations.Inputs.BrokerAuthenticatorMethodsArgs
{
Method = AzureNative.IoTOperations.BrokerAuthenticationMethod.ServiceAccountToken,
ServiceAccountToken = new AzureNative.IoTOperations.Inputs.BrokerAuthenticatorMethodSatArgs
{
Audiences = new[]
{
"aio-mq",
},
},
},
},
},
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.NewBrokerAuthentication(ctx, "brokerAuthentication", &iotoperations.BrokerAuthenticationArgs{
AuthenticationName: pulumi.String("resource-name123"),
BrokerName: pulumi.String("aio-broker"),
ExtendedLocation: &iotoperations.ExtendedLocationArgs{
Name: pulumi.String("ycsyubcxttlusbhfdqaynmkaatnbyv"),
Type: pulumi.String(iotoperations.ExtendedLocationTypeCustomLocation),
},
InstanceName: pulumi.String("aio-instance"),
Properties: &iotoperations.BrokerAuthenticationPropertiesArgs{
AuthenticationMethods: iotoperations.BrokerAuthenticatorMethodsArray{
&iotoperations.BrokerAuthenticatorMethodsArgs{
Method: pulumi.String(iotoperations.BrokerAuthenticationMethodServiceAccountToken),
ServiceAccountToken: &iotoperations.BrokerAuthenticatorMethodSatArgs{
Audiences: pulumi.StringArray{
pulumi.String("aio-mq"),
},
},
},
},
},
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.BrokerAuthentication;
import com.pulumi.azurenative.iotoperations.BrokerAuthenticationArgs;
import com.pulumi.azurenative.iotoperations.inputs.ExtendedLocationArgs;
import com.pulumi.azurenative.iotoperations.inputs.BrokerAuthenticationPropertiesArgs;
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 brokerAuthentication = new BrokerAuthentication("brokerAuthentication", BrokerAuthenticationArgs.builder()
.authenticationName("resource-name123")
.brokerName("aio-broker")
.extendedLocation(ExtendedLocationArgs.builder()
.name("ycsyubcxttlusbhfdqaynmkaatnbyv")
.type("CustomLocation")
.build())
.instanceName("aio-instance")
.properties(BrokerAuthenticationPropertiesArgs.builder()
.authenticationMethods(BrokerAuthenticatorMethodsArgs.builder()
.method("ServiceAccountToken")
.serviceAccountToken(BrokerAuthenticatorMethodSatArgs.builder()
.audiences("aio-mq")
.build())
.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:BrokerAuthentication gjfyvwhgwouiqfxml /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/brokers/{brokerName}/authentications/{authenticationName}

Properties

Link copied to clipboard

Edge location of the resource.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val name: Output<String>

The name of the resource

Link copied to clipboard

The resource-specific properties for this resource.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Azure Resource Manager metadata containing createdBy and modifiedBy information.

Link copied to clipboard
val type: Output<String>

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Link copied to clipboard
val urn: Output<String>