First thing, install the Azure CLI, if you haven't already :
curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash
Then, login to it :
az login
Set the required configuration in a JSON file, for example, create a file named spark-pool-config.json with your desired configuration:
{
"name": "your-spark-pool-name",
"tags": {},
"autoScale": {
"enabled": true,
"minNodeCount": 3,
"maxNodeCount": 10
},
"nodeSize": "Medium",
"nodeSizeFamily": "MemoryOptimized",
"sessionLevelPackagesEnabled": true,
"sparkEventsFolder": "/events",
"sparkVersion": "3.1"
}
Then, update the Spark pool using the Azure CLI:
az synapse spark pool update --name your-spark-pool-name --workspace-name your-workspace-name --resource-group your-resource-group --file @spark-pool-config.json