Troubleshoot the Anyscale CLI against the Azure control plane
Troubleshoot the Anyscale CLI against the Azure control plane
The Anyscale CLI defaults to the AWS control plane. To run commands against Anyscale on Azure, point the CLI at the Azure control plane by setting ANYSCALE_HOST=https://console.azure.anyscale.com. The quickstart covers this for Unix shells; this page covers the Windows persistence path and one common multi-cloud edge case.
For background on the export and the quickstart verification flow, see Verify the deployment.
Persist ANYSCALE_HOST on Windows
On Linux and macOS, you add export ANYSCALE_HOST=https://console.azure.anyscale.com to your shell profile (.bashrc, .zshrc, or equivalent). Windows uses a different mechanism. Pick one of the following.
Set the user environment variable through System Properties
- Press Win + R, type
sysdm.cpl, and press Enter. - On the Advanced tab, select Environment Variables.
- Under User variables, select New.
- Set Variable name to
ANYSCALE_HOSTand Variable value tohttps://console.azure.anyscale.com. - Select OK to save. Restart any open terminals so they pick up the new variable.
Add the export to your PowerShell profile
The PowerShell profile script runs at the start of every PowerShell session. It's the Windows equivalent of .bashrc or .zshrc. Append the export to it:
Add-Content $PROFILE '$env:ANYSCALE_HOST = "https://console.azure.anyscale.com"'
Open a new PowerShell session to apply.
anyscale job submit fails with Cloud not found
If your Anyscale organization has clouds in multiple control planes or on multiple providers, the CLI doesn't always default to the cloud you intend. Pass --cloud <name> explicitly on each command:
anyscale job submit -f job.yaml --cloud <cloud-name>
For a persistent default, set a default cloud in Organization settings > Clouds in the Anyscale console. The default applies to commands that don't specify --cloud explicitly.
Related Azure docs
- Quickstart: Verify the deployment covers the initial
ANYSCALE_HOSTexport and theanyscale loginflow. - Anyscale CLI reference is the canonical reference for the
--cloud,--host, and authentication flags.