-
Notifications
You must be signed in to change notification settings - Fork 207
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 #5 from mofaizal/tf-hub-and-spoke
host.tf and avd.tf file conflict resolved
- Loading branch information
Showing
16 changed files
with
1,514 additions
and
341 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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,79 @@ | ||
targetScope = 'resourceGroup' | ||
|
||
// ========== // | ||
// Parameters // | ||
// ========== // | ||
|
||
param Availability string | ||
param DiskEncryption bool | ||
param DiskSku string | ||
param DomainName string | ||
param DomainServices string | ||
param EphemeralOsDisk bool | ||
param ImageSku string | ||
param KerberosEncryption string | ||
param Location string | ||
param ManagedIdentityResourceId string | ||
param NamingStandard string | ||
param PooledHostPool bool | ||
param RecoveryServices bool | ||
param SasToken string | ||
param ScriptsUri string | ||
param SecurityPrincipalIds array | ||
param SecurityPrincipalNames array | ||
param SessionHostCount int | ||
param SessionHostIndex int | ||
param StartVmOnConnect bool | ||
param StorageCount int | ||
param StorageSolution string | ||
param Tags object | ||
param Timestamp string | ||
param VirtualNetwork string | ||
param VirtualNetworkResourceGroup string | ||
param VmSize string | ||
|
||
// =========== // | ||
// Variable declaration // | ||
// =========== // | ||
|
||
var SecurityPrincipalIdsCount = length(SecurityPrincipalIds) | ||
var SecurityPrincipalNamesCount = length(SecurityPrincipalNames) | ||
|
||
// =========== // | ||
// Deployments // | ||
// =========== // | ||
|
||
// Validation | ||
resource deploymentScript 'Microsoft.Resources/deploymentScripts@2020-10-01' = { | ||
name: 'ds-${NamingStandard}-validation' | ||
location: Location | ||
tags: Tags | ||
kind: 'AzurePowerShell' | ||
identity: { | ||
type: 'UserAssigned' | ||
userAssignedIdentities: { | ||
'${ManagedIdentityResourceId}': {} | ||
} | ||
} | ||
properties: { | ||
forceUpdateTag: Timestamp | ||
azPowerShellVersion: '5.4' | ||
arguments: '-Availability ${Availability} -DiskEncryption ${DiskEncryption} -DiskSku ${DiskSku} -DomainName ${DomainName} -DomainServices ${DomainServices} -EphemeralOsDisk ${EphemeralOsDisk} -ImageSku ${ImageSku} -KerberosEncryption ${KerberosEncryption} -Location ${Location} -PooledHostPool ${PooledHostPool} -RecoveryServices ${RecoveryServices} -SecurityPrincipalIdsCount ${SecurityPrincipalIdsCount} -SecurityPrincipalNamesCount ${SecurityPrincipalNamesCount} -SessionHostCount ${SessionHostCount} -SessionHostIndex ${SessionHostIndex} -StartVmOnConnect ${StartVmOnConnect} -StorageCount ${StorageCount} -StorageSolution ${StorageSolution} -VmSize ${VmSize} -VnetName ${VirtualNetwork} -VnetResourceGroupName ${VirtualNetworkResourceGroup}' | ||
primaryScriptUri: '${ScriptsUri}Get-Validation.ps1${SasToken}' | ||
timeout: 'PT2H' | ||
cleanupPreference: 'OnSuccess' | ||
retentionInterval: 'P1D' | ||
} | ||
} | ||
|
||
// =========== // | ||
// Outputs // | ||
// =========== // | ||
|
||
output acceleratedNetworking string = deploymentScript.properties.outputs.acceleratedNetworking | ||
output anfActiveDirectory string = deploymentScript.properties.outputs.anfActiveDirectory | ||
output anfDnsServers string = deploymentScript.properties.outputs.anfDnsServers | ||
output anfSubnetId string = deploymentScript.properties.outputs.anfSubnetId | ||
output dnsForwarders array = deploymentScript.properties.outputs.dnsForwarders | ||
output dnsServerSize string = deploymentScript.properties.outputs.dnsServerSize | ||
output ephemeralOsDisk string = deploymentScript.properties.outputs.ephemeralOsDisk |
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
Oops, something went wrong.