import * as pulumi from "@pulumi/pulumi"; /** * Manages a System Center Virtual Machine Manager Virtual Machine Instance Guest Agent. * * > **Note:** By request of the service team the provider is no longer automatically registering the `Microsoft.ScVmm` Resource Provider for this resource. To register it you can run `az provider register --namespace Microsoft.ScVmm`. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * * const exampleResourceGroup = new azure.core.ResourceGroup("example", { * name: "example-resources", * location: "West Europe", * }); * const exampleArcMachine = new azure.arcmachine.ArcMachine("example", { * name: "example-arcmachine", * resourceGroupName: exampleResourceGroup.name, * location: exampleResourceGroup.location, * kind: "SCVMM", * identity: { * type: "SystemAssigned", * }, * }); * const exampleVirtualMachineManagerServer = new azure.systemcenter.VirtualMachineManagerServer("example", { * name: "example-scvmmms", * resourceGroupName: exampleResourceGroup.name, * location: exampleResourceGroup.location, * customLocationId: "/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/resGroup1/providers/Microsoft.ExtendedLocation/customLocations/customLocation1", * fqdn: "example.labtest", * username: "testUser", * password: "H@Sh1CoR3!", * }); * const example = azure.systemcenter.getVirtualMachineManagerInventoryItemsOutput({ * inventoryType: "Cloud", * systemCenterVirtualMachineManagerServerId: exampleVirtualMachineManagerServer.id, * }); * const exampleVirtualMachineManagerCloud = new azure.systemcenter.VirtualMachineManagerCloud("example", { * name: "example-scvmmc", * location: exampleResourceGroup.location, * resourceGroupName: exampleResourceGroup.name, * customLocationId: exampleVirtualMachineManagerServer.customLocationId, * systemCenterVirtualMachineManagerServerInventoryItemId: example.apply(example => example.inventoryItems?.[0]?.id), * }); * const example2 = azure.systemcenter.getVirtualMachineManagerInventoryItemsOutput({ * inventoryType: "VirtualMachineTemplate", * systemCenterVirtualMachineManagerServerId: exampleVirtualMachineManagerServer.id, * }); * const exampleVirtualMachineManagerVirtualMachineTemplate = new azure.systemcenter.VirtualMachineManagerVirtualMachineTemplate("example", { * name: "example-scvmmvmt", * location: exampleResourceGroup.location, * resourceGroupName: exampleResourceGroup.name, * customLocationId: exampleVirtualMachineManagerServer.customLocationId, * systemCenterVirtualMachineManagerServerInventoryItemId: example2.apply(example2 => example2.inventoryItems?.[0]?.id), * }); * const exampleVirtualMachineManagerVirtualMachineInstance = new azure.systemcenter.VirtualMachineManagerVirtualMachineInstance("example", { * scopedResourceId: exampleArcMachine.id, * customLocationId: exampleVirtualMachineManagerServer.customLocationId, * infrastructure: { * checkpointType: "Standard", * systemCenterVirtualMachineManagerCloudId: exampleVirtualMachineManagerCloud.id, * systemCenterVirtualMachineManagerTemplateId: exampleVirtualMachineManagerVirtualMachineTemplate.id, * systemCenterVirtualMachineManagerVirtualMachineServerId: exampleVirtualMachineManagerServer.id, * }, * operatingSystem: { * adminPassword: "AdminPassword123!", * }, * }); * const exampleVirtualMachineManagerVirtualMachineInstanceGuestAgent = new azure.systemcenter.VirtualMachineManagerVirtualMachineInstanceGuestAgent("example", { * scopedResourceId: exampleArcMachine.id, * username: "Administrator", * password: "AdminPassword123!", * }, { * dependsOn: [exampleVirtualMachineManagerVirtualMachineInstance], * }); * ``` * * ## API Providers * * * This resource uses the following Azure API Providers: * * * `Microsoft.ScVmm` - 2023-10-07 * * ## Import * * System Center Virtual Machine Manager Virtual Machine Instance Guest Agents can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:systemcenter/virtualMachineManagerVirtualMachineInstanceGuestAgent:VirtualMachineManagerVirtualMachineInstanceGuestAgent example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup1/providers/Microsoft.HybridCompute/machines/machine1/providers/Microsoft.ScVmm/virtualMachineInstances/default/guestAgents/default * ``` */ export declare class VirtualMachineManagerVirtualMachineInstanceGuestAgent extends pulumi.CustomResource { /** * Get an existing VirtualMachineManagerVirtualMachineInstanceGuestAgent 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?: VirtualMachineManagerVirtualMachineInstanceGuestAgentState, opts?: pulumi.CustomResourceOptions): VirtualMachineManagerVirtualMachineInstanceGuestAgent; /** * Returns true if the given object is an instance of VirtualMachineManagerVirtualMachineInstanceGuestAgent. 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 VirtualMachineManagerVirtualMachineInstanceGuestAgent; /** * The password that is used to connect to the System Center Virtual Machine Manager Virtual Machine Instance Guest Agent. Changing this forces a new resource to be created. */ readonly password: pulumi.Output; /** * The provisioning action that is used to define the different types of operations for the System Center Virtual Machine Manager Virtual Machine Instance Guest Agent. Possible values are `install`, `repair` and `uninstall`. Defaults to `install`. Changing this forces a new resource to be created. */ readonly provisioningAction: pulumi.Output; /** * The ID of the Hybrid Compute Machine where this System Center Virtual Machine Manager Virtual Machine Instance Guest Agent is stored. Changing this forces a new resource to be created. */ readonly scopedResourceId: pulumi.Output; /** * The username that is used to connect to the System Center Virtual Machine Manager Virtual Machine Instance Guest Agent. Changing this forces a new resource to be created. */ readonly username: pulumi.Output; /** * Create a VirtualMachineManagerVirtualMachineInstanceGuestAgent 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: VirtualMachineManagerVirtualMachineInstanceGuestAgentArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering VirtualMachineManagerVirtualMachineInstanceGuestAgent resources. */ export interface VirtualMachineManagerVirtualMachineInstanceGuestAgentState { /** * The password that is used to connect to the System Center Virtual Machine Manager Virtual Machine Instance Guest Agent. Changing this forces a new resource to be created. */ password?: pulumi.Input; /** * The provisioning action that is used to define the different types of operations for the System Center Virtual Machine Manager Virtual Machine Instance Guest Agent. Possible values are `install`, `repair` and `uninstall`. Defaults to `install`. Changing this forces a new resource to be created. */ provisioningAction?: pulumi.Input; /** * The ID of the Hybrid Compute Machine where this System Center Virtual Machine Manager Virtual Machine Instance Guest Agent is stored. Changing this forces a new resource to be created. */ scopedResourceId?: pulumi.Input; /** * The username that is used to connect to the System Center Virtual Machine Manager Virtual Machine Instance Guest Agent. Changing this forces a new resource to be created. */ username?: pulumi.Input; } /** * The set of arguments for constructing a VirtualMachineManagerVirtualMachineInstanceGuestAgent resource. */ export interface VirtualMachineManagerVirtualMachineInstanceGuestAgentArgs { /** * The password that is used to connect to the System Center Virtual Machine Manager Virtual Machine Instance Guest Agent. Changing this forces a new resource to be created. */ password: pulumi.Input; /** * The provisioning action that is used to define the different types of operations for the System Center Virtual Machine Manager Virtual Machine Instance Guest Agent. Possible values are `install`, `repair` and `uninstall`. Defaults to `install`. Changing this forces a new resource to be created. */ provisioningAction?: pulumi.Input; /** * The ID of the Hybrid Compute Machine where this System Center Virtual Machine Manager Virtual Machine Instance Guest Agent is stored. Changing this forces a new resource to be created. */ scopedResourceId: pulumi.Input; /** * The username that is used to connect to the System Center Virtual Machine Manager Virtual Machine Instance Guest Agent. Changing this forces a new resource to be created. */ username: pulumi.Input; }