import * as pulumi from "@pulumi/pulumi"; /** * Manages an Arc Machine Automanage Configuration Profile Assignment. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * * const config = new pulumi.Config(); * // The name of the Arc Machine. * const arcMachineName = config.requireObject("arcMachineName"); * const exampleResourceGroup = new azure.core.ResourceGroup("example", { * name: "example-resources", * location: "West Europe", * }); * const example = exampleResourceGroup.name.apply(name => azure.arcmachine.getOutput({ * name: arcMachineName, * resourceGroupName: name, * })); * const exampleConfiguration = new azure.automanage.Configuration("example", { * name: "example-configuration", * resourceGroupName: exampleResourceGroup.name, * location: exampleResourceGroup.location, * }); * const exampleAutomanageConfigurationAssignment = new azure.arcmachine.AutomanageConfigurationAssignment("example", { * arcMachineId: example.apply(example => example.id), * configurationId: exampleConfiguration.id, * }); * ``` * * ## API Providers * * * This resource uses the following Azure API Providers: * * * `Microsoft.HybridCompute` - 2022-05-04 * * ## Import * * Virtual Machine Automanage Configuration Profile Assignment can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:arcmachine/automanageConfigurationAssignment:AutomanageConfigurationAssignment example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.HybridCompute/machines/machine1/providers/Microsoft.AutoManage/configurationProfileAssignments/default * ``` */ export declare class AutomanageConfigurationAssignment extends pulumi.CustomResource { /** * Get an existing AutomanageConfigurationAssignment resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: AutomanageConfigurationAssignmentState, opts?: pulumi.CustomResourceOptions): AutomanageConfigurationAssignment; /** * Returns true if the given object is an instance of AutomanageConfigurationAssignment. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is AutomanageConfigurationAssignment; /** * The ARM resource ID of the Arc Machine to assign the Automanage Configuration to. Changing this forces a new resource to be created. */ readonly arcMachineId: pulumi.Output; /** * The ARM resource ID of the Automanage Configuration to assign to the Virtual Machine. Changing this forces a new resource to be created. * * > **Note:** For a successful creation of this resource, locate "Automanage API Access" app within your Entra ID tenant. Make sure it's granted access to the scope that includes the arc server. */ readonly configurationId: pulumi.Output; /** * Create a AutomanageConfigurationAssignment resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: AutomanageConfigurationAssignmentArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering AutomanageConfigurationAssignment resources. */ export interface AutomanageConfigurationAssignmentState { /** * The ARM resource ID of the Arc Machine to assign the Automanage Configuration to. Changing this forces a new resource to be created. */ arcMachineId?: pulumi.Input; /** * The ARM resource ID of the Automanage Configuration to assign to the Virtual Machine. Changing this forces a new resource to be created. * * > **Note:** For a successful creation of this resource, locate "Automanage API Access" app within your Entra ID tenant. Make sure it's granted access to the scope that includes the arc server. */ configurationId?: pulumi.Input; } /** * The set of arguments for constructing a AutomanageConfigurationAssignment resource. */ export interface AutomanageConfigurationAssignmentArgs { /** * The ARM resource ID of the Arc Machine to assign the Automanage Configuration to. Changing this forces a new resource to be created. */ arcMachineId: pulumi.Input; /** * The ARM resource ID of the Automanage Configuration to assign to the Virtual Machine. Changing this forces a new resource to be created. * * > **Note:** For a successful creation of this resource, locate "Automanage API Access" app within your Entra ID tenant. Make sure it's granted access to the scope that includes the arc server. */ configurationId: pulumi.Input; }