Skip to content

Latest commit

 

History

History
48 lines (36 loc) · 2.57 KB

README.md

File metadata and controls

48 lines (36 loc) · 2.57 KB

Az.Avd PowerShell module

This module will help you managing an Azure Virtual Desktop environments and all related Azure resources.

General module information

CurrentVersion Issues Beta Beta

PowerShell Gallery information

Main Downloads

Update information

LastCommit Beta

Install module

To install the module in PowerShell use the command below

Install-Module Az.Avd
Import-Module Az.Avd

Connect to AVD

To connect to AVD use one of the commands below: For an interactive login the device_code flow is used.

$TenantId = "000000-00000"
$SubscriptionId = "000000-00000"
Connect-Avd -DeviceCode -TenantID $TenantId -SubscriptionId $SubscriptionId

Or using a service principal.

$TenantId = "000000-00000"
Connect-Avd -ClientID xxxx -ClientSecret "xxxxx" -TenantID $Tenantid -SubscriptionId $SubscriptionId

To change the subscription context use the command below:

$SubscriptionId = "000000-00000"
Set-AvdContext -SubscriptionId $SubscriptionId

The module consists of the following commands:

Documentation

The documentation is stored at this location: https://github.com/srozemuller/AzAvd/tree/main/Docs

For practical examples check my blog: https://rozemuller.com/?s=az.avd