Skip to content

Commit 2e5f260

Browse files
committed
Force storage type
1 parent 3dc279f commit 2e5f260

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

src/hpcadvisor/batch_handler.py

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,23 @@
1414
from azure.cli.core.util import b64encode
1515
from azure.identity import DefaultAzureCredential
1616
from azure.mgmt.compute import ComputeManagementClient
17-
from azure.mgmt.compute.models import (DiskCreateOption, LinuxConfiguration,
18-
OSProfile, SshConfiguration,
19-
SshPublicKey, VirtualMachine,
20-
VirtualMachineImage)
17+
from azure.mgmt.compute.models import (
18+
DiskCreateOption,
19+
LinuxConfiguration,
20+
OSProfile,
21+
SshConfiguration,
22+
SshPublicKey,
23+
VirtualMachine,
24+
VirtualMachineImage,
25+
)
2126
from azure.mgmt.monitor import MonitorManagementClient
2227
from azure.mgmt.netapp import NetAppManagementClient
2328
from azure.mgmt.netapp.models import NetAppAccount
2429
from azure.mgmt.network import NetworkManagementClient
2530
from azure.mgmt.resource import ResourceManagementClient, SubscriptionClient
2631

2732
from hpcadvisor import dataset_handler, logger, taskset_handler, utils
28-
from hpcadvisor.azure_identity_credential_adapter import \
29-
AzureIdentityCredentialAdapter
33+
from hpcadvisor.azure_identity_credential_adapter import AzureIdentityCredentialAdapter
3034

3135
batch_supported_images = "batch_supported_images.txt"
3236
VMIMAGE = "almalinux:almalinux-hpc:8-hpc-gen2:latest"
@@ -615,6 +619,7 @@ def create_pool(sku, number_of_nodes):
615619
),
616620
node_agent_sku_id=env["NODEAGENTSKU"],
617621
),
622+
storage_account_type="Premium_LRS",
618623
vm_size=sku,
619624
target_dedicated_nodes=number_of_nodes,
620625
enable_inter_node_communication=True,

0 commit comments

Comments
 (0)