@pulumi/azure-native
Version: 
[](https://slack.pulumi.com) [](https://npmjs.com/package/@pulumi/azure-native) [ • 4.24 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "../types/output";
/**
 * Get a Fleet
 *
 * Uses Azure REST API version 2024-11-01.
 *
 * Other available API versions: 2024-05-01-preview, 2025-07-01-preview. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native azurefleet [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details.
 */
export declare function getFleet(args: GetFleetArgs, opts?: pulumi.InvokeOptions): Promise<GetFleetResult>;
export interface GetFleetArgs {
    /**
     * The name of the Compute Fleet
     */
    fleetName: string;
    /**
     * The name of the resource group. The name is case insensitive.
     */
    resourceGroupName: string;
}
/**
 * An Compute Fleet resource
 */
export interface GetFleetResult {
    /**
     * Represents the configuration for additional locations where Fleet resources may be deployed.
     */
    readonly additionalLocationsProfile?: outputs.azurefleet.AdditionalLocationsProfileResponse;
    /**
     * The Azure API version of the resource.
     */
    readonly azureApiVersion: string;
    /**
     * Compute Profile to use for running user's workloads.
     */
    readonly computeProfile: outputs.azurefleet.ComputeProfileResponse;
    /**
     * Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
     */
    readonly id: string;
    /**
     * The managed service identities assigned to this resource.
     */
    readonly identity?: outputs.azurefleet.ManagedServiceIdentityResponse;
    /**
     * The geo-location where the resource lives
     */
    readonly location: string;
    /**
     * The name of the resource
     */
    readonly name: string;
    /**
     * Details of the resource plan.
     */
    readonly plan?: outputs.azurefleet.PlanResponse;
    /**
     * The status of the last operation.
     */
    readonly provisioningState: string;
    /**
     * Configuration Options for Regular instances in Compute Fleet.
     */
    readonly regularPriorityProfile?: outputs.azurefleet.RegularPriorityProfileResponse;
    /**
     * Configuration Options for Spot instances in Compute Fleet.
     */
    readonly spotPriorityProfile?: outputs.azurefleet.SpotPriorityProfileResponse;
    /**
     * Azure Resource Manager metadata containing createdBy and modifiedBy information.
     */
    readonly systemData: outputs.azurefleet.SystemDataResponse;
    /**
     * Resource tags.
     */
    readonly tags?: {
        [key: string]: string;
    };
    /**
     * Specifies the time at which the Compute Fleet is created.
     */
    readonly timeCreated: string;
    /**
     * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
     */
    readonly type: string;
    /**
     * Specifies the ID which uniquely identifies a Compute Fleet.
     */
    readonly uniqueId: string;
    /**
     * Attribute based Fleet.
     */
    readonly vmAttributes?: outputs.azurefleet.VMAttributesResponse;
    /**
     * List of VM sizes supported for Compute Fleet
     */
    readonly vmSizesProfile: outputs.azurefleet.VmSizeProfileResponse[];
    /**
     * Zones in which the Compute Fleet is available
     */
    readonly zones?: string[];
}
/**
 * Get a Fleet
 *
 * Uses Azure REST API version 2024-11-01.
 *
 * Other available API versions: 2024-05-01-preview, 2025-07-01-preview. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native azurefleet [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details.
 */
export declare function getFleetOutput(args: GetFleetOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetFleetResult>;
export interface GetFleetOutputArgs {
    /**
     * The name of the Compute Fleet
     */
    fleetName: pulumi.Input<string>;
    /**
     * The name of the resource group. The name is case insensitive.
     */
    resourceGroupName: pulumi.Input<string>;
}