Spotinst

v3.22.0 published on Thursday, Jun 30, 2022 by Pulumi

StatefulNodeAzure

Provides a Spotinst stateful node Azure resource.

Strategy

  • strategy - (Required) Strategy for stateful node.
    • draining_timeout - (Optional, Default 120) Time (in seconds) to allow the VM be drained from incoming TCP connections and detached from MLB before terminating it during a scale down operation.
    • fallback_to_on_demand - (Required) In case of no spots available, Stateful Node will launch an On-demand instance instead.
    • optimization_windows - (Optional) Valid format: “ddd:hh:mm-ddd:hh:mm (day:hour(0-23):minute(0-59))”, not empty if revertToSpot.performAt = timeWindow.
    • preferred_life_cycle - (Optional, Enum "od", "spot", Default "spot") The desired type of VM.
    • revert_to_spot - (Optional) Hold settings for strategy correction - replacing On-Demand for Spot VMs.
      • perform_at - (Required, Enum "timeWindow", "never", "always", Default "always") Settings for maintenance strategy.

Compute

  • os - (Required, Enum "Linux", "Windows") Type of operating system.
  • od_sizes - (Required) Available On-Demand sizes.
  • spot_sizes - (Required) Available Spot-VM sizes.
  • preferred_spot_sizes - (Optional) Prioritize Spot VM sizes when launching Spot VMs for the group. If set, must be a sublist of compute.vmSizes.spotSizes.
  • zones - (Optional, Enum "1", "2", "3") List of Azure Availability Zones in the defined region. If not defined, Virtual machines will be launched regionally.
  • preferred_zones - (Optional, Enum "1", "2", "3") The AZs to prioritize when launching VMs. If no markets are available in the Preferred AZs, VMs are launched in the non-preferred AZs. Must be a sublist of compute.zones.
  • custom_data - (Optional) This value will hold the YAML in base64 and will be executed upon VM launch.
  • shutdown_script - (Optional) Shutdown script for the stateful node. Value should be passed as a string encoded at Base64 only.

