Welcome to Pulumi Registry, your window into the cloud. Read the announcement.

Azure Native

v1.42.0 published on Monday, Oct 25, 2021 by Pulumi

GuestDiagnosticsSettingsAssociation

Virtual machine guest diagnostic settings resource. API Version: 2018-06-01-preview.

Example Usage

Create or update an guest diagnostic settings association

using Pulumi;
using AzureNative = Pulumi.AzureNative;

class MyStack : Stack
{
    public MyStack()
    {
        var guestDiagnosticsSettingsAssociation = new AzureNative.Insights.GuestDiagnosticsSettingsAssociation("guestDiagnosticsSettingsAssociation", new AzureNative.Insights.GuestDiagnosticsSettingsAssociationArgs
        {
            AssociationName = "healthSystemMachineConfigAssociation",
            GuestDiagnosticSettingsName = "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-Association-ResourceGroup/providers/providers/microsoft.insights/guestDiagnosticSettings/vmSettingForSecurity",
            Location = "Global",
            ResourceUri = "subscriptions/8498f01b-8064-4e37-856e-318f3c6c685f/resourceGroups/healthsystem/providers/Microsoft.Compute/virtualMachines/eastussojai",
            Tags = ,
        });
    }

}

package main

import (
	insights "github.com/pulumi/pulumi-azure-native/sdk/go/azure/insights"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := insights.NewGuestDiagnosticsSettingsAssociation(ctx, "guestDiagnosticsSettingsAssociation", &insights.GuestDiagnosticsSettingsAssociationArgs{
			AssociationName:             pulumi.String("healthSystemMachineConfigAssociation"),
			GuestDiagnosticSettingsName: pulumi.String("/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-Association-ResourceGroup/providers/providers/microsoft.insights/guestDiagnosticSettings/vmSettingForSecurity"),
			Location:                    pulumi.String("Global"),
			ResourceUri:                 pulumi.String("subscriptions/8498f01b-8064-4e37-856e-318f3c6c685f/resourceGroups/healthsystem/providers/Microsoft.Compute/virtualMachines/eastussojai"),
			Tags:                        nil,
		})
		if err != nil {
			return err
		}
		return nil
	})
}

import pulumi
import pulumi_azure_native as azure_native

guest_diagnostics_settings_association = azure_native.insights.GuestDiagnosticsSettingsAssociation("guestDiagnosticsSettingsAssociation",
    association_name="healthSystemMachineConfigAssociation",
    guest_diagnostic_settings_name="/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-Association-ResourceGroup/providers/providers/microsoft.insights/guestDiagnosticSettings/vmSettingForSecurity",
    location="Global",
    resource_uri="subscriptions/8498f01b-8064-4e37-856e-318f3c6c685f/resourceGroups/healthsystem/providers/Microsoft.Compute/virtualMachines/eastussojai",
    tags={})

import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const guestDiagnosticsSettingsAssociation = new azure_native.insights.GuestDiagnosticsSettingsAssociation("guestDiagnosticsSettingsAssociation", {
    associationName: "healthSystemMachineConfigAssociation",
    guestDiagnosticSettingsName: "/subscriptions/187f412d-1758-44d9-b052-169e2564721d/resourceGroups/Default-Association-ResourceGroup/providers/providers/microsoft.insights/guestDiagnosticSettings/vmSettingForSecurity",
    location: "Global",
    resourceUri: "subscriptions/8498f01b-8064-4e37-856e-318f3c6c685f/resourceGroups/healthsystem/providers/Microsoft.Compute/virtualMachines/eastussojai",
    tags: {},
});

Create a GuestDiagnosticsSettingsAssociation Resource

new GuestDiagnosticsSettingsAssociation(name: string, args: GuestDiagnosticsSettingsAssociationArgs, opts?: CustomResourceOptions);
@overload
def GuestDiagnosticsSettingsAssociation(resource_name: str,
                                        opts: Optional[ResourceOptions] = None,
                                        association_name: Optional[str] = None,
                                        guest_diagnostic_settings_name: Optional[str] = None,
                                        location: Optional[str] = None,
                                        resource_uri: Optional[str] = None,
                                        tags: Optional[Mapping[str, str]] = None)
@overload
def GuestDiagnosticsSettingsAssociation(resource_name: str,
                                        args: GuestDiagnosticsSettingsAssociationArgs,
                                        opts: Optional[ResourceOptions] = None)
func NewGuestDiagnosticsSettingsAssociation(ctx *Context, name string, args GuestDiagnosticsSettingsAssociationArgs, opts ...ResourceOption) (*GuestDiagnosticsSettingsAssociation, error)
public GuestDiagnosticsSettingsAssociation(string name, GuestDiagnosticsSettingsAssociationArgs args, CustomResourceOptions? opts = null)
name string
The unique name of the resource.
args GuestDiagnosticsSettingsAssociationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args GuestDiagnosticsSettingsAssociationArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args GuestDiagnosticsSettingsAssociationArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args GuestDiagnosticsSettingsAssociationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

GuestDiagnosticsSettingsAssociation Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The GuestDiagnosticsSettingsAssociation resource accepts the following input properties:

GuestDiagnosticSettingsName string
The guest diagnostic settings name.
ResourceUri string
The fully qualified ID of the resource, including the resource name and resource type.
AssociationName string
The name of the diagnostic settings association.
Location string
Resource location
Tags Dictionary<string, string>
Resource tags
GuestDiagnosticSettingsName string
The guest diagnostic settings name.
ResourceUri string
The fully qualified ID of the resource, including the resource name and resource type.
AssociationName string
The name of the diagnostic settings association.
Location string
Resource location
Tags map[string]string
Resource tags
guestDiagnosticSettingsName string
The guest diagnostic settings name.
resourceUri string
The fully qualified ID of the resource, including the resource name and resource type.
associationName string
The name of the diagnostic settings association.
location string
Resource location
tags {[key: string]: string}
Resource tags
guest_diagnostic_settings_name str
The guest diagnostic settings name.
resource_uri str
The fully qualified ID of the resource, including the resource name and resource type.
association_name str
The name of the diagnostic settings association.
location str
Resource location
tags Mapping[str, str]
Resource tags

Outputs

All input properties are implicitly available as output properties. Additionally, the GuestDiagnosticsSettingsAssociation resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Name string
Azure resource name
Type string
Azure resource type
Id string
The provider-assigned unique ID for this managed resource.
Name string
Azure resource name
Type string
Azure resource type
id string
The provider-assigned unique ID for this managed resource.
name string
Azure resource name
type string
Azure resource type
id str
The provider-assigned unique ID for this managed resource.
name str
Azure resource name
type str
Azure resource type

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:insights:GuestDiagnosticsSettingsAssociation healthSystemMachineConfigAssociation /subscriptions/8498f01b-8064-4e37-856e-318f3c6c685f/resourceGroups/healthsystem/providers/Microsoft.Compute/virtualMachines/eastussojai/providers/microsoft.insights/guestDiagnosticSettingsAssociation/healthSystemMachineConfigAssociation 

Package Details

Repository
https://github.com/pulumi/pulumi-azure-native
License
Apache-2.0