azure-native.automanage.ConfigurationProfileAssignment

Explore with Pulumi AI

Configuration profile assignment is an association between a VM and automanage profile configuration. API Version: 2020-06-30-preview.

Example Usage

Create or update configuration profile assignment

using System.Collections.Generic;
using Pulumi;
using AzureNative = Pulumi.AzureNative;

return await Deployment.RunAsync(() => 
{
    var configurationProfileAssignment = new AzureNative.Automanage.ConfigurationProfileAssignment("configurationProfileAssignment", new()
    {
        ConfigurationProfileAssignmentName = "default",
        Properties = new AzureNative.Automanage.Inputs.ConfigurationProfileAssignmentPropertiesArgs
        {
            AccountId = "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automanage/accounts/AutomanageAccount",
            ConfigurationProfile = "Azure virtual machine best practices – Production",
            ConfigurationProfilePreferenceId = "/subscriptions/subscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.Automanage/configurationProfilePreferences/defaultProfilePreference",
        },
        ResourceGroupName = "myResourceGroupName",
        VmName = "myVMName",
    });

});
package main

import (
	automanage "github.com/pulumi/pulumi-azure-native/sdk/go/azure/automanage"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := automanage.NewConfigurationProfileAssignment(ctx, "configurationProfileAssignment", &automanage.ConfigurationProfileAssignmentArgs{
			ConfigurationProfileAssignmentName: pulumi.String("default"),
			Properties: &automanage.ConfigurationProfileAssignmentPropertiesArgs{
				AccountId:                        pulumi.String("/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automanage/accounts/AutomanageAccount"),
				ConfigurationProfile:             pulumi.String("Azure virtual machine best practices – Production"),
				ConfigurationProfilePreferenceId: pulumi.String("/subscriptions/subscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.Automanage/configurationProfilePreferences/defaultProfilePreference"),
			},
			ResourceGroupName: pulumi.String("myResourceGroupName"),
			VmName:            pulumi.String("myVMName"),
		})
		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.automanage.ConfigurationProfileAssignment;
import com.pulumi.azurenative.automanage.ConfigurationProfileAssignmentArgs;
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 configurationProfileAssignment = new ConfigurationProfileAssignment("configurationProfileAssignment", ConfigurationProfileAssignmentArgs.builder()        
            .configurationProfileAssignmentName("default")
            .properties(Map.ofEntries(
                Map.entry("accountId", "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automanage/accounts/AutomanageAccount"),
                Map.entry("configurationProfile", "Azure virtual machine best practices – Production"),
                Map.entry("configurationProfilePreferenceId", "/subscriptions/subscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.Automanage/configurationProfilePreferences/defaultProfilePreference")
            ))
            .resourceGroupName("myResourceGroupName")
            .vmName("myVMName")
            .build());

    }
}
import pulumi
import pulumi_azure_native as azure_native

configuration_profile_assignment = azure_native.automanage.ConfigurationProfileAssignment("configurationProfileAssignment",
    configuration_profile_assignment_name="default",
    properties=azure_native.automanage.ConfigurationProfileAssignmentPropertiesArgs(
        account_id="/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automanage/accounts/AutomanageAccount",
        configuration_profile="Azure virtual machine best practices – Production",
        configuration_profile_preference_id="/subscriptions/subscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.Automanage/configurationProfilePreferences/defaultProfilePreference",
    ),
    resource_group_name="myResourceGroupName",
    vm_name="myVMName")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const configurationProfileAssignment = new azure_native.automanage.ConfigurationProfileAssignment("configurationProfileAssignment", {
    configurationProfileAssignmentName: "default",
    properties: {
        accountId: "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automanage/accounts/AutomanageAccount",
        configurationProfile: "Azure virtual machine best practices – Production",
        configurationProfilePreferenceId: "/subscriptions/subscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.Automanage/configurationProfilePreferences/defaultProfilePreference",
    },
    resourceGroupName: "myResourceGroupName",
    vmName: "myVMName",
});
resources:
  configurationProfileAssignment:
    type: azure-native:automanage:ConfigurationProfileAssignment
    properties:
      configurationProfileAssignmentName: default
      properties:
        accountId: /subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automanage/accounts/AutomanageAccount
        configurationProfile: Azure virtual machine best practices – Production
        configurationProfilePreferenceId: /subscriptions/subscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.Automanage/configurationProfilePreferences/defaultProfilePreference
      resourceGroupName: myResourceGroupName
      vmName: myVMName

Create ConfigurationProfileAssignment Resource

new ConfigurationProfileAssignment(name: string, args: ConfigurationProfileAssignmentArgs, opts?: CustomResourceOptions);
@overload
def ConfigurationProfileAssignment(resource_name: str,
                                   opts: Optional[ResourceOptions] = None,
                                   configuration_profile_assignment_name: Optional[str] = None,
                                   properties: Optional[ConfigurationProfileAssignmentPropertiesArgs] = None,
                                   resource_group_name: Optional[str] = None,
                                   vm_name: Optional[str] = None)
