AVD and Bicep
Hello,
I’m trying to deploy AVD as ADD joined using bicep but it failed. The session host is created but not correctly assigned to the host pool. There is always an error with the DomainTrustCheck and DomainJoinedCheck
My code:
resource joinAzuredomain ‘Microsoft.Compute/virtualMachines/extensions@2024-07-01’ = {
name: ‘${vmPrefix}/joinAzuredomain’
location: location
properties: {
publisher: ‘Microsoft.Azure.ActiveDirectory’
type: ‘AADLoginForWindows’
typeHandlerVersion: ‘1.0’
autoUpgradeMinorVersion: true
}
dependsOn: [
vm
]
}
resource dscextension ‘Microsoft.Compute/virtualMachines/extensions@2024-07-01’ = {
name: ‘${vmPrefix}/dscextension’
location: location
properties: {
publisher: ‘Microsoft.Powershell’
type: ‘DSC’
typeHandlerVersion: ‘2.73’
autoUpgradeMinorVersion: true
settings: {
modulesUrl: ‘https://wvdportalstorageblob.blob.core.windows.net/galleryartifacts/Configuration_1.0.02627.270.zip’
configurationFunction: ‘Configuration.ps1\AddSessionHost’
properties: {
HostPoolName: hostPoolName
registrationInfoToken: HostPoolToken
aadJoin: AADJoin
}
}
}
dependsOn: [
joinAzuredomain
]
}
I follow steps found on the following links to make most of my deployment.
Ref : https://rozemuller.com/avd-automation-cocktail-avd-with-bicep-and-azure-cli/
Ref: https://tighetec.co.uk/2021/07/07/deploy-azure-virtual-desktop-with-project-bicep/
Hello, I’m trying to deploy AVD as ADD joined using bicep but it failed. The session host is created but not correctly assigned to the host pool. There is always an error with the DomainTrustCheck and DomainJoinedCheck My code:resource joinAzuredomain ‘Microsoft.Compute/virtualMachines/extensions@2024-07-01’ = {
name: ‘${vmPrefix}/joinAzuredomain’
location: location
properties: {
publisher: ‘Microsoft.Azure.ActiveDirectory’
type: ‘AADLoginForWindows’
typeHandlerVersion: ‘1.0’
autoUpgradeMinorVersion: true
}
dependsOn: [
vm
]
}
resource dscextension ‘Microsoft.Compute/virtualMachines/extensions@2024-07-01’ = {
name: ‘${vmPrefix}/dscextension’
location: location
properties: {
publisher: ‘Microsoft.Powershell’
type: ‘DSC’
typeHandlerVersion: ‘2.73’
autoUpgradeMinorVersion: true
settings: {
modulesUrl: ‘https://wvdportalstorageblob.blob.core.windows.net/galleryartifacts/Configuration_1.0.02627.270.zip’
configurationFunction: ‘Configuration.ps1\AddSessionHost’
properties: {
HostPoolName: hostPoolName
registrationInfoToken: HostPoolToken
aadJoin: AADJoin
}
}
}
dependsOn: [
joinAzuredomain
]
}I follow steps found on the following links to make most of my deployment.Ref : https://rozemuller.com/avd-automation-cocktail-avd-with-bicep-and-azure-cli/Ref: https://tighetec.co.uk/2021/07/07/deploy-azure-virtual-desktop-with-project-bicep/ Read More