spotinst.azure.Elastigroup
Provides a Spotinst elastigroup Azure resource.
Example Usage
using System.Collections.Generic;
using Pulumi;
using SpotInst = Pulumi.SpotInst;
return await Deployment.RunAsync(() =>
{
var testAzureGroup = new SpotInst.Azure.Elastigroup("testAzureGroup", new()
{
DesiredCapacity = 1,
HealthCheck = new SpotInst.Azure.Inputs.ElastigroupHealthCheckArgs
{
AutoHealing = true,
GracePeriod = 120,
HealthCheckType = "INSTANCE_STATE",
},
Images = new[]
{
new SpotInst.Azure.Inputs.ElastigroupImageArgs
{
Marketplaces = new[]
{
new SpotInst.Azure.Inputs.ElastigroupImageMarketplaceArgs
{
Offer = "UbuntuServer",
Publisher = "Canonical",
Sku = "16.04-LTS",
},
},
},
},
LoadBalancers = new[]
{
new SpotInst.Azure.Inputs.ElastigroupLoadBalancerArgs
{
AutoWeight = true,
BalancerId = "lb-1ee2e3q",
TargetSetId = "ts-3eq",
Type = "MULTAI_TARGET_SET",
},
},
Login = new SpotInst.Azure.Inputs.ElastigroupLoginArgs
{
SshPublicKey = "33a2s1f3g5a1df5g1ad3f2g1adfg56dfg==",
UserName = "admin",
},
LowPrioritySizes = new[]
{
"standard_a1_v1",
"standard_a1_v2",
},
ManagedServiceIdentities = new[]
{
new SpotInst.Azure.Inputs.ElastigroupManagedServiceIdentityArgs
{
Name = "example-identity",
ResourceGroupName = "spotinst-azure",
},
},
MaxSize = 1,
MinSize = 0,
Network = new SpotInst.Azure.Inputs.ElastigroupNetworkArgs
{
AssignPublicIp = true,
ResourceGroupName = "subnetResourceGroup",
SubnetName = "my-subnet-name",
VirtualNetworkName = "vname",
},
OdSizes = new[]
{
"standard_a1_v1",
"standard_a1_v2",
},
Product = "Linux",
Region = "eastus",
ResourceGroupName = "spotinst-azure",
ScalingDownPolicies = new[]
{
new SpotInst.Azure.Inputs.ElastigroupScalingDownPolicyArgs
{
ActionType = "adjustment",
Adjustment = "MIN(5,10)",
Cooldown = 60,
Dimensions = new[]
{
new SpotInst.Azure.Inputs.ElastigroupScalingDownPolicyDimensionArgs
{
Name = "name-1",
Value = "value-1",
},
},
EvaluationPeriods = 10,
MetricName = "CPUUtilization",
Namespace = "Microsoft.Compute",
Operator = "gt",
Period = 60,
PolicyName = "policy-name",
Statistic = "average",
Threshold = 10,
Unit = "percent",
},
},
ScalingUpPolicies = new[]
{
new SpotInst.Azure.Inputs.ElastigroupScalingUpPolicyArgs
{
ActionType = "setMinTarget",
Cooldown = 60,
Dimensions = new[]
{
new SpotInst.Azure.Inputs.ElastigroupScalingUpPolicyDimensionArgs
{
Name = "resourceName",
Value = "resource-name",
},
new SpotInst.Azure.Inputs.ElastigroupScalingUpPolicyDimensionArgs
{
Name = "resourceGroupName",
Value = "resource-group-name",
},
},
EvaluationPeriods = 10,
MetricName = "CPUUtilization",
MinTargetCapacity = "1",
Namespace = "Microsoft.Compute",
Operator = "gt",
Period = 60,
PolicyName = "policy-name",
Statistic = "average",
Threshold = 10,
Unit = "percent",
},
},
ScheduledTasks = new[]
{
new SpotInst.Azure.Inputs.ElastigroupScheduledTaskArgs
{
Adjustment = "2",
AdjustmentPercentage = "50",
BatchSizePercentage = "33",
CronExpression = "* * * * *",
GracePeriod = "300",
IsEnabled = true,
ScaleMaxCapacity = "8",
ScaleMinCapacity = "5",
ScaleTargetCapacity = "6",
TaskType = "scale",
},
},
ShutdownScript = "",
Strategy = new SpotInst.Azure.Inputs.ElastigroupStrategyArgs
{
DrainingTimeout = 300,
OdCount = 1,
},
UserData = "",
});
});
package main
import (
"github.com/pulumi/pulumi-spotinst/sdk/v3/go/spotinst/azure"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := azure.NewElastigroup(ctx, "testAzureGroup", &azure.ElastigroupArgs{
DesiredCapacity: pulumi.Int(1),
HealthCheck: &azure.ElastigroupHealthCheckArgs{
AutoHealing: pulumi.Bool(true),
GracePeriod: pulumi.Int(120),
HealthCheckType: pulumi.String("INSTANCE_STATE"),
},
Images: azure.ElastigroupImageArray{
&azure.ElastigroupImageArgs{
Marketplaces: azure.ElastigroupImageMarketplaceArray{
&azure.ElastigroupImageMarketplaceArgs{
Offer: pulumi.String("UbuntuServer"),
Publisher: pulumi.String("Canonical"),
Sku: pulumi.String("16.04-LTS"),
},
},
},
},
LoadBalancers: azure.ElastigroupLoadBalancerArray{
&azure.ElastigroupLoadBalancerArgs{
AutoWeight: pulumi.Bool(true),
BalancerId: pulumi.String("lb-1ee2e3q"),
TargetSetId: pulumi.String("ts-3eq"),
Type: pulumi.String("MULTAI_TARGET_SET"),
},
},
Login: &azure.ElastigroupLoginArgs{
SshPublicKey: pulumi.String("33a2s1f3g5a1df5g1ad3f2g1adfg56dfg=="),
UserName: pulumi.String("admin"),
},
LowPrioritySizes: pulumi.StringArray{
pulumi.String("standard_a1_v1"),
pulumi.String("standard_a1_v2"),
},
ManagedServiceIdentities: azure.ElastigroupManagedServiceIdentityArray{
&azure.ElastigroupManagedServiceIdentityArgs{
Name: pulumi.String("example-identity"),
ResourceGroupName: pulumi.String("spotinst-azure"),
},
},
MaxSize: pulumi.Int(1),
MinSize: pulumi.Int(0),
Network: &azure.ElastigroupNetworkArgs{
AssignPublicIp: pulumi.Bool(true),
ResourceGroupName: pulumi.String("subnetResourceGroup"),
SubnetName: pulumi.String("my-subnet-name"),
VirtualNetworkName: pulumi.String("vname"),
},
OdSizes: pulumi.StringArray{
pulumi.String("standard_a1_v1"),
pulumi.String("standard_a1_v2"),
},
Product: pulumi.String("Linux"),
Region: pulumi.String("eastus"),
ResourceGroupName: pulumi.String("spotinst-azure"),
ScalingDownPolicies: azure.ElastigroupScalingDownPolicyArray{
&azure.ElastigroupScalingDownPolicyArgs{
ActionType: pulumi.String("adjustment"),
Adjustment: pulumi.String("MIN(5,10)"),
Cooldown: pulumi.Int(60),
Dimensions: azure.ElastigroupScalingDownPolicyDimensionArray{
&azure.ElastigroupScalingDownPolicyDimensionArgs{
Name: pulumi.String("name-1"),
Value: pulumi.String("value-1"),
},
},
EvaluationPeriods: pulumi.Int(10),
MetricName: pulumi.String("CPUUtilization"),
Namespace: pulumi.String("Microsoft.Compute"),
Operator: pulumi.String("gt"),
Period: pulumi.Int(60),
PolicyName: pulumi.String("policy-name"),
Statistic: pulumi.String("average"),
Threshold: pulumi.Float64(10),
Unit: pulumi.String("percent"),
},
},
ScalingUpPolicies: azure.ElastigroupScalingUpPolicyArray{
&azure.ElastigroupScalingUpPolicyArgs{
ActionType: pulumi.String("setMinTarget"),
Cooldown: pulumi.Int(60),
Dimensions: azure.ElastigroupScalingUpPolicyDimensionArray{
&azure.ElastigroupScalingUpPolicyDimensionArgs{
Name: pulumi.String("resourceName"),
Value: pulumi.String("resource-name"),
},
&azure.ElastigroupScalingUpPolicyDimensionArgs{
Name: pulumi.String("resourceGroupName"),
Value: pulumi.String("resource-group-name"),
},
},
EvaluationPeriods: pulumi.Int(10),
MetricName: pulumi.String("CPUUtilization"),
MinTargetCapacity: pulumi.String("1"),
Namespace: pulumi.String("Microsoft.Compute"),
Operator: pulumi.String("gt"),
Period: pulumi.Int(60),
PolicyName: pulumi.String("policy-name"),
Statistic: pulumi.String("average"),
Threshold: pulumi.Float64(10),
Unit: pulumi.String("percent"),
},
},
ScheduledTasks: azure.ElastigroupScheduledTaskArray{
&azure.ElastigroupScheduledTaskArgs{
Adjustment: pulumi.String("2"),
AdjustmentPercentage: pulumi.String("50"),
BatchSizePercentage: pulumi.String("33"),
CronExpression: pulumi.String("* * * * *"),
GracePeriod: pulumi.String("300"),
IsEnabled: pulumi.Bool(true),
ScaleMaxCapacity: pulumi.String("8"),
ScaleMinCapacity: pulumi.String("5"),
ScaleTargetCapacity: pulumi.String("6"),
TaskType: pulumi.String("scale"),
},
},
ShutdownScript: pulumi.String(""),
Strategy: &azure.ElastigroupStrategyArgs{
DrainingTimeout: pulumi.Int(300),
OdCount: pulumi.Int(1),
},
UserData: pulumi.String(""),
})
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.spotinst.azure.Elastigroup;
import com.pulumi.spotinst.azure.ElastigroupArgs;
import com.pulumi.spotinst.azure.inputs.ElastigroupHealthCheckArgs;
import com.pulumi.spotinst.azure.inputs.ElastigroupImageArgs;
import com.pulumi.spotinst.azure.inputs.ElastigroupLoadBalancerArgs;
import com.pulumi.spotinst.azure.inputs.ElastigroupLoginArgs;
import com.pulumi.spotinst.azure.inputs.ElastigroupManagedServiceIdentityArgs;
import com.pulumi.spotinst.azure.inputs.ElastigroupNetworkArgs;
import com.pulumi.spotinst.azure.inputs.ElastigroupScalingDownPolicyArgs;
import com.pulumi.spotinst.azure.inputs.ElastigroupScalingUpPolicyArgs;
import com.pulumi.spotinst.azure.inputs.ElastigroupScheduledTaskArgs;
import com.pulumi.spotinst.azure.inputs.ElastigroupStrategyArgs;
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 testAzureGroup = new Elastigroup("testAzureGroup", ElastigroupArgs.builder()
.desiredCapacity(1)
.healthCheck(ElastigroupHealthCheckArgs.builder()
.autoHealing(true)
.gracePeriod(120)
.healthCheckType("INSTANCE_STATE")
.build())
.images(ElastigroupImageArgs.builder()
.marketplaces(ElastigroupImageMarketplaceArgs.builder()
.offer("UbuntuServer")
.publisher("Canonical")
.sku("16.04-LTS")
.build())
.build())
.loadBalancers(ElastigroupLoadBalancerArgs.builder()
.autoWeight(true)
.balancerId("lb-1ee2e3q")
.targetSetId("ts-3eq")
.type("MULTAI_TARGET_SET")
.build())
.login(ElastigroupLoginArgs.builder()
.sshPublicKey("33a2s1f3g5a1df5g1ad3f2g1adfg56dfg==")
.userName("admin")
.build())
.lowPrioritySizes(
"standard_a1_v1",
"standard_a1_v2")
.managedServiceIdentities(ElastigroupManagedServiceIdentityArgs.builder()
.name("example-identity")
.resourceGroupName("spotinst-azure")
.build())
.maxSize(1)
.minSize(0)
.network(ElastigroupNetworkArgs.builder()
.assignPublicIp(true)
.resourceGroupName("subnetResourceGroup")
.subnetName("my-subnet-name")
.virtualNetworkName("vname")
.build())
.odSizes(
"standard_a1_v1",
"standard_a1_v2")
.product("Linux")
.region("eastus")
.resourceGroupName("spotinst-azure")
.scalingDownPolicies(ElastigroupScalingDownPolicyArgs.builder()
.actionType("adjustment")
.adjustment("MIN(5,10)")
.cooldown(60)
.dimensions(ElastigroupScalingDownPolicyDimensionArgs.builder()
.name("name-1")
.value("value-1")
.build())
.evaluationPeriods("10")
.metricName("CPUUtilization")
.namespace("Microsoft.Compute")
.operator("gt")
.period("60")
.policyName("policy-name")
.statistic("average")
.threshold(10)
.unit("percent")
.build())
.scalingUpPolicies(ElastigroupScalingUpPolicyArgs.builder()
.actionType("setMinTarget")
.cooldown(60)
.dimensions(
ElastigroupScalingUpPolicyDimensionArgs.builder()
.name("resourceName")
.value("resource-name")
.build(),
ElastigroupScalingUpPolicyDimensionArgs.builder()
.name("resourceGroupName")
.value("resource-group-name")
.build())
.evaluationPeriods("10")
.metricName("CPUUtilization")
.minTargetCapacity(1)
.namespace("Microsoft.Compute")
.operator("gt")
.period("60")
.policyName("policy-name")
.statistic("average")
.threshold(10)
.unit("percent")
.build())
.scheduledTasks(ElastigroupScheduledTaskArgs.builder()
.adjustment(2)
.adjustmentPercentage(50)
.batchSizePercentage(33)
.cronExpression("* * * * *")
.gracePeriod(300)
.isEnabled(true)
.scaleMaxCapacity(8)
.scaleMinCapacity(5)
.scaleTargetCapacity(6)
.taskType("scale")
.build())
.shutdownScript("")
.strategy(ElastigroupStrategyArgs.builder()
.drainingTimeout(300)
.odCount(1)
.build())
.userData("")
.build());
}
}
import pulumi
import pulumi_spotinst as spotinst
test_azure_group = spotinst.azure.Elastigroup("testAzureGroup",
desired_capacity=1,
health_check=spotinst.azure.ElastigroupHealthCheckArgs(
auto_healing=True,
grace_period=120,
health_check_type="INSTANCE_STATE",
),
images=[spotinst.azure.ElastigroupImageArgs(
marketplaces=[spotinst.azure.ElastigroupImageMarketplaceArgs(
offer="UbuntuServer",
publisher="Canonical",
sku="16.04-LTS",
)],
)],
load_balancers=[spotinst.azure.ElastigroupLoadBalancerArgs(
auto_weight=True,
balancer_id="lb-1ee2e3q",
target_set_id="ts-3eq",
type="MULTAI_TARGET_SET",
)],
login=spotinst.azure.ElastigroupLoginArgs(
ssh_public_key="33a2s1f3g5a1df5g1ad3f2g1adfg56dfg==",
user_name="admin",
),
low_priority_sizes=[
"standard_a1_v1",
"standard_a1_v2",
],
managed_service_identities=[spotinst.azure.ElastigroupManagedServiceIdentityArgs(
name="example-identity",
resource_group_name="spotinst-azure",
)],
max_size=1,
min_size=0,
network=spotinst.azure.ElastigroupNetworkArgs(
assign_public_ip=True,
resource_group_name="subnetResourceGroup",
subnet_name="my-subnet-name",
virtual_network_name="vname",
),
od_sizes=[
"standard_a1_v1",
"standard_a1_v2",
],
product="Linux",
region="eastus",
resource_group_name="spotinst-azure",
scaling_down_policies=[spotinst.azure.ElastigroupScalingDownPolicyArgs(
action_type="adjustment",
adjustment="MIN(5,10)",
cooldown=60,
dimensions=[spotinst.azure.ElastigroupScalingDownPolicyDimensionArgs(
name="name-1",
value="value-1",
)],
evaluation_periods=10,
metric_name="CPUUtilization",
namespace="Microsoft.Compute",
operator="gt",
period=60,
policy_name="policy-name",
statistic="average",
threshold=10,
unit="percent",
)],
scaling_up_policies=[spotinst.azure.ElastigroupScalingUpPolicyArgs(
action_type="setMinTarget",
cooldown=60,
dimensions=[
spotinst.azure.ElastigroupScalingUpPolicyDimensionArgs(
name="resourceName",
value="resource-name",
),
spotinst.azure.ElastigroupScalingUpPolicyDimensionArgs(
name="resourceGroupName",
value="resource-group-name",
),
],
evaluation_periods=10,
metric_name="CPUUtilization",
min_target_capacity="1",
namespace="Microsoft.Compute",
operator="gt",
period=60,
policy_name="policy-name",
statistic="average",
threshold=10,
unit="percent",
)],
scheduled_tasks=[spotinst.azure.ElastigroupScheduledTaskArgs(
adjustment="2",
adjustment_percentage="50",
batch_size_percentage="33",
cron_expression="* * * * *",
grace_period="300",
is_enabled=True,
scale_max_capacity="8",
scale_min_capacity="5",
scale_target_capacity="6",
task_type="scale",
)],
shutdown_script="",
strategy=spotinst.azure.ElastigroupStrategyArgs(
draining_timeout=300,
od_count=1,
),
user_data="")
import * as pulumi from "@pulumi/pulumi";
import * as spotinst from "@pulumi/spotinst";
const testAzureGroup = new spotinst.azure.Elastigroup("testAzureGroup", {
desiredCapacity: 1,
healthCheck: {
autoHealing: true,
gracePeriod: 120,
healthCheckType: "INSTANCE_STATE",
},
images: [{
marketplaces: [{
offer: "UbuntuServer",
publisher: "Canonical",
sku: "16.04-LTS",
}],
}],
loadBalancers: [{
autoWeight: true,
balancerId: "lb-1ee2e3q",
targetSetId: "ts-3eq",
type: "MULTAI_TARGET_SET",
}],
login: {
sshPublicKey: "33a2s1f3g5a1df5g1ad3f2g1adfg56dfg==",
userName: "admin",
},
lowPrioritySizes: [
"standard_a1_v1",
"standard_a1_v2",
],
managedServiceIdentities: [{
name: "example-identity",
resourceGroupName: "spotinst-azure",
}],
maxSize: 1,
minSize: 0,
network: {
assignPublicIp: true,
resourceGroupName: "subnetResourceGroup",
subnetName: "my-subnet-name",
virtualNetworkName: "vname",
},
odSizes: [
"standard_a1_v1",
"standard_a1_v2",
],
product: "Linux",
region: "eastus",
resourceGroupName: "spotinst-azure",
scalingDownPolicies: [{
actionType: "adjustment",
adjustment: "MIN(5,10)",
cooldown: 60,
dimensions: [{
name: "name-1",
value: "value-1",
}],
evaluationPeriods: 10,
metricName: "CPUUtilization",
namespace: "Microsoft.Compute",
operator: "gt",
period: 60,
policyName: "policy-name",
statistic: "average",
threshold: 10,
unit: "percent",
}],
scalingUpPolicies: [{
actionType: "setMinTarget",
cooldown: 60,
dimensions: [
{
name: "resourceName",
value: "resource-name",
},
{
name: "resourceGroupName",
value: "resource-group-name",
},
],
evaluationPeriods: 10,
metricName: "CPUUtilization",
minTargetCapacity: "1",
namespace: "Microsoft.Compute",
operator: "gt",
period: 60,
policyName: "policy-name",
statistic: "average",
threshold: 10,
unit: "percent",
}],
scheduledTasks: [{
adjustment: "2",
adjustmentPercentage: "50",
batchSizePercentage: "33",
cronExpression: "* * * * *",
gracePeriod: "300",
isEnabled: true,
scaleMaxCapacity: "8",
scaleMinCapacity: "5",
scaleTargetCapacity: "6",
taskType: "scale",
}],
shutdownScript: "",
strategy: {
drainingTimeout: 300,
odCount: 1,
},
userData: "",
});
resources:
testAzureGroup:
type: spotinst:azure:Elastigroup
properties:
desiredCapacity: 1
# --- HEALTH-CHECKS -------------------------------------------------
healthCheck:
autoHealing: true
gracePeriod: 120
healthCheckType: INSTANCE_STATE
# --- IMAGE ---------------------------------------------------------
images:
- marketplaces:
- offer: UbuntuServer
publisher: Canonical
sku: 16.04-LTS
# --- LOAD BALANCERS ------------------------------------------------
loadBalancers:
- autoWeight: true
balancerId: lb-1ee2e3q
targetSetId: ts-3eq
type: MULTAI_TARGET_SET
# --- LOGIN ---------------------------------------------------------
login:
sshPublicKey: 33a2s1f3g5a1df5g1ad3f2g1adfg56dfg==
userName: admin
lowPrioritySizes:
- standard_a1_v1
- standard_a1_v2
managedServiceIdentities:
- name: example-identity
resourceGroupName: spotinst-azure
maxSize: 1
# --- CAPACITY ------------------------------------------------------
minSize: 0
# --- NETWORK -------------------------------------------------------
network:
assignPublicIp: true
resourceGroupName: subnetResourceGroup
subnetName: my-subnet-name
virtualNetworkName: vname
# --- INSTANCE TYPES ------------------------------------------------
odSizes:
- standard_a1_v1
- standard_a1_v2
product: Linux
region: eastus
resourceGroupName: spotinst-azure
scalingDownPolicies:
- actionType: adjustment
adjustment: MIN(5,10)
cooldown: 60
dimensions:
- name: name-1
value: value-1
evaluationPeriods: '10'
metricName: CPUUtilization
namespace: Microsoft.Compute
operator: gt
period: '60'
policyName: policy-name
statistic: average
threshold: 10
unit: percent
# --- SCALING POLICIES ----------------------------------------------
scalingUpPolicies:
- actionType: setMinTarget
cooldown: 60
dimensions:
- name: resourceName
value: resource-name
- name: resourceGroupName
value: resource-group-name
evaluationPeriods: '10'
metricName: CPUUtilization
minTargetCapacity: 1
namespace: Microsoft.Compute
operator: gt
period: '60'
policyName: policy-name
statistic: average
threshold: 10
unit: percent
# --- SCHEDULED TASK ------------------------------------------------
scheduledTasks:
- adjustment: 2
adjustmentPercentage: 50
batchSizePercentage: 33
cronExpression: '* * * * *'
gracePeriod: 300
isEnabled: true
scaleMaxCapacity: 8
scaleMinCapacity: 5
scaleTargetCapacity: 6
taskType: scale
shutdownScript:
# --- STRATEGY ------------------------------------------------------
strategy:
drainingTimeout: 300
odCount: 1
userData:
Create Elastigroup Resource
new Elastigroup(name: string, args: ElastigroupArgs, opts?: CustomResourceOptions);
@overload
def Elastigroup(resource_name: str,
opts: Optional[ResourceOptions] = None,
custom_data: Optional[str] = None,
desired_capacity: Optional[int] = None,
health_check: Optional[ElastigroupHealthCheckArgs] = None,
images: Optional[Sequence[ElastigroupImageArgs]] = None,
integration_kubernetes: Optional[ElastigroupIntegrationKubernetesArgs] = None,
integration_multai_runtime: Optional[ElastigroupIntegrationMultaiRuntimeArgs] = None,
load_balancers: Optional[Sequence[ElastigroupLoadBalancerArgs]] = None,
login: Optional[ElastigroupLoginArgs] = None,
low_priority_sizes: Optional[Sequence[str]] = None,
managed_service_identities: Optional[Sequence[ElastigroupManagedServiceIdentityArgs]] = None,
max_size: Optional[int] = None,
min_size: Optional[int] = None,
name: Optional[str] = None,
network: Optional[ElastigroupNetworkArgs] = None,
od_sizes: Optional[Sequence[str]] = None,
product: Optional[str] = None,
region: Optional[str] = None,
resource_group_name: Optional[str] = None,
scaling_down_policies: Optional[Sequence[ElastigroupScalingDownPolicyArgs]] = None,
scaling_up_policies: Optional[Sequence[ElastigroupScalingUpPolicyArgs]] = None,
scheduled_tasks: Optional[Sequence[ElastigroupScheduledTaskArgs]] = None,
shutdown_script: Optional[str] = None,
strategy: Optional[ElastigroupStrategyArgs] = None,
update_policy: Optional[ElastigroupUpdatePolicyArgs] = None,
user_data: Optional[str] = None)
@overload
def Elastigroup(resource_name: str,
args: ElastigroupArgs,
opts: Optional[ResourceOptions] = None)
func NewElastigroup(ctx *Context, name string, args ElastigroupArgs, opts ...ResourceOption) (*Elastigroup, error)
public Elastigroup(string name, ElastigroupArgs args, CustomResourceOptions? opts = null)
public Elastigroup(String name, ElastigroupArgs args)
public Elastigroup(String name, ElastigroupArgs args, CustomResourceOptions options)
type: spotinst:azure:Elastigroup
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ElastigroupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ElastigroupArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ElastigroupArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ElastigroupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ElastigroupArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Elastigroup Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The Elastigroup resource accepts the following input properties:
- Low
Priority List<string>Sizes Available Low-Priority sizes.
- Network
Pulumi.
Spot Inst. Azure. Inputs. Elastigroup Network Args - Od
Sizes List<string> Available On-Demand sizes
- Product string
Operation system type. Valid values:
"Linux"
,"Windows"
.- Region string
The region your Azure group will be created in.
- Resource
Group stringName The Resource Group that the user-assigned managed identity resides in.
- Strategy
Pulumi.
Spot Inst. Azure. Inputs. Elastigroup Strategy Args Describes the deployment strategy.
- Custom
Data string - Desired
Capacity int The desired number of instances the group should have at any time.
- Health
Check Pulumi.Spot Inst. Azure. Inputs. Elastigroup Health Check Args - Images
List<Pulumi.
Spot Inst. Azure. Inputs. Elastigroup Image Args> - Integration
Kubernetes Pulumi.Spot Inst. Azure. Inputs. Elastigroup Integration Kubernetes Args Describes the Kubernetes integration.
- Integration
Multai Pulumi.Runtime Spot Inst. Azure. Inputs. Elastigroup Integration Multai Runtime Args Describes the Multai Runtime integration.
- Load
Balancers List<Pulumi.Spot Inst. Azure. Inputs. Elastigroup Load Balancer Args> - Login
Pulumi.
Spot Inst. Azure. Inputs. Elastigroup Login Args - Managed
Service List<Pulumi.Identities Spot Inst. Azure. Inputs. Elastigroup Managed Service Identity Args> - Max
Size int The maximum number of instances the group should have at any time.
- Min
Size int The minimum number of instances the group should have at any time.
- Name string
The name of the managed identity.
- Scaling
Down List<Pulumi.Policies Spot Inst. Azure. Inputs. Elastigroup Scaling Down Policy Args> - Scaling
Up List<Pulumi.Policies Spot Inst. Azure. Inputs. Elastigroup Scaling Up Policy Args> - Scheduled
Tasks List<Pulumi.Spot Inst. Azure. Inputs. Elastigroup Scheduled Task Args> Describes the configuration of one or more scheduled tasks.
- Shutdown
Script string Shutdown script for the group. Value should be passed as a string encoded at Base64 only.
- Update
Policy Pulumi.Spot Inst. Azure. Inputs. Elastigroup Update Policy Args - User
Data string Base64-encoded MIME user data to make available to the instances.
- Low
Priority []stringSizes Available Low-Priority sizes.
- Network
Elastigroup
Network Args - Od
Sizes []string Available On-Demand sizes
- Product string
Operation system type. Valid values:
"Linux"
,"Windows"
.- Region string
The region your Azure group will be created in.
- Resource
Group stringName The Resource Group that the user-assigned managed identity resides in.
- Strategy
Elastigroup
Strategy Args Describes the deployment strategy.
- Custom
Data string - Desired
Capacity int The desired number of instances the group should have at any time.
- Health
Check ElastigroupHealth Check Args - Images
[]Elastigroup
Image Args - Integration
Kubernetes ElastigroupIntegration Kubernetes Args Describes the Kubernetes integration.
- Integration
Multai ElastigroupRuntime Integration Multai Runtime Args Describes the Multai Runtime integration.
- Load
Balancers []ElastigroupLoad Balancer Args - Login
Elastigroup
Login Args - Managed
Service []ElastigroupIdentities Managed Service Identity Args - Max
Size int The maximum number of instances the group should have at any time.
- Min
Size int The minimum number of instances the group should have at any time.
- Name string
The name of the managed identity.
- Scaling
Down []ElastigroupPolicies Scaling Down Policy Args - Scaling
Up []ElastigroupPolicies Scaling Up Policy Args - Scheduled
Tasks []ElastigroupScheduled Task Args Describes the configuration of one or more scheduled tasks.
- Shutdown
Script string Shutdown script for the group. Value should be passed as a string encoded at Base64 only.
- Update
Policy ElastigroupUpdate Policy Args - User
Data string Base64-encoded MIME user data to make available to the instances.
- low
Priority List<String>Sizes Available Low-Priority sizes.
- network
Elastigroup
Network Args - od
Sizes List<String> Available On-Demand sizes
- product String
Operation system type. Valid values:
"Linux"
,"Windows"
.- region String
The region your Azure group will be created in.
- resource
Group StringName The Resource Group that the user-assigned managed identity resides in.
- strategy
Elastigroup
Strategy Args Describes the deployment strategy.
- custom
Data String - desired
Capacity Integer The desired number of instances the group should have at any time.
- health
Check ElastigroupHealth Check Args - images
List<Elastigroup
Image Args> - integration
Kubernetes ElastigroupIntegration Kubernetes Args Describes the Kubernetes integration.
- integration
Multai ElastigroupRuntime Integration Multai Runtime Args Describes the Multai Runtime integration.
- load
Balancers List<ElastigroupLoad Balancer Args> - login
Elastigroup
Login Args - managed
Service List<ElastigroupIdentities Managed Service Identity Args> - max
Size Integer The maximum number of instances the group should have at any time.
- min
Size Integer The minimum number of instances the group should have at any time.
- name String
The name of the managed identity.
- scaling
Down List<ElastigroupPolicies Scaling Down Policy Args> - scaling
Up List<ElastigroupPolicies Scaling Up Policy Args> - scheduled
Tasks List<ElastigroupScheduled Task Args> Describes the configuration of one or more scheduled tasks.
- shutdown
Script String Shutdown script for the group. Value should be passed as a string encoded at Base64 only.
- update
Policy ElastigroupUpdate Policy Args - user
Data String Base64-encoded MIME user data to make available to the instances.
- low
Priority string[]Sizes Available Low-Priority sizes.
- network
Elastigroup
Network Args - od
Sizes string[] Available On-Demand sizes
- product string
Operation system type. Valid values:
"Linux"
,"Windows"
.- region string
The region your Azure group will be created in.
- resource
Group stringName The Resource Group that the user-assigned managed identity resides in.
- strategy
Elastigroup
Strategy Args Describes the deployment strategy.
- custom
Data string - desired
Capacity number The desired number of instances the group should have at any time.
- health
Check ElastigroupHealth Check Args - images
Elastigroup
Image Args[] - integration
Kubernetes ElastigroupIntegration Kubernetes Args Describes the Kubernetes integration.
- integration
Multai ElastigroupRuntime Integration Multai Runtime Args Describes the Multai Runtime integration.
- load
Balancers ElastigroupLoad Balancer Args[] - login
Elastigroup
Login Args - managed
Service ElastigroupIdentities Managed Service Identity Args[] - max
Size number The maximum number of instances the group should have at any time.
- min
Size number The minimum number of instances the group should have at any time.
- name string
The name of the managed identity.
- scaling
Down ElastigroupPolicies Scaling Down Policy Args[] - scaling
Up ElastigroupPolicies Scaling Up Policy Args[] - scheduled
Tasks ElastigroupScheduled Task Args[] Describes the configuration of one or more scheduled tasks.
- shutdown
Script string Shutdown script for the group. Value should be passed as a string encoded at Base64 only.
- update
Policy ElastigroupUpdate Policy Args - user
Data string Base64-encoded MIME user data to make available to the instances.
- low_
priority_ Sequence[str]sizes Available Low-Priority sizes.
- network
Elastigroup
Network Args - od_
sizes Sequence[str] Available On-Demand sizes
- product str
Operation system type. Valid values:
"Linux"
,"Windows"
.- region str
The region your Azure group will be created in.
- resource_
group_ strname The Resource Group that the user-assigned managed identity resides in.
- strategy
Elastigroup
Strategy Args Describes the deployment strategy.
- custom_
data str - desired_
capacity int The desired number of instances the group should have at any time.
- health_
check ElastigroupHealth Check Args - images
Sequence[Elastigroup
Image Args] - integration_
kubernetes ElastigroupIntegration Kubernetes Args Describes the Kubernetes integration.
- integration_
multai_ Elastigroupruntime Integration Multai Runtime Args Describes the Multai Runtime integration.
- load_
balancers Sequence[ElastigroupLoad Balancer Args] - login
Elastigroup
Login Args - managed_
service_ Sequence[Elastigroupidentities Managed Service Identity Args] - max_
size int The maximum number of instances the group should have at any time.
- min_
size int The minimum number of instances the group should have at any time.
- name str
The name of the managed identity.
- scaling_
down_ Sequence[Elastigrouppolicies Scaling Down Policy Args] - scaling_
up_ Sequence[Elastigrouppolicies Scaling Up Policy Args] - scheduled_
tasks Sequence[ElastigroupScheduled Task Args] Describes the configuration of one or more scheduled tasks.
- shutdown_
script str Shutdown script for the group. Value should be passed as a string encoded at Base64 only.
- update_
policy ElastigroupUpdate Policy Args - user_
data str Base64-encoded MIME user data to make available to the instances.
- low
Priority List<String>Sizes Available Low-Priority sizes.
- network Property Map
- od
Sizes List<String> Available On-Demand sizes
- product String
Operation system type. Valid values:
"Linux"
,"Windows"
.- region String
The region your Azure group will be created in.
- resource
Group StringName The Resource Group that the user-assigned managed identity resides in.
- strategy Property Map
Describes the deployment strategy.
- custom
Data String - desired
Capacity Number The desired number of instances the group should have at any time.
- health
Check Property Map - images List<Property Map>
- integration
Kubernetes Property Map Describes the Kubernetes integration.
- integration
Multai Property MapRuntime Describes the Multai Runtime integration.
- load
Balancers List<Property Map> - login Property Map
- managed
Service List<Property Map>Identities - max
Size Number The maximum number of instances the group should have at any time.
- min
Size Number The minimum number of instances the group should have at any time.
- name String
The name of the managed identity.
- scaling
Down List<Property Map>Policies - scaling
Up List<Property Map>Policies - scheduled
Tasks List<Property Map> Describes the configuration of one or more scheduled tasks.
- shutdown
Script String Shutdown script for the group. Value should be passed as a string encoded at Base64 only.
- update
Policy Property Map - user
Data String Base64-encoded MIME user data to make available to the instances.
Outputs
All input properties are implicitly available as output properties. Additionally, the Elastigroup resource produces the following output properties:
- Id string
The provider-assigned unique ID for this managed resource.
- Id string
The provider-assigned unique ID for this managed resource.
- id String
The provider-assigned unique ID for this managed resource.
- id string
The provider-assigned unique ID for this managed resource.
- id str
The provider-assigned unique ID for this managed resource.
- id String
The provider-assigned unique ID for this managed resource.
Look up Existing Elastigroup Resource
Get an existing Elastigroup resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ElastigroupState, opts?: CustomResourceOptions): Elastigroup
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
custom_data: Optional[str] = None,
desired_capacity: Optional[int] = None,
health_check: Optional[ElastigroupHealthCheckArgs] = None,
images: Optional[Sequence[ElastigroupImageArgs]] = None,
integration_kubernetes: Optional[ElastigroupIntegrationKubernetesArgs] = None,
integration_multai_runtime: Optional[ElastigroupIntegrationMultaiRuntimeArgs] = None,
load_balancers: Optional[Sequence[ElastigroupLoadBalancerArgs]] = None,
login: Optional[ElastigroupLoginArgs] = None,
low_priority_sizes: Optional[Sequence[str]] = None,
managed_service_identities: Optional[Sequence[ElastigroupManagedServiceIdentityArgs]] = None,
max_size: Optional[int] = None,
min_size: Optional[int] = None,
name: Optional[str] = None,
network: Optional[ElastigroupNetworkArgs] = None,
od_sizes: Optional[Sequence[str]] = None,
product: Optional[str] = None,
region: Optional[str] = None,
resource_group_name: Optional[str] = None,
scaling_down_policies: Optional[Sequence[ElastigroupScalingDownPolicyArgs]] = None,
scaling_up_policies: Optional[Sequence[ElastigroupScalingUpPolicyArgs]] = None,
scheduled_tasks: Optional[Sequence[ElastigroupScheduledTaskArgs]] = None,
shutdown_script: Optional[str] = None,
strategy: Optional[ElastigroupStrategyArgs] = None,
update_policy: Optional[ElastigroupUpdatePolicyArgs] = None,
user_data: Optional[str] = None) -> Elastigroup
func GetElastigroup(ctx *Context, name string, id IDInput, state *ElastigroupState, opts ...ResourceOption) (*Elastigroup, error)
public static Elastigroup Get(string name, Input<string> id, ElastigroupState? state, CustomResourceOptions? opts = null)
public static Elastigroup get(String name, Output<String> id, ElastigroupState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Custom
Data string - Desired
Capacity int The desired number of instances the group should have at any time.
- Health
Check Pulumi.Spot Inst. Azure. Inputs. Elastigroup Health Check Args - Images
List<Pulumi.
Spot Inst. Azure. Inputs. Elastigroup Image Args> - Integration
Kubernetes Pulumi.Spot Inst. Azure. Inputs. Elastigroup Integration Kubernetes Args Describes the Kubernetes integration.
- Integration
Multai Pulumi.Runtime Spot Inst. Azure. Inputs. Elastigroup Integration Multai Runtime Args Describes the Multai Runtime integration.
- Load
Balancers List<Pulumi.Spot Inst. Azure. Inputs. Elastigroup Load Balancer Args> - Login
Pulumi.
Spot Inst. Azure. Inputs. Elastigroup Login Args - Low
Priority List<string>Sizes Available Low-Priority sizes.
- Managed
Service List<Pulumi.Identities Spot Inst. Azure. Inputs. Elastigroup Managed Service Identity Args> - Max
Size int The maximum number of instances the group should have at any time.
- Min
Size int The minimum number of instances the group should have at any time.
- Name string
The name of the managed identity.
- Network
Pulumi.
Spot Inst. Azure. Inputs. Elastigroup Network Args - Od
Sizes List<string> Available On-Demand sizes
- Product string
Operation system type. Valid values:
"Linux"
,"Windows"
.- Region string
The region your Azure group will be created in.
- Resource
Group stringName The Resource Group that the user-assigned managed identity resides in.
- Scaling
Down List<Pulumi.Policies Spot Inst. Azure. Inputs. Elastigroup Scaling Down Policy Args> - Scaling
Up List<Pulumi.Policies Spot Inst. Azure. Inputs. Elastigroup Scaling Up Policy Args> - Scheduled
Tasks List<Pulumi.Spot Inst. Azure. Inputs. Elastigroup Scheduled Task Args> Describes the configuration of one or more scheduled tasks.
- Shutdown
Script string Shutdown script for the group. Value should be passed as a string encoded at Base64 only.
- Strategy
Pulumi.
Spot Inst. Azure. Inputs. Elastigroup Strategy Args Describes the deployment strategy.
- Update
Policy Pulumi.Spot Inst. Azure. Inputs. Elastigroup Update Policy Args - User
Data string Base64-encoded MIME user data to make available to the instances.
- Custom
Data string - Desired
Capacity int The desired number of instances the group should have at any time.
- Health
Check ElastigroupHealth Check Args - Images
[]Elastigroup
Image Args - Integration
Kubernetes ElastigroupIntegration Kubernetes Args Describes the Kubernetes integration.
- Integration
Multai ElastigroupRuntime Integration Multai Runtime Args Describes the Multai Runtime integration.
- Load
Balancers []ElastigroupLoad Balancer Args - Login
Elastigroup
Login Args - Low
Priority []stringSizes Available Low-Priority sizes.
- Managed
Service []ElastigroupIdentities Managed Service Identity Args - Max
Size int The maximum number of instances the group should have at any time.
- Min
Size int The minimum number of instances the group should have at any time.
- Name string
The name of the managed identity.
- Network
Elastigroup
Network Args - Od
Sizes []string Available On-Demand sizes
- Product string
Operation system type. Valid values:
"Linux"
,"Windows"
.- Region string
The region your Azure group will be created in.
- Resource
Group stringName The Resource Group that the user-assigned managed identity resides in.
- Scaling
Down []ElastigroupPolicies Scaling Down Policy Args - Scaling
Up []ElastigroupPolicies Scaling Up Policy Args - Scheduled
Tasks []ElastigroupScheduled Task Args Describes the configuration of one or more scheduled tasks.
- Shutdown
Script string Shutdown script for the group. Value should be passed as a string encoded at Base64 only.
- Strategy
Elastigroup
Strategy Args Describes the deployment strategy.
- Update
Policy ElastigroupUpdate Policy Args - User
Data string Base64-encoded MIME user data to make available to the instances.
- custom
Data String - desired
Capacity Integer The desired number of instances the group should have at any time.
- health
Check ElastigroupHealth Check Args - images
List<Elastigroup
Image Args> - integration
Kubernetes ElastigroupIntegration Kubernetes Args Describes the Kubernetes integration.
- integration
Multai ElastigroupRuntime Integration Multai Runtime Args Describes the Multai Runtime integration.
- load
Balancers List<ElastigroupLoad Balancer Args> - login
Elastigroup
Login Args - low
Priority List<String>Sizes Available Low-Priority sizes.
- managed
Service List<ElastigroupIdentities Managed Service Identity Args> - max
Size Integer The maximum number of instances the group should have at any time.
- min
Size Integer The minimum number of instances the group should have at any time.
- name String
The name of the managed identity.
- network
Elastigroup
Network Args - od
Sizes List<String> Available On-Demand sizes
- product String
Operation system type. Valid values:
"Linux"
,"Windows"
.- region String
The region your Azure group will be created in.
- resource
Group StringName The Resource Group that the user-assigned managed identity resides in.
- scaling
Down List<ElastigroupPolicies Scaling Down Policy Args> - scaling
Up List<ElastigroupPolicies Scaling Up Policy Args> - scheduled
Tasks List<ElastigroupScheduled Task Args> Describes the configuration of one or more scheduled tasks.
- shutdown
Script String Shutdown script for the group. Value should be passed as a string encoded at Base64 only.
- strategy
Elastigroup
Strategy Args Describes the deployment strategy.
- update
Policy ElastigroupUpdate Policy Args - user
Data String Base64-encoded MIME user data to make available to the instances.
- custom
Data string - desired
Capacity number The desired number of instances the group should have at any time.
- health
Check ElastigroupHealth Check Args - images
Elastigroup
Image Args[] - integration
Kubernetes ElastigroupIntegration Kubernetes Args Describes the Kubernetes integration.
- integration
Multai ElastigroupRuntime Integration Multai Runtime Args Describes the Multai Runtime integration.
- load
Balancers ElastigroupLoad Balancer Args[] - login
Elastigroup
Login Args - low
Priority string[]Sizes Available Low-Priority sizes.
- managed
Service ElastigroupIdentities Managed Service Identity Args[] - max
Size number The maximum number of instances the group should have at any time.
- min
Size number The minimum number of instances the group should have at any time.
- name string
The name of the managed identity.
- network
Elastigroup
Network Args - od
Sizes string[] Available On-Demand sizes
- product string
Operation system type. Valid values:
"Linux"
,"Windows"
.- region string
The region your Azure group will be created in.
- resource
Group stringName The Resource Group that the user-assigned managed identity resides in.
- scaling
Down ElastigroupPolicies Scaling Down Policy Args[] - scaling
Up ElastigroupPolicies Scaling Up Policy Args[] - scheduled
Tasks ElastigroupScheduled Task Args[] Describes the configuration of one or more scheduled tasks.
- shutdown
Script string Shutdown script for the group. Value should be passed as a string encoded at Base64 only.
- strategy
Elastigroup
Strategy Args Describes the deployment strategy.
- update
Policy ElastigroupUpdate Policy Args - user
Data string Base64-encoded MIME user data to make available to the instances.
- custom_
data str - desired_
capacity int The desired number of instances the group should have at any time.
- health_
check ElastigroupHealth Check Args - images
Sequence[Elastigroup
Image Args] - integration_
kubernetes ElastigroupIntegration Kubernetes Args Describes the Kubernetes integration.
- integration_
multai_ Elastigroupruntime Integration Multai Runtime Args Describes the Multai Runtime integration.
- load_
balancers Sequence[ElastigroupLoad Balancer Args] - login
Elastigroup
Login Args - low_
priority_ Sequence[str]sizes Available Low-Priority sizes.
- managed_
service_ Sequence[Elastigroupidentities Managed Service Identity Args] - max_
size int The maximum number of instances the group should have at any time.
- min_
size int The minimum number of instances the group should have at any time.
- name str
The name of the managed identity.
- network
Elastigroup
Network Args - od_
sizes Sequence[str] Available On-Demand sizes
- product str
Operation system type. Valid values:
"Linux"
,"Windows"
.- region str
The region your Azure group will be created in.
- resource_
group_ strname The Resource Group that the user-assigned managed identity resides in.
- scaling_
down_ Sequence[Elastigrouppolicies Scaling Down Policy Args] - scaling_
up_ Sequence[Elastigrouppolicies Scaling Up Policy Args] - scheduled_
tasks Sequence[ElastigroupScheduled Task Args] Describes the configuration of one or more scheduled tasks.
- shutdown_
script str Shutdown script for the group. Value should be passed as a string encoded at Base64 only.
- strategy
Elastigroup
Strategy Args Describes the deployment strategy.
- update_
policy ElastigroupUpdate Policy Args - user_
data str Base64-encoded MIME user data to make available to the instances.
- custom
Data String - desired
Capacity Number The desired number of instances the group should have at any time.
- health
Check Property Map - images List<Property Map>
- integration
Kubernetes Property Map Describes the Kubernetes integration.
- integration
Multai Property MapRuntime Describes the Multai Runtime integration.
- load
Balancers List<Property Map> - login Property Map
- low
Priority List<String>Sizes Available Low-Priority sizes.
- managed
Service List<Property Map>Identities - max
Size Number The maximum number of instances the group should have at any time.
- min
Size Number The minimum number of instances the group should have at any time.
- name String
The name of the managed identity.
- network Property Map
- od
Sizes List<String> Available On-Demand sizes
- product String
Operation system type. Valid values:
"Linux"
,"Windows"
.- region String
The region your Azure group will be created in.
- resource
Group StringName The Resource Group that the user-assigned managed identity resides in.
- scaling
Down List<Property Map>Policies - scaling
Up List<Property Map>Policies - scheduled
Tasks List<Property Map> Describes the configuration of one or more scheduled tasks.
- shutdown
Script String Shutdown script for the group. Value should be passed as a string encoded at Base64 only.
- strategy Property Map
Describes the deployment strategy.
- update
Policy Property Map - user
Data String Base64-encoded MIME user data to make available to the instances.
Supporting Types
ElastigroupHealthCheck
- Health
Check stringType Health check used to validate VM health. Valid values: “INSTANCE_STATE”.
- Auto
Healing bool Enable auto-healing of unhealthy VMs.
- Grace
Period int Period of time (seconds) to wait for VM to reach healthiness before monitoring for unhealthiness.
- Health
Check stringType Health check used to validate VM health. Valid values: “INSTANCE_STATE”.
- Auto
Healing bool Enable auto-healing of unhealthy VMs.
- Grace
Period int Period of time (seconds) to wait for VM to reach healthiness before monitoring for unhealthiness.
- health
Check StringType Health check used to validate VM health. Valid values: “INSTANCE_STATE”.
- auto
Healing Boolean Enable auto-healing of unhealthy VMs.
- grace
Period Integer Period of time (seconds) to wait for VM to reach healthiness before monitoring for unhealthiness.
- health
Check stringType Health check used to validate VM health. Valid values: “INSTANCE_STATE”.
- auto
Healing boolean Enable auto-healing of unhealthy VMs.
- grace
Period number Period of time (seconds) to wait for VM to reach healthiness before monitoring for unhealthiness.
- health_
check_ strtype Health check used to validate VM health. Valid values: “INSTANCE_STATE”.
- auto_
healing bool Enable auto-healing of unhealthy VMs.
- grace_
period int Period of time (seconds) to wait for VM to reach healthiness before monitoring for unhealthiness.
- health
Check StringType Health check used to validate VM health. Valid values: “INSTANCE_STATE”.
- auto
Healing Boolean Enable auto-healing of unhealthy VMs.
- grace
Period Number Period of time (seconds) to wait for VM to reach healthiness before monitoring for unhealthiness.
ElastigroupImage
ElastigroupImageCustom
- Image
Name string Name of the custom image. Required if resource_group_name is specified.
- Resource
Group stringName The Resource Group that the user-assigned managed identity resides in.
- Image
Name string Name of the custom image. Required if resource_group_name is specified.
- Resource
Group stringName The Resource Group that the user-assigned managed identity resides in.
- image
Name String Name of the custom image. Required if resource_group_name is specified.
- resource
Group StringName The Resource Group that the user-assigned managed identity resides in.
- image
Name string Name of the custom image. Required if resource_group_name is specified.
- resource
Group stringName The Resource Group that the user-assigned managed identity resides in.
- image_
name str Name of the custom image. Required if resource_group_name is specified.
- resource_
group_ strname The Resource Group that the user-assigned managed identity resides in.
- image
Name String Name of the custom image. Required if resource_group_name is specified.
- resource
Group StringName The Resource Group that the user-assigned managed identity resides in.
ElastigroupImageMarketplace
ElastigroupIntegrationKubernetes
- Cluster
Identifier string The cluster ID.
- Cluster
Identifier string The cluster ID.
- cluster
Identifier String The cluster ID.
- cluster
Identifier string The cluster ID.
- cluster_
identifier str The cluster ID.
- cluster
Identifier String The cluster ID.
ElastigroupIntegrationMultaiRuntime
- Deployment
Id string The deployment id you want to get
- Deployment
Id string The deployment id you want to get
- deployment
Id String The deployment id you want to get
- deployment
Id string The deployment id you want to get
- deployment_
id str The deployment id you want to get
- deployment
Id String The deployment id you want to get
ElastigroupLoadBalancer
- Type string
The resource type. Valid values: CLASSIC, TARGET_GROUP, MULTAI_TARGET_SET.
- Auto
Weight bool - Balancer
Id string The balancer ID.
- Target
Set stringId The scale set ID associated with the load balancer.
- Type string
The resource type. Valid values: CLASSIC, TARGET_GROUP, MULTAI_TARGET_SET.
- Auto
Weight bool - Balancer
Id string The balancer ID.
- Target
Set stringId The scale set ID associated with the load balancer.
- type String
The resource type. Valid values: CLASSIC, TARGET_GROUP, MULTAI_TARGET_SET.
- auto
Weight Boolean - balancer
Id String The balancer ID.
- target
Set StringId The scale set ID associated with the load balancer.
- type string
The resource type. Valid values: CLASSIC, TARGET_GROUP, MULTAI_TARGET_SET.
- auto
Weight boolean - balancer
Id string The balancer ID.
- target
Set stringId The scale set ID associated with the load balancer.
- type str
The resource type. Valid values: CLASSIC, TARGET_GROUP, MULTAI_TARGET_SET.
- auto_
weight bool - balancer_
id str The balancer ID.
- target_
set_ strid The scale set ID associated with the load balancer.
- type String
The resource type. Valid values: CLASSIC, TARGET_GROUP, MULTAI_TARGET_SET.
- auto
Weight Boolean - balancer
Id String The balancer ID.
- target
Set StringId The scale set ID associated with the load balancer.
ElastigroupLogin
- User
Name string Set admin access for accessing your VMs.
- Password string
Password for admin access to Windows VMs. Required for Windows product types.
- Ssh
Public stringKey SSH for admin access to Linux VMs. Required for Linux product types.
- User
Name string Set admin access for accessing your VMs.
- Password string
Password for admin access to Windows VMs. Required for Windows product types.
- Ssh
Public stringKey SSH for admin access to Linux VMs. Required for Linux product types.
- user
Name String Set admin access for accessing your VMs.
- password String
Password for admin access to Windows VMs. Required for Windows product types.
- ssh
Public StringKey SSH for admin access to Linux VMs. Required for Linux product types.
- user
Name string Set admin access for accessing your VMs.
- password string
Password for admin access to Windows VMs. Required for Windows product types.
- ssh
Public stringKey SSH for admin access to Linux VMs. Required for Linux product types.
- user_
name str Set admin access for accessing your VMs.
- password str
Password for admin access to Windows VMs. Required for Windows product types.
- ssh_
public_ strkey SSH for admin access to Linux VMs. Required for Linux product types.
- user
Name String Set admin access for accessing your VMs.
- password String
Password for admin access to Windows VMs. Required for Windows product types.
- ssh
Public StringKey SSH for admin access to Linux VMs. Required for Linux product types.
ElastigroupManagedServiceIdentity
- Name string
The name of the managed identity.
- Resource
Group stringName The Resource Group that the user-assigned managed identity resides in.
- Name string
The name of the managed identity.
- Resource
Group stringName The Resource Group that the user-assigned managed identity resides in.
- name String
The name of the managed identity.
- resource
Group StringName The Resource Group that the user-assigned managed identity resides in.
- name string
The name of the managed identity.
- resource
Group stringName The Resource Group that the user-assigned managed identity resides in.
- name str
The name of the managed identity.
- resource_
group_ strname The Resource Group that the user-assigned managed identity resides in.
- name String
The name of the managed identity.
- resource
Group StringName The Resource Group that the user-assigned managed identity resides in.
ElastigroupNetwork
- Resource
Group stringName Vnet Resource Group Name.
- Subnet
Name string ID of subnet.
- Virtual
Network stringName Name of Vnet.
- Additional
Ip List<Pulumi.Configs Spot Inst. Azure. Inputs. Elastigroup Network Additional Ip Config> Array of additional IP configuration objects.
- Assign
Public boolIp
- Resource
Group stringName Vnet Resource Group Name.
- Subnet
Name string ID of subnet.
- Virtual
Network stringName Name of Vnet.
- Additional
Ip []ElastigroupConfigs Network Additional Ip Config Array of additional IP configuration objects.
- Assign
Public boolIp
- resource
Group StringName Vnet Resource Group Name.
- subnet
Name String ID of subnet.
- virtual
Network StringName Name of Vnet.
- additional
Ip List<ElastigroupConfigs Network Additional Ip Config> Array of additional IP configuration objects.
- assign
Public BooleanIp
- resource
Group stringName Vnet Resource Group Name.
- subnet
Name string ID of subnet.
- virtual
Network stringName Name of Vnet.
- additional
Ip ElastigroupConfigs Network Additional Ip Config[] Array of additional IP configuration objects.
- assign
Public booleanIp
- resource_
group_ strname Vnet Resource Group Name.
- subnet_
name str ID of subnet.
- virtual_
network_ strname Name of Vnet.
- additional_
ip_ Sequence[Elastigroupconfigs Network Additional Ip Config] Array of additional IP configuration objects.
- assign_
public_ boolip
- resource
Group StringName Vnet Resource Group Name.
- subnet
Name String ID of subnet.
- virtual
Network StringName Name of Vnet.
- additional
Ip List<Property Map>Configs Array of additional IP configuration objects.
- assign
Public BooleanIp
ElastigroupNetworkAdditionalIpConfig
- Name string
The name of the managed identity.
- Private
Ip stringVersion Available from Azure Api-Version 2017-03-30 onwards, it represents whether the specific ipconfiguration is IPv4 or IPv6. Valid values:
IPv4
,IPv6
.
- Name string
The name of the managed identity.
- Private
Ip stringVersion Available from Azure Api-Version 2017-03-30 onwards, it represents whether the specific ipconfiguration is IPv4 or IPv6. Valid values:
IPv4
,IPv6
.
- name String
The name of the managed identity.
- private
Ip StringVersion Available from Azure Api-Version 2017-03-30 onwards, it represents whether the specific ipconfiguration is IPv4 or IPv6. Valid values:
IPv4
,IPv6
.
- name string
The name of the managed identity.
- private
Ip stringVersion Available from Azure Api-Version 2017-03-30 onwards, it represents whether the specific ipconfiguration is IPv4 or IPv6. Valid values:
IPv4
,IPv6
.
- name str
The name of the managed identity.
- private_
ip_ strversion Available from Azure Api-Version 2017-03-30 onwards, it represents whether the specific ipconfiguration is IPv4 or IPv6. Valid values:
IPv4
,IPv6
.
- name String
The name of the managed identity.
- private
Ip StringVersion Available from Azure Api-Version 2017-03-30 onwards, it represents whether the specific ipconfiguration is IPv4 or IPv6. Valid values:
IPv4
,IPv6
.
ElastigroupScalingDownPolicy
- Metric
Name string Metric to monitor by Azure metric display name.
- Namespace string
The namespace for the alarm's associated metric. Valid values:
- Policy
Name string The name of the policy.
- Threshold double
The value against which the specified statistic is compared.
- Action
Type string The type of action to perform for scaling. Valid values:
"adjustment"
,"percentageAdjustment"
,"setMaxTarget"
,"setMinTarget"
,"updateCapacity"
.- Adjustment string
Value to which the action type will be adjusted. Required if using
numeric
orpercentage_adjustment
action types.- Cooldown int
The amount of time, in seconds, after a scaling activity completes and before the next scaling activity can start. If this parameter is not specified, the default cooldown period for the group applies.
- Dimensions
List<Pulumi.
Spot Inst. Azure. Inputs. Elastigroup Scaling Down Policy Dimension> A list of dimensions describing qualities of the metric. Required when
namespace
is defined AND not"Microsoft.Compute"
.- Evaluation
Periods int The number of periods over which data is compared to the specified threshold.
- Max
Target stringCapacity . The number of the desired target (and maximum) capacity
- Maximum string
The maximal number of instances to have in the group.
- Min
Target stringCapacity . The number of the desired target (and minimum) capacity
- Minimum string
The minimal number of instances to have in the group.
- Operator string
The operator to use in order to determine if the scaling policy is applicable. Valid values:
"gt"
,"gte"
,"lt"
,"lte"
.- Period int
The granularity, in seconds, of the returned datapoints. Period must be at least 60 seconds and must be a multiple of 60.
- Statistic string
The metric statistics to return. Valid values:
average
.- Target string
The target number of instances to have in the group.
- Unit string
The unit for the alarm's associated metric. Valid values:
"percent
,"seconds"
,"microseconds"
,"milliseconds"
,"bytes"
,"kilobytes"
,"megabytes"
,"gigabytes"
,"terabytes"
,"bits"
,"kilobits"
,"megabits"
,"gigabits"
,"terabits"
,"count"
,"bytes/second"
,"kilobytes/second"
,"megabytes/second"
,"gigabytes/second"
,"terabytes/second"
,"bits/second"
,"kilobits/second"
,"megabits/second"
,"gigabits/second"
,"terabits/second"
,"count/second"
,"none"
.
- Metric
Name string Metric to monitor by Azure metric display name.
- Namespace string
The namespace for the alarm's associated metric. Valid values:
- Policy
Name string The name of the policy.
- Threshold float64
The value against which the specified statistic is compared.
- Action
Type string The type of action to perform for scaling. Valid values:
"adjustment"
,"percentageAdjustment"
,"setMaxTarget"
,"setMinTarget"
,"updateCapacity"
.- Adjustment string
Value to which the action type will be adjusted. Required if using
numeric
orpercentage_adjustment
action types.- Cooldown int
The amount of time, in seconds, after a scaling activity completes and before the next scaling activity can start. If this parameter is not specified, the default cooldown period for the group applies.
- Dimensions
[]Elastigroup
Scaling Down Policy Dimension A list of dimensions describing qualities of the metric. Required when
namespace
is defined AND not"Microsoft.Compute"
.- Evaluation
Periods int The number of periods over which data is compared to the specified threshold.
- Max
Target stringCapacity . The number of the desired target (and maximum) capacity
- Maximum string
The maximal number of instances to have in the group.
- Min
Target stringCapacity . The number of the desired target (and minimum) capacity
- Minimum string
The minimal number of instances to have in the group.
- Operator string
The operator to use in order to determine if the scaling policy is applicable. Valid values:
"gt"
,"gte"
,"lt"
,"lte"
.- Period int
The granularity, in seconds, of the returned datapoints. Period must be at least 60 seconds and must be a multiple of 60.
- Statistic string
The metric statistics to return. Valid values:
average
.- Target string
The target number of instances to have in the group.
- Unit string
The unit for the alarm's associated metric. Valid values:
"percent
,"seconds"
,"microseconds"
,"milliseconds"
,"bytes"
,"kilobytes"
,"megabytes"
,"gigabytes"
,"terabytes"
,"bits"
,"kilobits"
,"megabits"
,"gigabits"
,"terabits"
,"count"
,"bytes/second"
,"kilobytes/second"
,"megabytes/second"
,"gigabytes/second"
,"terabytes/second"
,"bits/second"
,"kilobits/second"
,"megabits/second"
,"gigabits/second"
,"terabits/second"
,"count/second"
,"none"
.
- metric
Name String Metric to monitor by Azure metric display name.
- namespace String
The namespace for the alarm's associated metric. Valid values:
- policy
Name String The name of the policy.
- threshold Double
The value against which the specified statistic is compared.
- action
Type String The type of action to perform for scaling. Valid values:
"adjustment"
,"percentageAdjustment"
,"setMaxTarget"
,"setMinTarget"
,"updateCapacity"
.- adjustment String
Value to which the action type will be adjusted. Required if using
numeric
orpercentage_adjustment
action types.- cooldown Integer
The amount of time, in seconds, after a scaling activity completes and before the next scaling activity can start. If this parameter is not specified, the default cooldown period for the group applies.
- dimensions
List<Elastigroup
Scaling Down Policy Dimension> A list of dimensions describing qualities of the metric. Required when
namespace
is defined AND not"Microsoft.Compute"
.- evaluation
Periods Integer The number of periods over which data is compared to the specified threshold.
- max
Target StringCapacity . The number of the desired target (and maximum) capacity
- maximum String
The maximal number of instances to have in the group.
- min
Target StringCapacity . The number of the desired target (and minimum) capacity
- minimum String
The minimal number of instances to have in the group.
- operator String
The operator to use in order to determine if the scaling policy is applicable. Valid values:
"gt"
,"gte"
,"lt"
,"lte"
.- period Integer
The granularity, in seconds, of the returned datapoints. Period must be at least 60 seconds and must be a multiple of 60.
- statistic String
The metric statistics to return. Valid values:
average
.- target String
The target number of instances to have in the group.
- unit String
The unit for the alarm's associated metric. Valid values:
"percent
,"seconds"
,"microseconds"
,"milliseconds"
,"bytes"
,"kilobytes"
,"megabytes"
,"gigabytes"
,"terabytes"
,"bits"
,"kilobits"
,"megabits"
,"gigabits"
,"terabits"
,"count"
,"bytes/second"
,"kilobytes/second"
,"megabytes/second"
,"gigabytes/second"
,"terabytes/second"
,"bits/second"
,"kilobits/second"
,"megabits/second"
,"gigabits/second"
,"terabits/second"
,"count/second"
,"none"
.
- metric
Name string Metric to monitor by Azure metric display name.
- namespace string
The namespace for the alarm's associated metric. Valid values:
- policy
Name string The name of the policy.
- threshold number
The value against which the specified statistic is compared.
- action
Type string The type of action to perform for scaling. Valid values:
"adjustment"
,"percentageAdjustment"
,"setMaxTarget"
,"setMinTarget"
,"updateCapacity"
.- adjustment string
Value to which the action type will be adjusted. Required if using
numeric
orpercentage_adjustment
action types.- cooldown number
The amount of time, in seconds, after a scaling activity completes and before the next scaling activity can start. If this parameter is not specified, the default cooldown period for the group applies.
- dimensions
Elastigroup
Scaling Down Policy Dimension[] A list of dimensions describing qualities of the metric. Required when
namespace
is defined AND not"Microsoft.Compute"
.- evaluation
Periods number The number of periods over which data is compared to the specified threshold.
- max
Target stringCapacity . The number of the desired target (and maximum) capacity
- maximum string
The maximal number of instances to have in the group.
- min
Target stringCapacity . The number of the desired target (and minimum) capacity
- minimum string
The minimal number of instances to have in the group.
- operator string
The operator to use in order to determine if the scaling policy is applicable. Valid values:
"gt"
,"gte"
,"lt"
,"lte"
.- period number
The granularity, in seconds, of the returned datapoints. Period must be at least 60 seconds and must be a multiple of 60.
- statistic string
The metric statistics to return. Valid values:
average
.- target string
The target number of instances to have in the group.
- unit string
The unit for the alarm's associated metric. Valid values:
"percent
,"seconds"
,"microseconds"
,"milliseconds"
,"bytes"
,"kilobytes"
,"megabytes"
,"gigabytes"
,"terabytes"
,"bits"
,"kilobits"
,"megabits"
,"gigabits"
,"terabits"
,"count"
,"bytes/second"
,"kilobytes/second"
,"megabytes/second"
,"gigabytes/second"
,"terabytes/second"
,"bits/second"
,"kilobits/second"
,"megabits/second"
,"gigabits/second"
,"terabits/second"
,"count/second"
,"none"
.
- metric_
name str Metric to monitor by Azure metric display name.
- namespace str
The namespace for the alarm's associated metric. Valid values:
- policy_
name str The name of the policy.
- threshold float
The value against which the specified statistic is compared.
- action_
type str The type of action to perform for scaling. Valid values:
"adjustment"
,"percentageAdjustment"
,"setMaxTarget"
,"setMinTarget"
,"updateCapacity"
.- adjustment str
Value to which the action type will be adjusted. Required if using
numeric
orpercentage_adjustment
action types.- cooldown int
The amount of time, in seconds, after a scaling activity completes and before the next scaling activity can start. If this parameter is not specified, the default cooldown period for the group applies.
- dimensions
Sequence[Elastigroup
Scaling Down Policy Dimension] A list of dimensions describing qualities of the metric. Required when
namespace
is defined AND not"Microsoft.Compute"
.- evaluation_
periods int The number of periods over which data is compared to the specified threshold.
- max_
target_ strcapacity . The number of the desired target (and maximum) capacity
- maximum str
The maximal number of instances to have in the group.
- min_
target_ strcapacity . The number of the desired target (and minimum) capacity
- minimum str
The minimal number of instances to have in the group.
- operator str
The operator to use in order to determine if the scaling policy is applicable. Valid values:
"gt"
,"gte"
,"lt"
,"lte"
.- period int
The granularity, in seconds, of the returned datapoints. Period must be at least 60 seconds and must be a multiple of 60.
- statistic str
The metric statistics to return. Valid values:
average
.- target str
The target number of instances to have in the group.
- unit str
The unit for the alarm's associated metric. Valid values:
"percent
,"seconds"
,"microseconds"
,"milliseconds"
,"bytes"
,"kilobytes"
,"megabytes"
,"gigabytes"
,"terabytes"
,"bits"
,"kilobits"
,"megabits"
,"gigabits"
,"terabits"
,"count"
,"bytes/second"
,"kilobytes/second"
,"megabytes/second"
,"gigabytes/second"
,"terabytes/second"
,"bits/second"
,"kilobits/second"
,"megabits/second"
,"gigabits/second"
,"terabits/second"
,"count/second"
,"none"
.
- metric
Name String Metric to monitor by Azure metric display name.
- namespace String
The namespace for the alarm's associated metric. Valid values:
- policy
Name String The name of the policy.
- threshold Number
The value against which the specified statistic is compared.
- action
Type String The type of action to perform for scaling. Valid values:
"adjustment"
,"percentageAdjustment"
,"setMaxTarget"
,"setMinTarget"
,"updateCapacity"
.- adjustment String
Value to which the action type will be adjusted. Required if using
numeric
orpercentage_adjustment
action types.- cooldown Number
The amount of time, in seconds, after a scaling activity completes and before the next scaling activity can start. If this parameter is not specified, the default cooldown period for the group applies.
- dimensions List<Property Map>
A list of dimensions describing qualities of the metric. Required when
namespace
is defined AND not"Microsoft.Compute"
.- evaluation
Periods Number The number of periods over which data is compared to the specified threshold.
- max
Target StringCapacity . The number of the desired target (and maximum) capacity
- maximum String
The maximal number of instances to have in the group.
- min
Target StringCapacity . The number of the desired target (and minimum) capacity
- minimum String
The minimal number of instances to have in the group.
- operator String
The operator to use in order to determine if the scaling policy is applicable. Valid values:
"gt"
,"gte"
,"lt"
,"lte"
.- period Number
The granularity, in seconds, of the returned datapoints. Period must be at least 60 seconds and must be a multiple of 60.
- statistic String
The metric statistics to return. Valid values:
average
.- target String
The target number of instances to have in the group.
- unit String
The unit for the alarm's associated metric. Valid values:
"percent
,"seconds"
,"microseconds"
,"milliseconds"
,"bytes"
,"kilobytes"
,"megabytes"
,"gigabytes"
,"terabytes"
,"bits"
,"kilobits"
,"megabits"
,"gigabits"
,"terabits"
,"count"
,"bytes/second"
,"kilobytes/second"
,"megabytes/second"
,"gigabytes/second"
,"terabytes/second"
,"bits/second"
,"kilobits/second"
,"megabits/second"
,"gigabits/second"
,"terabits/second"
,"count/second"
,"none"
.
ElastigroupScalingDownPolicyDimension
ElastigroupScalingUpPolicy
- Metric
Name string Metric to monitor by Azure metric display name.
- Namespace string
The namespace for the alarm's associated metric. Valid values:
- Policy
Name string The name of the policy.
- Threshold double
The value against which the specified statistic is compared.
- Action
Type string The type of action to perform for scaling. Valid values:
"adjustment"
,"percentageAdjustment"
,"setMaxTarget"
,"setMinTarget"
,"updateCapacity"
.- Adjustment string
Value to which the action type will be adjusted. Required if using
numeric
orpercentage_adjustment
action types.- Cooldown int
The amount of time, in seconds, after a scaling activity completes and before the next scaling activity can start. If this parameter is not specified, the default cooldown period for the group applies.
- Dimensions
List<Pulumi.
Spot Inst. Azure. Inputs. Elastigroup Scaling Up Policy Dimension> A list of dimensions describing qualities of the metric. Required when
namespace
is defined AND not"Microsoft.Compute"
.- Evaluation
Periods int The number of periods over which data is compared to the specified threshold.
- Max
Target stringCapacity . The number of the desired target (and maximum) capacity
- Maximum string
The maximal number of instances to have in the group.
- Min
Target stringCapacity . The number of the desired target (and minimum) capacity
- Minimum string
The minimal number of instances to have in the group.
- Operator string
The operator to use in order to determine if the scaling policy is applicable. Valid values:
"gt"
,"gte"
,"lt"
,"lte"
.- Period int
The granularity, in seconds, of the returned datapoints. Period must be at least 60 seconds and must be a multiple of 60.
- Statistic string
The metric statistics to return. Valid values:
average
.- Target string
The target number of instances to have in the group.
- Unit string
The unit for the alarm's associated metric. Valid values:
"percent
,"seconds"
,"microseconds"
,"milliseconds"
,"bytes"
,"kilobytes"
,"megabytes"
,"gigabytes"
,"terabytes"
,"bits"
,"kilobits"
,"megabits"
,"gigabits"
,"terabits"
,"count"
,"bytes/second"
,"kilobytes/second"
,"megabytes/second"
,"gigabytes/second"
,"terabytes/second"
,"bits/second"
,"kilobits/second"
,"megabits/second"
,"gigabits/second"
,"terabits/second"
,"count/second"
,"none"
.
- Metric
Name string Metric to monitor by Azure metric display name.
- Namespace string
The namespace for the alarm's associated metric. Valid values:
- Policy
Name string The name of the policy.
- Threshold float64
The value against which the specified statistic is compared.
- Action
Type string The type of action to perform for scaling. Valid values:
"adjustment"
,"percentageAdjustment"
,"setMaxTarget"
,"setMinTarget"
,"updateCapacity"
.- Adjustment string
Value to which the action type will be adjusted. Required if using
numeric
orpercentage_adjustment
action types.- Cooldown int
The amount of time, in seconds, after a scaling activity completes and before the next scaling activity can start. If this parameter is not specified, the default cooldown period for the group applies.
- Dimensions
[]Elastigroup
Scaling Up Policy Dimension A list of dimensions describing qualities of the metric. Required when
namespace
is defined AND not"Microsoft.Compute"
.- Evaluation
Periods int The number of periods over which data is compared to the specified threshold.
- Max
Target stringCapacity . The number of the desired target (and maximum) capacity
- Maximum string
The maximal number of instances to have in the group.
- Min
Target stringCapacity . The number of the desired target (and minimum) capacity
- Minimum string
The minimal number of instances to have in the group.
- Operator string
The operator to use in order to determine if the scaling policy is applicable. Valid values:
"gt"
,"gte"
,"lt"
,"lte"
.- Period int
The granularity, in seconds, of the returned datapoints. Period must be at least 60 seconds and must be a multiple of 60.
- Statistic string
The metric statistics to return. Valid values:
average
.- Target string
The target number of instances to have in the group.
- Unit string
The unit for the alarm's associated metric. Valid values:
"percent
,"seconds"
,"microseconds"
,"milliseconds"
,"bytes"
,"kilobytes"
,"megabytes"
,"gigabytes"
,"terabytes"
,"bits"
,"kilobits"
,"megabits"
,"gigabits"
,"terabits"
,"count"
,"bytes/second"
,"kilobytes/second"
,"megabytes/second"
,"gigabytes/second"
,"terabytes/second"
,"bits/second"
,"kilobits/second"
,"megabits/second"
,"gigabits/second"
,"terabits/second"
,"count/second"
,"none"
.
- metric
Name String Metric to monitor by Azure metric display name.
- namespace String
The namespace for the alarm's associated metric. Valid values:
- policy
Name String The name of the policy.
- threshold Double
The value against which the specified statistic is compared.
- action
Type String The type of action to perform for scaling. Valid values:
"adjustment"
,"percentageAdjustment"
,"setMaxTarget"
,"setMinTarget"
,"updateCapacity"
.- adjustment String
Value to which the action type will be adjusted. Required if using
numeric
orpercentage_adjustment
action types.- cooldown Integer
The amount of time, in seconds, after a scaling activity completes and before the next scaling activity can start. If this parameter is not specified, the default cooldown period for the group applies.
- dimensions
List<Elastigroup
Scaling Up Policy Dimension> A list of dimensions describing qualities of the metric. Required when
namespace
is defined AND not"Microsoft.Compute"
.- evaluation
Periods Integer The number of periods over which data is compared to the specified threshold.
- max
Target StringCapacity . The number of the desired target (and maximum) capacity
- maximum String
The maximal number of instances to have in the group.
- min
Target StringCapacity . The number of the desired target (and minimum) capacity
- minimum String
The minimal number of instances to have in the group.
- operator String
The operator to use in order to determine if the scaling policy is applicable. Valid values:
"gt"
,"gte"
,"lt"
,"lte"
.- period Integer
The granularity, in seconds, of the returned datapoints. Period must be at least 60 seconds and must be a multiple of 60.
- statistic String
The metric statistics to return. Valid values:
average
.- target String
The target number of instances to have in the group.
- unit String
The unit for the alarm's associated metric. Valid values:
"percent
,"seconds"
,"microseconds"
,"milliseconds"
,"bytes"
,"kilobytes"
,"megabytes"
,"gigabytes"
,"terabytes"
,"bits"
,"kilobits"
,"megabits"
,"gigabits"
,"terabits"
,"count"
,"bytes/second"
,"kilobytes/second"
,"megabytes/second"
,"gigabytes/second"
,"terabytes/second"
,"bits/second"
,"kilobits/second"
,"megabits/second"
,"gigabits/second"
,"terabits/second"
,"count/second"
,"none"
.
- metric
Name string Metric to monitor by Azure metric display name.
- namespace string
The namespace for the alarm's associated metric. Valid values:
- policy
Name string The name of the policy.
- threshold number
The value against which the specified statistic is compared.
- action
Type string The type of action to perform for scaling. Valid values:
"adjustment"
,"percentageAdjustment"
,"setMaxTarget"
,"setMinTarget"
,"updateCapacity"
.- adjustment string
Value to which the action type will be adjusted. Required if using
numeric
orpercentage_adjustment
action types.- cooldown number
The amount of time, in seconds, after a scaling activity completes and before the next scaling activity can start. If this parameter is not specified, the default cooldown period for the group applies.
- dimensions
Elastigroup
Scaling Up Policy Dimension[] A list of dimensions describing qualities of the metric. Required when
namespace
is defined AND not"Microsoft.Compute"
.- evaluation
Periods number The number of periods over which data is compared to the specified threshold.
- max
Target stringCapacity . The number of the desired target (and maximum) capacity
- maximum string
The maximal number of instances to have in the group.
- min
Target stringCapacity . The number of the desired target (and minimum) capacity
- minimum string
The minimal number of instances to have in the group.
- operator string
The operator to use in order to determine if the scaling policy is applicable. Valid values:
"gt"
,"gte"
,"lt"
,"lte"
.- period number
The granularity, in seconds, of the returned datapoints. Period must be at least 60 seconds and must be a multiple of 60.
- statistic string
The metric statistics to return. Valid values:
average
.- target string
The target number of instances to have in the group.
- unit string
The unit for the alarm's associated metric. Valid values:
"percent
,"seconds"
,"microseconds"
,"milliseconds"
,"bytes"
,"kilobytes"
,"megabytes"
,"gigabytes"
,"terabytes"
,"bits"
,"kilobits"
,"megabits"
,"gigabits"
,"terabits"
,"count"
,"bytes/second"
,"kilobytes/second"
,"megabytes/second"
,"gigabytes/second"
,"terabytes/second"
,"bits/second"
,"kilobits/second"
,"megabits/second"
,"gigabits/second"
,"terabits/second"
,"count/second"
,"none"
.
- metric_
name str Metric to monitor by Azure metric display name.
- namespace str
The namespace for the alarm's associated metric. Valid values:
- policy_
name str The name of the policy.
- threshold float
The value against which the specified statistic is compared.
- action_
type str The type of action to perform for scaling. Valid values:
"adjustment"
,"percentageAdjustment"
,"setMaxTarget"
,"setMinTarget"
,"updateCapacity"
.- adjustment str
Value to which the action type will be adjusted. Required if using
numeric
orpercentage_adjustment
action types.- cooldown int
The amount of time, in seconds, after a scaling activity completes and before the next scaling activity can start. If this parameter is not specified, the default cooldown period for the group applies.
- dimensions
Sequence[Elastigroup
Scaling Up Policy Dimension] A list of dimensions describing qualities of the metric. Required when
namespace
is defined AND not"Microsoft.Compute"
.- evaluation_
periods int The number of periods over which data is compared to the specified threshold.
- max_
target_ strcapacity . The number of the desired target (and maximum) capacity
- maximum str
The maximal number of instances to have in the group.
- min_
target_ strcapacity . The number of the desired target (and minimum) capacity
- minimum str
The minimal number of instances to have in the group.
- operator str
The operator to use in order to determine if the scaling policy is applicable. Valid values:
"gt"
,"gte"
,"lt"
,"lte"
.- period int
The granularity, in seconds, of the returned datapoints. Period must be at least 60 seconds and must be a multiple of 60.
- statistic str
The metric statistics to return. Valid values:
average
.- target str
The target number of instances to have in the group.
- unit str
The unit for the alarm's associated metric. Valid values:
"percent
,"seconds"
,"microseconds"
,"milliseconds"
,"bytes"
,"kilobytes"
,"megabytes"
,"gigabytes"
,"terabytes"
,"bits"
,"kilobits"
,"megabits"
,"gigabits"
,"terabits"
,"count"
,"bytes/second"
,"kilobytes/second"
,"megabytes/second"
,"gigabytes/second"
,"terabytes/second"
,"bits/second"
,"kilobits/second"
,"megabits/second"
,"gigabits/second"
,"terabits/second"
,"count/second"
,"none"
.
- metric
Name String Metric to monitor by Azure metric display name.
- namespace String
The namespace for the alarm's associated metric. Valid values:
- policy
Name String The name of the policy.
- threshold Number
The value against which the specified statistic is compared.
- action
Type String The type of action to perform for scaling. Valid values:
"adjustment"
,"percentageAdjustment"
,"setMaxTarget"
,"setMinTarget"
,"updateCapacity"
.- adjustment String
Value to which the action type will be adjusted. Required if using
numeric
orpercentage_adjustment
action types.- cooldown Number
The amount of time, in seconds, after a scaling activity completes and before the next scaling activity can start. If this parameter is not specified, the default cooldown period for the group applies.
- dimensions List<Property Map>
A list of dimensions describing qualities of the metric. Required when
namespace
is defined AND not"Microsoft.Compute"
.- evaluation
Periods Number The number of periods over which data is compared to the specified threshold.
- max
Target StringCapacity . The number of the desired target (and maximum) capacity
- maximum String
The maximal number of instances to have in the group.
- min
Target StringCapacity . The number of the desired target (and minimum) capacity
- minimum String
The minimal number of instances to have in the group.
- operator String
The operator to use in order to determine if the scaling policy is applicable. Valid values:
"gt"
,"gte"
,"lt"
,"lte"
.- period Number
The granularity, in seconds, of the returned datapoints. Period must be at least 60 seconds and must be a multiple of 60.
- statistic String
The metric statistics to return. Valid values:
average
.- target String
The target number of instances to have in the group.
- unit String
The unit for the alarm's associated metric. Valid values:
"percent
,"seconds"
,"microseconds"
,"milliseconds"
,"bytes"
,"kilobytes"
,"megabytes"
,"gigabytes"
,"terabytes"
,"bits"
,"kilobits"
,"megabits"
,"gigabits"
,"terabits"
,"count"
,"bytes/second"
,"kilobytes/second"
,"megabytes/second"
,"gigabytes/second"
,"terabytes/second"
,"bits/second"
,"kilobits/second"
,"megabits/second"
,"gigabits/second"
,"terabits/second"
,"count/second"
,"none"
.
ElastigroupScalingUpPolicyDimension
ElastigroupScheduledTask
- Cron
Expression string A valid cron expression (
* * * * *
). The cron is running in UTC time zone and is in Unix cron format Cron Expression Validator Script.- Task
Type string The task type to run. Valid Values:
backup_ami
,scale
,scaleUp
,roll
,statefulUpdateCapacity
,statefulRecycle
.- Adjustment string
Value to which the action type will be adjusted. Required if using
numeric
orpercentage_adjustment
action types.- Adjustment
Percentage string The percent of instances to add/remove to/from the target capacity when scale is needed.
- Batch
Size stringPercentage The percentage size of each batch in the scheduled deployment roll. Required when the 'task_type' is 'roll'.
- Grace
Period string Period of time (seconds) to wait for VM to reach healthiness before monitoring for unhealthiness.
- Is
Enabled bool Describes whether the task is enabled. When true the task should run when false it should not run.
- Scale
Max stringCapacity The max capacity of the group. Required when ‘task_type' is ‘scale'.
- Scale
Min stringCapacity The min capacity of the group. Should be used when choosing ‘task_type' of ‘scale'.
- Scale
Target stringCapacity The target capacity of the group. Should be used when choosing ‘task_type' of ‘scale'.
- Cron
Expression string A valid cron expression (
* * * * *
). The cron is running in UTC time zone and is in Unix cron format Cron Expression Validator Script.- Task
Type string The task type to run. Valid Values:
backup_ami
,scale
,scaleUp
,roll
,statefulUpdateCapacity
,statefulRecycle
.- Adjustment string
Value to which the action type will be adjusted. Required if using
numeric
orpercentage_adjustment
action types.- Adjustment
Percentage string The percent of instances to add/remove to/from the target capacity when scale is needed.
- Batch
Size stringPercentage The percentage size of each batch in the scheduled deployment roll. Required when the 'task_type' is 'roll'.
- Grace
Period string Period of time (seconds) to wait for VM to reach healthiness before monitoring for unhealthiness.
- Is
Enabled bool Describes whether the task is enabled. When true the task should run when false it should not run.
- Scale
Max stringCapacity The max capacity of the group. Required when ‘task_type' is ‘scale'.
- Scale
Min stringCapacity The min capacity of the group. Should be used when choosing ‘task_type' of ‘scale'.
- Scale
Target stringCapacity The target capacity of the group. Should be used when choosing ‘task_type' of ‘scale'.
- cron
Expression String A valid cron expression (
* * * * *
). The cron is running in UTC time zone and is in Unix cron format Cron Expression Validator Script.- task
Type String The task type to run. Valid Values:
backup_ami
,scale
,scaleUp
,roll
,statefulUpdateCapacity
,statefulRecycle
.- adjustment String
Value to which the action type will be adjusted. Required if using
numeric
orpercentage_adjustment
action types.- adjustment
Percentage String The percent of instances to add/remove to/from the target capacity when scale is needed.
- batch
Size StringPercentage The percentage size of each batch in the scheduled deployment roll. Required when the 'task_type' is 'roll'.
- grace
Period String Period of time (seconds) to wait for VM to reach healthiness before monitoring for unhealthiness.
- is
Enabled Boolean Describes whether the task is enabled. When true the task should run when false it should not run.
- scale
Max StringCapacity The max capacity of the group. Required when ‘task_type' is ‘scale'.
- scale
Min StringCapacity The min capacity of the group. Should be used when choosing ‘task_type' of ‘scale'.
- scale
Target StringCapacity The target capacity of the group. Should be used when choosing ‘task_type' of ‘scale'.
- cron
Expression string A valid cron expression (
* * * * *
). The cron is running in UTC time zone and is in Unix cron format Cron Expression Validator Script.- task
Type string The task type to run. Valid Values:
backup_ami
,scale
,scaleUp
,roll
,statefulUpdateCapacity
,statefulRecycle
.- adjustment string
Value to which the action type will be adjusted. Required if using
numeric
orpercentage_adjustment
action types.- adjustment
Percentage string The percent of instances to add/remove to/from the target capacity when scale is needed.
- batch
Size stringPercentage The percentage size of each batch in the scheduled deployment roll. Required when the 'task_type' is 'roll'.
- grace
Period string Period of time (seconds) to wait for VM to reach healthiness before monitoring for unhealthiness.
- is
Enabled boolean Describes whether the task is enabled. When true the task should run when false it should not run.
- scale
Max stringCapacity The max capacity of the group. Required when ‘task_type' is ‘scale'.
- scale
Min stringCapacity The min capacity of the group. Should be used when choosing ‘task_type' of ‘scale'.
- scale
Target stringCapacity The target capacity of the group. Should be used when choosing ‘task_type' of ‘scale'.
- cron_
expression str A valid cron expression (
* * * * *
). The cron is running in UTC time zone and is in Unix cron format Cron Expression Validator Script.- task_
type str The task type to run. Valid Values:
backup_ami
,scale
,scaleUp
,roll
,statefulUpdateCapacity
,statefulRecycle
.- adjustment str
Value to which the action type will be adjusted. Required if using
numeric
orpercentage_adjustment
action types.- adjustment_
percentage str The percent of instances to add/remove to/from the target capacity when scale is needed.
- batch_
size_ strpercentage The percentage size of each batch in the scheduled deployment roll. Required when the 'task_type' is 'roll'.
- grace_
period str Period of time (seconds) to wait for VM to reach healthiness before monitoring for unhealthiness.
- is_
enabled bool Describes whether the task is enabled. When true the task should run when false it should not run.
- scale_
max_ strcapacity The max capacity of the group. Required when ‘task_type' is ‘scale'.
- scale_
min_ strcapacity The min capacity of the group. Should be used when choosing ‘task_type' of ‘scale'.
- scale_
target_ strcapacity The target capacity of the group. Should be used when choosing ‘task_type' of ‘scale'.
- cron
Expression String A valid cron expression (
* * * * *
). The cron is running in UTC time zone and is in Unix cron format Cron Expression Validator Script.- task
Type String The task type to run. Valid Values:
backup_ami
,scale
,scaleUp
,roll
,statefulUpdateCapacity
,statefulRecycle
.- adjustment String
Value to which the action type will be adjusted. Required if using
numeric
orpercentage_adjustment
action types.- adjustment
Percentage String The percent of instances to add/remove to/from the target capacity when scale is needed.
- batch
Size StringPercentage The percentage size of each batch in the scheduled deployment roll. Required when the 'task_type' is 'roll'.
- grace
Period String Period of time (seconds) to wait for VM to reach healthiness before monitoring for unhealthiness.
- is
Enabled Boolean Describes whether the task is enabled. When true the task should run when false it should not run.
- scale
Max StringCapacity The max capacity of the group. Required when ‘task_type' is ‘scale'.
- scale
Min StringCapacity The min capacity of the group. Should be used when choosing ‘task_type' of ‘scale'.
- scale
Target StringCapacity The target capacity of the group. Should be used when choosing ‘task_type' of ‘scale'.
ElastigroupStrategy
- Draining
Timeout int Time (seconds) to allow the instance to be drained from incoming TCP connections and detached from MLB before terminating it during a scale-down operation.
- Low
Priority intPercentage Percentage of Low Priority instances to maintain. Required if
od_count
is not specified.- Od
Count int Number of On-Demand instances to maintain. Required if low_priority_percentage is not specified.
- Draining
Timeout int Time (seconds) to allow the instance to be drained from incoming TCP connections and detached from MLB before terminating it during a scale-down operation.
- Low
Priority intPercentage Percentage of Low Priority instances to maintain. Required if
od_count
is not specified.- Od
Count int Number of On-Demand instances to maintain. Required if low_priority_percentage is not specified.
- draining
Timeout Integer Time (seconds) to allow the instance to be drained from incoming TCP connections and detached from MLB before terminating it during a scale-down operation.
- low
Priority IntegerPercentage Percentage of Low Priority instances to maintain. Required if
od_count
is not specified.- od
Count Integer Number of On-Demand instances to maintain. Required if low_priority_percentage is not specified.
- draining
Timeout number Time (seconds) to allow the instance to be drained from incoming TCP connections and detached from MLB before terminating it during a scale-down operation.
- low
Priority numberPercentage Percentage of Low Priority instances to maintain. Required if
od_count
is not specified.- od
Count number Number of On-Demand instances to maintain. Required if low_priority_percentage is not specified.
- draining_
timeout int Time (seconds) to allow the instance to be drained from incoming TCP connections and detached from MLB before terminating it during a scale-down operation.
- low_
priority_ intpercentage Percentage of Low Priority instances to maintain. Required if
od_count
is not specified.- od_
count int Number of On-Demand instances to maintain. Required if low_priority_percentage is not specified.
- draining
Timeout Number Time (seconds) to allow the instance to be drained from incoming TCP connections and detached from MLB before terminating it during a scale-down operation.
- low
Priority NumberPercentage Percentage of Low Priority instances to maintain. Required if
od_count
is not specified.- od
Count Number Number of On-Demand instances to maintain. Required if low_priority_percentage is not specified.
ElastigroupUpdatePolicy
- Should
Roll bool Sets the enablement of the roll option.
- Roll
Config Pulumi.Spot Inst. Azure. Inputs. Elastigroup Update Policy Roll Config While used, you can control whether the group should perform a deployment after an update to the configuration.
- Should
Roll bool Sets the enablement of the roll option.
- Roll
Config ElastigroupUpdate Policy Roll Config While used, you can control whether the group should perform a deployment after an update to the configuration.
- should
Roll Boolean Sets the enablement of the roll option.
- roll
Config ElastigroupUpdate Policy Roll Config While used, you can control whether the group should perform a deployment after an update to the configuration.
- should
Roll boolean Sets the enablement of the roll option.
- roll
Config ElastigroupUpdate Policy Roll Config While used, you can control whether the group should perform a deployment after an update to the configuration.
- should_
roll bool Sets the enablement of the roll option.
- roll_
config ElastigroupUpdate Policy Roll Config While used, you can control whether the group should perform a deployment after an update to the configuration.
- should
Roll Boolean Sets the enablement of the roll option.
- roll
Config Property Map While used, you can control whether the group should perform a deployment after an update to the configuration.
ElastigroupUpdatePolicyRollConfig
- Batch
Size intPercentage The percentage size of each batch in the scheduled deployment roll. Required when the 'task_type' is 'roll'.
- Grace
Period int Period of time (seconds) to wait for VM to reach healthiness before monitoring for unhealthiness.
- Health
Check stringType Health check used to validate VM health. Valid values: “INSTANCE_STATE”.
- Batch
Size intPercentage The percentage size of each batch in the scheduled deployment roll. Required when the 'task_type' is 'roll'.
- Grace
Period int Period of time (seconds) to wait for VM to reach healthiness before monitoring for unhealthiness.
- Health
Check stringType Health check used to validate VM health. Valid values: “INSTANCE_STATE”.
- batch
Size IntegerPercentage The percentage size of each batch in the scheduled deployment roll. Required when the 'task_type' is 'roll'.
- grace
Period Integer Period of time (seconds) to wait for VM to reach healthiness before monitoring for unhealthiness.
- health
Check StringType Health check used to validate VM health. Valid values: “INSTANCE_STATE”.
- batch
Size numberPercentage The percentage size of each batch in the scheduled deployment roll. Required when the 'task_type' is 'roll'.
- grace
Period number Period of time (seconds) to wait for VM to reach healthiness before monitoring for unhealthiness.
- health
Check stringType Health check used to validate VM health. Valid values: “INSTANCE_STATE”.
- batch_
size_ intpercentage The percentage size of each batch in the scheduled deployment roll. Required when the 'task_type' is 'roll'.
- grace_
period int Period of time (seconds) to wait for VM to reach healthiness before monitoring for unhealthiness.
- health_
check_ strtype Health check used to validate VM health. Valid values: “INSTANCE_STATE”.
- batch
Size NumberPercentage The percentage size of each batch in the scheduled deployment roll. Required when the 'task_type' is 'roll'.
- grace
Period Number Period of time (seconds) to wait for VM to reach healthiness before monitoring for unhealthiness.
- health
Check StringType Health check used to validate VM health. Valid values: “INSTANCE_STATE”.
Package Details
- Repository
- Spotinst pulumi/pulumi-spotinst
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
spotinst
Terraform Provider.