azure-native.maintenance.ConfigurationAssignmentParent
Explore with Pulumi AI
Configuration Assignment
Uses Azure REST API version 2022-11-01-preview. In version 1.x of the Azure Native provider, it used API version 2021-04-01-preview.
Other available API versions: 2023-04-01, 2023-09-01-preview, 2023-10-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/v2"
	"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 * 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",
});
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")
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:                pulumi.String("string"),
	ResourceGroupName:           pulumi.String("string"),
	ResourceName:                pulumi.String("string"),
	ResourceParentName:          pulumi.String("string"),
	ResourceParentType:          pulumi.String("string"),
	ResourceType:                pulumi.String("string"),
	ConfigurationAssignmentName: pulumi.String("string"),
	Location:                    pulumi.String("string"),
	MaintenanceConfigurationId:  pulumi.String("string"),
	ResourceId:                  pulumi.String("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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The ConfigurationAssignmentParent resource accepts the following input properties:
- ProviderName string
- Resource provider name
- ResourceGroup stringName 
- Resource group name
- ResourceName string
- Resource identifier
- ResourceParent stringName 
- Resource parent identifier
- ResourceParent stringType 
- Resource parent type
- ResourceType string
- Resource type
- ConfigurationAssignment stringName 
- Configuration assignment name
- Location string
- Location of the resource
- MaintenanceConfiguration stringId 
- The maintenance configuration Id
- ResourceId string
- The unique resourceId
- ProviderName string
- Resource provider name
- ResourceGroup stringName 
- Resource group name
- ResourceName string
- Resource identifier
- ResourceParent stringName 
- Resource parent identifier
- ResourceParent stringType 
- Resource parent type
- ResourceType string
- Resource type
- ConfigurationAssignment stringName 
- Configuration assignment name
- Location string
- Location of the resource
- MaintenanceConfiguration stringId 
- The maintenance configuration Id
- ResourceId string
- The unique resourceId
- providerName String
- Resource provider name
- resourceGroup StringName 
- Resource group name
- resourceName String
- Resource identifier
- resourceParent StringName 
- Resource parent identifier
- resourceParent StringType 
- Resource parent type
- resourceType String
- Resource type
- configurationAssignment StringName 
- Configuration assignment name
- location String
- Location of the resource
- maintenanceConfiguration StringId 
- The maintenance configuration Id
- resourceId String
- The unique resourceId
- providerName string
- Resource provider name
- resourceGroup stringName 
- Resource group name
- resourceName string
- Resource identifier
- resourceParent stringName 
- Resource parent identifier
- resourceParent stringType 
- Resource parent type
- resourceType string
- Resource type
- configurationAssignment stringName 
- Configuration assignment name
- location string
- Location of the resource
- maintenanceConfiguration stringId 
- The maintenance configuration Id
- resourceId string
- The unique resourceId
- provider_name str
- Resource provider name
- resource_group_ strname 
- Resource group name
- resource_name str
- Resource identifier
- resource_parent_ strname 
- Resource parent identifier
- resource_parent_ strtype 
- Resource parent type
- resource_type str
- Resource type
- configuration_assignment_ strname 
- Configuration assignment name
- location str
- Location of the resource
- maintenance_configuration_ strid 
- The maintenance configuration Id
- resource_id str
- The unique resourceId
- providerName String
- Resource provider name
- resourceGroup StringName 
- Resource group name
- resourceName String
- Resource identifier
- resourceParent StringName 
- Resource parent identifier
- resourceParent StringType 
- Resource parent type
- resourceType String
- Resource type
- configurationAssignment StringName 
- Configuration assignment name
- location String
- Location of the resource
- maintenanceConfiguration StringId 
- 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.Azure Native. Maintenance. Outputs. System Data Response 
- 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 SystemData Response 
- 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 SystemData Response 
- 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 SystemData Response 
- 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 SystemData Response 
- 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.
- CreatedBy stringType 
- The type of identity that created the resource.
- LastModified stringAt 
- The timestamp of resource last modification (UTC)
- LastModified stringBy 
- The identity that last modified the resource.
- LastModified stringBy Type 
- 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.
- CreatedBy stringType 
- The type of identity that created the resource.
- LastModified stringAt 
- The timestamp of resource last modification (UTC)
- LastModified stringBy 
- The identity that last modified the resource.
- LastModified stringBy Type 
- 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.
- createdBy StringType 
- The type of identity that created the resource.
- lastModified StringAt 
- The timestamp of resource last modification (UTC)
- lastModified StringBy 
- The identity that last modified the resource.
- lastModified StringBy Type 
- 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.
- createdBy stringType 
- The type of identity that created the resource.
- lastModified stringAt 
- The timestamp of resource last modification (UTC)
- lastModified stringBy 
- The identity that last modified the resource.
- lastModified stringBy Type 
- 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_ strtype 
- The type of identity that created the resource.
- last_modified_ strat 
- The timestamp of resource last modification (UTC)
- last_modified_ strby 
- The identity that last modified the resource.
- last_modified_ strby_ type 
- 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.
- createdBy StringType 
- The type of identity that created the resource.
- lastModified StringAt 
- The timestamp of resource last modification (UTC)
- lastModified StringBy 
- The identity that last modified the resource.
- lastModified StringBy Type 
- 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/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{providerName}/{resourceParentType}/{resourceParentName}/{resourceType}/{resourceName}/providers/Microsoft.Maintenance/configurationAssignments/{configurationAssignmentName} 
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0