1. Packages
  2. Azure Native
  3. API Docs
  4. operationsmanagement
  5. ManagementAssociation
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi

azure-native.operationsmanagement.ManagementAssociation

Explore with Pulumi AI

This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi

The container for solution.

Uses Azure REST API version 2015-11-01-preview. In version 1.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",
    });

});
Copy
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
	})
}
Copy
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());

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

const managementAssociation = new azure_native.operationsmanagement.ManagementAssociation("managementAssociation", {
    location: "East US",
    managementAssociationName: "managementAssociation1",
    properties: {
        applicationId: "/subscriptions/sub1/resourcegroups/rg1/providers/Microsoft.Appliance/Appliances/appliance1",
    },
    providerName: "providerName",
    resourceGroupName: "rg1",
    resourceName: "resourceName",
    resourceType: "resourceType",
});
Copy
import pulumi
import pulumi_azure_native as azure_native

management_association = azure_native.operationsmanagement.ManagementAssociation("managementAssociation",
    location="East US",
    management_association_name="managementAssociation1",
    properties={
        "application_id": "/subscriptions/sub1/resourcegroups/rg1/providers/Microsoft.Appliance/Appliances/appliance1",
    },
    provider_name="providerName",
    resource_group_name="rg1",
    resource_name_="resourceName",
    resource_type="resourceType")
Copy
resources:
  managementAssociation:
    type: azure-native:operationsmanagement:ManagementAssociation
    properties:
      location: East US
      managementAssociationName: managementAssociation1
      properties:
        applicationId: /subscriptions/sub1/resourcegroups/rg1/providers/Microsoft.Appliance/Appliances/appliance1
      providerName: providerName
      resourceGroupName: rg1
      resourceName: resourceName
      resourceType: resourceType
Copy

Create ManagementAssociation Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new ManagementAssociation(name: string, args: ManagementAssociationArgs, opts?: CustomResourceOptions);
@overload
def ManagementAssociation(resource_name: str,
                          args: ManagementAssociationArgs,
                          opts: Optional[ResourceOptions] = None)

@overload
def ManagementAssociation(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          provider_name: Optional[str] = None,
                          resource_group_name: Optional[str] = None,
                          resource_name_: Optional[str] = None,
                          resource_type: Optional[str] = None,
                          location: Optional[str] = None,
                          management_association_name: Optional[str] = None,
                          properties: Optional[ManagementAssociationPropertiesArgs] = None)
func NewManagementAssociation(ctx *Context, name string, args ManagementAssociationArgs, opts ...ResourceOption) (*ManagementAssociation, error)
public ManagementAssociation(string name, ManagementAssociationArgs args, CustomResourceOptions? opts = null)
public ManagementAssociation(String name, ManagementAssociationArgs args)
public ManagementAssociation(String name, ManagementAssociationArgs args, CustomResourceOptions options)
type: azure-native:operationsmanagement:ManagementAssociation
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. ManagementAssociationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. ManagementAssociationArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. ManagementAssociationArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. ManagementAssociationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. ManagementAssociationArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var managementAssociationResource = new AzureNative.OperationsManagement.ManagementAssociation("managementAssociationResource", new()
{
    ProviderName = "string",
    ResourceGroupName = "string",
    ResourceName = "string",
    ResourceType = "string",
    Location = "string",
    ManagementAssociationName = "string",
    Properties = new AzureNative.OperationsManagement.Inputs.ManagementAssociationPropertiesArgs
    {
        ApplicationId = "string",
    },
});
Copy
example, err := operationsmanagement.NewManagementAssociation(ctx, "managementAssociationResource", &operationsmanagement.ManagementAssociationArgs{
	ProviderName:              pulumi.String("string"),
	ResourceGroupName:         pulumi.String("string"),
	ResourceName:              pulumi.String("string"),
	ResourceType:              pulumi.String("string"),
	Location:                  pulumi.String("string"),
	ManagementAssociationName: pulumi.String("string"),
	Properties: &operationsmanagement.ManagementAssociationPropertiesArgs{
		ApplicationId: pulumi.String("string"),
	},
})
Copy
var managementAssociationResource = new ManagementAssociation("managementAssociationResource", ManagementAssociationArgs.builder()
    .providerName("string")
    .resourceGroupName("string")
    .resourceName("string")
    .resourceType("string")
    .location("string")
    .managementAssociationName("string")
    .properties(ManagementAssociationPropertiesArgs.builder()
        .applicationId("string")
        .build())
    .build());
Copy
management_association_resource = azure_native.operationsmanagement.ManagementAssociation("managementAssociationResource",
    provider_name="string",
    resource_group_name="string",
    resource_name_="string",
    resource_type="string",
    location="string",
    management_association_name="string",
    properties={
        "application_id": "string",
    })
