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 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
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
The ConfigurationProfileAssignment resource accepts the following input properties:
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Vm
Name string - The name of the virtual machine.
- Configuration
Profile 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.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Vm
Name string - The name of the virtual machine.
- Configuration
Profile stringAssignment Name - Name of the configuration profile assignment. Only default is supported.
- Properties
Configuration
Profile Assignment Properties Args - Properties of the configuration profile assignment.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- vm
Name String - The name of the virtual machine.
- configuration
Profile StringAssignment Name - Name of the configuration profile assignment. Only default is supported.
- properties
Configuration
Profile Assignment Properties - Properties of the configuration profile assignment.
- resource
Group stringName - The name of the resource group. The name is case insensitive.
- vm
Name string - The name of the virtual machine.
- configuration
Profile stringAssignment Name - Name of the configuration profile assignment. Only default is supported.
- properties
Configuration
Profile 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
Configuration
Profile Assignment Properties Args - Properties of the configuration profile assignment.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- vm
Name String - The name of the virtual machine.
- configuration
Profile 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
- Configuration
Profile_Azure_ virtual_ machine_ best_ practices_Dev_Test - Azure virtual machine best practices – Dev/Test
- Configuration
Profile_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
- Update
Status string - The state of compliance, which only appears in the response.
- Update
Status string - The state of compliance, which only appears in the response.
- update
Status String - The state of compliance, which only appears in the response.
- update
Status string - The state of compliance, which only appears in the response.
- update_
status str - The state of compliance, which only appears in the response.
- update
Status String - The state of compliance, which only appears in the response.
ConfigurationProfileAssignmentProperties, ConfigurationProfileAssignmentPropertiesArgs
- Account
Id string - The Automanage account ARM Resource URI
- Configuration
Profile string | Pulumi.Azure Native. Automanage. Configuration Profile - A value indicating configuration profile.
- Configuration
Profile stringPreference Id - The configuration profile custom preferences ARM resource URI
- Target
Id string - The target VM resource URI
- Account
Id string - The Automanage account ARM Resource URI
- Configuration
Profile string | ConfigurationProfile - A value indicating configuration profile.
- Configuration
Profile stringPreference Id - The configuration profile custom preferences ARM resource URI
- Target
Id string - The target VM resource URI
- account
Id String - The Automanage account ARM Resource URI
- configuration
Profile String | ConfigurationProfile - A value indicating configuration profile.
- configuration
Profile StringPreference Id - The configuration profile custom preferences ARM resource URI
- target
Id String - The target VM resource URI
- account
Id string - The Automanage account ARM Resource URI
- configuration
Profile string | ConfigurationProfile - A value indicating configuration profile.
- configuration
Profile stringPreference Id - The configuration profile custom preferences ARM resource URI
- target
Id 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
- account
Id String - The Automanage account ARM Resource URI
- configuration
Profile String | "Azure virtual machine best practices – Dev/Test" | "Azure virtual machine best practices – Production" - A value indicating configuration profile.
- configuration
Profile StringPreference Id - The configuration profile custom preferences ARM resource URI
- target
Id String - The target VM resource URI
ConfigurationProfileAssignmentPropertiesResponse, ConfigurationProfileAssignmentPropertiesResponseArgs
- Provisioning
State string - The state of onboarding, which only appears in the response.
- Account
Id 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.
- Configuration
Profile string - A value indicating configuration profile.
- Configuration
Profile stringPreference Id - The configuration profile custom preferences ARM resource URI
- Target
Id string - The target VM resource URI
- Provisioning
State string - The state of onboarding, which only appears in the response.
- Account
Id string - The Automanage account ARM Resource URI
- Compliance
Configuration
Profile Assignment Compliance Response - The configuration setting for the configuration profile.
- Configuration
Profile string - A value indicating configuration profile.
- Configuration
Profile stringPreference Id - The configuration profile custom preferences ARM resource URI
- Target
Id string - The target VM resource URI
- provisioning
State String - The state of onboarding, which only appears in the response.
- account
Id String - The Automanage account ARM Resource URI
- compliance
Configuration
Profile Assignment Compliance Response - The configuration setting for the configuration profile.
- configuration
Profile String - A value indicating configuration profile.
- configuration
Profile StringPreference Id - The configuration profile custom preferences ARM resource URI
- target
Id String - The target VM resource URI
- provisioning
State string - The state of onboarding, which only appears in the response.
- account
Id string - The Automanage account ARM Resource URI
- compliance
Configuration
Profile Assignment Compliance Response - The configuration setting for the configuration profile.
- configuration
Profile string - A value indicating configuration profile.
- configuration
Profile stringPreference Id - The configuration profile custom preferences ARM resource URI
- target
Id 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
Configuration
Profile 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
- provisioning
State String - The state of onboarding, which only appears in the response.
- account
Id String - The Automanage account ARM Resource URI
- compliance Property Map
- The configuration setting for the configuration profile.
- configuration
Profile String - A value indicating configuration profile.
- configuration
Profile StringPreference Id - The configuration profile custom preferences ARM resource URI
- target
Id 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