ManagementAssociationArgs

data class ManagementAssociationArgs(val location: Output<String>? = null, val managementAssociationName: Output<String>? = null, val properties: Output<ManagementAssociationPropertiesArgs>? = null, val providerName: Output<String>? = null, val resourceGroupName: Output<String>? = null, val resourceName: Output<String>? = null, val resourceType: Output<String>? = null) : ConvertibleToJava<ManagementAssociationArgs>

The container for solution. API Version: 2015-11-01-preview.

Example Usage

SolutionCreate

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var managementAssociation = new AzureNative.OperationsManagement.ManagementAssociation("managementAssociation", new()
{
Location = "East US",
ManagementAssociationName = "managementAssociation1",
Properties = new AzureNative.OperationsManagement.Inputs.ManagementAssociationPropertiesArgs
{
ApplicationId = "/subscriptions/sub1/resourcegroups/rg1/providers/Microsoft.Appliance/Appliances/appliance1",
},
ProviderName = "providerName",
ResourceGroupName = "rg1",
ResourceName = "resourceName",
ResourceType = "resourceType",
});
});
package main
import (
operationsmanagement "github.com/pulumi/pulumi-azure-native-sdk/operationsmanagement"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := operationsmanagement.NewManagementAssociation(ctx, "managementAssociation", &operationsmanagement.ManagementAssociationArgs{
Location: pulumi.String("East US"),
ManagementAssociationName: pulumi.String("managementAssociation1"),
Properties: &operationsmanagement.ManagementAssociationPropertiesArgs{
ApplicationId: pulumi.String("/subscriptions/sub1/resourcegroups/rg1/providers/Microsoft.Appliance/Appliances/appliance1"),
},
ProviderName: pulumi.String("providerName"),
ResourceGroupName: pulumi.String("rg1"),
ResourceName: pulumi.String("resourceName"),
ResourceType: pulumi.String("resourceType"),
})
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.operationsmanagement.ManagementAssociation;
import com.pulumi.azurenative.operationsmanagement.ManagementAssociationArgs;
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 managementAssociation = new ManagementAssociation("managementAssociation", ManagementAssociationArgs.builder()
.location("East US")
.managementAssociationName("managementAssociation1")
.properties(Map.of("applicationId", "/subscriptions/sub1/resourcegroups/rg1/providers/Microsoft.Appliance/Appliances/appliance1"))
.providerName("providerName")
.resourceGroupName("rg1")
.resourceName("resourceName")
.resourceType("resourceType")
.build());
}
}

Import

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

$ pulumi import azure-native:operationsmanagement:ManagementAssociation managementAssociation1 /subscriptions/subid/resourcegroups/rg1/providers/Microsoft.OperationalInsights/workspaces/ws1/Microsoft.OperationsManagement/ManagementAssociations/managementAssociation1

Constructors

Link copied to clipboard
constructor(location: Output<String>? = null, managementAssociationName: Output<String>? = null, properties: Output<ManagementAssociationPropertiesArgs>? = null, providerName: Output<String>? = null, resourceGroupName: Output<String>? = null, resourceName: Output<String>? = null, resourceType: Output<String>? = null)

Properties

Link copied to clipboard
val location: Output<String>? = null

Resource location

Link copied to clipboard
val managementAssociationName: Output<String>? = null

User ManagementAssociation Name.

Link copied to clipboard

Properties for ManagementAssociation object supported by the OperationsManagement resource provider.

Link copied to clipboard
val providerName: Output<String>? = null

Provider name for the parent resource.

Link copied to clipboard
val resourceGroupName: Output<String>? = null

The name of the resource group to get. The name is case insensitive.

Link copied to clipboard
val resourceName: Output<String>? = null

Parent resource name.

Link copied to clipboard
val resourceType: Output<String>? = null

Resource type for the parent resource

Functions

Link copied to clipboard
open override fun toJava(): ManagementAssociationArgs