-
Notifications
You must be signed in to change notification settings - Fork 216
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
13,162 additions
and
83 deletions.
There are no files selected for viewing
6,221 changes: 6,221 additions & 0 deletions
6,221
workload/arm/brownfield/deployNewSessionHostsToHostPools.json
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
6,221 changes: 6,221 additions & 0 deletions
6,221
workload/bicep/brownfield/addSessionHosts/deploy.json
Large diffs are not rendered by default.
Oops, something went wrong.
23 changes: 23 additions & 0 deletions
23
workload/bicep/brownfield/addSessionHosts/modules/existingHostPool.bicep
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// ========== // | ||
// Parameters // | ||
// ========== // | ||
|
||
@description('Required. The name of the host pool.') | ||
param hostPoolName string | ||
|
||
|
||
// ========== // | ||
// Deployments // | ||
// ========== // | ||
|
||
// Host pool. | ||
resource hostPool 'Microsoft.DesktopVirtualization/hostPools@2021-07-12' existing = { | ||
name: hostPoolName | ||
} | ||
|
||
|
||
// ========== // | ||
// Outputs // | ||
// ========== // | ||
|
||
output info object = hostPool.properties |
35 changes: 35 additions & 0 deletions
35
workload/bicep/brownfield/addSessionHosts/modules/hostPool.bicep
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
// ========== // | ||
// Parameters // | ||
// ========== // | ||
|
||
@description('Required. The name of the host pool.') | ||
param hostPoolName string | ||
|
||
@description('Required. The type of host pool.') | ||
param hostPoolType string | ||
|
||
@description('Required. The type of load balancer for the host pool.') | ||
param loadBalancerType string | ||
|
||
@description('Required. The location of the host pool.') | ||
param location string | ||
|
||
@description('Required. The preferred app group type for the host pool.') | ||
param preferredAppGroupType string | ||
|
||
|
||
// ========== // | ||
// Deployments // | ||
// ========== // | ||
|
||
// Host pool. | ||
resource hostPool 'Microsoft.DesktopVirtualization/hostPools@2021-07-12' = { | ||
name: hostPoolName | ||
location: location | ||
properties: { | ||
hostPoolType: hostPoolType | ||
loadBalancerType: loadBalancerType | ||
preferredAppGroupType: preferredAppGroupType | ||
startVMOnConnect: true | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
workload/bicep/brownfield/addSessionHosts/parameters/add-session-hosts.parameters.all.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentParameters.json#", | ||
"contentVersion": "1.0.0.0", | ||
"parameters": { | ||
"avdObjectId": { | ||
"value": "<<Object ID for AVD Microsoft Application>>" | ||
}, | ||
"hostPoolResourceId": { | ||
"value": "<<Resource ID for the AVD Host Pool>>" | ||
}, | ||
"location": { | ||
"value": "<<Deployment Location>>" | ||
} | ||
} | ||
} |
27 changes: 27 additions & 0 deletions
27
...ad/bicep/brownfield/addSessionHosts/parameters/add-session-hosts.parameters.min-test.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentParameters.json#", | ||
"contentVersion": "1.0.0.0", | ||
"parameters": { | ||
"subnetId": { | ||
"value": "/subscriptions/a7bc841f-34c0-4214-9469-cd463b66de35/resourceGroups/rg-avd-x036-dev-use-network/providers/Microsoft.Network/virtualNetworks/vnet-x036-dev-use-001/subnets/snet-avd-x036-dev-use-001" | ||
}, | ||
"location": { | ||
"value": "eastus" | ||
}, | ||
"computeRgResourceID": { | ||
"value": "/subscriptions/a7bc841f-34c0-4214-9469-cd463b66de35/resourceGroups/rg-avd-x036-dev-use-pool-compute" | ||
}, | ||
"countIndex": { | ||
"value": 16 | ||
}, | ||
"vmLocalAdminPasswordSecretName": { | ||
"value": "vmLocalUserPassword" | ||
}, | ||
"keyVaultResourceId": { | ||
"value": "/subscriptions/a7bc841f-34c0-4214-9469-cd463b66de35/resourceGroups/rg-avd-x036-dev-use-service-objects/providers/Microsoft.KeyVault/vaults/kv-sec-x036-dev-use-fv" | ||
}, | ||
"hostPoolResourceID": { | ||
"value": "/subscriptions/a7bc841f-34c0-4214-9469-cd463b66de35/resourceGroups/rg-avd-x036-dev-use-service-objects/providers/Microsoft.DesktopVirtualization/hostpools/vdpool-x036-dev-use-001" | ||
} | ||
} | ||
} |
27 changes: 27 additions & 0 deletions
27
workload/bicep/brownfield/addSessionHosts/parameters/add-session-hosts.parameters.min.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentParameters.json#", | ||
"contentVersion": "1.0.0.0", | ||
"parameters": { | ||
"subnetId": { | ||
"value": "<<Resource ID of subnet>>" | ||
}, | ||
"location": { | ||
"value": "<<Location where to deploy session hosts>>" | ||
}, | ||
"computeRgResourceID": { | ||
"value": "<<Resource group ID where to deploy session hosts>>" | ||
}, | ||
"countIndex": { | ||
"value": "<<Count index of session hosts>>" | ||
}, | ||
"vmLocalAdminPasswordSecretName": { | ||
"value": "<<VM local admin keyvault secret name>>" | ||
}, | ||
"keyVaultResourceId": { | ||
"value": "<<Key vault where user password secrets are>>" | ||
}, | ||
"hostPoolResourceID": { | ||
"value": "<<Host pool resource ID>>" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# Start VM On Connect | ||
|
||
This solution will deploy Start VM On Connect. The feature allows stopped / deallocated VMs to be started on demand when an end user requests a session host from their assigned application group using the AVD client. For more details, see the Microsoft Learn page for this feature: [Start VM On Connect](https://learn.microsoft.com/azure/virtual-desktop/start-virtual-machine-connect?tabs=azure-portal). | ||
|
||
## Requirements | ||
|
||
- Permissions: below are the minimum required permissions to deploy this solution. | ||
- User Access Administrator on the target Subscription | ||
- Desktop Virtualization Host Pool Contributor on the resource group containing the target host pool | ||
- Resources: this solution assumes a host pool already exists in the target subscription. | ||
|
||
## Deployment Options | ||
|
||
### Azure portal UI | ||
|
||
[![Deploy to Azure](https://aka.ms/deploytoazurebutton)](https://portal.azure.com/#blade/Microsoft_Azure_CreateUIDef/CustomDeploymentBlade/uri/https%3A%2F%2Fraw.githubusercontent.com%2FAzure%2Favdaccelerator%2Fmain%2Fworkload%2Farm%2Fbrownfield%2FdeployStartVmOnConnect.json/uiFormDefinitionUri/https%3A%2F%2Fraw.githubusercontent.com%2FAzure%2Favdaccelerator%2Fmain%2Fworkload%2Fportal-ui%2Fbrownfield%2FportalUiStartVmOnConnect.json) [![Deploy to Azure Gov](https://aka.ms/deploytoazuregovbutton)](https://portal.azure.us/#blade/Microsoft_Azure_CreateUIDef/CustomDeploymentBlade/uri/https%3A%2F%2Fraw.githubusercontent.com%2FAzure%2Favdaccelerator%2Fmain%2Fworkload%2Farm%2Fbrownfield%2FdeployStartVmOnConnect.json/uiFormDefinitionUri/https%3A%2F%2Fraw.githubusercontent.com%2FAzure%2Favdaccelerator%2Fmain%2Fworkload%2Fportal-ui%2Fbrownfield%2FportalUiStartVmOnConnect.json) | ||
|
||
### PowerShell | ||
|
||
```powershell | ||
New-AzDeployment ` | ||
-Location '<Azure location>' ` | ||
-TemplateFile 'https://raw.githubusercontent.com/Azure/avdaccelerator/main/workload/brownfield/startVmOnConnect/solution.json' ` | ||
-AvdObjectId '<Object ID for the AVD / WVD application in Microsoft Entra ID>' ` | ||
-HostPoolResourceId '<Resource ID for the target host pool>' ` | ||
-Verbose | ||
``` | ||
|
||
### Azure CLI | ||
|
||
```azurecli | ||
az deployment sub create \ | ||
--location '<Azure location>' \ | ||
--template-uri 'https://raw.githubusercontent.com/Azure/avdaccelerator/main/workload/brownfield/startVmOnConnect/solution.json' \ | ||
--parameters \ | ||
AvdObjectId '<Object ID for the AVD / WVD application in Microsoft Entra ID>' \ | ||
HostPoolResourceId '<Resource ID for the target host pool>' | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
{ | ||
"win10_21h2": { | ||
"publisher": "MicrosoftWindowsDesktop", | ||
"offer": "windows-10", | ||
"sku": "win10-21h2-avd", | ||
"version": "latest" | ||
}, | ||
"win10_21h2_office": { | ||
"publisher": "MicrosoftWindowsDesktop", | ||
"offer": "office-365", | ||
"sku": "win10-21h2-avd-m365", | ||
"version": "latest" | ||
}, | ||
"win10_22h2_g2": { | ||
"publisher": "MicrosoftWindowsDesktop", | ||
"offer": "windows-10", | ||
"sku": "win10-22h2-avd-g2", | ||
"version": "latest" | ||
}, | ||
"win10_22h2_office_g2": { | ||
"publisher": "MicrosoftWindowsDesktop", | ||
"offer": "office-365", | ||
"sku": "win10-22h2-avd-m365-g2", | ||
"version": "latest" | ||
}, | ||
"win11_21h2": { | ||
"publisher": "MicrosoftWindowsDesktop", | ||
"offer": "Windows-11", | ||
"sku": "win11-21h2-avd", | ||
"version": "latest" | ||
}, | ||
"win11_21h2_office": { | ||
"publisher": "MicrosoftWindowsDesktop", | ||
"offer": "office-365", | ||
"sku": "win11-21h2-avd-m365", | ||
"version": "latest" | ||
}, | ||
"win11_22h2": { | ||
"publisher": "MicrosoftWindowsDesktop", | ||
"offer": "Windows-11", | ||
"sku": "win11-22h2-avd", | ||
"version": "latest" | ||
}, | ||
"win11_22h2_office": { | ||
"publisher": "MicrosoftWindowsDesktop", | ||
"offer": "office-365", | ||
"sku": "win11-22h2-avd-m365", | ||
"version": "latest" | ||
}, | ||
"winServer_2022_Datacenter": { | ||
"publisher": "MicrosoftWindowsServer", | ||
"offer": "WindowsServer", | ||
"sku": "2022-datacenter-g2", | ||
"version": "latest" | ||
}, | ||
"winServer_2022_Datacenter_smalldisk_g2": { | ||
"publisher": "MicrosoftWindowsServer", | ||
"offer": "WindowsServer", | ||
"sku": "2022-datacenter-smalldisk-g2", | ||
"version": "latest" | ||
}, | ||
"winServer_2022_datacenter_core": { | ||
"publisher": "MicrosoftWindowsServer", | ||
"offer": "WindowsServer", | ||
"sku": "2022-datacenter-core-g2", | ||
"version": "latest" | ||
}, | ||
"winServer_2022_Datacenter_core_smalldisk_g2": { | ||
"publisher": "MicrosoftWindowsServer", | ||
"offer": "WindowsServer", | ||
"sku": "2022-datacenter-core-smalldisk-g2", | ||
"version": "latest" | ||
} | ||
} |