@pulumi/azure-native
Version:
[](https://slack.pulumi.com) [](https://npmjs.com/package/@pulumi/azure-native) [ • 3.84 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "../types/output";
/**
* Gets a virtual machine
*
* Uses Azure REST API version 2022-12-15-preview.
*/
export declare function getVirtualMachine(args: GetVirtualMachineArgs, opts?: pulumi.InvokeOptions): Promise<GetVirtualMachineResult>;
export interface GetVirtualMachineArgs {
/**
* The name of the resource group. The name is case insensitive.
*/
resourceGroupName: string;
/**
* Name of the virtual machine
*/
virtualMachineName: string;
}
/**
* The virtual machine resource definition.
*/
export interface GetVirtualMachineResult {
/**
* The Azure API version of the resource.
*/
readonly azureApiVersion: string;
/**
* The extendedLocation of the resource.
*/
readonly extendedLocation?: outputs.azurestackhci.ExtendedLocationResponse;
/**
* Guest agent status properties.
*/
readonly guestAgentProfile?: outputs.azurestackhci.GuestAgentProfileResponse;
/**
* HardwareProfile - Specifies the hardware settings for the virtual machine.
*/
readonly hardwareProfile?: outputs.azurestackhci.VirtualMachinePropertiesResponseHardwareProfile;
/**
* Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
*/
readonly id: string;
/**
* Identity for the resource.
*/
readonly identity?: outputs.azurestackhci.IdentityResponse;
/**
* The geo-location where the resource lives
*/
readonly location: string;
/**
* The name of the resource
*/
readonly name: string;
/**
* NetworkProfile - describes the network configuration the virtual machine
*/
readonly networkProfile?: outputs.azurestackhci.VirtualMachinePropertiesResponseNetworkProfile;
/**
* OsProfile - describes the configuration of the operating system and sets login data
*/
readonly osProfile?: outputs.azurestackhci.VirtualMachinePropertiesResponseOsProfile;
/**
* Provisioning state of the virtual machine.
*/
readonly provisioningState: string;
/**
* SecurityProfile - Specifies the security settings for the virtual machine.
*/
readonly securityProfile?: outputs.azurestackhci.VirtualMachinePropertiesResponseSecurityProfile;
/**
* The observed state of virtual machines
*/
readonly status: outputs.azurestackhci.VirtualMachineStatusResponse;
/**
* StorageProfile - contains information about the disks and storage information for the virtual machine
*/
readonly storageProfile?: outputs.azurestackhci.VirtualMachinePropertiesResponseStorageProfile;
/**
* Azure Resource Manager metadata containing createdBy and modifiedBy information.
*/
readonly systemData: outputs.azurestackhci.SystemDataResponse;
/**
* Resource tags.
*/
readonly tags?: {
[key: string]: string;
};
/**
* The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
*/
readonly type: string;
/**
* Unique identifier for the vm resource.
*/
readonly vmId: string;
}
/**
* Gets a virtual machine
*
* Uses Azure REST API version 2022-12-15-preview.
*/
export declare function getVirtualMachineOutput(args: GetVirtualMachineOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetVirtualMachineResult>;
export interface GetVirtualMachineOutputArgs {
/**
* The name of the resource group. The name is case insensitive.
*/
resourceGroupName: pulumi.Input<string>;
/**
* Name of the virtual machine
*/
virtualMachineName: pulumi.Input<string>;
}