diff --git a/avm/res/net-app/net-app-account/CHANGELOG.md b/avm/res/net-app/net-app-account/CHANGELOG.md index c6a82519a98..412d90844f8 100644 --- a/avm/res/net-app/net-app-account/CHANGELOG.md +++ b/avm/res/net-app/net-app-account/CHANGELOG.md @@ -2,6 +2,16 @@ The latest version of the changelog can be found [here](https://github.com/Azure/bicep-registry-modules/blob/main/avm/res/net-app/net-app-account/CHANGELOG.md). +## 0.12.2 + +### Changes + +- Added support for configuring the Active Directory site through the new `activeDirectorySite` parameter + +### Breaking Changes + +- None + ## 0.12.1 ### Changes diff --git a/avm/res/net-app/net-app-account/README.md b/avm/res/net-app/net-app-account/README.md index b5e57d7fbf7..48afd0876cc 100644 --- a/avm/res/net-app/net-app-account/README.md +++ b/avm/res/net-app/net-app-account/README.md @@ -1339,6 +1339,7 @@ param tags = { | Parameter | Type | Description | | :-- | :-- | :-- | | [`adName`](#parameter-adname) | string | Name of the active directory host as part of Kerberos Realm used for Kerberos authentication. | +| [`activeDirectorySite`](#parameter-activedirectorysite) | string | The Active Directory site (as configured in Active Directory Sites and Services) the service will limit Domain Controller discovery to. | | [`aesEncryption`](#parameter-aesencryption) | bool | Enable AES encryption on the SMB Server. | | [`allowLocalNfsUsersWithLdap`](#parameter-allowlocalnfsuserswithldap) | bool | If enabled, NFS client local users can also (in addition to LDAP users) access the NFS volumes. | | [`backupPolicies`](#parameter-backuppolicies) | array | The backup policies to create. | @@ -1379,6 +1380,14 @@ Name of the active directory host as part of Kerberos Realm used for Kerberos au - Type: string - Default: `''` +### Parameter: `activeDirectorySite` + +The Active Directory site (as configured in Active Directory Sites and Services) the service will limit Domain Controller discovery to. + +- Required: No +- Type: string +- Default: `''` + ### Parameter: `aesEncryption` Enable AES encryption on the SMB Server. diff --git a/avm/res/net-app/net-app-account/main.bicep b/avm/res/net-app/net-app-account/main.bicep index fdcad984acf..c1085e82668 100644 --- a/avm/res/net-app/net-app-account/main.bicep +++ b/avm/res/net-app/net-app-account/main.bicep @@ -69,6 +69,9 @@ param lock lockType? @description('Optional. A server Root certificate is required of ldapOverTLS is enabled.') param serverRootCACertificate string = '' +@description('Optional. The Active Directory site (as configured in Active Directory Sites and Services) the service will limit Domain Controller discovery to.') +param activeDirectorySite string = '' + @description('Optional. Tags for all resources.') param tags resourceInput<'Microsoft.NetApp/netAppAccounts@2025-01-01'>.tags? @@ -97,6 +100,7 @@ var activeDirectoryConnectionProperties = [ ldapOverTLS: !empty(domainName) ? ldapOverTLS : false ldapSigning: !empty(domainName) ? ldapSigning : false serverRootCACertificate: !empty(domainName) ? serverRootCACertificate : null + site: !empty(domainName) && !empty(activeDirectorySite) ? activeDirectorySite : null smbServerName: !empty(domainName) ? smbServerNamePrefix : null organizationalUnit: !empty(domainJoinOU) ? domainJoinOU : null allowLocalNfsUsersWithLdap: !empty(domainName) ? allowLocalNfsUsersWithLdap : false diff --git a/avm/res/net-app/net-app-account/main.json b/avm/res/net-app/net-app-account/main.json index e83886923e1..a50db7c69eb 100644 --- a/avm/res/net-app/net-app-account/main.json +++ b/avm/res/net-app/net-app-account/main.json @@ -5,8 +5,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.42.1.51946", - "templateHash": "4503424678842499651" + "version": "0.43.8.12551", + "templateHash": "6572652601834220994" }, "name": "Azure NetApp Files", "description": "This module deploys an Azure NetApp Files Account and the associated resource types such as backups, capacity pools and volumes." @@ -1271,6 +1271,13 @@ "description": "Optional. A server Root certificate is required of ldapOverTLS is enabled." } }, + "activeDirectorySite": { + "type": "string", + "defaultValue": "", + "metadata": { + "description": "Optional. The Active Directory site (as configured in Active Directory Sites and Services) the service will limit Domain Controller discovery to." + } + }, "tags": { "type": "object", "metadata": { @@ -1337,6 +1344,7 @@ "ldapOverTLS": "[if(not(empty(parameters('domainName'))), parameters('ldapOverTLS'), false())]", "ldapSigning": "[if(not(empty(parameters('domainName'))), parameters('ldapSigning'), false())]", "serverRootCACertificate": "[if(not(empty(parameters('domainName'))), parameters('serverRootCACertificate'), null())]", + "site": "[if(and(not(empty(parameters('domainName'))), not(empty(parameters('activeDirectorySite')))), parameters('activeDirectorySite'), null())]", "smbServerName": "[if(not(empty(parameters('domainName'))), parameters('smbServerNamePrefix'), null())]", "organizationalUnit": "[if(not(empty(parameters('domainJoinOU'))), parameters('domainJoinOU'), null())]", "allowLocalNfsUsersWithLdap": "[if(not(empty(parameters('domainName'))), parameters('allowLocalNfsUsersWithLdap'), false())]" @@ -1498,8 +1506,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.42.1.51946", - "templateHash": "184037223586394239" + "version": "0.43.8.12551", + "templateHash": "2430242282388418364" }, "name": "Azure NetApp Files Backup Policy", "description": "This module deploys a Backup Policy for Azure NetApp File." @@ -1679,8 +1687,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.42.1.51946", - "templateHash": "10494004739943739336" + "version": "0.43.8.12551", + "templateHash": "10122502969748585395" }, "name": "Azure NetApp Files Snapshot Policy", "description": "This module deploys a Snapshot Policy for an Azure NetApp File." @@ -2025,8 +2033,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.42.1.51946", - "templateHash": "11230557391605073788" + "version": "0.43.8.12551", + "templateHash": "12569309095828956979" }, "name": "Azure NetApp Files Volume Backup Vault", "description": "This module deploys a NetApp Files Backup Vault." @@ -2197,8 +2205,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.42.1.51946", - "templateHash": "8944427053144847794" + "version": "0.43.8.12551", + "templateHash": "14326005862235618440" }, "name": "Azure NetApp Files Volume Backup", "description": "This module deploys a backup of a NetApp Files Volume." @@ -2437,8 +2445,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.42.1.51946", - "templateHash": "6507019057705966012" + "version": "0.43.8.12551", + "templateHash": "18186745091332759013" }, "name": "Azure NetApp Files Capacity Pools", "description": "This module deploys an Azure NetApp Files Capacity Pool." @@ -3297,8 +3305,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.42.1.51946", - "templateHash": "14589455478287977431" + "version": "0.43.8.12551", + "templateHash": "5637234170335079275" }, "name": "Azure NetApp Files Capacity Pool Volumes", "description": "This module deploys an Azure NetApp Files Capacity Pool Volume." @@ -4146,8 +4154,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.42.1.51946", - "templateHash": "11230557391605073788" + "version": "0.43.8.12551", + "templateHash": "12569309095828956979" }, "name": "Azure NetApp Files Volume Backup Vault", "description": "This module deploys a NetApp Files Backup Vault." @@ -4318,8 +4326,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.42.1.51946", - "templateHash": "8944427053144847794" + "version": "0.43.8.12551", + "templateHash": "14326005862235618440" }, "name": "Azure NetApp Files Volume Backup", "description": "This module deploys a backup of a NetApp Files Volume."