Boot Diagnostics

  • boot_diagnostics
    • is_enabled - (Optional) Allows you to enable and disable the configuration of boot diagnostics at launch.
    • storage_url - (Optional) The storage URI that is used if a type is unmanaged. The storage URI must follow the blob storage URI format (“https://.blob.core.windows.net/”). StorageUri is required if the type is unmanaged. StorageUri must be ‘null’ in case the boot diagnostics type is managed.
    • type - (Optional, Enum "managed", "unmanaged") Defines the storage type on VM launch in Azure.

Data Disks

  • data_disk - (Optional) The definitions of data disks that will be created and attached to the stateful node’s VM.
    • size_gb - (Required) The size of the data disk in GB, required if dataDisks is specified.
    • lun - (Required) The LUN of the data disk.
    • type - (Required, Enum "Standard_LRS", "Premium_LRS", "StandardSSD_LRS", "UltraSSD_LRS") The type of the data disk.

Extensions

  • extension - (Optional) An object for an azure extension.
    • name - (Required) Required on compute.launchSpecification.extensions object.
    • type - (Required) Required on compute.launchSpecification.extensions object.
    • publisher - (Required) Required on compute.launchSpecification.extensions object.
    • api_version - (Required) The API version of the extension. Required if extension specified.
    • minor_version_auto_upgrade - (Required) Required on compute.launchSpecification.extensions object.
    • protected_settings - (Optional) Object for protected settings.
    • public_settings - (Optional) Object for public settings.

Image

  • image
    • marketplace_image - (Optional) Select an image from Azure’s Marketplace image catalogue. Required if the custom image or gallery image are not specified.
      • publisher - (Required) Image publisher.
      • offer - (Required) Image offer.
      • sku - (Required) Image Stock Keeping Unit, which is the specific version of the image.
      • version - (Required, Default "latest") Image’s version. if version not provided we use “latest”.
    • gallery_image - (Optional) Gallery image definitions. Required if custom image or marketplace image are not specified.
      • gallery_resource_group_name - (Required) The resource group name for gallery image.
      • gallery_name - (Required) Name of the gallery.
      • image_name - (Required) Name of the gallery image.
      • version_name - (Required) Image’s version. Can be in the format x.x.x or ’latest'.
    • custom_image - (Optional) Custom image definitions. Required if marketplace image or gallery image are not specified.
      • custom_image_resource_group_name - (Required) The resource group name for custom image.
      • name - (Required) The name of the custom image.

Load Balancer

  • load_balancer - (Optional) Add a load balancer. For Azure Gateway, each Backend Pool is a separate load balancer.
    • type - (Required, Enum "loadBalancer", "applicationGateway") The type of load balancer.
    • resource_group_name - (Required) The Resource Group name of the Load Balancer.
    • name - (Required) Name of the Application Gateway/Load Balancer.
    • sku - (Optional)
      • if type is "LoadBalancer" then possible values are “Standard", "Basic”.
      • If ApplicationGateway then possible values are “Standard_Large”, “Standard_Medium”, “Standard_Small”, “Standard_v2", “WAF_Large”, “WAF_Medium", “WAF_v2".
    • backend_pool_names - (Optional) Name of the Backend Pool to register the Stateful Node VMs to. Each Backend Pool is a separate load balancer. Required if Type is APPLICATION_GATEWAY.

Login

  • login - (Required) Set admin access for accessing your VMs. Password/SSH is required for Linux.
    • user_name - (Required) username for admin access to VMs.
    • ssh_public_key - (Optional) SSH for admin access to Linux VMs. Optional for Linux.
    • password - (Optional) Password for admin access to Windows VMs. Required for Windows.

Managed Service Identities

  • managed_service_identities - (Optional) Add a user-assigned managed identity to the Stateful Node’s VM.
    • name - (Required) name of the managed identity.
    • resource_group_name - (Required) The Resource Group that the user-assigned managed identity resides in.

Network

  • network - (Required) Define the Virtual Network and Subnet for your Stateful Node.
    • network_resource_group_name - (Required) Vnet Resource Group Name.
    • virtual_network_name - (Required) Virtual Network.
    • network_interface - (Required) Define a network interface
      • is_primary - (Required) Defines whether the network interface is primary or not.
      • subnet_name - (Required) Subnet name.
      • assign_public_ip - (Optional) Assign public IP.
      • public_ip_sku - (Optional) Required if assignPublicIp=true values=[STANDARD/BASIC].
      • network_security_group - (Optional) Network Security Group.
        • network_resource_group_name - (Required) Requires valid security group name.
        • name - (Required) Requires valid resource group name.
      • enable_ip_forwarding - (Optional) Enable IP Forwarding.
      • private_ip_addresses - (Optional) A list with unique items that every item is a valid IP.
      • additional_ip_configurations - (Optional) Additional configuration of network interface.
        • name - (Required) Configuration name.
        • private_ip_address_version - (Required, Enum "IPv4", "IPv6" Default "IPv4") Version of the private IP address.
      • public_ips - (Optional) Defined a pool of Public Ips (from Azure), that will be associated to the network interface. We will associate one public ip per instance until the pool is exhausted, in which case, we will create a new one.
        • resource_group_name - (Required) The resource group of the public ip.
        • name - (Required) - The name of the public ip.
      • application_security_groups - (Optional) Network Security Group.
        • resource_group_name - (Required) Requires valid security group name.
        • name - (Required) Requires valid resource group name.

OS Disk

  • os_disk - (Optional) Specify OS disk specification other than default.
    • size_gb - (Optional, Default "30") The size of the data disk in GB.
    • type - (Required, Enum "Standard_LRS", "Premium_LRS", "StandardSSD_LRS") The type of the OS disk.

Secret

  • secret - (Optional) Set of certificates that should be installed on the VM.
    • source_vault - (Required) The key vault reference, contains the required certificates.
      • name - (Required) The name of the key vault.
      • resource_group_name - (Required) The resource group name of the key vault.
    • vault_certificates - (Required) The required certificate references.
      • certificate_url - (Optional) The URL of the certificate under the key vault.
      • certificate_store - (Required) The certificate store directory the VM. The directory is created in the LocalMachine account.
        • This field is required only when using Windows OS type
        • This field must be ‘null’ when the OS type is Linux

Tag

  • tag - (Optional) Unique Key-Value pair for all Stateful Node Resources.
    • tag_key - (Optional) Tag Key for Stateful Node Resources.
    • tag_value - (Optional) Tag Value for Stateful Node Resources.

Health

  • health - (Optional) Set the auto healing preferences for unhealthy VMs.
    • health_check_types - (Optional, Enum "vmState", "applicationGateway") Healthcheck to use to validate VM health.
    • unhealthy_duration - (Optional) Amount of time to be unhealthy before a replacement is triggered.
    • auto_healing - (Required) Enable Autohealing of unhealthy VMs.
    • grace_period - (Optional) Period of time to wait for VM to reach healthiness before monitoring for unhealthiness.

Persistence

  • should_persist_os_disk - (Required) Should persist os disk.
  • os_disk_persistence_mode - (Optional, Enum "reattach", "onLaunch")
  • should_persist_data_disks - (Required) Should persist data disks.
  • data_disks_persistence_mode - (Optional, Enum "reattach", "onLaunch")
  • should_persist_network - (Required) Should persist network.

Scheduling Tasks

  • scheduling_task - (Optional) Scheduling settings object for stateful node.
    • is_enabled - (Required) Is scheduled task enabled for stateful node.
    • type - (Required, Enum `“pause”, “resume”, “recycle”) The type of the scheduled task
    • cron_expression (Required) A expression which describes when to execute the scheduled task (UTC).

Signals

  • signal - (Optional) A signal object defined for the stateful node.
    • type - (Required, Enum "vmReady", "vmReadyToShutdown") The type of the signal defined for the stateful node.
    • timeout - (Required, Default "1800") The timeout in seconds to hold the vm until a signal is sent. If no signal is sent the vm will be replaced (vmReady) or we will terminate the vm (vmReadyToShutdown) after the timeout.

Attach Data Disk

  • attach_data_disk - (Optional) Create a new data disk and attach it to the stateful node.
    • data_disk_name - (Required) The name of the created data disk.
    • data_disk_resource_group_name - (Required) The resource group name in which the data disk will be created.
    • storage_account_type - (Required, Enum "Standard_LRS", "Premium_LRS", "StandardSSD_LRS", "UltraSSD_LRS") The type of the data disk.
    • size_gb - (Required) The size of the data disk in GB, Required if dataDisks is specified.
    • zone - (Optional, Enum "1", "2", "3") The Availability Zone in which the data disk will be created. If not defined, the data disk will be created regionally.
    • lun - (Optional, Default "orginal") The LUN of the data disk. If not defined, the LUN will be set in order.

Detach Data Disk

  • detach_data_disk - (Optional) Detach a data disk from a stateful node.
    • data_disk_name - (Required) The name of the detached data disk.
    • data_disk_resource_group_name - (Required) The resource group name in which the data disk exists.
    • should_deallocate - (Required) Indicates whether to delete the data disk in addition to detach.
    • ttl_in_hours - (Required, Default "0") Hours to keep the disk alive before deletion.

Update State

  • update_state - (Optional) Update the stateful node state.
    • state - (Required, Enum "pause", "resume", "recycle") New state for the stateful node.

Import VM

  • import_vm - (Optional) Import an Azure VM and create a stateful node by providing a node configuration.
    • resource_group_name - (Required) Name of the Resource Group for Stateful Node.
    • original_vm_name - (Required) Azure Import Stateful Node Name.
    • draining_timeout - (Optional) Hours to keep resources alive.
    • resources_retention_time - (Optional) Hours to keep resources alive.

Create a StatefulNodeAzure Resource

new StatefulNodeAzure(name: string, args: StatefulNodeAzureArgs, opts?: CustomResourceOptions);
@overload
def StatefulNodeAzure(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      attach_data_disks: Optional[Sequence[StatefulNodeAzureAttachDataDiskArgs]] = None,
                      boot_diagnostics: Optional[Sequence[StatefulNodeAzureBootDiagnosticArgs]] = None,
                      custom_data: Optional[str] = None,
                      data_disks: Optional[Sequence[StatefulNodeAzureDataDiskArgs]] = None,
                      data_disks_persistence_mode: Optional[str] = None,
                      deletes: Optional[Sequence[StatefulNodeAzureDeleteArgs]] = None,
                      description: Optional[str] = None,
                      detach_data_disks: Optional[Sequence[StatefulNodeAzureDetachDataDiskArgs]] = None,
                      extensions: Optional[Sequence[StatefulNodeAzureExtensionArgs]] = None,
                      health: Optional[StatefulNodeAzureHealthArgs] = None,
                      image: Optional[StatefulNodeAzureImageArgs] = None,
                      import_vms: Optional[Sequence[StatefulNodeAzureImportVmArgs]] = None,
                      load_balancers: Optional[Sequence[StatefulNodeAzureLoadBalancerArgs]] = None,
                      login: Optional[StatefulNodeAzureLoginArgs] = None,
                      managed_service_identities: Optional[Sequence[StatefulNodeAzureManagedServiceIdentityArgs]] = None,
                      name: Optional[str] = None,
                      network: Optional[StatefulNodeAzureNetworkArgs] = None,
                      od_sizes: Optional[Sequence[str]] = None,
                      os: Optional[str] = None,
                      os_disk: Optional[StatefulNodeAzureOsDiskArgs] = None,
                      os_disk_persistence_mode: Optional[str] = None,
                      preferred_spot_sizes: Optional[Sequence[str]] = None,
                      preferred_zones: Optional[str] = None,
                      region: Optional[str] = None,
                      resource_group_name: Optional[str] = None,
                      scheduling_tasks: Optional[Sequence[StatefulNodeAzureSchedulingTaskArgs]] = None,
                      secrets: Optional[Sequence[StatefulNodeAzureSecretArgs]] = None,
                      should_persist_data_disks: Optional[bool] = None,
                      should_persist_network: Optional[bool] = None,
                      should_persist_os_disk: Optional[bool] = None,
                      should_persist_vm: Optional[bool] = None,
                      shutdown_script: Optional[str] = None,
                      signals: Optional[Sequence[StatefulNodeAzureSignalArgs]] = None,
                      spot_sizes: Optional[Sequence[str]] = None,
                      strategy: Optional[StatefulNodeAzureStrategyArgs] = None,
                      tags: Optional[Sequence[StatefulNodeAzureTagArgs]] = None,
                      update_states: Optional[Sequence[StatefulNodeAzureUpdateStateArgs]] = None,
                      zones: Optional[Sequence[str]] = None)
@overload
def StatefulNodeAzure(resource_name: str,
                      args: StatefulNodeAzureArgs,
                      opts: Optional[ResourceOptions] = None)
func NewStatefulNodeAzure(ctx *Context, name string, args StatefulNodeAzureArgs, opts ...ResourceOption) (*StatefulNodeAzure, error)
public StatefulNodeAzure(string name, StatefulNodeAzureArgs args, CustomResourceOptions? opts = null)
public StatefulNodeAzure(String name, StatefulNodeAzureArgs args)
public StatefulNodeAzure(String name, StatefulNodeAzureArgs args, CustomResourceOptions options)
type: spotinst:StatefulNodeAzure
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args StatefulNodeAzureArgs
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 StatefulNodeAzureArgs
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 StatefulNodeAzureArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args StatefulNodeAzureArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args StatefulNodeAzureArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

StatefulNodeAzure 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 StatefulNodeAzure resource accepts the following input properties:

Image Pulumi.SpotInst.Inputs.StatefulNodeAzureImageArgs
Login Pulumi.SpotInst.Inputs.StatefulNodeAzureLoginArgs
Network Pulumi.SpotInst.Inputs.StatefulNodeAzureNetworkArgs
OdSizes List<string>
Os string
Region string
ResourceGroupName string
ShouldPersistDataDisks bool
ShouldPersistNetwork bool
ShouldPersistOsDisk bool
SpotSizes List<string>
Strategy Pulumi.SpotInst.Inputs.StatefulNodeAzureStrategyArgs
AttachDataDisks List<Pulumi.SpotInst.Inputs.StatefulNodeAzureAttachDataDiskArgs>
BootDiagnostics List<Pulumi.SpotInst.Inputs.StatefulNodeAzureBootDiagnosticArgs>
CustomData string
DataDisks List<Pulumi.SpotInst.Inputs.StatefulNodeAzureDataDiskArgs>
DataDisksPersistenceMode string
Deletes List<Pulumi.SpotInst.Inputs.StatefulNodeAzureDeleteArgs>
Description string
DetachDataDisks List<Pulumi.SpotInst.Inputs.StatefulNodeAzureDetachDataDiskArgs>
Extensions List<Pulumi.SpotInst.Inputs.StatefulNodeAzureExtensionArgs>
Health Pulumi.SpotInst.Inputs.StatefulNodeAzureHealthArgs
ImportVms List<Pulumi.SpotInst.Inputs.StatefulNodeAzureImportVmArgs>
LoadBalancers List<Pulumi.SpotInst.Inputs.StatefulNodeAzureLoadBalancerArgs>
ManagedServiceIdentities List<Pulumi.SpotInst.Inputs.StatefulNodeAzureManagedServiceIdentityArgs>
Name string
OsDisk Pulumi.SpotInst.Inputs.StatefulNodeAzureOsDiskArgs
OsDiskPersistenceMode string
PreferredSpotSizes List<string>
PreferredZones string
SchedulingTasks List<Pulumi.SpotInst.Inputs.StatefulNodeAzureSchedulingTaskArgs>
Secrets List<Pulumi.SpotInst.Inputs.StatefulNodeAzureSecretArgs>
ShouldPersistVm bool
ShutdownScript string
Signals List<Pulumi.SpotInst.Inputs.StatefulNodeAzureSignalArgs>
Tags List<Pulumi.SpotInst.Inputs.StatefulNodeAzureTagArgs>
UpdateStates List<Pulumi.SpotInst.Inputs.StatefulNodeAzureUpdateStateArgs>
Zones List<string>
Image StatefulNodeAzureImageArgs
Login StatefulNodeAzureLoginArgs
Network StatefulNodeAzureNetworkArgs
OdSizes []string
Os string
Region string
ResourceGroupName string
ShouldPersistDataDisks bool
ShouldPersistNetwork bool
ShouldPersistOsDisk bool
SpotSizes []string
Strategy StatefulNodeAzureStrategyArgs
AttachDataDisks []StatefulNodeAzureAttachDataDiskArgs
BootDiagnostics []StatefulNodeAzureBootDiagnosticArgs
CustomData string
DataDisks []StatefulNodeAzureDataDiskArgs
DataDisksPersistenceMode string
Deletes []StatefulNodeAzureDeleteArgs
Description string
DetachDataDisks []StatefulNodeAzureDetachDataDiskArgs
Extensions []StatefulNodeAzureExtensionArgs
Health StatefulNodeAzureHealthArgs
ImportVms []StatefulNodeAzureImportVmArgs
LoadBalancers []StatefulNodeAzureLoadBalancerArgs
ManagedServiceIdentities []StatefulNodeAzureManagedServiceIdentityArgs
Name string
OsDisk StatefulNodeAzureOsDiskArgs
OsDiskPersistenceMode string
PreferredSpotSizes []string
PreferredZones string
SchedulingTasks []StatefulNodeAzureSchedulingTaskArgs
Secrets []StatefulNodeAzureSecretArgs
ShouldPersistVm bool
ShutdownScript string
Signals []StatefulNodeAzureSignalArgs
Tags []StatefulNodeAzureTagArgs
UpdateStates []StatefulNodeAzureUpdateStateArgs
Zones []string
image StatefulNodeAzureImageArgs
login StatefulNodeAzureLoginArgs
network StatefulNodeAzureNetworkArgs
odSizes List<String>
os String
region String
resourceGroupName String
shouldPersistDataDisks Boolean
shouldPersistNetwork Boolean
shouldPersistOsDisk Boolean
spotSizes List<String>
strategy StatefulNodeAzureStrategyArgs
attachDataDisks List<StatefulNodeAzureAttachDataDiskArgs>
bootDiagnostics List<StatefulNodeAzureBootDiagnosticArgs>
customData String
dataDisks List<StatefulNodeAzureDataDiskArgs>
dataDisksPersistenceMode String
deletes List<StatefulNodeAzureDeleteArgs>
description String
detachDataDisks List<StatefulNodeAzureDetachDataDiskArgs>
extensions List<StatefulNodeAzureExtensionArgs>
health StatefulNodeAzureHealthArgs
importVms List<StatefulNodeAzureImportVmArgs>
loadBalancers List<StatefulNodeAzureLoadBalancerArgs>
managedServiceIdentities List<StatefulNodeAzureManagedServiceIdentityArgs>
name String
osDisk StatefulNodeAzureOsDiskArgs
osDiskPersistenceMode String
preferredSpotSizes List<String>
preferredZones String
schedulingTasks List<StatefulNodeAzureSchedulingTaskArgs>
secrets List<StatefulNodeAzureSecretArgs>
shouldPersistVm Boolean
shutdownScript String
signals List<StatefulNodeAzureSignalArgs>
tags List<StatefulNodeAzureTagArgs>
updateStates List<StatefulNodeAzureUpdateStateArgs>
zones List<String>
image StatefulNodeAzureImageArgs
login StatefulNodeAzureLoginArgs
network StatefulNodeAzureNetworkArgs
odSizes string[]
os string
region string
resourceGroupName string
shouldPersistDataDisks boolean
shouldPersistNetwork boolean
shouldPersistOsDisk boolean
spotSizes string[]
strategy StatefulNodeAzureStrategyArgs
attachDataDisks StatefulNodeAzureAttachDataDiskArgs[]
bootDiagnostics StatefulNodeAzureBootDiagnosticArgs[]
customData string
dataDisks StatefulNodeAzureDataDiskArgs[]
dataDisksPersistenceMode string
deletes StatefulNodeAzureDeleteArgs[]
description string
detachDataDisks StatefulNodeAzureDetachDataDiskArgs[]
extensions StatefulNodeAzureExtensionArgs[]
health StatefulNodeAzureHealthArgs
importVms StatefulNodeAzureImportVmArgs[]
loadBalancers StatefulNodeAzureLoadBalancerArgs[]
managedServiceIdentities StatefulNodeAzureManagedServiceIdentityArgs[]
name string
osDisk StatefulNodeAzureOsDiskArgs
osDiskPersistenceMode string
preferredSpotSizes string[]
preferredZones string
schedulingTasks StatefulNodeAzureSchedulingTaskArgs[]
secrets StatefulNodeAzureSecretArgs[]
shouldPersistVm boolean
shutdownScript string
signals StatefulNodeAzureSignalArgs[]
tags StatefulNodeAzureTagArgs[]
updateStates StatefulNodeAzureUpdateStateArgs[]
zones string[]
image StatefulNodeAzureImageArgs
login StatefulNodeAzureLoginArgs
network StatefulNodeAzureNetworkArgs
od_sizes Sequence[str]
os str
region str
resource_group_name str
should_persist_data_disks bool
should_persist_network bool
should_persist_os_disk bool
spot_sizes Sequence[str]
strategy StatefulNodeAzureStrategyArgs
attach_data_disks Sequence[StatefulNodeAzureAttachDataDiskArgs]
boot_diagnostics Sequence[StatefulNodeAzureBootDiagnosticArgs]
custom_data str
data_disks Sequence[StatefulNodeAzureDataDiskArgs]
data_disks_persistence_mode str
deletes Sequence[StatefulNodeAzureDeleteArgs]
description str
detach_data_disks Sequence[StatefulNodeAzureDetachDataDiskArgs]
extensions Sequence[StatefulNodeAzureExtensionArgs]
health StatefulNodeAzureHealthArgs
import_vms Sequence[StatefulNodeAzureImportVmArgs]
load_balancers Sequence[StatefulNodeAzureLoadBalancerArgs]
managed_service_identities Sequence[StatefulNodeAzureManagedServiceIdentityArgs]
name str
os_disk StatefulNodeAzureOsDiskArgs
os_disk_persistence_mode str
preferred_spot_sizes Sequence[str]
preferred_zones str
scheduling_tasks Sequence[StatefulNodeAzureSchedulingTaskArgs]
secrets Sequence[StatefulNodeAzureSecretArgs]
should_persist_vm bool
shutdown_script str
signals Sequence[StatefulNodeAzureSignalArgs]
tags Sequence[StatefulNodeAzureTagArgs]
update_states Sequence[StatefulNodeAzureUpdateStateArgs]
zones Sequence[str]
image Property Map
login Property Map
network Property Map
odSizes List<String>
os String
region String
resourceGroupName String
shouldPersistDataDisks Boolean
shouldPersistNetwork Boolean
shouldPersistOsDisk Boolean
spotSizes List<String>
strategy Property Map
attachDataDisks List<Property Map>
bootDiagnostics List<Property Map>
customData String
dataDisks List<Property Map>
dataDisksPersistenceMode String
deletes List<Property Map>
description String
detachDataDisks List<Property Map>
extensions List<Property Map>
health Property Map
importVms List<Property Map>
loadBalancers List<Property Map>
managedServiceIdentities List<Property Map>
name String
osDisk Property Map
osDiskPersistenceMode String
preferredSpotSizes List<String>
preferredZones String
schedulingTasks List<Property Map>
secrets List<Property Map>
shouldPersistVm Boolean
shutdownScript String
signals List<Property Map>
tags List<Property Map>
updateStates List<Property Map>
zones List<String>

Outputs

All input properties are implicitly available as output properties. Additionally, the StatefulNodeAzure 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 an Existing StatefulNodeAzure Resource

Get an existing StatefulNodeAzure 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?: StatefulNodeAzureState, opts?: CustomResourceOptions): StatefulNodeAzure
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        attach_data_disks: Optional[Sequence[StatefulNodeAzureAttachDataDiskArgs]] = None,
        boot_diagnostics: Optional[Sequence[StatefulNodeAzureBootDiagnosticArgs]] = None,
        custom_data: Optional[str] = None,
        data_disks: Optional[Sequence[StatefulNodeAzureDataDiskArgs]] = None,
        data_disks_persistence_mode: Optional[str] = None,
        deletes: Optional[Sequence[StatefulNodeAzureDeleteArgs]] = None,
        description: Optional[str] = None,
        detach_data_disks: Optional[Sequence[StatefulNodeAzureDetachDataDiskArgs]] = None,
        extensions: Optional[Sequence[StatefulNodeAzureExtensionArgs]] = None,
        health: Optional[StatefulNodeAzureHealthArgs] = None,
        image: Optional[StatefulNodeAzureImageArgs] = None,
        import_vms: Optional[Sequence[StatefulNodeAzureImportVmArgs]] = None,
        load_balancers: Optional[Sequence[StatefulNodeAzureLoadBalancerArgs]] = None,
        login: Optional[StatefulNodeAzureLoginArgs] = None,
        managed_service_identities: Optional[Sequence[StatefulNodeAzureManagedServiceIdentityArgs]] = None,
        name: Optional[str] = None,
        network: Optional[StatefulNodeAzureNetworkArgs] = None,
        od_sizes: Optional[Sequence[str]] = None,
        os: Optional[str] = None,
        os_disk: Optional[StatefulNodeAzureOsDiskArgs] = None,
        os_disk_persistence_mode: Optional[str] = None,
        preferred_spot_sizes: Optional[Sequence[str]] = None,
        preferred_zones: Optional[str] = None,
        region: Optional[str] = None,
        resource_group_name: Optional[str] = None,
        scheduling_tasks: Optional[Sequence[StatefulNodeAzureSchedulingTaskArgs]] = None,
        secrets: Optional[Sequence[StatefulNodeAzureSecretArgs]] = None,
        should_persist_data_disks: Optional[bool] = None,
        should_persist_network: Optional[bool] = None,
        should_persist_os_disk: Optional[bool] = None,
        should_persist_vm: Optional[bool] = None,
        shutdown_script: Optional[str] = None,
        signals: Optional[Sequence[StatefulNodeAzureSignalArgs]] = None,
        spot_sizes: Optional[Sequence[str]] = None,
        strategy: Optional[StatefulNodeAzureStrategyArgs] = None,
        tags: Optional[Sequence[StatefulNodeAzureTagArgs]] = None,
        update_states: Optional[Sequence[StatefulNodeAzureUpdateStateArgs]] = None,
        zones: Optional[Sequence[str]] = None) -> StatefulNodeAzure
func GetStatefulNodeAzure(ctx *Context, name string, id IDInput, state *StatefulNodeAzureState, opts ...ResourceOption) (*StatefulNodeAzure, error)
public static StatefulNodeAzure Get(string name, Input<string> id, StatefulNodeAzureState? state, CustomResourceOptions? opts = null)
public static StatefulNodeAzure get(String name, Output<String> id, StatefulNodeAzureState 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.
The following state arguments are supported:
AttachDataDisks List<Pulumi.SpotInst.Inputs.StatefulNodeAzureAttachDataDiskArgs>
BootDiagnostics List<Pulumi.SpotInst.Inputs.StatefulNodeAzureBootDiagnosticArgs>
CustomData string
DataDisks List<Pulumi.SpotInst.Inputs.StatefulNodeAzureDataDiskArgs>
DataDisksPersistenceMode string
Deletes List<Pulumi.SpotInst.Inputs.StatefulNodeAzureDeleteArgs>
Description string
DetachDataDisks List<Pulumi.SpotInst.Inputs.StatefulNodeAzureDetachDataDiskArgs>
Extensions List<Pulumi.SpotInst.Inputs.StatefulNodeAzureExtensionArgs>
Health Pulumi.SpotInst.Inputs.StatefulNodeAzureHealthArgs
Image Pulumi.SpotInst.Inputs.StatefulNodeAzureImageArgs
ImportVms List<Pulumi.SpotInst.Inputs.StatefulNodeAzureImportVmArgs>
LoadBalancers List<Pulumi.SpotInst.Inputs.StatefulNodeAzureLoadBalancerArgs>
Login Pulumi.SpotInst.Inputs.StatefulNodeAzureLoginArgs
ManagedServiceIdentities List<Pulumi.SpotInst.Inputs.StatefulNodeAzureManagedServiceIdentityArgs>
Name string
Network Pulumi.SpotInst.Inputs.StatefulNodeAzureNetworkArgs
OdSizes List<string>
Os string
OsDisk Pulumi.SpotInst.Inputs.StatefulNodeAzureOsDiskArgs
OsDiskPersistenceMode string
PreferredSpotSizes List<string>
PreferredZones string
Region string
ResourceGroupName string
SchedulingTasks List<Pulumi.SpotInst.Inputs.StatefulNodeAzureSchedulingTaskArgs>
Secrets List<Pulumi.SpotInst.Inputs.StatefulNodeAzureSecretArgs>
ShouldPersistDataDisks bool
ShouldPersistNetwork bool
ShouldPersistOsDisk bool
ShouldPersistVm bool
ShutdownScript string
Signals List<Pulumi.SpotInst.Inputs.StatefulNodeAzureSignalArgs>
SpotSizes List<string>
Strategy Pulumi.SpotInst.Inputs.StatefulNodeAzureStrategyArgs
Tags List<Pulumi.SpotInst.Inputs.StatefulNodeAzureTagArgs>
UpdateStates List<Pulumi.SpotInst.Inputs.StatefulNodeAzureUpdateStateArgs>
Zones List<string>
AttachDataDisks []StatefulNodeAzureAttachDataDiskArgs
BootDiagnostics []StatefulNodeAzureBootDiagnosticArgs
CustomData string
DataDisks []StatefulNodeAzureDataDiskArgs
DataDisksPersistenceMode string
Deletes []StatefulNodeAzureDeleteArgs
Description string
DetachDataDisks []StatefulNodeAzureDetachDataDiskArgs
Extensions []StatefulNodeAzureExtensionArgs
Health StatefulNodeAzureHealthArgs
Image StatefulNodeAzureImageArgs
ImportVms []StatefulNodeAzureImportVmArgs
LoadBalancers []StatefulNodeAzureLoadBalancerArgs
Login StatefulNodeAzureLoginArgs
ManagedServiceIdentities []StatefulNodeAzureManagedServiceIdentityArgs
Name string
Network StatefulNodeAzureNetworkArgs
OdSizes []string
Os string
OsDisk StatefulNodeAzureOsDiskArgs
OsDiskPersistenceMode string
PreferredSpotSizes []string
PreferredZones string
Region string
ResourceGroupName string
SchedulingTasks []StatefulNodeAzureSchedulingTaskArgs
Secrets []StatefulNodeAzureSecretArgs
ShouldPersistDataDisks bool
ShouldPersistNetwork bool
ShouldPersistOsDisk bool
ShouldPersistVm bool
ShutdownScript string
Signals []StatefulNodeAzureSignalArgs
SpotSizes []string
Strategy StatefulNodeAzureStrategyArgs
Tags []StatefulNodeAzureTagArgs
UpdateStates []StatefulNodeAzureUpdateStateArgs
Zones []string
attachDataDisks List<StatefulNodeAzureAttachDataDiskArgs>
bootDiagnostics List<StatefulNodeAzureBootDiagnosticArgs>
customData String
dataDisks List<StatefulNodeAzureDataDiskArgs>
dataDisksPersistenceMode String
deletes List<StatefulNodeAzureDeleteArgs>
description String
detachDataDisks List<StatefulNodeAzureDetachDataDiskArgs>
extensions List<StatefulNodeAzureExtensionArgs>
health StatefulNodeAzureHealthArgs
image StatefulNodeAzureImageArgs
importVms List<StatefulNodeAzureImportVmArgs>
loadBalancers List<StatefulNodeAzureLoadBalancerArgs>
login StatefulNodeAzureLoginArgs
managedServiceIdentities List<StatefulNodeAzureManagedServiceIdentityArgs>
name String
network StatefulNodeAzureNetworkArgs
odSizes List<String>
os String
osDisk StatefulNodeAzureOsDiskArgs
osDiskPersistenceMode String
preferredSpotSizes List<String>
preferredZones String
region String
resourceGroupName String
schedulingTasks List<StatefulNodeAzureSchedulingTaskArgs>
secrets List<StatefulNodeAzureSecretArgs>
shouldPersistDataDisks Boolean
shouldPersistNetwork Boolean
shouldPersistOsDisk Boolean
shouldPersistVm Boolean
shutdownScript String
signals List<StatefulNodeAzureSignalArgs>
spotSizes List<String>
strategy StatefulNodeAzureStrategyArgs
tags List<StatefulNodeAzureTagArgs>
updateStates List<StatefulNodeAzureUpdateStateArgs>
zones List<String>
attachDataDisks StatefulNodeAzureAttachDataDiskArgs[]
bootDiagnostics StatefulNodeAzureBootDiagnosticArgs[]
customData string
dataDisks StatefulNodeAzureDataDiskArgs[]
dataDisksPersistenceMode string
deletes StatefulNodeAzureDeleteArgs[]
description string
detachDataDisks StatefulNodeAzureDetachDataDiskArgs[]
extensions StatefulNodeAzureExtensionArgs[]
health StatefulNodeAzureHealthArgs
image StatefulNodeAzureImageArgs
importVms StatefulNodeAzureImportVmArgs[]
loadBalancers StatefulNodeAzureLoadBalancerArgs[]
login StatefulNodeAzureLoginArgs
managedServiceIdentities StatefulNodeAzureManagedServiceIdentityArgs[]
name string
network StatefulNodeAzureNetworkArgs
odSizes string[]
os string
osDisk StatefulNodeAzureOsDiskArgs
osDiskPersistenceMode string
preferredSpotSizes string[]
preferredZones string
region string
resourceGroupName string
schedulingTasks StatefulNodeAzureSchedulingTaskArgs[]
secrets StatefulNodeAzureSecretArgs[]
shouldPersistDataDisks boolean
shouldPersistNetwork boolean
shouldPersistOsDisk boolean
shouldPersistVm boolean
shutdownScript string
signals StatefulNodeAzureSignalArgs[]
spotSizes string[]
strategy StatefulNodeAzureStrategyArgs
tags StatefulNodeAzureTagArgs[]
updateStates StatefulNodeAzureUpdateStateArgs[]
zones string[]
attach_data_disks Sequence[StatefulNodeAzureAttachDataDiskArgs]
boot_diagnostics Sequence[StatefulNodeAzureBootDiagnosticArgs]
custom_data str
data_disks Sequence[StatefulNodeAzureDataDiskArgs]
data_disks_persistence_mode str
deletes Sequence[StatefulNodeAzureDeleteArgs]
description str
detach_data_disks Sequence[StatefulNodeAzureDetachDataDiskArgs]
extensions Sequence[StatefulNodeAzureExtensionArgs]
health StatefulNodeAzureHealthArgs
image StatefulNodeAzureImageArgs
import_vms Sequence[StatefulNodeAzureImportVmArgs]
load_balancers Sequence[StatefulNodeAzureLoadBalancerArgs]
login StatefulNodeAzureLoginArgs
managed_service_identities Sequence[StatefulNodeAzureManagedServiceIdentityArgs]
name str
network StatefulNodeAzureNetworkArgs
od_sizes Sequence[str]
os str
os_disk StatefulNodeAzureOsDiskArgs
os_disk_persistence_mode str
preferred_spot_sizes Sequence[str]
preferred_zones str
region str
resource_group_name str
scheduling_tasks Sequence[StatefulNodeAzureSchedulingTaskArgs]
secrets Sequence[StatefulNodeAzureSecretArgs]
should_persist_data_disks bool
should_persist_network bool
should_persist_os_disk bool
should_persist_vm bool
shutdown_script str
signals Sequence[StatefulNodeAzureSignalArgs]
spot_sizes Sequence[str]
strategy StatefulNodeAzureStrategyArgs
tags Sequence[StatefulNodeAzureTagArgs]
update_states Sequence[StatefulNodeAzureUpdateStateArgs]
zones Sequence[str]
attachDataDisks List<Property Map>
bootDiagnostics List<Property Map>
customData String
dataDisks List<Property Map>
dataDisksPersistenceMode String
deletes List<Property Map>
description String
detachDataDisks List<Property Map>
extensions List<Property Map>
health Property Map
image Property Map
importVms List<Property Map>
loadBalancers List<Property Map>
login Property Map
managedServiceIdentities List<Property Map>
name String
network Property Map
odSizes List<String>
os String
osDisk Property Map
osDiskPersistenceMode String
preferredSpotSizes List<String>
preferredZones String
region String
resourceGroupName String
schedulingTasks List<Property Map>
secrets List<Property Map>
shouldPersistDataDisks Boolean
shouldPersistNetwork Boolean
shouldPersistOsDisk Boolean
shouldPersistVm Boolean
shutdownScript String
signals List<Property Map>
spotSizes List<String>
strategy Property Map
tags List<Property Map>
updateStates List<Property Map>
zones List<String>

Supporting Types

StatefulNodeAzureAttachDataDisk

StatefulNodeAzureBootDiagnostic

IsEnabled bool
StorageUrl string
Type string
IsEnabled bool
StorageUrl string
Type string
isEnabled Boolean
storageUrl String
type String
isEnabled boolean
storageUrl string
type string
isEnabled Boolean
storageUrl String
type String

StatefulNodeAzureDataDisk

Lun int
SizeGb int
Type string
Lun int
SizeGb int
Type string
lun Integer
sizeGb Integer
type String
lun number
sizeGb number
type string
lun int
size_gb int
type str
lun Number
sizeGb Number
type String

StatefulNodeAzureDelete

StatefulNodeAzureDetachDataDisk

StatefulNodeAzureExtension

ApiVersion string
MinorVersionAutoUpgrade bool
Name string
Publisher string
Type string
ProtectedSettings Dictionary<string, object>
PublicSettings Dictionary<string, object>
ApiVersion string
MinorVersionAutoUpgrade bool
Name string
Publisher string
Type string
ProtectedSettings map[string]interface{}
PublicSettings map[string]interface{}
apiVersion String
minorVersionAutoUpgrade Boolean
name String
publisher String
type String
protectedSettings Map<String,Object>
publicSettings Map<String,Object>
apiVersion string
minorVersionAutoUpgrade boolean
name string
publisher string
type string
protectedSettings {[key: string]: any}
publicSettings {[key: string]: any}
apiVersion String
minorVersionAutoUpgrade Boolean
name String
publisher String
type String
protectedSettings Map<Any>
publicSettings Map<Any>

StatefulNodeAzureHealth

autoHealing Boolean
healthCheckTypes List<String>
gracePeriod Integer
unhealthyDuration Integer

StatefulNodeAzureImage

StatefulNodeAzureImageCustomImage

StatefulNodeAzureImageGallery

StatefulNodeAzureImageMarketplaceImage

Offer string
Publisher string
Sku string
Version string
Offer string
Publisher string
Sku string
Version string
offer String
publisher String
sku String
version String
offer string
publisher string
sku string
version string
offer str
publisher str
sku str
version str
offer String
publisher String
sku String
version String

StatefulNodeAzureImportVm

StatefulNodeAzureLoadBalancer

BackendPoolNames List<string>
Name string
ResourceGroupName string
Type string
Sku string
BackendPoolNames []string
Name string
ResourceGroupName string
Type string
Sku string
backendPoolNames List<String>
name String
resourceGroupName String
type String
sku String
backendPoolNames string[]
name string
resourceGroupName string
type string
sku string
backendPoolNames List<String>
name String
resourceGroupName String
type String
sku String

StatefulNodeAzureLogin

UserName string
Password string
SshPublicKey string
UserName string
Password string
SshPublicKey string
userName String
password String
sshPublicKey String
userName string
password string
sshPublicKey string
userName String
password String
sshPublicKey String

StatefulNodeAzureManagedServiceIdentity

Name string
ResourceGroupName string
Name string
ResourceGroupName string
name String
resourceGroupName String
name string
resourceGroupName string
name String
resourceGroupName String

StatefulNodeAzureNetwork

StatefulNodeAzureNetworkNetworkInterface

StatefulNodeAzureNetworkNetworkInterfaceAdditionalIpConfiguration

StatefulNodeAzureNetworkNetworkInterfaceApplicationSecurityGroup

StatefulNodeAzureNetworkNetworkInterfaceNetworkSecurityGroup

StatefulNodeAzureNetworkNetworkInterfacePublicIp

StatefulNodeAzureOsDisk

Type string
SizeGb int
Type string
SizeGb int
type String
sizeGb Integer
type string
sizeGb number
type str
size_gb int
type String
sizeGb Number

StatefulNodeAzureSchedulingTask

CronExpression string
IsEnabled bool
Type string
CronExpression string
IsEnabled bool
Type string
cronExpression String
isEnabled Boolean
type String
cronExpression string
isEnabled boolean
type string
cronExpression String
isEnabled Boolean
type String

StatefulNodeAzureSecret

StatefulNodeAzureSecretSourceVault

Name string
ResourceGroupName string
Name string
ResourceGroupName string
name String
resourceGroupName String
name string
resourceGroupName string
name String
resourceGroupName String

StatefulNodeAzureSecretVaultCertificate

StatefulNodeAzureSignal

Timeout int
Type string
Timeout int
Type string
timeout Integer
type String
timeout number
type string
timeout int
type str
timeout Number
type String

StatefulNodeAzureStrategy

StatefulNodeAzureStrategyRevertToSpot

PerformAt string
PerformAt string
performAt String
performAt string
performAt String

StatefulNodeAzureTag

TagKey string
TagValue string
TagKey string
TagValue string
tagKey String
tagValue String
tagKey string
tagValue string
tagKey String
tagValue String

StatefulNodeAzureUpdateState

State string
State string
state String
state string
state str
state String

Package Details

Repository
https://github.com/pulumi/pulumi-spotinst
License
Apache-2.0
Notes

This Pulumi package is based on the spotinst Terraform Provider.