@pulumi/azure-native
Version:
[](https://slack.pulumi.com) [](https://npmjs.com/package/@pulumi/azure-native) [ • 3.62 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-04-01-preview.
*
* Other available API versions: 2023-10-07, 2024-06-01, 2025-03-13. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native scvmm [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 {
/**
* Availability Sets in vm.
*/
readonly availabilitySets?: outputs.scvmm.VirtualMachineInstancePropertiesResponseAvailabilitySets[];
/**
* The Azure API version of the resource.
*/
readonly azureApiVersion: string;
/**
* Gets or sets the extended location.
*/
readonly extendedLocation: outputs.scvmm.ExtendedLocationResponse;
/**
* Hardware properties.
*/
readonly hardwareProfile?: outputs.scvmm.HardwareProfileResponse;
/**
* Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
*/
readonly id: string;
/**
* Gets the infrastructure profile.
*/
readonly infrastructureProfile?: outputs.scvmm.InfrastructureProfileResponse;
/**
* The name of the resource
*/
readonly name: string;
/**
* Network properties.
*/
readonly networkProfile?: outputs.scvmm.NetworkProfileResponse;
/**
* OS properties.
*/
readonly osProfile?: outputs.scvmm.OsProfileForVMInstanceResponse;
/**
* Gets the power state of the virtual machine.
*/
readonly powerState: string;
/**
* Gets or sets the provisioning state.
*/
readonly provisioningState: string;
/**
* Storage properties.
*/
readonly storageProfile?: outputs.scvmm.StorageProfileResponse;
/**
* Azure Resource Manager metadata containing createdBy and modifiedBy information.
*/
readonly systemData: outputs.scvmm.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-04-01-preview.
*
* Other available API versions: 2023-10-07, 2024-06-01, 2025-03-13. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native scvmm [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>;
}