Skip to content

Commit

Permalink
old wvd removed
Browse files Browse the repository at this point in the history
  • Loading branch information
srozemuller@unica.nl committed Sep 17, 2021
1 parent ed6bcbb commit 66548f1
Show file tree
Hide file tree
Showing 23 changed files with 79 additions and 83 deletions.
12 changes: 6 additions & 6 deletions Docs/Export-AvdConfig.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ schema: 2.0.0
# Export-AvdConfig

## SYNOPSIS
Exports the WVD environment, based on the hostpool name.
Exports the AVD environment, based on the hostpool name.

## SYNTAX

Expand All @@ -24,24 +24,24 @@ Export-AvdConfig -HostpoolName <String> -ResourceGroupName <String> [-Console] [
```

## DESCRIPTION
The function will help you exporting the complete WVD environment to common output types as HTML and CSV.
The function will help you exporting the complete AVD environment to common output types as HTML and CSV.

## EXAMPLES

### EXAMPLE 1
```
Export-WvdConfig -Hostpoolname wvd-hostpool-001 -ResourceGroupName rg-wvd-001 -Format HTML -Verbose -Filename WVDExport
Export-AVDConfig -Hostpoolname AVD-hostpool-001 -ResourceGroupName rg-AVD-001 -Format HTML -Verbose -Filename AVDExport
```

### EXAMPLE 2
```
Export-WvdConfig -HostPoolName wvd-hostpool-001 -ResourceGroupName rg-wvd-001 -Format HTML,JSON -Verbose -Filename WVDExport
Export-AVDConfig -HostPoolName AVD-hostpool-001 -ResourceGroupName rg-AVD-001 -Format HTML,JSON -Verbose -Filename AVDExport
```

## PARAMETERS

### -HostpoolName
Enter the WVD hostpoolname name.
Enter the AVD hostpoolname name.

```yaml
Type: String
Expand All @@ -56,7 +56,7 @@ Accept wildcard characters: False
```

### -ResourceGroupName
Enter the WVD hostpool resource group name.
Enter the AVD hostpool resource group name.

```yaml
Type: String
Expand Down
6 changes: 3 additions & 3 deletions Docs/Get-AvdHostPoolInfo.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ schema: 2.0.0
# Get-AvdHostPoolInfo

## SYNOPSIS
Get WVD Hostpool information, including the underlaying session hosts
Get AVD Hostpool information, including the underlaying session hosts

## SYNTAX

Expand All @@ -17,13 +17,13 @@ Get-AvdHostPoolInfo [-HostPoolName] <String> [-ResourceGroupName] <String> [<Com
```

## DESCRIPTION
With this function you can get information about a WVD hostpool that includes the information about the underlaying session hosts.
With this function you can get information about a AVD hostpool that includes the information about the underlaying session hosts.

## EXAMPLES

### EXAMPLE 1
```
Get-WvdHostPoolInfo -HostPoolName wvd-hostpool-001 -ResourceGroupName rg-wvd-001
Get-AVDHostPoolInfo -HostPoolName AVD-hostpool-001 -ResourceGroupName rg-AVD-001
```

## PARAMETERS
Expand Down
6 changes: 3 additions & 3 deletions Docs/Get-AvdImageVersionStatus.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ The function will help you getting insights if there are session hosts started f

### EXAMPLE 1
```
Get-WvdImageVersionStatus -HostpoolName wvd-hostpool-001 -ResourceGroupName rg-wvd-001
Get-AVDImageVersionStatus -HostpoolName AVD-hostpool-001 -ResourceGroupName rg-AVD-001
```

## PARAMETERS

### -HostpoolName
Enter the WVD Hostpool name
Enter the AVD Hostpool name

```yaml
Type: String
Expand All @@ -51,7 +51,7 @@ Accept wildcard characters: False
```

### -ResourceGroupName
Enter the WVD Hostpool resourcegroup name
Enter the AVD Hostpool resourcegroup name

```yaml
Type: String
Expand Down
10 changes: 5 additions & 5 deletions Docs/Get-AvdLatestSessionHost.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ schema: 2.0.0
# Get-AvdLatestSessionHost

## SYNOPSIS
Gets the latest session host from the WVD Hostpool
Gets the latest session host from the AVD Hostpool

## SYNTAX

Expand All @@ -23,20 +23,20 @@ Get-AvdLatestSessionHost -InputObject <PSObject> [<CommonParameters>]
```

## DESCRIPTION
The function will help you getting the latests session host from a WVD Hostpool.
The function will help you getting the latests session host from a AVD Hostpool.
By running this function you will able to define the next number for deploying new session hosts.

## EXAMPLES

### EXAMPLE 1
```
Get-WvdLatestSessionHost -WvdHostpoolName wvd-hostpool -ResourceGroupName wvd-resourcegroup
Get-AVDLatestSessionHost -AVDHostpoolName AVD-hostpool -ResourceGroupName AVD-resourcegroup
```

## PARAMETERS

### -HostpoolName
Enter the WVD Hostpool name
Enter the AVD Hostpool name

```yaml
Type: String
Expand All @@ -51,7 +51,7 @@ Accept wildcard characters: False
```

### -ResourceGroupName
Enter the WVD Hostpool resourcegroup name
Enter the AVD Hostpool resourcegroup name

```yaml
Type: String
Expand Down
6 changes: 3 additions & 3 deletions Docs/Get-AvdNetworkInfo.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Get-AvdNetworkInfo -HostpoolName <String> -ResourceGroupName <String> [-SessionH
```

## DESCRIPTION
The function will help you getting insights about the WVD network configuration.
The function will help you getting insights about the AVD network configuration.

## EXAMPLES

Expand All @@ -41,7 +41,7 @@ The function will help you getting insights about the WVD network configuration.
## PARAMETERS

### -HostpoolName
Enter the WVD Hostpool name
Enter the AVD Hostpool name

```yaml
Type: String
Expand All @@ -56,7 +56,7 @@ Accept wildcard characters: False
```

### -ResourceGroupName
Enter the WVD Hostpool resourcegroup name
Enter the AVD Hostpool resourcegroup name

```yaml
Type: String
Expand Down
6 changes: 3 additions & 3 deletions Docs/Get-AvdSessionHost.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ This function will grab all the sessionhost from a specific Azure Virtual Deskto

### EXAMPLE 1
```
Get-AvdSessionhost -HostpoolName avd-hostpool-personal -ResourceGroupName rg-avd-01 -SessionHostName avd-host-1.wvd.domain -AllowNewSession $true
Get-AvdSessionhost -HostpoolName avd-hostpool-personal -ResourceGroupName rg-avd-01 -SessionHostName avd-host-1.AVD.domain -AllowNewSession $true
```

## PARAMETERS

### -HostpoolName
Enter the WVD Hostpool name
Enter the AVD Hostpool name

```yaml
Type: String
Expand All @@ -51,7 +51,7 @@ Accept wildcard characters: False
```

### -ResourceGroupName
Enter the WVD Hostpool resourcegroup name
Enter the AVD Hostpool resourcegroup name

```yaml
Type: String
Expand Down
6 changes: 3 additions & 3 deletions Docs/Get-AvdSessionHostResources.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ schema: 2.0.0
# Get-AvdSessionHostResources

## SYNOPSIS
Gets the Virtual Machines Azure resource from a WVD Session Host
Gets the Virtual Machines Azure resource from a AVD Session Host

## SYNTAX

Expand All @@ -24,13 +24,13 @@ Get-AvdSessionHostResources -HostpoolName <String> -ResourceGroupName <String> [
```

## DESCRIPTION
The function will help you getting the virtual machine resource information which is behind the WVD Session Host
The function will help you getting the virtual machine resource information which is behind the AVD Session Host

## EXAMPLES

### EXAMPLE 1
```
Get-WvdSessionHostResources -SessionHost SessionHostObject
Get-AVDSessionHostResources -SessionHost SessionHostObject
Add a comment to existing incidnet
```

Expand Down
6 changes: 3 additions & 3 deletions Docs/Remove-AvdSessionhost.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ The function will search for sessionhosts and will remove them from the Azure Vi

### EXAMPLE 1
```
Remove-AvdSessionhost -HostpoolName avd-hostpool-personal -ResourceGroupName rg-avd-01 -SessionHostName avd-host-1.wvd.domain
Remove-AvdSessionhost -HostpoolName avd-hostpool-personal -ResourceGroupName rg-avd-01 -SessionHostName avd-host-1.AVD.domain
```

## PARAMETERS

### -HostpoolName
Enter the WVD Hostpool name
Enter the AVD Hostpool name

```yaml
Type: String
Expand All @@ -45,7 +45,7 @@ Accept wildcard characters: False
```

### -ResourceGroupName
Enter the WVD Hostpool resourcegroup name
Enter the AVD Hostpool resourcegroup name

```yaml
Type: String
Expand Down
4 changes: 2 additions & 2 deletions Docs/Update-AvdHostpool.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Update-AvdHostpool
## PARAMETERS

### -HostpoolName
Enter the WVD Hostpool name
Enter the AVD Hostpool name

```yaml
Type: String
Expand All @@ -46,7 +46,7 @@ Accept wildcard characters: False
```

### -ResourceGroupName
Enter the WVD Hostpool resourcegroup name
Enter the AVD Hostpool resourcegroup name

```yaml
Type: String
Expand Down
8 changes: 4 additions & 4 deletions Docs/Update-AvdSessionhostDrainMode.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ This can be one sessionhost or all of them.

### EXAMPLE 1
```
Set-WvdSessionhostDrainMode -HostpoolName wvd-hostpool-personal -ResourceGroupName rg-wvd-01 -SessionHostName wvd-host-1.wvd.domain -AllowNewSession $true
Set-AVDSessionhostDrainMode -HostpoolName AVD-hostpool-personal -ResourceGroupName rg-AVD-01 -SessionHostName AVD-host-1.AVD.domain -AllowNewSession $true
```

### EXAMPLE 2
```
$sessionhosts | Set-WvdSessionhostDrainMode -AllowNewSession $false
$sessionhosts | Set-AVDSessionhostDrainMode -AllowNewSession $false
```

## PARAMETERS
Expand All @@ -57,7 +57,7 @@ Accept wildcard characters: False
```

### -HostpoolName
Enter the WVD Hostpool name
Enter the AVD Hostpool name

```yaml
Type: String
Expand All @@ -72,7 +72,7 @@ Accept wildcard characters: False
```

### -ResourceGroupName
Enter the WVD Hostpool resourcegroup name
Enter the AVD Hostpool resourcegroup name

```yaml
Type: String
Expand Down
12 changes: 6 additions & 6 deletions Private/Generate-Output.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ function Generate-Output {
.SYNOPSIS
Exports the complete Windows Virtual Desktop environment, based on the hostpool name.
.DESCRIPTION
The function will help you exporting the complete WVD environment to common output types as HTML and CSV.
The function will help you exporting the complete AVD environment to common output types as HTML and CSV.
.PARAMETER HostpoolName
Enter the WVD hostpoolname name.
Enter the AVD hostpoolname name.
.PARAMETER ResourceGroupName
Enter the WVD hostpool resource group name.
Enter the AVD hostpool resource group name.
.PARAMETER
.EXAMPLE
Export-WvdConfig -Hostpoolname $hostpoolName -resourceGroup $ResourceGroup -Scope Hostpool,SessionHosts -Verbose -FilePath .\wvdexport.html
Export-AVDConfig -Hostpoolname $hostpoolName -resourceGroup $ResourceGroup -Scope Hostpool,SessionHosts -Verbose -FilePath .\AVDexport.html
Add a comment to existing incidnet
#>

Expand Down Expand Up @@ -41,10 +41,10 @@ function Generate-Output {
$Content.Values | foreach { $ExportBody.Add(($_ | ConvertTo-Html -Fragment -PreContent "<p>$($_.Name) information for $HostpoolName</p>")) }
$Css = Get-Content -Path "$PSScriptRoot\..\Private\exportconfig.css" -Raw
$ExportBody = $ExportBody -replace '<td>0</td>', '<td class="WrongStatus">False</td>'
$Logo = '<link rel="shortcut icon" href="./Private/wvd-logo.png" />'
$Logo = '<link rel="shortcut icon" href="./Private/AVD-logo.png" />'
$style = ("<style>`n") + $Css + ("`n</style>")
$HtmlParameters = @{
Title = "WVD Information Report"
Title = "AVD Information Report"
body = $ExportBody
Head = $Logo + $style
PostContent = "<H5><i>$(get-date)</i></H5>"
Expand Down
File renamed without changes
2 changes: 1 addition & 1 deletion Public/Enable-AvdStartVmOnConnect.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ function Enable-AvdStartVmOnConnect {
Enable AVD Start VM on Connect
.DESCRIPTION
This function will enable the start VM on connect option in the hostpool and will configure the Azure AD permissions.
It will create a new role (WVD Start VM on connect) in the Azure AD
It will create a new role (AVD Start VM on connect) in the Azure AD
.PARAMETER HostPoolName
Enter the name of the hostpool you want to enable start vm on connnect.
.PARAMETER ResourceGroupName
Expand Down
12 changes: 6 additions & 6 deletions Public/Export-AvdConfig.ps1
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
function Export-AvdConfig {
<#
.SYNOPSIS
Exports the WVD environment, based on the hostpool name.
Exports the AVD environment, based on the hostpool name.
.DESCRIPTION
The function will help you exporting the complete WVD environment to common output types as HTML and CSV.
The function will help you exporting the complete AVD environment to common output types as HTML and CSV.
.PARAMETER HostpoolName
Enter the WVD hostpoolname name.
Enter the AVD hostpoolname name.
.PARAMETER ResourceGroupName
Enter the WVD hostpool resource group name.
Enter the AVD hostpool resource group name.
.PARAMETER FileName
Enter the filename. Based on the format parameter the function will create a correct file. Default filepath is in the execution directory.
.PARAMETER Format
Enter the format you like. For creating more formats use a comma.
.EXAMPLE
Export-WvdConfig -Hostpoolname wvd-hostpool-001 -ResourceGroupName rg-wvd-001 -Format HTML -Verbose -Filename WVDExport
Export-AvdConfig -Hostpoolname avd-hostpool-001 -ResourceGroupName rg-avd-001 -Format HTML -Verbose -Filename AVDExport
.EXAMPLE
Export-WvdConfig -HostPoolName wvd-hostpool-001 -ResourceGroupName rg-wvd-001 -Format HTML,JSON -Verbose -Filename WVDExport
Export-AvdConfig -HostPoolName avd-hostpool-001 -ResourceGroupName rg-avd-001 -Format HTML,JSON -Verbose -Filename AVDExport
#>
[CmdletBinding(DefaultParameterSetName = 'FileExport')]
Expand Down
6 changes: 3 additions & 3 deletions Public/Get-AvdHostPoolInfo.ps1
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
function Get-AvdHostPoolInfo {
<#
.SYNOPSIS
Get WVD Hostpool information, including the underlaying session hosts
Get AVD Hostpool information, including the underlaying session hosts
.DESCRIPTION
With this function you can get information about a WVD hostpool that includes the information about the underlaying session hosts.
With this function you can get information about a AVD hostpool that includes the information about the underlaying session hosts.
.PARAMETER HostPoolName
Enter the name of the hostpool you want information from.
.PARAMETER ResourceGroupName
Enter the name of the resourcegroup where the hostpool resides in.
.EXAMPLE
Get-WvdHostPoolInfo -HostPoolName wvd-hostpool-001 -ResourceGroupName rg-wvd-001
Get-AvdHostPoolInfo -HostPoolName avd-hostpool-001 -ResourceGroupName rg-avd-001
#>
[CmdletBinding()]
param (
Expand Down
6 changes: 3 additions & 3 deletions Public/Get-AvdImageVersionStatus.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ Function Get-AvdImageVersionStatus {
.DESCRIPTION
The function will help you getting insights if there are session hosts started from an old version in relation to the Shared Image Gallery
.PARAMETER HostpoolName
Enter the WVD Hostpool name
Enter the AVD Hostpool name
.PARAMETER ResourceGroupName
Enter the WVD Hostpool resourcegroup name
Enter the AVD Hostpool resourcegroup name
.PARAMETER SessionHostName
Enter the session host name.
.PARAMETER NotLatest
This is a switch parameter which let you control the output to show only the sessionhosts which are not started from the latest version.
.EXAMPLE
Get-WvdImageVersionStatus -HostpoolName wvd-hostpool-001 -ResourceGroupName rg-wvd-001
Get-AvdImageVersionStatus -HostpoolName avd-hostpool-001 -ResourceGroupName rg-avd-001
#>
[CmdletBinding(DefaultParameterSetName = 'Hostpool')]
param (
Expand Down

0 comments on commit 66548f1

Please sign in to comment.