"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! ***
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    var desc = Object.getOwnPropertyDescriptor(m, k);
    if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
      desc = { enumerable: true, get: function() { return m[k]; } };
    }
    Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
    Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
    o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
    if (mod && mod.__esModule) return mod;
    var result = {};
    if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
    __setModuleDefault(result, mod);
    return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.OrchestratedVirtualMachineScaleSet = void 0;
const pulumi = __importStar(require("@pulumi/pulumi"));
const utilities = __importStar(require("../utilities"));
/**
 * Manages an Virtual Machine Scale Set in Flexible Orchestration Mode.
 *
 * ## Disclaimers
 *
 * > **Note:** As of the **v2.86.0** (November 19, 2021) release of the provider this resource will only create Virtual Machine Scale Sets with the **Flexible** Orchestration Mode.
 *
 * > **Note:** All arguments including the administrator login and password will be stored in the raw state as plain-text. [Read more about sensitive data in state](https://www.terraform.io/docs/state/sensitive-data.html).
 *
 * ## Example Usage
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as azure from "@pulumi/azure";
 *
 * const example = new azure.core.ResourceGroup("example", {
 *     name: "example-resources",
 *     location: "West Europe",
 * });
 * const exampleOrchestratedVirtualMachineScaleSet = new azure.compute.OrchestratedVirtualMachineScaleSet("example", {
 *     name: "example-VMSS",
 *     location: example.location,
 *     resourceGroupName: example.name,
 *     platformFaultDomainCount: 1,
 *     zones: ["1"],
 * });
 * ```
 *
 * ## API Providers
 *
 * <!-- This section is generated, changes will be overwritten -->
 * This resource uses the following Azure API Providers:
 *
 * * `Microsoft.Compute` - 2024-11-01
 *
 * ## Import
 *
 * An Virtual Machine Scale Set can be imported using the `resource id`, e.g.
 *
 * ```sh
 * $ pulumi import azure:compute/orchestratedVirtualMachineScaleSet:OrchestratedVirtualMachineScaleSet example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Compute/virtualMachineScaleSets/scaleset1
 * ```
 */