@overload
def ConfigurationProfileAssignment(resource_name: str,
                                   args: ConfigurationProfileAssignmentArgs,
                                   opts: Optional[ResourceOptions] = None)
func NewConfigurationProfileAssignment(ctx *Context, name string, args ConfigurationProfileAssignmentArgs, opts ...ResourceOption) (*ConfigurationProfileAssignment, error)
public ConfigurationProfileAssignment(string name, ConfigurationProfileAssignmentArgs args, CustomResourceOptions? opts = null)
public ConfigurationProfileAssignment(String name, ConfigurationProfileAssignmentArgs args)
public ConfigurationProfileAssignment(String name, ConfigurationProfileAssignmentArgs args, CustomResourceOptions options)
type: azure-native:automanage:ConfigurationProfileAssignment
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args ConfigurationProfileAssignmentArgs
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 ConfigurationProfileAssignmentArgs
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 ConfigurationProfileAssignmentArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args ConfigurationProfileAssignmentArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args ConfigurationProfileAssignmentArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

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

ResourceGroupName string

The name of the resource group. The name is case insensitive.

VmName string

The name of the virtual machine.

ConfigurationProfileAssignmentName string

Name of the configuration profile assignment. Only default is supported.

Properties Pulumi.AzureNative.Automanage.Inputs.ConfigurationProfileAssignmentPropertiesArgs

Properties of the configuration profile assignment.

ResourceGroupName string

The name of the resource group. The name is case insensitive.

VmName string

The name of the virtual machine.

ConfigurationProfileAssignmentName string

Name of the configuration profile assignment. Only default is supported.

Properties ConfigurationProfileAssignmentPropertiesArgs

Properties of the configuration profile assignment.

resourceGroupName String

The name of the resource group. The name is case insensitive.

vmName String

The name of the virtual machine.

configurationProfileAssignmentName String

Name of the configuration profile assignment. Only default is supported.

properties ConfigurationProfileAssignmentPropertiesArgs

Properties of the configuration profile assignment.

resourceGroupName string

The name of the resource group. The name is case insensitive.

vmName string

The name of the virtual machine.

configurationProfileAssignmentName string

Name of the configuration profile assignment. Only default is supported.

properties ConfigurationProfileAssignmentPropertiesArgs

Properties of the configuration profile assignment.

resource_group_name str

The name of the resource group. The name is case insensitive.

vm_name str

The name of the virtual machine.

configuration_profile_assignment_name str

Name of the configuration profile assignment. Only default is supported.

properties ConfigurationProfileAssignmentPropertiesArgs

Properties of the configuration profile assignment.

resourceGroupName String

The name of the resource group. The name is case insensitive.

vmName String

The name of the virtual machine.

configurationProfileAssignmentName String

Name of the configuration profile assignment. Only default is supported.

properties Property Map

Properties of the configuration profile assignment.

Outputs

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

Id string

The provider-assigned unique ID for this managed resource.

Name string

The name of the resource

Type string

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Id string

The provider-assigned unique ID for this managed resource.

Name string

The name of the resource

Type string

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

id String

The provider-assigned unique ID for this managed resource.

name String

The name of the resource

type String

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

id string

The provider-assigned unique ID for this managed resource.

name string

The name of the resource

type string

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

id str

The provider-assigned unique ID for this managed resource.

name str

The name of the resource

type str

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

id String

The provider-assigned unique ID for this managed resource.

name String

The name of the resource

type String

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Supporting Types

ConfigurationProfile

Azure_virtual_machine_best_practices_Dev_Test
Azure virtual machine best practices – Dev/Test
Azure_virtual_machine_best_practices_Production
Azure virtual machine best practices – Production
ConfigurationProfile_Azure_virtual_machine_best_practices_Dev_Test
Azure virtual machine best practices – Dev/Test
ConfigurationProfile_Azure_virtual_machine_best_practices_Production
Azure virtual machine best practices – Production
Azure_virtual_machine_best_practices_Dev_Test
Azure virtual machine best practices – Dev/Test
Azure_virtual_machine_best_practices_Production
Azure virtual machine best practices – Production
Azure_virtual_machine_best_practices_Dev_Test
Azure virtual machine best practices – Dev/Test
Azure_virtual_machine_best_practices_Production
Azure virtual machine best practices – Production
AZURE_VIRTUAL_MACHINE_BEST_PRACTICES_DEV_TEST
Azure virtual machine best practices – Dev/Test
AZURE_VIRTUAL_MACHINE_BEST_PRACTICES_PRODUCTION
Azure virtual machine best practices – Production
"Azure virtual machine best practices – Dev/Test"
Azure virtual machine best practices – Dev/Test
"Azure virtual machine best practices – Production"
Azure virtual machine best practices – Production

