The examples below assume that Locally is running, which can be done via:
locally buildOnce Locally is up and running, you can launch an Azure PowerShell session that's configured to work against Locally by running:
locally run pwshOn Windows, you'll want to run:
locally run pwsh.exeAny PowerShell Commandlets run within this session will run against the Locally cloud environment.
For example to list the available Subscriptions, run:
Get-AzSubscriptionOr to list the Resource Groups within the Primary Subscription, run:
Get-AzResourceGroupNew-AzResourceGroup -Name hello-powershell -Location berlinNew-AzAvailabilitySet -Name pwsh-availability-set -ResourceGroupName hello-powershell -Location berlin -PlatformFaultDomainCount 2 -PlatformUpdateDomainCount 5