Databricks SDK for JavaScript
    Preparing search index...

    Attributes set during instance pool creation which are related to Azure.

    interface InstancePoolAzureAttributes {
        availability?: AzureAvailability;
        capacityReservationGroup?: string;
        spotBidMaxPrice?: number;
    }
    Index

    Properties

    availability?: AzureAvailability

    Availability type used for the instances in the pool. Supports on-demand, spot, and spot-with-fallback (the pool acquires spot instances first, and falls back to on-demand instances when spot capacity is unavailable).

    You can change this value on an existing pool. New clusters use the updated availability, and existing clusters keep the availability they launched with.

    capacityReservationGroup?: string

    The Azure capacity reservation group resource ID to use for launching VMs in this pool. When specified, VMs will be launched using the provided capacity reservation.

    NOTE: Omitting this field will clear any existing configured capacity reservation group on the pool.

    Capacity reservations can only be specified when the workspace uses injected vnet (i.e. customer defined vnet not managed by databricks). Ensure the databricks-login-prod Enterprise Application is granted the following four permissions:

    1. Microsoft.Compute/capacityReservationGroups/read
    2. Microsoft.Compute/capacityReservationGroups/deploy/action
    3. Microsoft.Compute/capacityReservationGroups/capacityReservations/read
    4. Microsoft.Compute/capacityReservationGroups/capacityReservations/deploy/action

    Format: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}

    spotBidMaxPrice?: number

    With variable pricing, you have option to set a max price, in US dollars (USD) For example, the value 2 would be a max price of $2.00 USD per hour. If you set the max price to be -1, the VM won't be evicted based on price. The price for the VM will be the current price for spot or the price for a standard VM, which ever is less, as long as there is capacity and quota available.

    You can change this value on an existing pool. New clusters use the updated max price, and existing clusters keep the max price they launched with.