@pulumi/azure-native
Version:
[](https://slack.pulumi.com) [](https://npmjs.com/package/@pulumi/azure-native) [ • 4.11 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "../types/output";
/**
* Retrieves information about a virtual machine instance.
*
* Uses Azure REST API version 2023-12-01.
*
* Other available API versions: 2023-03-01-preview, 2023-10-01. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native connectedvmwarevsphere [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details.
*/
export declare function getVirtualMachineInstance(args: GetVirtualMachineInstanceArgs, opts?: pulumi.InvokeOptions): Promise<GetVirtualMachineInstanceResult>;
export interface GetVirtualMachineInstanceArgs {
/**
* The fully qualified Azure Resource manager identifier of the Hybrid Compute machine resource to be extended.
*/
resourceUri: string;
}
/**
* Define the virtualMachineInstance.
*/
export interface GetVirtualMachineInstanceResult {
/**
* The Azure API version of the resource.
*/
readonly azureApiVersion: string;
/**
* Gets or sets the extended location.
*/
readonly extendedLocation?: outputs.connectedvmwarevsphere.ExtendedLocationResponse;
/**
* Hardware properties.
*/
readonly hardwareProfile?: outputs.connectedvmwarevsphere.HardwareProfileResponse;
/**
* Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
*/
readonly id: string;
/**
* Gets the infrastructure profile.
*/
readonly infrastructureProfile?: outputs.connectedvmwarevsphere.InfrastructureProfileResponse;
/**
* The name of the resource
*/
readonly name: string;
/**
* Network properties.
*/
readonly networkProfile?: outputs.connectedvmwarevsphere.NetworkProfileResponse;
/**
* OS properties.
*/
readonly osProfile?: outputs.connectedvmwarevsphere.OsProfileForVMInstanceResponse;
/**
* Placement properties.
*/
readonly placementProfile?: outputs.connectedvmwarevsphere.PlacementProfileResponse;
/**
* Gets the power state of the virtual machine.
*/
readonly powerState: string;
/**
* Gets the provisioning state.
*/
readonly provisioningState: string;
/**
* Gets or sets a unique identifier for the vm resource.
*/
readonly resourceUid: string;
/**
* Gets the security profile.
*/
readonly securityProfile?: outputs.connectedvmwarevsphere.SecurityProfileResponse;
/**
* The resource status information.
*/
readonly statuses: outputs.connectedvmwarevsphere.ResourceStatusResponse[];
/**
* Storage properties.
*/
readonly storageProfile?: outputs.connectedvmwarevsphere.StorageProfileResponse;
/**
* Azure Resource Manager metadata containing createdBy and modifiedBy information.
*/
readonly systemData: outputs.connectedvmwarevsphere.SystemDataResponse;
/**
* The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
*/
readonly type: string;
}
/**
* Retrieves information about a virtual machine instance.
*
* Uses Azure REST API version 2023-12-01.
*
* Other available API versions: 2023-03-01-preview, 2023-10-01. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native connectedvmwarevsphere [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details.
*/
export declare function getVirtualMachineInstanceOutput(args: GetVirtualMachineInstanceOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetVirtualMachineInstanceResult>;
export interface GetVirtualMachineInstanceOutputArgs {
/**
* The fully qualified Azure Resource manager identifier of the Hybrid Compute machine resource to be extended.
*/
resourceUri: pulumi.Input<string>;
}