1. Packages
  2. Azure Native
  3. API Docs
  4. customproviders
  5. Association
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.34.0 published on Thursday, Mar 28, 2024 by Pulumi

azure-native.customproviders.Association

Explore with Pulumi AI

azure-native logo
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.34.0 published on Thursday, Mar 28, 2024 by Pulumi

    The resource definition of this association. Azure REST API version: 2018-09-01-preview. Prior API version in Azure Native 1.x: 2018-09-01-preview.

    Example Usage

    Create or update an association

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var association = new AzureNative.CustomProviders.Association("association", new()
        {
            AssociationName = "associationName",
            Scope = "scope",
            TargetResourceId = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/appRG/providers/Microsoft.Solutions/applications/applicationName",
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure-native-sdk/customproviders/v2"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := customproviders.NewAssociation(ctx, "association", &customproviders.AssociationArgs{
    			AssociationName:  pulumi.String("associationName"),
    			Scope:            pulumi.String("scope"),
    			TargetResourceId: pulumi.String("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/appRG/providers/Microsoft.Solutions/applications/applicationName"),
    		})
    		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.customproviders.Association;
    import com.pulumi.azurenative.customproviders.AssociationArgs;
    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 association = new Association("association", AssociationArgs.builder()        
                .associationName("associationName")
                .scope("scope")
                .targetResourceId("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/appRG/providers/Microsoft.Solutions/applications/applicationName")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    association = azure_native.customproviders.Association("association",
        association_name="associationName",
        scope="scope",
        target_resource_id="/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/appRG/providers/Microsoft.Solutions/applications/applicationName")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const association = new azure_native.customproviders.Association("association", {
        associationName: "associationName",
        scope: "scope",
        targetResourceId: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/appRG/providers/Microsoft.Solutions/applications/applicationName",
    });
    
    resources:
      association:
        type: azure-native:customproviders:Association
        properties:
          associationName: associationName
          scope: scope
          targetResourceId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/appRG/providers/Microsoft.Solutions/applications/applicationName
    

    Create Association Resource

    new Association(name: string, args: AssociationArgs, opts?: CustomResourceOptions);
    @overload
    def Association(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    association_name: Optional[str] = None,
                    scope: Optional[str] = None,
                    target_resource_id: Optional[str] = None)
    @overload
    def Association(resource_name: str,
                    args: AssociationArgs,
                    opts: Optional[ResourceOptions] = None)
    func NewAssociation(ctx *Context, name string, args AssociationArgs, opts ...ResourceOption) (*Association, error)
    public Association(string name, AssociationArgs args, CustomResourceOptions? opts = null)
    public Association(String name, AssociationArgs args)
    public Association(String name, AssociationArgs args, CustomResourceOptions options)
    
    type: azure-native:customproviders:Association
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args AssociationArgs
    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 AssociationArgs
    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 AssociationArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AssociationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AssociationArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Association 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 Association resource accepts the following input properties:

    Scope string
    The scope of the association. The scope can be any valid REST resource instance. For example, use '/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/providers/Microsoft.Compute/virtualMachines/{vm-name}' for a virtual machine resource.
    AssociationName string
    The name of the association.
    TargetResourceId string
    The REST resource instance of the target resource for this association.
    Scope string
    The scope of the association. The scope can be any valid REST resource instance. For example, use '/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/providers/Microsoft.Compute/virtualMachines/{vm-name}' for a virtual machine resource.
    AssociationName string
    The name of the association.
    TargetResourceId string
    The REST resource instance of the target resource for this association.
    scope String
    The scope of the association. The scope can be any valid REST resource instance. For example, use '/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/providers/Microsoft.Compute/virtualMachines/{vm-name}' for a virtual machine resource.
    associationName String
    The name of the association.
    targetResourceId String
    The REST resource instance of the target resource for this association.
    scope string
    The scope of the association. The scope can be any valid REST resource instance. For example, use '/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/providers/Microsoft.Compute/virtualMachines/{vm-name}' for a virtual machine resource.
    associationName string
    The name of the association.
    targetResourceId string
    The REST resource instance of the target resource for this association.
    scope str
    The scope of the association. The scope can be any valid REST resource instance. For example, use '/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/providers/Microsoft.Compute/virtualMachines/{vm-name}' for a virtual machine resource.
    association_name str
    The name of the association.
    target_resource_id str
    The REST resource instance of the target resource for this association.
    scope String
    The scope of the association. The scope can be any valid REST resource instance. For example, use '/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/providers/Microsoft.Compute/virtualMachines/{vm-name}' for a virtual machine resource.
    associationName String
    The name of the association.
    targetResourceId String
    The REST resource instance of the target resource for this association.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The association name.
    ProvisioningState string
    The provisioning state of the association.
    Type string
    The association type.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The association name.
    ProvisioningState string
    The provisioning state of the association.
    Type string
    The association type.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The association name.
    provisioningState String
    The provisioning state of the association.
    type String
    The association type.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    The association name.
    provisioningState string
    The provisioning state of the association.
    type string
    The association type.
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    The association name.
    provisioning_state str
    The provisioning state of the association.
    type str
    The association type.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The association name.
    provisioningState String
    The provisioning state of the association.
    type String
    The association type.

    Import

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

    $ pulumi import azure-native:customproviders:Association associationName /{scope}/providers/Microsoft.CustomProviders/associations/{associationName} 
    

    Package Details

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