Diagnostic Service
MQ diagnostic services resource Uses Azure REST API version 2023-10-04-preview. In version 2.x of the Azure Native provider, it used API version 2023-10-04-preview.
Example Usage
DiagnosticService_CreateOrUpdate
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var diagnosticService = new AzureNative.IoTOperationsMQ.DiagnosticService("diagnosticService", new()
{
DataExportFrequencySeconds = 26084,
DiagnosticServiceName = "73-1El3-1",
ExtendedLocation = new AzureNative.IoTOperationsMQ.Inputs.ExtendedLocationPropertyArgs
{
Name = "an",
Type = AzureNative.IoTOperationsMQ.ExtendedLocationType.CustomLocation,
},
Image = new AzureNative.IoTOperationsMQ.Inputs.ContainerImageArgs
{
PullPolicy = "imfuzvqxgbdwliqnn",
PullSecrets = "klnqimxqsrdwhcqldjvdtsrs",
Repository = "m",
Tag = "jygfdiamhhm",
},
Location = "sbhavoiabxjpuq",
LogFormat = "i",
LogLevel = "aomqhmpa",
MaxDataStorageSize = 3757017229,
MetricsPort = 37109,
MqName = "6RCAgs-XQ-Y2HsUF2",
OpenTelemetryTracesCollectorAddr = "ggqmprmjlmmkfdpb",
ResourceGroupName = "rgiotoperationsmq",
StaleDataTimeoutSeconds = 51616,
Tags = null,
});
});
Content copied to clipboard
package main
import (
iotoperationsmq "github.com/pulumi/pulumi-azure-native-sdk/iotoperationsmq/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := iotoperationsmq.NewDiagnosticService(ctx, "diagnosticService", &iotoperationsmq.DiagnosticServiceArgs{
DataExportFrequencySeconds: pulumi.Int(26084),
DiagnosticServiceName: pulumi.String("73-1El3-1"),
ExtendedLocation: &iotoperationsmq.ExtendedLocationPropertyArgs{
Name: pulumi.String("an"),
Type: pulumi.String(iotoperationsmq.ExtendedLocationTypeCustomLocation),
},
Image: &iotoperationsmq.ContainerImageArgs{
PullPolicy: pulumi.String("imfuzvqxgbdwliqnn"),
PullSecrets: pulumi.String("klnqimxqsrdwhcqldjvdtsrs"),
Repository: pulumi.String("m"),
Tag: pulumi.String("jygfdiamhhm"),
},
Location: pulumi.String("sbhavoiabxjpuq"),
LogFormat: pulumi.String("i"),
LogLevel: pulumi.String("aomqhmpa"),
MaxDataStorageSize: pulumi.Float64(3757017229),
MetricsPort: pulumi.Int(37109),
MqName: pulumi.String("6RCAgs-XQ-Y2HsUF2"),
OpenTelemetryTracesCollectorAddr: pulumi.String("ggqmprmjlmmkfdpb"),
ResourceGroupName: pulumi.String("rgiotoperationsmq"),
StaleDataTimeoutSeconds: pulumi.Int(51616),
Tags: pulumi.StringMap{},
})
if err != nil {
return err
}
return nil
})
}
Content copied to clipboard
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.iotoperationsmq.DiagnosticService;
import com.pulumi.azurenative.iotoperationsmq.DiagnosticServiceArgs;
import com.pulumi.azurenative.iotoperationsmq.inputs.ExtendedLocationPropertyArgs;
import com.pulumi.azurenative.iotoperationsmq.inputs.ContainerImageArgs;
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 diagnosticService = new DiagnosticService("diagnosticService", DiagnosticServiceArgs.builder()
.dataExportFrequencySeconds(26084)
.diagnosticServiceName("73-1El3-1")
.extendedLocation(ExtendedLocationPropertyArgs.builder()
.name("an")
.type("CustomLocation")
.build())
.image(ContainerImageArgs.builder()
.pullPolicy("imfuzvqxgbdwliqnn")
.pullSecrets("klnqimxqsrdwhcqldjvdtsrs")
.repository("m")
.tag("jygfdiamhhm")
.build())
.location("sbhavoiabxjpuq")
.logFormat("i")
.logLevel("aomqhmpa")
.maxDataStorageSize(3757017229.0)
.metricsPort(37109)
.mqName("6RCAgs-XQ-Y2HsUF2")
.openTelemetryTracesCollectorAddr("ggqmprmjlmmkfdpb")
.resourceGroupName("rgiotoperationsmq")
.staleDataTimeoutSeconds(51616)
.tags(Map.ofEntries(
))
.build());
}
}
Content copied to clipboard
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:iotoperationsmq:DiagnosticService kdpnnlr /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperationsMQ/mq/{mqName}/diagnosticService/{diagnosticServiceName}
Content copied to clipboard
Properties
Link copied to clipboard
The Azure API version of the resource.
Link copied to clipboard
The frequency at which the data will be exported.
Link copied to clipboard
Extended Location
Link copied to clipboard
The details of Diagnostic Service Docker Image.
Link copied to clipboard
The maximum data stored in MiB.
Link copied to clipboard
The port at which metrics is exposed.
Link copied to clipboard
The destination to collect traces. Diagnostic service will push traces to this endpoint
Link copied to clipboard
The status of the last operation.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Metric inactivity timeout.
Link copied to clipboard
Azure Resource Manager metadata containing createdBy and modifiedBy information.