-
Notifications
You must be signed in to change notification settings - Fork 213
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #506 from Azure/avd-agent-install-update
AVD agents, NTFS setup, storage permissions, password espace characters
- Loading branch information
Showing
26 changed files
with
672 additions
and
1,004 deletions.
There are no files selected for viewing
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
41 changes: 0 additions & 41 deletions
41
workload/bicep/modules/avdSessionHosts/.bicep/configureFslogixOnSessionHosts.bicep
This file was deleted.
Oops, something went wrong.
88 changes: 88 additions & 0 deletions
88
workload/bicep/modules/avdSessionHosts/.bicep/configureSessionHost.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,88 @@ | ||
// ========== // | ||
// Parameters // | ||
// ========== // | ||
|
||
@sys.description('Extension deployment name.') | ||
param name string | ||
|
||
@sys.description('The service providing domain services for Azure Virtual Desktop.') | ||
param identityServiceProvider string | ||
|
||
@sys.description('Identity domain name.') | ||
param identityDomainName string | ||
|
||
@sys.description('Location where to deploy compute services.') | ||
param location string | ||
|
||
@sys.description('URI for AVD session host configuration URI path.') | ||
param baseScriptUri string | ||
|
||
@sys.description('URI for AVD session host configuration script.') | ||
param scriptName string | ||
|
||
@sys.description('Deploy FSlogix configuration.') | ||
param fslogix bool | ||
|
||
@sys.description('File share path for FSlogix storage.') | ||
param fslogixFileShare string | ||
|
||
@sys.description('FSLogix storage account FDQN.') | ||
param fslogixStorageFqdn string | ||
|
||
@sys.description('Session host VM size.') | ||
param vmSize string | ||
|
||
@sys.description('AVD Host Pool registration token') | ||
@secure() | ||
param hostPoolToken string | ||
|
||
// =========== // | ||
// Variable declaration // | ||
// =========== // | ||
// var ScreenCaptureProtection = true | ||
var varScriptArguments = '-IdentityDomainName ${identityDomainName} -AmdVmSize ${varAmdVmSize} -IdentityServiceProvider ${identityServiceProvider} -Fslogix ${fslogix} -FslogixFileShare ${fslogixFileShare} -FslogixStorageFqdn ${fslogixStorageFqdn} -HostPoolRegistrationToken ${hostPoolToken} -NvidiaVmSize ${varNvidiaVmSize} -verbose' // -ScreenCaptureProtection ${ScreenCaptureProtection} -verbose' | ||
var varAmdVmSizes = [ | ||
'Standard_NV4as_v4' | ||
'Standard_NV8as_v4' | ||
'Standard_NV16as_v4' | ||
'Standard_NV32as_v4' | ||
] | ||
var varAmdVmSize = contains(varAmdVmSizes, vmSize) | ||
var varNvidiaVmSizes = [ | ||
'Standard_NV6' | ||
'Standard_NV12' | ||
'Standard_NV24' | ||
'Standard_NV12s_v3' | ||
'Standard_NV24s_v3' | ||
'Standard_NV48s_v3' | ||
'Standard_NC4as_T4_v3' | ||
'Standard_NC8as_T4_v3' | ||
'Standard_NC16as_T4_v3' | ||
'Standard_NC64as_T4_v3' | ||
'Standard_NV6ads_A10_v5' | ||
'Standard_NV12ads_A10_v5' | ||
'Standard_NV18ads_A10_v5' | ||
'Standard_NV36ads_A10_v5' | ||
'Standard_NV36adms_A10_v5' | ||
'Standard_NV72ads_A10_v5' | ||
] | ||
var varNvidiaVmSize = contains(varNvidiaVmSizes, vmSize) | ||
// =========== // | ||
// Deployments // | ||
// =========== // | ||
resource sessionHostConfig 'Microsoft.Compute/virtualMachines/extensions@2022-08-01' = { | ||
name: '${name}/SessionHostConfig' | ||
location: location | ||
properties: { | ||
publisher: 'Microsoft.Compute' | ||
type: 'CustomScriptExtension' | ||
typeHandlerVersion: '1.10' | ||
autoUpgradeMinorVersion: true | ||
settings: { | ||
fileUris: array(baseScriptUri) | ||
} | ||
protectedSettings: { | ||
commandToExecute: 'powershell -ExecutionPolicy Unrestricted -File ${scriptName} ${varScriptArguments}' | ||
} | ||
} | ||
} |
Oops, something went wrong.