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 System.Linq;
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/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 * 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",
});
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")
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
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ConfigurationProfileAssignment(name: string, args: ConfigurationProfileAssignmentArgs, opts?: CustomResourceOptions);@overload
def ConfigurationProfileAssignment(resource_name: str,
                                   args: ConfigurationProfileAssignmentArgs,
                                   opts: Optional[ResourceOptions] = None)
@overload
def ConfigurationProfileAssignment(resource_name: str,
                                   opts: Optional[ResourceOptions] = None,
                                   resource_group_name: Optional[str] = None,
                                   vm_name: Optional[str] = None,
                                   configuration_profile_assignment_name: Optional[str] = None,
                                   properties: Optional[ConfigurationProfileAssignmentPropertiesArgs] = 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.
Parameters
- 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.
Constructor example
The following reference example uses placeholder values for all input properties.
var configurationProfileAssignmentResource = new AzureNative.Automanage.ConfigurationProfileAssignment("configurationProfileAssignmentResource", new()
{
    ResourceGroupName = "string",
    VmName = "string",
    ConfigurationProfileAssignmentName = "string",
    Properties = 
    {
        { "accountId", "string" },
        { "configurationProfile", "string" },
        { "configurationProfilePreferenceId", "string" },
        { "targetId", "string" },
    },
});
example, err := automanage.NewConfigurationProfileAssignment(ctx, "configurationProfileAssignmentResource", &automanage.ConfigurationProfileAssignmentArgs{
	ResourceGroupName:                  "string",
	VmName:                             "string",
	ConfigurationProfileAssignmentName: "string",
	Properties: map[string]interface{}{
		"accountId":                        "string",
		"configurationProfile":             "string",
		"configurationProfilePreferenceId": "string",
		"targetId":                         "string",
	},
})
var configurationProfileAssignmentResource = new ConfigurationProfileAssignment("configurationProfileAssignmentResource", ConfigurationProfileAssignmentArgs.builder()
    .resourceGroupName("string")
    .vmName("string")
    .configurationProfileAssignmentName("string")
    .properties(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
    .build());
configuration_profile_assignment_resource = azure_native.automanage.ConfigurationProfileAssignment("configurationProfileAssignmentResource",
    resource_group_name=string,
    vm_name=string,
    configuration_profile_assignment_name=string,
    properties={
        accountId: string,
        configurationProfile: string,
        configurationProfilePreferenceId: string,
        targetId: string,
    })
const configurationProfileAssignmentResource = new azure_native.automanage.ConfigurationProfileAssignment("configurationProfileAssignmentResource", {
    resourceGroupName: "string",
    vmName: "string",
    configurationProfileAssignmentName: "string",
    properties: {
        accountId: "string",
        configurationProfile: "string",
        configurationProfilePreferenceId: "string",
        targetId: "string",
    },
});
type: azure-native:automanage:ConfigurationProfileAssignment
properties:
    configurationProfileAssignmentName: string
    properties:
        accountId: string
        configurationProfile: string
        configurationProfilePreferenceId: string
        targetId: string
    resourceGroupName: string
    vmName: string
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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The ConfigurationProfileAssignment resource accepts the following input properties:
- ResourceGroup stringName 
- The name of the resource group. The name is case insensitive.
- VmName string
- The name of the virtual machine.
- ConfigurationProfile stringAssignment Name 
- Name of the configuration profile assignment. Only default is supported.
- Properties
Pulumi.Azure Native. Automanage. Inputs. Configuration Profile Assignment Properties 
- Properties of the configuration profile assignment.
- ResourceGroup stringName 
- The name of the resource group. The name is case insensitive.
- VmName string
- The name of the virtual machine.
- ConfigurationProfile stringAssignment Name 
- Name of the configuration profile assignment. Only default is supported.
- Properties
ConfigurationProfile Assignment Properties Args 
- Properties of the configuration profile assignment.
- resourceGroup StringName 
- The name of the resource group. The name is case insensitive.
- vmName String
- The name of the virtual machine.
- configurationProfile StringAssignment Name 
- Name of the configuration profile assignment. Only default is supported.
- properties
ConfigurationProfile Assignment Properties 
- Properties of the configuration profile assignment.
- resourceGroup stringName 
- The name of the resource group. The name is case insensitive.
- vmName string
- The name of the virtual machine.
- configurationProfile stringAssignment Name 
- Name of the configuration profile assignment. Only default is supported.
- properties
ConfigurationProfile Assignment Properties 
- Properties of the configuration profile assignment.
- resource_group_ strname 
- The name of the resource group. The name is case insensitive.
- vm_name str
- The name of the virtual machine.
- configuration_profile_ strassignment_ name 
- Name of the configuration profile assignment. Only default is supported.
- properties
ConfigurationProfile Assignment Properties Args 
- Properties of the configuration profile assignment.
- resourceGroup StringName 
- The name of the resource group. The name is case insensitive.
- vmName String
- The name of the virtual machine.
- configurationProfile StringAssignment Name 
- 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:
Supporting Types
ConfigurationProfile, ConfigurationProfileArgs    
- 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, ConfigurationProfileAssignmentComplianceResponseArgs          
- 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, ConfigurationProfileAssignmentPropertiesArgs        
- AccountId string
- The Automanage account ARM Resource URI
- ConfigurationProfile string | Pulumi.Azure Native. Automanage. Configuration Profile 
- A value indicating configuration profile.
- ConfigurationProfile stringPreference Id 
- 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.
- ConfigurationProfile stringPreference Id 
- 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.
- configurationProfile StringPreference Id 
- 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.
- configurationProfile stringPreference Id 
- 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_ strpreference_ id 
- 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.
- configurationProfile StringPreference Id 
- The configuration profile custom preferences ARM resource URI
- targetId String
- The target VM resource URI
ConfigurationProfileAssignmentPropertiesResponse, ConfigurationProfileAssignmentPropertiesResponseArgs          
- ProvisioningState string
- The state of onboarding, which only appears in the response.
- AccountId string
- The Automanage account ARM Resource URI
- Compliance
Pulumi.Azure Native. Automanage. Inputs. Configuration Profile Assignment Compliance Response 
- The configuration setting for the configuration profile.
- ConfigurationProfile string
- A value indicating configuration profile.
- ConfigurationProfile stringPreference Id 
- 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
ConfigurationProfile Assignment Compliance Response 
- The configuration setting for the configuration profile.
- ConfigurationProfile string
- A value indicating configuration profile.
- ConfigurationProfile stringPreference Id 
- 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
ConfigurationProfile Assignment Compliance Response 
- The configuration setting for the configuration profile.
- configurationProfile String
- A value indicating configuration profile.
- configurationProfile StringPreference Id 
- 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
ConfigurationProfile Assignment Compliance Response 
- The configuration setting for the configuration profile.
- configurationProfile string
- A value indicating configuration profile.
- configurationProfile stringPreference Id 
- 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
ConfigurationProfile Assignment Compliance Response 
- The configuration setting for the configuration profile.
- configuration_profile str
- A value indicating configuration profile.
- configuration_profile_ strpreference_ id 
- 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.
- configurationProfile StringPreference Id 
- 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 
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