ConfigurationProfileAssignmentComplianceResponse

UpdateStatus string

The state of compliance, which only appears in the response.

UpdateStatus string

The state of compliance, which only appears in the response.

updateStatus String

The state of compliance, which only appears in the response.

updateStatus string

The state of compliance, which only appears in the response.

update_status str

The state of compliance, which only appears in the response.

updateStatus String

The state of compliance, which only appears in the response.

ConfigurationProfileAssignmentProperties

AccountId string

The Automanage account ARM Resource URI

ConfigurationProfile string | Pulumi.AzureNative.Automanage.ConfigurationProfile

A value indicating configuration profile.

ConfigurationProfilePreferenceId string

The configuration profile custom preferences ARM resource URI

TargetId string

The target VM resource URI

AccountId string

The Automanage account ARM Resource URI

ConfigurationProfile string | ConfigurationProfile

A value indicating configuration profile.

ConfigurationProfilePreferenceId string

The configuration profile custom preferences ARM resource URI

TargetId string

The target VM resource URI

accountId String

The Automanage account ARM Resource URI

configurationProfile String | ConfigurationProfile

A value indicating configuration profile.

configurationProfilePreferenceId String

The configuration profile custom preferences ARM resource URI

targetId String

The target VM resource URI

accountId string

The Automanage account ARM Resource URI

configurationProfile string | ConfigurationProfile

A value indicating configuration profile.

configurationProfilePreferenceId string

The configuration profile custom preferences ARM resource URI

targetId string

The target VM resource URI

account_id str

The Automanage account ARM Resource URI

configuration_profile str | ConfigurationProfile

A value indicating configuration profile.

configuration_profile_preference_id str

The configuration profile custom preferences ARM resource URI

target_id str

The target VM resource URI

accountId String

The Automanage account ARM Resource URI

configurationProfile String | "Azure virtual machine best practices – Dev/Test" | "Azure virtual machine best practices – Production"

A value indicating configuration profile.

configurationProfilePreferenceId String

The configuration profile custom preferences ARM resource URI

targetId String

The target VM resource URI

ConfigurationProfileAssignmentPropertiesResponse

ProvisioningState string

The state of onboarding, which only appears in the response.

AccountId string

The Automanage account ARM Resource URI

Compliance Pulumi.AzureNative.Automanage.Inputs.ConfigurationProfileAssignmentComplianceResponse

The configuration setting for the configuration profile.

ConfigurationProfile string

A value indicating configuration profile.

ConfigurationProfilePreferenceId string

The configuration profile custom preferences ARM resource URI

TargetId string

The target VM resource URI

ProvisioningState string

The state of onboarding, which only appears in the response.

AccountId string

The Automanage account ARM Resource URI

Compliance ConfigurationProfileAssignmentComplianceResponse

The configuration setting for the configuration profile.

ConfigurationProfile string

A value indicating configuration profile.

ConfigurationProfilePreferenceId string

The configuration profile custom preferences ARM resource URI

TargetId string

The target VM resource URI

provisioningState String

The state of onboarding, which only appears in the response.

accountId String

The Automanage account ARM Resource URI

compliance ConfigurationProfileAssignmentComplianceResponse

The configuration setting for the configuration profile.

configurationProfile String

A value indicating configuration profile.

configurationProfilePreferenceId String

The configuration profile custom preferences ARM resource URI

targetId String

The target VM resource URI

provisioningState string

The state of onboarding, which only appears in the response.

accountId string

The Automanage account ARM Resource URI

compliance ConfigurationProfileAssignmentComplianceResponse

The configuration setting for the configuration profile.

configurationProfile string

A value indicating configuration profile.

configurationProfilePreferenceId string

The configuration profile custom preferences ARM resource URI

targetId string

The target VM resource URI

provisioning_state str

The state of onboarding, which only appears in the response.

account_id str

The Automanage account ARM Resource URI

compliance ConfigurationProfileAssignmentComplianceResponse

The configuration setting for the configuration profile.

configuration_profile str

A value indicating configuration profile.

configuration_profile_preference_id str

The configuration profile custom preferences ARM resource URI

target_id str

The target VM resource URI

provisioningState String

The state of onboarding, which only appears in the response.

accountId String

The Automanage account ARM Resource URI

compliance Property Map

The configuration setting for the configuration profile.

configurationProfile String

A value indicating configuration profile.

configurationProfilePreferenceId String

The configuration profile custom preferences ARM resource URI

targetId String

The target VM resource URI

Import

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

$ pulumi import azure-native:automanage:ConfigurationProfileAssignment default /subscriptions/subscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.Compute/virtualMachines/myvm/providers/Microsoft.Automanage/AutomanageAssignments/default 

Package Details

Repository
Azure Native pulumi/pulumi-azure-native
License
Apache-2.0