Skip to content

Commit

Permalink
Fix Spot instance on Azure (#4408)
Browse files Browse the repository at this point in the history
  • Loading branch information
cblmemo authored Nov 25, 2024
1 parent 76e20b6 commit 894330b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 2 additions & 1 deletion sky/provision/azure/instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,8 @@ def _create_vm(
network_profile=network_profile,
identity=compute.VirtualMachineIdentity(
type='UserAssigned',
user_assigned_identities={provider_config['msi']: {}}))
user_assigned_identities={provider_config['msi']: {}}),
priority=node_config['azure_arm_parameters']['priority'])
vm_poller = compute_client.virtual_machines.begin_create_or_update(
resource_group_name=provider_config['resource_group'],
vm_name=vm_name,
Expand Down
3 changes: 0 additions & 3 deletions sky/templates/azure-ray.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,6 @@ available_node_types:
{%- if use_spot %}
# optionally set priority to use Spot instances
priority: Spot
# set a maximum price for spot instances if desired
# billingProfile:
# maxPrice: -1
{%- endif %}
cloudInitSetupCommands: |-
{%- for cmd in cloud_init_setup_commands %}
Expand Down

0 comments on commit 894330b

Please sign in to comment.