"use strict";
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
Object.defineProperty(exports, "__esModule", { value: true });
exports.VirtualMachineScaleSet = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
 * Describes a Virtual Machine Scale Set.
 *
 * Uses Azure REST API version 2024-11-01. In version 2.x of the Azure Native provider, it used API version 2023-03-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.
 */
class VirtualMachineScaleSet extends pulumi.CustomResource {
    /**
     * Get an existing VirtualMachineScaleSet resource's state with the given name, ID, and optional extra
     * properties used to qualify the lookup.
     *
     * @param name The _unique_ name of the resulting resource.
     * @param id The _unique_ provider ID of the resource to lookup.
     * @param opts Optional settings to control the behavior of the CustomResource.
     */
    static get(name, id, opts) {
        return new VirtualMachineScaleSet(name, undefined, { ...opts, id: id });
    }
    /**
     * Returns true if the given object is an instance of VirtualMachineScaleSet.  This is designed to work even
     * when multiple copies of the Pulumi SDK have been loaded into the same process.
     */
    static isInstance(obj) {
        if (obj === undefined || obj === null) {
            return false;
        }
        return obj['__pulumiType'] === VirtualMachineScaleSet.__pulumiType;
    }
    /**
     * Create a VirtualMachineScaleSet resource with the given unique name, arguments, and options.
     *
     * @param name The _unique_ name of the resource.
     * @param args The arguments to use to populate this resource's properties.
     * @param opts A bag of options that control this resource's behavior.
     */
    constructor(name, args, opts) {
        let resourceInputs = {};
        opts = opts || {};
        if (!opts.id) {
            if (args?.resourceGroupName === undefined && !opts.urn) {
                throw new Error("Missing required property 'resourceGroupName'");
            }
            resourceInputs["additionalCapabilities"] = args?.additionalCapabilities;
            resourceInputs["automaticRepairsPolicy"] = args?.automaticRepairsPolicy;
            resourceInputs["constrainedMaximumCapacity"] = args?.constrainedMaximumCapacity;
            resourceInputs["doNotRunExtensionsOnOverprovisionedVMs"] = args?.doNotRunExtensionsOnOverprovisionedVMs;
            resourceInputs["extendedLocation"] = args?.extendedLocation;
            resourceInputs["hostGroup"] = args?.hostGroup;
            resourceInputs["identity"] = args?.identity;
            resourceInputs["location"] = args?.location;
            resourceInputs["orchestrationMode"] = args?.orchestrationMode;
            resourceInputs["overprovision"] = args?.overprovision;
            resourceInputs["plan"] = args?.plan;
            resourceInputs["platformFaultDomainCount"] = args?.platformFaultDomainCount;
            resourceInputs["priorityMixPolicy"] = args?.priorityMixPolicy;
            resourceInputs["proximityPlacementGroup"] = args?.proximityPlacementGroup;
            resourceInputs["resiliencyPolicy"] = args?.resiliencyPolicy;
            resourceInputs["resourceGroupName"] = args?.resourceGroupName;
            resourceInputs["scaleInPolicy"] = args?.scaleInPolicy;
            resourceInputs["scheduledEventsPolicy"] = args?.scheduledEventsPolicy;
            resourceInputs["singlePlacementGroup"] = args?.singlePlacementGroup;
            resourceInputs["sku"] = args?.sku;
            resourceInputs["skuProfile"] = args?.skuProfile;
            resourceInputs["spotRestorePolicy"] = args?.spotRestorePolicy;
            resourceInputs["tags"] = args?.tags;
            resourceInputs["upgradePolicy"] = args?.upgradePolicy;
            resourceInputs["virtualMachineProfile"] = args?.virtualMachineProfile;
            resourceInputs["vmScaleSetName"] = args?.vmScaleSetName;
            resourceInputs["zonalPlatformFaultDomainAlignMode"] = args?.zonalPlatformFaultDomainAlignMode;
            resourceInputs["zoneBalance"] = args?.zoneBalance;
            resourceInputs["zones"] = args?.zones;
            resourceInputs["azureApiVersion"] = undefined /*out*/;
            resourceInputs["etag"] = undefined /*out*/;
            resourceInputs["name"] = undefined /*out*/;
            resourceInputs["provisioningState"] = undefined /*out*/;
            resourceInputs["systemData"] = undefined /*out*/;
            resourceInputs["timeCreated"] = undefined /*out*/;
            resourceInputs["type"] = undefined /*out*/;
            resourceInputs["uniqueId"] = undefined /*out*/;
        }
        else {
            resourceInputs["additionalCapabilities"] = undefined /*out*/;
            resourceInputs["automaticRepairsPolicy"] = undefined /*out*/;
            resourceInputs["azureApiVersion"] = undefined /*out*/;
            resourceInputs["constrainedMaximumCapacity"] = undefined /*out*/;
            resourceInputs["doNotRunExtensionsOnOverprovisionedVMs"] = undefined /*out*/;
            resourceInputs["etag"] = undefined /*out*/;
            resourceInputs["extendedLocation"] = undefined /*out*/;
            resourceInputs["hostGroup"] = undefined /*out*/;
            resourceInputs["identity"] = undefined /*out*/;
            resourceInputs["location"] = undefined /*out*/;
            resourceInputs["name"] = undefined /*out*/;
            resourceInputs["orchestrationMode"] = undefined /*out*/;
            resourceInputs["overprovision"] = undefined /*out*/;
            resourceInputs["plan"] = undefined /*out*/;
            resourceInputs["platformFaultDomainCount"] = undefined /*out*/;
            resourceInputs["priorityMixPolicy"] = undefined /*out*/;
            resourceInputs["provisioningState"] = undefined /*out*/;
            resourceInputs["proximityPlacementGroup"] = undefined /*out*/;
            resourceInputs["resiliencyPolicy"] = undefined /*out*/;
            resourceInputs["scaleInPolicy"] = undefined /*out*/;
            resourceInputs["scheduledEventsPolicy"] = undefined /*out*/;
            resourceInputs["singlePlacementGroup"] = undefined /*out*/;
            resourceInputs["sku"] = undefined /*out*/;
            resourceInputs["skuProfile"] = undefined /*out*/;
            resourceInputs["spotRestorePolicy"] = undefined /*out*/;
            resourceInputs["systemData"] = undefined /*out*/;
            resourceInputs["tags"] = undefined /*out*/;
            resourceInputs["timeCreated"] = undefined /*out*/;
            resourceInputs["type"] = undefined /*out*/;
            resourceInputs["uniqueId"] = undefined /*out*/;
            resourceInputs["upgradePolicy"] = undefined /*out*/;
            resourceInputs["virtualMachineProfile"] = undefined /*out*/;
            resourceInputs["zonalPlatformFaultDomainAlignMode"] = undefined /*out*/;
            resourceInputs["zoneBalance"] = undefined /*out*/;
            resourceInputs["zones"] = undefined /*out*/;
        }
        opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
        const aliasOpts = { aliases: [{ type: "azure-native:compute/v20150615:VirtualMachineScaleSet" }, { type: "azure-native:compute/v20160330:VirtualMachineScaleSet" }, { type: "azure-native:compute/v20160430preview:VirtualMachineScaleSet" }, { type: "azure-native:compute/v20170330:VirtualMachineScaleSet" }, { type: "azure-native:compute/v20171201:VirtualMachineScaleSet" }, { type: "azure-native:compute/v20180401:VirtualMachineScaleSet" }, { type: "azure-native:compute/v20180601:VirtualMachineScaleSet" }, { type: "azure-native:compute/v20181001:VirtualMachineScaleSet" }, { type: "azure-native:compute/v20190301:VirtualMachineScaleSet" }, { type: "azure-native:compute/v20190701:VirtualMachineScaleSet" }, { type: "azure-native:compute/v20191201:VirtualMachineScaleSet" }, { type: "azure-native:compute/v20200601:VirtualMachineScaleSet" }, { type: "azure-native:compute/v20201201:VirtualMachineScaleSet" }, { type: "azure-native:compute/v20210301:VirtualMachineScaleSet" }, { type: "azure-native:compute/v20210401:VirtualMachineScaleSet" }, { type: "azure-native:compute/v20210701:VirtualMachineScaleSet" }, { type: "azure-native:compute/v20211101:VirtualMachineScaleSet" }, { type: "azure-native:compute/v20220301:VirtualMachineScaleSet" }, { type: "azure-native:compute/v20220801:VirtualMachineScaleSet" }, { type: "azure-native:compute/v20221101:VirtualMachineScaleSet" }, { type: "azure-native:compute/v20230301:VirtualMachineScaleSet" }, { type: "azure-native:compute/v20230701:VirtualMachineScaleSet" }, { type: "azure-native:compute/v20230901:VirtualMachineScaleSet" }, { type: "azure-native:compute/v20240301:VirtualMachineScaleSet" }, { type: "azure-native:compute/v20240701:VirtualMachineScaleSet" }, { type: "azure-native:compute/v20241101:VirtualMachineScaleSet" }, { type: "azure-native:compute/v20250401:VirtualMachineScaleSet" }] };
        opts = pulumi.mergeOptions(opts, aliasOpts);
        super(VirtualMachineScaleSet.__pulumiType, name, resourceInputs, opts);
    }
}
exports.VirtualMachineScaleSet = VirtualMachineScaleSet;
/** @internal */
VirtualMachineScaleSet.__pulumiType = 'azure-native:compute:VirtualMachineScaleSet';
//# sourceMappingURL=data:application/json;base64, 