class OrchestratedVirtualMachineScaleSet extends pulumi.CustomResource {
    /**
     * Get an existing OrchestratedVirtualMachineScaleSet 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 state Any extra arguments used during the lookup.
     * @param opts Optional settings to control the behavior of the CustomResource.
     */
    static get(name, id, state, opts) {
        return new OrchestratedVirtualMachineScaleSet(name, state, { ...opts, id: id });
    }
    /** @internal */
    static __pulumiType = 'azure:compute/orchestratedVirtualMachineScaleSet:OrchestratedVirtualMachineScaleSet';
    /**
     * Returns true if the given object is an instance of OrchestratedVirtualMachineScaleSet.  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'] === OrchestratedVirtualMachineScaleSet.__pulumiType;
    }
    constructor(name, argsOrState, opts) {
        let resourceInputs = {};
        opts = opts || {};
        if (opts.id) {
            const state = argsOrState;
            resourceInputs["additionalCapabilities"] = state?.additionalCapabilities;
            resourceInputs["automaticInstanceRepair"] = state?.automaticInstanceRepair;
            resourceInputs["bootDiagnostics"] = state?.bootDiagnostics;
            resourceInputs["capacityReservationGroupId"] = state?.capacityReservationGroupId;
            resourceInputs["dataDisks"] = state?.dataDisks;
            resourceInputs["encryptionAtHostEnabled"] = state?.encryptionAtHostEnabled;
            resourceInputs["evictionPolicy"] = state?.evictionPolicy;
            resourceInputs["extensionOperationsEnabled"] = state?.extensionOperationsEnabled;
            resourceInputs["extensions"] = state?.extensions;
            resourceInputs["extensionsTimeBudget"] = state?.extensionsTimeBudget;
            resourceInputs["identity"] = state?.identity;
            resourceInputs["instances"] = state?.instances;
            resourceInputs["licenseType"] = state?.licenseType;
            resourceInputs["location"] = state?.location;
            resourceInputs["maxBidPrice"] = state?.maxBidPrice;
            resourceInputs["name"] = state?.name;
            resourceInputs["networkApiVersion"] = state?.networkApiVersion;
            resourceInputs["networkInterfaces"] = state?.networkInterfaces;
            resourceInputs["osDisk"] = state?.osDisk;
            resourceInputs["osProfile"] = state?.osProfile;
            resourceInputs["plan"] = state?.plan;
            resourceInputs["platformFaultDomainCount"] = state?.platformFaultDomainCount;
            resourceInputs["priority"] = state?.priority;
            resourceInputs["priorityMix"] = state?.priorityMix;
            resourceInputs["proximityPlacementGroupId"] = state?.proximityPlacementGroupId;
            resourceInputs["resourceGroupName"] = state?.resourceGroupName;
            resourceInputs["rollingUpgradePolicy"] = state?.rollingUpgradePolicy;
            resourceInputs["singlePlacementGroup"] = state?.singlePlacementGroup;
            resourceInputs["skuName"] = state?.skuName;
            resourceInputs["skuProfile"] = state?.skuProfile;
            resourceInputs["sourceImageId"] = state?.sourceImageId;
            resourceInputs["sourceImageReference"] = state?.sourceImageReference;
            resourceInputs["tags"] = state?.tags;
            resourceInputs["terminationNotification"] = state?.terminationNotification;
            resourceInputs["uniqueId"] = state?.uniqueId;
            resourceInputs["upgradeMode"] = state?.upgradeMode;
            resourceInputs["userDataBase64"] = state?.userDataBase64;
            resourceInputs["zoneBalance"] = state?.zoneBalance;
            resourceInputs["zones"] = state?.zones;
        }
        else {
            const args = argsOrState;
            if (args?.platformFaultDomainCount === undefined && !opts.urn) {
                throw new Error("Missing required property 'platformFaultDomainCount'");
            }
            if (args?.resourceGroupName === undefined && !opts.urn) {
                throw new Error("Missing required property 'resourceGroupName'");
            }
            resourceInputs["additionalCapabilities"] = args?.additionalCapabilities;
            resourceInputs["automaticInstanceRepair"] = args?.automaticInstanceRepair;
            resourceInputs["bootDiagnostics"] = args?.bootDiagnostics;
            resourceInputs["capacityReservationGroupId"] = args?.capacityReservationGroupId;
            resourceInputs["dataDisks"] = args?.dataDisks;
            resourceInputs["encryptionAtHostEnabled"] = args?.encryptionAtHostEnabled;
            resourceInputs["evictionPolicy"] = args?.evictionPolicy;
            resourceInputs["extensionOperationsEnabled"] = args?.extensionOperationsEnabled;
            resourceInputs["extensions"] = args?.extensions;
            resourceInputs["extensionsTimeBudget"] = args?.extensionsTimeBudget;
            resourceInputs["identity"] = args?.identity;
            resourceInputs["instances"] = args?.instances;
            resourceInputs["licenseType"] = args?.licenseType;
            resourceInputs["location"] = args?.location;
            resourceInputs["maxBidPrice"] = args?.maxBidPrice;
            resourceInputs["name"] = args?.name;
            resourceInputs["networkApiVersion"] = args?.networkApiVersion;
            resourceInputs["networkInterfaces"] = args?.networkInterfaces;
            resourceInputs["osDisk"] = args?.osDisk;
            resourceInputs["osProfile"] = args?.osProfile;
            resourceInputs["plan"] = args?.plan;
            resourceInputs["platformFaultDomainCount"] = args?.platformFaultDomainCount;
            resourceInputs["priority"] = args?.priority;
            resourceInputs["priorityMix"] = args?.priorityMix;
            resourceInputs["proximityPlacementGroupId"] = args?.proximityPlacementGroupId;
            resourceInputs["resourceGroupName"] = args?.resourceGroupName;
            resourceInputs["rollingUpgradePolicy"] = args?.rollingUpgradePolicy;
            resourceInputs["singlePlacementGroup"] = args?.singlePlacementGroup;
            resourceInputs["skuName"] = args?.skuName;
            resourceInputs["skuProfile"] = args?.skuProfile;
            resourceInputs["sourceImageId"] = args?.sourceImageId;
            resourceInputs["sourceImageReference"] = args?.sourceImageReference;
            resourceInputs["tags"] = args?.tags;
            resourceInputs["terminationNotification"] = args?.terminationNotification;
            resourceInputs["upgradeMode"] = args?.upgradeMode;
            resourceInputs["userDataBase64"] = args?.userDataBase64 ? pulumi.secret(args.userDataBase64) : undefined;
            resourceInputs["zoneBalance"] = args?.zoneBalance;
            resourceInputs["zones"] = args?.zones;
            resourceInputs["uniqueId"] = undefined /*out*/;
        }
        opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
        const secretOpts = { additionalSecretOutputs: ["userDataBase64"] };
        opts = pulumi.mergeOptions(opts, secretOpts);
        super(OrchestratedVirtualMachineScaleSet.__pulumiType, name, resourceInputs, opts);
    }
}
exports.OrchestratedVirtualMachineScaleSet = OrchestratedVirtualMachineScaleSet;
//# sourceMappingURL=orchestratedVirtualMachineScaleSet.js.map