Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 

README.md

Examples: Using Locally with Azure PowerShell

Dependencies

Get Started

The examples below assume that Locally is running, which can be done via:

locally build

Once Locally is up and running, you can launch an Azure PowerShell session that's configured to work against Locally by running:

locally run pwsh

On Windows, you'll want to run:

locally run pwsh.exe

Any PowerShell Commandlets run within this session will run against the Locally cloud environment.

For example to list the available Subscriptions, run:

Get-AzSubscription

Or to list the Resource Groups within the Primary Subscription, run:

Get-AzResourceGroup

Example: Creating a Resource Group in Locally using Azure PowerShell

New-AzResourceGroup -Name hello-powershell -Location berlin

Example: Creating an Availability Set in Locally using Azure PowerShell

New-AzAvailabilitySet -Name pwsh-availability-set -ResourceGroupName hello-powershell -Location berlin -PlatformFaultDomainCount 2 -PlatformUpdateDomainCount 5