StandbyVirtualMachinePool

class StandbyVirtualMachinePool : KotlinCustomResource

A StandbyVirtualMachinePoolResource. Uses Azure REST API version 2024-03-01. In version 2.x of the Azure Native provider, it used API version 2023-12-01-preview. Other available API versions: 2023-12-01-preview, 2024-03-01-preview, 2025-03-01. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native standbypool [ApiVersion]. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.

Example Usage

StandbyVirtualMachinePools_CreateOrUpdate

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var standbyVirtualMachinePool = new AzureNative.StandbyPool.StandbyVirtualMachinePool("standbyVirtualMachinePool", new()
{
AttachedVirtualMachineScaleSetId = "/subscriptions/00000000-0000-0000-0000-000000000009/resourceGroups/rgstandbypool/providers/Microsoft.Compute/virtualMachineScaleSets/myVmss",
ElasticityProfile = new AzureNative.StandbyPool.Inputs.StandbyVirtualMachinePoolElasticityProfileArgs
{
MaxReadyCapacity = 304,
MinReadyCapacity = 300,
},
Location = "West US",
ResourceGroupName = "rgstandbypool",
StandbyVirtualMachinePoolName = "pool",
Tags = null,
VirtualMachineState = AzureNative.StandbyPool.VirtualMachineState.Running,
});
});
package main
import (
standbypool "github.com/pulumi/pulumi-azure-native-sdk/standbypool/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := standbypool.NewStandbyVirtualMachinePool(ctx, "standbyVirtualMachinePool", &standbypool.StandbyVirtualMachinePoolArgs{
AttachedVirtualMachineScaleSetId: pulumi.String("/subscriptions/00000000-0000-0000-0000-000000000009/resourceGroups/rgstandbypool/providers/Microsoft.Compute/virtualMachineScaleSets/myVmss"),
ElasticityProfile: &standbypool.StandbyVirtualMachinePoolElasticityProfileArgs{
MaxReadyCapacity: pulumi.Float64(304),
MinReadyCapacity: pulumi.Float64(300),
},
Location: pulumi.String("West US"),
ResourceGroupName: pulumi.String("rgstandbypool"),
StandbyVirtualMachinePoolName: pulumi.String("pool"),
Tags: pulumi.StringMap{},
VirtualMachineState: pulumi.String(standbypool.VirtualMachineStateRunning),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.standbypool.StandbyVirtualMachinePool;
import com.pulumi.azurenative.standbypool.StandbyVirtualMachinePoolArgs;
import com.pulumi.azurenative.standbypool.inputs.StandbyVirtualMachinePoolElasticityProfileArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var standbyVirtualMachinePool = new StandbyVirtualMachinePool("standbyVirtualMachinePool", StandbyVirtualMachinePoolArgs.builder()
.attachedVirtualMachineScaleSetId("/subscriptions/00000000-0000-0000-0000-000000000009/resourceGroups/rgstandbypool/providers/Microsoft.Compute/virtualMachineScaleSets/myVmss")
.elasticityProfile(StandbyVirtualMachinePoolElasticityProfileArgs.builder()
.maxReadyCapacity(304.0)
.minReadyCapacity(300.0)
.build())
.location("West US")
.resourceGroupName("rgstandbypool")
.standbyVirtualMachinePoolName("pool")
.tags(Map.ofEntries(
))
.virtualMachineState("Running")
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:standbypool:StandbyVirtualMachinePool pool /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyVirtualMachinePools/{standbyVirtualMachinePoolName}

Properties

Link copied to clipboard

Specifies the fully qualified resource ID of a virtual machine scale set the pool is attached to.

Link copied to clipboard
val azureApiVersion: Output<String>

The Azure API version of the resource.

Link copied to clipboard

Specifies the elasticity profile of the standby virtual machine pools.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val location: Output<String>

The geo-location where the resource lives

Link copied to clipboard
val name: Output<String>

The name of the resource

Link copied to clipboard

The status of the last operation.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Azure Resource Manager metadata containing createdBy and modifiedBy information.

Link copied to clipboard
val tags: Output<Map<String, String>>?

Resource tags.

Link copied to clipboard
val type: Output<String>

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Link copied to clipboard
val urn: Output<String>
Link copied to clipboard

Specifies the desired state of virtual machines in the pool.