33-AzureML-2/azuremlpythonsdk-v2/initialize_constants.py

24 lines
832 B
Python
Raw Normal View History

2024-09-04 10:15:43 +02:00
"""
Script to initialize global constants
"""
import os
# Global constants can be set via environmental variables
# Remove default values in production
AZURE_RESOURCE_GROUP = os.getenv("AZURE_RESOURCE_GROUP", "itvitae-azure-ml")
AZURE_SUBSCRIPTION_ID = os.getenv(
"AZURE_SUBSCRIPTION_ID", "34faeead-244d-4ae8-8194-1eeaaffaf5be"
)
AZURE_WORKSPACE_NAME = os.getenv(
"AZURE_WORKSPACE_NAME",
2024-09-04 10:55:03 +02:00
"ws-lillian-violet-oostrom",
2024-09-04 10:15:43 +02:00
)
AZURE_LOCATION = os.getenv("AZURE_LOCATION", "westeurope")
# Choose names for your clusters
AML_COMPUTE_NAME = os.getenv("AML_COMPUTE_NAME", "aml-compute")
# General Servers Characteristics
VM_SIZE = os.getenv("VM_SIZE", "STANDARD_DS2_V2")
MIN_NODES = int(os.getenv("MIN_NODES", 0))
MAX_NODES = int(os.getenv("MAX_NODES", 1))
AGENT_COUNT = int(os.getenv("AGENT_COUNT", 2))