Copy
const managementAssociationResource = new azure_native.operationsmanagement.ManagementAssociation("managementAssociationResource", {
    providerName: "string",
    resourceGroupName: "string",
    resourceName: "string",
    resourceType: "string",
    location: "string",
    managementAssociationName: "string",
    properties: {
        applicationId: "string",
    },
});
Copy
type: azure-native:operationsmanagement:ManagementAssociation
properties:
    location: string
    managementAssociationName: string
    properties:
        applicationId: string
    providerName: string
    resourceGroupName: string
    resourceName: string
    resourceType: string
Copy

ManagementAssociation Resource Properties

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

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The ManagementAssociation resource accepts the following input properties:

ProviderName
This property is required.
Changes to this property will trigger replacement.
string
Provider name for the parent resource.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group to get. The name is case insensitive.
ResourceName
This property is required.
Changes to this property will trigger replacement.
string
Parent resource name.
ResourceType
This property is required.
Changes to this property will trigger replacement.
string
Resource type for the parent resource
Location string
Resource location
ManagementAssociationName Changes to this property will trigger replacement. string
User ManagementAssociation Name.
Properties Pulumi.AzureNative.OperationsManagement.Inputs.ManagementAssociationProperties
Properties for ManagementAssociation object supported by the OperationsManagement resource provider.
ProviderName
This property is required.
Changes to this property will trigger replacement.
string
Provider name for the parent resource.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group to get. The name is case insensitive.
ResourceName
This property is required.
Changes to this property will trigger replacement.
string
Parent resource name.
ResourceType
This property is required.
Changes to this property will trigger replacement.
string
Resource type for the parent resource
Location string
Resource location
ManagementAssociationName Changes to this property will trigger replacement. string
User ManagementAssociation Name.
Properties ManagementAssociationPropertiesArgs
Properties for ManagementAssociation object supported by the OperationsManagement resource provider.
providerName
This property is required.
Changes to this property will trigger replacement.
String
Provider name for the parent resource.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group to get. The name is case insensitive.
resourceName
This property is required.
Changes to this property will trigger replacement.
String
Parent resource name.
resourceType
This property is required.
Changes to this property will trigger replacement.
String
Resource type for the parent resource
location String
Resource location
managementAssociationName Changes to this property will trigger replacement. String
User ManagementAssociation Name.
properties ManagementAssociationProperties
Properties for ManagementAssociation object supported by the OperationsManagement resource provider.
providerName
This property is required.
Changes to this property will trigger replacement.
string
Provider name for the parent resource.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group to get. The name is case insensitive.
resourceName
This property is required.
Changes to this property will trigger replacement.
string
Parent resource name.
resourceType
This property is required.
Changes to this property will trigger replacement.
string
Resource type for the parent resource
location string
Resource location
managementAssociationName Changes to this property will trigger replacement. string
User ManagementAssociation Name.
properties ManagementAssociationProperties
Properties for ManagementAssociation object supported by the OperationsManagement resource provider.
provider_name
This property is required.
Changes to this property will trigger replacement.
str
Provider name for the parent resource.
resource_group_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the resource group to get. The name is case insensitive.
resource_name
This property is required.
Changes to this property will trigger replacement.
str
Parent resource name.
resource_type
This property is required.
Changes to this property will trigger replacement.
str
Resource type for the parent resource
location str
Resource location
management_association_name Changes to this property will trigger replacement. str
User ManagementAssociation Name.
properties ManagementAssociationPropertiesArgs
Properties for ManagementAssociation object supported by the OperationsManagement resource provider.
providerName
This property is required.
Changes to this property will trigger replacement.
String
Provider name for the parent resource.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group to get. The name is case insensitive.
resourceName
This property is required.
Changes to this property will trigger replacement.
String
Parent resource name.
resourceType
This property is required.
Changes to this property will trigger replacement.
String
Resource type for the parent resource
location String
Resource location
managementAssociationName Changes to this property will trigger replacement. String
User ManagementAssociation Name.
properties Property Map
Properties for ManagementAssociation object supported by the OperationsManagement resource provider.

Outputs

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

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

Supporting Types

ManagementAssociationProperties
, ManagementAssociationPropertiesArgs

ApplicationId This property is required. string
The applicationId of the appliance for this association.
ApplicationId This property is required. string
The applicationId of the appliance for this association.
applicationId This property is required. String
The applicationId of the appliance for this association.
applicationId This property is required. string
The applicationId of the appliance for this association.
application_id This property is required. str
The applicationId of the appliance for this association.
applicationId This property is required. String
The applicationId of the appliance for this association.

ManagementAssociationPropertiesResponse
, ManagementAssociationPropertiesResponseArgs

ApplicationId This property is required. string
The applicationId of the appliance for this association.
ApplicationId This property is required. string
The applicationId of the appliance for this association.
applicationId This property is required. String
The applicationId of the appliance for this association.
applicationId This property is required. string
The applicationId of the appliance for this association.
application_id This property is required. str
The applicationId of the appliance for this association.
applicationId This property is required. String
The applicationId of the appliance for this association.

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} 
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
Azure Native pulumi/pulumi-azure-native
License
Apache-2.0
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi