UNPKG

@pulumi/azure-native

Version:

[![Slack](http://www.pulumi.com/images/docs/badges/slack.svg)](https://slack.pulumi.com) [![NPM version](https://badge.fury.io/js/%40pulumi%2Fazure-native.svg)](https://npmjs.com/package/@pulumi/azure-native) [![Python version](https://badge.fury.io/py/pu

194 lines (193 loc) 9.24 kB
import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * Gets a virtual machine from a VM scale set. * * Uses Azure REST API version 2024-11-01. * * Other available API versions: 2022-08-01, 2022-11-01, 2023-03-01, 2023-07-01, 2023-09-01, 2024-03-01, 2024-07-01, 2025-04-01. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native compute [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details. */ export declare function getVirtualMachineScaleSetVM(args: GetVirtualMachineScaleSetVMArgs, opts?: pulumi.InvokeOptions): Promise<GetVirtualMachineScaleSetVMResult>; export interface GetVirtualMachineScaleSetVMArgs { /** * The expand expression to apply on the operation. 'InstanceView' will retrieve the instance view of the virtual machine. 'UserData' will retrieve the UserData of the virtual machine. */ expand?: string; /** * The instance ID of the virtual machine. */ instanceId: string; /** * The name of the resource group. The name is case insensitive. */ resourceGroupName: string; /** * The name of the VM scale set. */ vmScaleSetName: string; } /** * Describes a virtual machine scale set virtual machine. */ export interface GetVirtualMachineScaleSetVMResult { /** * Specifies additional capabilities enabled or disabled on the virtual machine in the scale set. For instance: whether the virtual machine has the capability to support attaching managed data disks with UltraSSD_LRS storage account type. */ readonly additionalCapabilities?: outputs.compute.AdditionalCapabilitiesResponse; /** * Specifies information about the availability set that the virtual machine should be assigned to. Virtual machines specified in the same availability set are allocated to different nodes to maximize availability. For more information about availability sets, see [Availability sets overview](https://docs.microsoft.com/azure/virtual-machines/availability-set-overview). For more information on Azure planned maintenance, see [Maintenance and updates for Virtual Machines in Azure](https://docs.microsoft.com/azure/virtual-machines/maintenance-and-updates). Currently, a VM can only be added to availability set at creation time. An existing VM cannot be added to an availability set. */ readonly availabilitySet?: outputs.compute.SubResourceResponse; /** * The Azure API version of the resource. */ readonly azureApiVersion: string; /** * Specifies the boot diagnostic settings state. Minimum api-version: 2015-06-15. */ readonly diagnosticsProfile?: outputs.compute.DiagnosticsProfileResponse; /** * Etag is property returned in Update/Get response of the VMSS VM, so that customer can supply it in the header to ensure optimistic updates. */ readonly etag: string; /** * Specifies the hardware settings for the virtual machine. */ readonly hardwareProfile?: outputs.compute.HardwareProfileResponse; /** * Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} */ readonly id: string; /** * The identity of the virtual machine, if configured. */ readonly identity?: outputs.compute.VirtualMachineIdentityResponse; /** * The virtual machine instance ID. */ readonly instanceId: string; /** * The virtual machine instance view. */ readonly instanceView: outputs.compute.VirtualMachineScaleSetVMInstanceViewResponse; /** * Specifies whether the latest model has been applied to the virtual machine. */ readonly latestModelApplied: boolean; /** * Specifies that the image or disk that is being used was licensed on-premises. <br><br> Possible values for Windows Server operating system are: <br><br> Windows_Client <br><br> Windows_Server <br><br> Possible values for Linux Server operating system are: <br><br> RHEL_BYOS (for RHEL) <br><br> SLES_BYOS (for SUSE) <br><br> For more information, see [Azure Hybrid Use Benefit for Windows Server](https://docs.microsoft.com/azure/virtual-machines/windows/hybrid-use-benefit-licensing) <br><br> [Azure Hybrid Use Benefit for Linux Server](https://docs.microsoft.com/azure/virtual-machines/linux/azure-hybrid-benefit-linux) <br><br> Minimum api-version: 2015-06-15 */ readonly licenseType?: string; /** * The geo-location where the resource lives */ readonly location: string; /** * Specifies whether the model applied to the virtual machine is the model of the virtual machine scale set or the customized model for the virtual machine. */ readonly modelDefinitionApplied: string; /** * The name of the resource */ readonly name: string; /** * Specifies the network interfaces of the virtual machine. */ readonly networkProfile?: outputs.compute.NetworkProfileResponse; /** * Specifies the network profile configuration of the virtual machine. */ readonly networkProfileConfiguration?: outputs.compute.VirtualMachineScaleSetVMNetworkProfileConfigurationResponse; /** * Specifies the operating system settings for the virtual machine. */ readonly osProfile?: outputs.compute.OSProfileResponse; /** * Specifies information about the marketplace image used to create the virtual machine. This element is only used for marketplace images. Before you can use a marketplace image from an API, you must enable the image for programmatic use. In the Azure portal, find the marketplace image that you want to use and then click **Want to deploy programmatically, Get Started ->**. Enter any required information and then click **Save**. */ readonly plan?: outputs.compute.PlanResponse; /** * Specifies the protection policy of the virtual machine. */ readonly protectionPolicy?: outputs.compute.VirtualMachineScaleSetVMProtectionPolicyResponse; /** * The provisioning state, which only appears in the response. */ readonly provisioningState: string; /** * Specifies the resilient VM deletion status for the virtual machine. */ readonly resilientVMDeletionStatus?: string; /** * The virtual machine child extension resources. */ readonly resources: outputs.compute.VirtualMachineExtensionResponse[]; /** * Specifies the Security related profile settings for the virtual machine. */ readonly securityProfile?: outputs.compute.SecurityProfileResponse; /** * The virtual machine SKU. */ readonly sku: outputs.compute.SkuResponse; /** * Specifies the storage settings for the virtual machine disks. */ readonly storageProfile?: outputs.compute.StorageProfileResponse; /** * Azure Resource Manager metadata containing createdBy and modifiedBy information. */ readonly systemData: outputs.compute.SystemDataResponse; /** * Resource tags. */ readonly tags?: { [key: string]: string; }; /** * Specifies the time at which the Virtual Machine resource was created. Minimum api-version: 2021-11-01. */ readonly timeCreated: string; /** * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" */ readonly type: string; /** * UserData for the VM, which must be base-64 encoded. Customer should not pass any secrets in here. Minimum api-version: 2021-03-01 */ readonly userData?: string; /** * Azure VM unique ID. */ readonly vmId: string; /** * The virtual machine zones. */ readonly zones: string[]; } /** * Gets a virtual machine from a VM scale set. * * Uses Azure REST API version 2024-11-01. * * Other available API versions: 2022-08-01, 2022-11-01, 2023-03-01, 2023-07-01, 2023-09-01, 2024-03-01, 2024-07-01, 2025-04-01. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native compute [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details. */ export declare function getVirtualMachineScaleSetVMOutput(args: GetVirtualMachineScaleSetVMOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetVirtualMachineScaleSetVMResult>; export interface GetVirtualMachineScaleSetVMOutputArgs { /** * The expand expression to apply on the operation. 'InstanceView' will retrieve the instance view of the virtual machine. 'UserData' will retrieve the UserData of the virtual machine. */ expand?: pulumi.Input<string>; /** * The instance ID of the virtual machine. */ instanceId: pulumi.Input<string>; /** * The name of the resource group. The name is case insensitive. */ resourceGroupName: pulumi.Input<string>; /** * The name of the VM scale set. */ vmScaleSetName: pulumi.Input<string>; }