ManagementAssociation

class ManagementAssociation : KotlinCustomResource

The container for solution. Uses Azure REST API version 2015-11-01-preview. In version 2.x of the Azure Native provider, it used 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/v2"
"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 com.pulumi.azurenative.operationsmanagement.inputs.ManagementAssociationPropertiesArgs;
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(ManagementAssociationPropertiesArgs.builder()
.applicationId("/subscriptions/sub1/resourcegroups/rg1/providers/Microsoft.Appliance/Appliances/appliance1")
.build())
.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/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{providerName}/{resourceType}/{resourceName}/providers/Microsoft.OperationsManagement/ManagementAssociations/{managementAssociationName}

Properties

Link copied to clipboard
val azureApiVersion: Output<String>

The Azure API version of the resource.

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

Resource location

Link copied to clipboard
val name: Output<String>

Resource name.

Link copied to clipboard

Properties for ManagementAssociation object supported by the OperationsManagement resource provider.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val type: Output<String>

Resource type.

Link copied to clipboard
val urn: Output<String>