1. Packages
  2. Azure Native v1
  3. API Docs
  4. maintenance
  5. ConfigurationAssignmentParent
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi

azure-native.maintenance.ConfigurationAssignmentParent

Explore with Pulumi AI

azure-native-v1 logo
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi

    Configuration Assignment API Version: 2021-04-01-preview.

    Example Usage

    ConfigurationAssignments_CreateOrUpdateParent

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var configurationAssignmentParent = new AzureNative.Maintenance.ConfigurationAssignmentParent("configurationAssignmentParent", new()
        {
            ConfigurationAssignmentName = "workervmPolicy",
            MaintenanceConfigurationId = "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Maintenance/maintenanceConfigurations/policy1",
            ProviderName = "Microsoft.Compute",
            ResourceGroupName = "examplerg",
            ResourceName = "smdvm1",
            ResourceParentName = "smdtest1",
            ResourceParentType = "virtualMachineScaleSets",
            ResourceType = "virtualMachines",
        });
    
    });
    
    package main
    
    import (
    	maintenance "github.com/pulumi/pulumi-azure-native-sdk/maintenance"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := maintenance.NewConfigurationAssignmentParent(ctx, "configurationAssignmentParent", &maintenance.ConfigurationAssignmentParentArgs{
    			ConfigurationAssignmentName: pulumi.String("workervmPolicy"),
    			MaintenanceConfigurationId:  pulumi.String("/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Maintenance/maintenanceConfigurations/policy1"),
    			ProviderName:                pulumi.String("Microsoft.Compute"),
    			ResourceGroupName:           pulumi.String("examplerg"),
    			ResourceName:                pulumi.String("smdvm1"),
    			ResourceParentName:          pulumi.String("smdtest1"),
    			ResourceParentType:          pulumi.String("virtualMachineScaleSets"),
    			ResourceType:                pulumi.String("virtualMachines"),
    		})
    		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.maintenance.ConfigurationAssignmentParent;
    import com.pulumi.azurenative.maintenance.ConfigurationAssignmentParentArgs;
    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 configurationAssignmentParent = new ConfigurationAssignmentParent("configurationAssignmentParent", ConfigurationAssignmentParentArgs.builder()        
                .configurationAssignmentName("workervmPolicy")
                .maintenanceConfigurationId("/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Maintenance/maintenanceConfigurations/policy1")
                .providerName("Microsoft.Compute")
                .resourceGroupName("examplerg")
                .resourceName("smdvm1")
                .resourceParentName("smdtest1")
                .resourceParentType("virtualMachineScaleSets")
                .resourceType("virtualMachines")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    configuration_assignment_parent = azure_native.maintenance.ConfigurationAssignmentParent("configurationAssignmentParent",
        configuration_assignment_name="workervmPolicy",
        maintenance_configuration_id="/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Maintenance/maintenanceConfigurations/policy1",
        provider_name="Microsoft.Compute",
        resource_group_name="examplerg",
        resource_name_="smdvm1",
        resource_parent_name="smdtest1",
        resource_parent_type="virtualMachineScaleSets",
        resource_type="virtualMachines")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const configurationAssignmentParent = new azure_native.maintenance.ConfigurationAssignmentParent("configurationAssignmentParent", {
        configurationAssignmentName: "workervmPolicy",
        maintenanceConfigurationId: "/subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Maintenance/maintenanceConfigurations/policy1",
        providerName: "Microsoft.Compute",
        resourceGroupName: "examplerg",
        resourceName: "smdvm1",
        resourceParentName: "smdtest1",
        resourceParentType: "virtualMachineScaleSets",
        resourceType: "virtualMachines",
    });
    
    resources:
      configurationAssignmentParent:
        type: azure-native:maintenance:ConfigurationAssignmentParent
        properties:
          configurationAssignmentName: workervmPolicy
          maintenanceConfigurationId: /subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Maintenance/maintenanceConfigurations/policy1
          providerName: Microsoft.Compute
          resourceGroupName: examplerg
          resourceName: smdvm1
          resourceParentName: smdtest1
          resourceParentType: virtualMachineScaleSets
          resourceType: virtualMachines
    

    Create ConfigurationAssignmentParent Resource

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

    Constructor syntax

    new ConfigurationAssignmentParent(name: string, args: ConfigurationAssignmentParentArgs, opts?: CustomResourceOptions);
    @overload
    def ConfigurationAssignmentParent(resource_name: str,
                                      args: ConfigurationAssignmentParentArgs,
                                      opts: Optional[ResourceOptions] = None)
    
    @overload
    def ConfigurationAssignmentParent(resource_name: str,
                                      opts: Optional[ResourceOptions] = None,
                                      provider_name: Optional[str] = None,
                                      resource_group_name: Optional[str] = None,
                                      resource_name_: Optional[str] = None,
                                      resource_parent_name: Optional[str] = None,
                                      resource_parent_type: Optional[str] = None,
                                      resource_type: Optional[str] = None,
                                      configuration_assignment_name: Optional[str] = None,
                                      location: Optional[str] = None,
                                      maintenance_configuration_id: Optional[str] = None,
                                      resource_id: Optional[str] = None)
    func NewConfigurationAssignmentParent(ctx *Context, name string, args ConfigurationAssignmentParentArgs, opts ...ResourceOption) (*ConfigurationAssignmentParent, error)
    public ConfigurationAssignmentParent(string name, ConfigurationAssignmentParentArgs args, CustomResourceOptions? opts = null)
    public ConfigurationAssignmentParent(String name, ConfigurationAssignmentParentArgs args)
    public ConfigurationAssignmentParent(String name, ConfigurationAssignmentParentArgs args, CustomResourceOptions options)
    
    type: azure-native:maintenance:ConfigurationAssignmentParent
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args ConfigurationAssignmentParentArgs
    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 ConfigurationAssignmentParentArgs
    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 ConfigurationAssignmentParentArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ConfigurationAssignmentParentArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ConfigurationAssignmentParentArgs
    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 configurationAssignmentParentResource = new AzureNative.Maintenance.ConfigurationAssignmentParent("configurationAssignmentParentResource", new()
    {
        ProviderName = "string",
        ResourceGroupName = "string",
        ResourceName = "string",
        ResourceParentName = "string",
        ResourceParentType = "string",
        ResourceType = "string",
        ConfigurationAssignmentName = "string",
        Location = "string",
        MaintenanceConfigurationId = "string",
        ResourceId = "string",
    });
    
    example, err := maintenance.NewConfigurationAssignmentParent(ctx, "configurationAssignmentParentResource", &maintenance.ConfigurationAssignmentParentArgs{
    	ProviderName:                "string",
    	ResourceGroupName:           "string",
    	ResourceName:                "string",
    	ResourceParentName:          "string",
    	ResourceParentType:          "string",
    	ResourceType:                "string",
    	ConfigurationAssignmentName: "string",
    	Location:                    "string",
    	MaintenanceConfigurationId:  "string",
    	ResourceId:                  "string",
    })
    
    var configurationAssignmentParentResource = new ConfigurationAssignmentParent("configurationAssignmentParentResource", ConfigurationAssignmentParentArgs.builder()
        .providerName("string")
        .resourceGroupName("string")
        .resourceName("string")
        .resourceParentName("string")
        .resourceParentType("string")
        .resourceType("string")
        .configurationAssignmentName("string")
        .location("string")
        .maintenanceConfigurationId("string")
        .resourceId("string")
        .build());
    
    configuration_assignment_parent_resource = azure_native.maintenance.ConfigurationAssignmentParent("configurationAssignmentParentResource",
        provider_name=string,
        resource_group_name=string,
        resource_name_=string,
        resource_parent_name=string,
        resource_parent_type=string,
        resource_type=string,
        configuration_assignment_name=string,
        location=string,
        maintenance_configuration_id=string,
        resource_id=string)
    
    const configurationAssignmentParentResource = new azure_native.maintenance.ConfigurationAssignmentParent("configurationAssignmentParentResource", {
        providerName: "string",
        resourceGroupName: "string",
        resourceName: "string",
        resourceParentName: "string",
        resourceParentType: "string",
        resourceType: "string",
        configurationAssignmentName: "string",
        location: "string",
        maintenanceConfigurationId: "string",
        resourceId: "string",
    });
    
    type: azure-native:maintenance:ConfigurationAssignmentParent
    properties:
        configurationAssignmentName: string
        location: string
        maintenanceConfigurationId: string
        providerName: string
        resourceGroupName: string
        resourceId: string
        resourceName: string
        resourceParentName: string
        resourceParentType: string
        resourceType: string
    

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

    ProviderName string
    Resource provider name
    ResourceGroupName string
    Resource group name
    ResourceName string
    Resource identifier
    ResourceParentName string
    Resource parent identifier
    ResourceParentType string
    Resource parent type
    ResourceType string
    Resource type
    ConfigurationAssignmentName string
    Configuration assignment name
    Location string
    Location of the resource
    MaintenanceConfigurationId string
    The maintenance configuration Id
    ResourceId string
    The unique resourceId
    ProviderName string
    Resource provider name
    ResourceGroupName string
    Resource group name
    ResourceName string
    Resource identifier
    ResourceParentName string
    Resource parent identifier
    ResourceParentType string
    Resource parent type
    ResourceType string
    Resource type
    ConfigurationAssignmentName string
    Configuration assignment name
    Location string
    Location of the resource
    MaintenanceConfigurationId string
    The maintenance configuration Id
    ResourceId string
    The unique resourceId
    providerName String
    Resource provider name
    resourceGroupName String
    Resource group name
    resourceName String
    Resource identifier
    resourceParentName String
    Resource parent identifier
    resourceParentType String
    Resource parent type
    resourceType String
    Resource type
    configurationAssignmentName String
    Configuration assignment name
    location String
    Location of the resource
    maintenanceConfigurationId String
    The maintenance configuration Id
    resourceId String
    The unique resourceId
    providerName string
    Resource provider name
    resourceGroupName string
    Resource group name
    resourceName string
    Resource identifier
    resourceParentName string
    Resource parent identifier
    resourceParentType string
    Resource parent type
    resourceType string
    Resource type
    configurationAssignmentName string
    Configuration assignment name
    location string
    Location of the resource
    maintenanceConfigurationId string
    The maintenance configuration Id
    resourceId string
    The unique resourceId
    provider_name str
    Resource provider name
    resource_group_name str
    Resource group name
    resource_name str
    Resource identifier
    resource_parent_name str
    Resource parent identifier
    resource_parent_type str
    Resource parent type
    resource_type str
    Resource type
    configuration_assignment_name str
    Configuration assignment name
    location str
    Location of the resource
    maintenance_configuration_id str
    The maintenance configuration Id
    resource_id str
    The unique resourceId
    providerName String
    Resource provider name
    resourceGroupName String
    Resource group name
    resourceName String
    Resource identifier
    resourceParentName String
    Resource parent identifier
    resourceParentType String
    Resource parent type
    resourceType String
    Resource type
    configurationAssignmentName String
    Configuration assignment name
    location String
    Location of the resource
    maintenanceConfigurationId String
    The maintenance configuration Id
    resourceId String
    The unique resourceId

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Name of the resource
    SystemData Pulumi.AzureNative.Maintenance.Outputs.SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    Type string
    Type of the resource
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Name of the resource
    SystemData SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    Type string
    Type of the resource
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Name of the resource
    systemData SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type String
    Type of the resource
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    Name of the resource
    systemData SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type string
    Type of the resource
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    Name of the resource
    system_data SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type str
    Type of the resource
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Name of the resource
    systemData Property Map
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type String
    Type of the resource

    Supporting Types

    SystemDataResponse, SystemDataResponseArgs

    CreatedAt string
    The timestamp of resource creation (UTC).
    CreatedBy string
    The identity that created the resource.
    CreatedByType string
    The type of identity that created the resource.
    LastModifiedAt string
    The timestamp of resource last modification (UTC)
    LastModifiedBy string
    The identity that last modified the resource.
    LastModifiedByType string
    The type of identity that last modified the resource.
    CreatedAt string
    The timestamp of resource creation (UTC).
    CreatedBy string
    The identity that created the resource.
    CreatedByType string
    The type of identity that created the resource.
    LastModifiedAt string
    The timestamp of resource last modification (UTC)
    LastModifiedBy string
    The identity that last modified the resource.
    LastModifiedByType string
    The type of identity that last modified the resource.
    createdAt String
    The timestamp of resource creation (UTC).
    createdBy String
    The identity that created the resource.
    createdByType String
    The type of identity that created the resource.
    lastModifiedAt String
    The timestamp of resource last modification (UTC)
    lastModifiedBy String
    The identity that last modified the resource.
    lastModifiedByType String
    The type of identity that last modified the resource.
    createdAt string
    The timestamp of resource creation (UTC).
    createdBy string
    The identity that created the resource.
    createdByType string
    The type of identity that created the resource.
    lastModifiedAt string
    The timestamp of resource last modification (UTC)
    lastModifiedBy string
    The identity that last modified the resource.
    lastModifiedByType string
    The type of identity that last modified the resource.
    created_at str
    The timestamp of resource creation (UTC).
    created_by str
    The identity that created the resource.
    created_by_type str
    The type of identity that created the resource.
    last_modified_at str
    The timestamp of resource last modification (UTC)
    last_modified_by str
    The identity that last modified the resource.
    last_modified_by_type str
    The type of identity that last modified the resource.
    createdAt String
    The timestamp of resource creation (UTC).
    createdBy String
    The identity that created the resource.
    createdByType String
    The type of identity that created the resource.
    lastModifiedAt String
    The timestamp of resource last modification (UTC)
    lastModifiedBy String
    The identity that last modified the resource.
    lastModifiedByType String
    The type of identity that last modified the resource.

    Import

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

    $ pulumi import azure-native:maintenance:ConfigurationAssignmentParent workervmPolicy /subscriptions/5b4b650e-28b9-4790-b3ab-ddbd88d727c4/resourcegroups/examplerg/providers/Microsoft.Compute/virtualMachineScaleSets/smdtest1/virtualMachines/smdvm1/providers/Microsoft.Maintenance/configurationAssignments/workervmPolicy 
    

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

    Package Details

    Repository
    azure-native-v1 pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native-v1 logo
    These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
    Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi