Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add UDT for all avm/res/sql/server submodules #3807

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
438 changes: 382 additions & 56 deletions avm/res/sql/server/README.md

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions avm/res/sql/server/audit-settings/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.30.23.60470",
"templateHash": "6303070680265885029"
"version": "0.31.92.45157",
"templateHash": "4626140114742164628"
},
"name": "Azure SQL Server Audit Settings",
"description": "This module deploys an Azure SQL Server Audit Settings.",
Expand Down Expand Up @@ -152,8 +152,8 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.30.23.60470",
"templateHash": "13956215614091387428"
"version": "0.31.92.45157",
"templateHash": "2903956714854050681"
}
},
"parameters": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.30.23.60470",
"templateHash": "841731129374883266"
"version": "0.31.92.45157",
"templateHash": "3060709558343951533"
},
"name": "SQL Server Database Long Term Backup Retention Policies",
"description": "This module deploys an Azure SQL Server Database Long-Term Backup Retention Policy.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.30.23.60470",
"templateHash": "14890409200962565555"
"version": "0.31.92.45157",
"templateHash": "1465086214783345027"
},
"name": "Azure SQL Server Database Short Term Backup Retention Policies",
"description": "This module deploys an Azure SQL Server Database Short-Term Backup Retention Policy.",
Expand Down
12 changes: 6 additions & 6 deletions avm/res/sql/server/database/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.30.23.60470",
"templateHash": "18018827030977470456"
"version": "0.31.92.45157",
"templateHash": "10088627667414343400"
},
"name": "SQL Server Database",
"description": "This module deploys an Azure SQL Server Database.",
Expand Down Expand Up @@ -721,8 +721,8 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.30.23.60470",
"templateHash": "14890409200962565555"
"version": "0.31.92.45157",
"templateHash": "1465086214783345027"
},
"name": "Azure SQL Server Database Short Term Backup Retention Policies",
"description": "This module deploys an Azure SQL Server Database Short-Term Backup Retention Policy.",
Expand Down Expand Up @@ -839,8 +839,8 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.30.23.60470",
"templateHash": "841731129374883266"
"version": "0.31.92.45157",
"templateHash": "3060709558343951533"
},
"name": "SQL Server Database Long Term Backup Retention Policies",
"description": "This module deploys an Azure SQL Server Database Long-Term Backup Retention Policy.",
Expand Down
4 changes: 2 additions & 2 deletions avm/res/sql/server/elastic-pool/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.30.23.60470",
"templateHash": "10024079638382167120"
"version": "0.31.92.45157",
"templateHash": "9050866823207809352"
},
"name": "SQL Server Elastic Pool",
"description": "This module deploys an Azure SQL Server Elastic Pool.",
Expand Down
10 changes: 5 additions & 5 deletions avm/res/sql/server/encryption-protector/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ This module deploys an Azure SQL Server Encryption Protector.

| Parameter | Type | Description |
| :-- | :-- | :-- |
| [`autoRotationEnabled`](#parameter-autorotationenabled) | bool | Key auto rotation opt-in. |
| [`serverKeyType`](#parameter-serverkeytype) | string | The encryption protector type. |
| [`autoRotationEnabled`](#parameter-autorotationenabled) | bool | Key auto rotation opt-in flag. Either true or false. |
| [`serverKeyType`](#parameter-serverkeytype) | string | The encryption protector type like 'ServiceManaged', 'AzureKeyVault'. |

### Parameter: `serverKeyName`

Expand All @@ -51,15 +51,15 @@ The name of the sql server. Required if the template is used in a standalone dep

### Parameter: `autoRotationEnabled`

Key auto rotation opt-in.
Key auto rotation opt-in flag. Either true or false.

- Required: No
- Type: bool
- Default: `False`
- Default: `True`

### Parameter: `serverKeyType`

The encryption protector type.
The encryption protector type like 'ServiceManaged', 'AzureKeyVault'.

- Required: No
- Type: string
Expand Down
6 changes: 3 additions & 3 deletions avm/res/sql/server/encryption-protector/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ param sqlServerName string
@description('Required. The name of the server key.')
param serverKeyName string

@description('Optional. Key auto rotation opt-in.')
param autoRotationEnabled bool = false
@description('Optional. Key auto rotation opt-in flag. Either true or false.')
peterbud marked this conversation as resolved.
Show resolved Hide resolved
param autoRotationEnabled bool = true

@description('Optional. The encryption protector type.')
@description('Optional. The encryption protector type like \'ServiceManaged\', \'AzureKeyVault\'.')
peterbud marked this conversation as resolved.
Show resolved Hide resolved
@allowed([
'AzureKeyVault'
'ServiceManaged'
Expand Down
10 changes: 5 additions & 5 deletions avm/res/sql/server/encryption-protector/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.30.23.60470",
"templateHash": "11473914706327458055"
"version": "0.31.92.45157",
"templateHash": "745642603990954512"
},
"name": "Azure SQL Server Encryption Protector",
"description": "This module deploys an Azure SQL Server Encryption Protector.",
Expand All @@ -26,9 +26,9 @@
},
"autoRotationEnabled": {
"type": "bool",
"defaultValue": false,
"defaultValue": true,
"metadata": {
"description": "Optional. Key auto rotation opt-in."
"description": "Optional. Key auto rotation opt-in flag. Either true or false."
}
},
"serverKeyType": {
Expand All @@ -39,7 +39,7 @@
"ServiceManaged"
],
"metadata": {
"description": "Optional. The encryption protector type."
"description": "Optional. The encryption protector type like 'ServiceManaged', 'AzureKeyVault'."
}
}
},
Expand Down
4 changes: 2 additions & 2 deletions avm/res/sql/server/firewall-rule/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.30.23.60470",
"templateHash": "6449556555046717103"
"version": "0.31.92.45157",
"templateHash": "16725482503837347177"
},
"name": "Azure SQL Server Firewall Rule",
"description": "This module deploys an Azure SQL Server Firewall Rule.",
Expand Down
8 changes: 4 additions & 4 deletions avm/res/sql/server/key/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ This module deploys an Azure SQL Server Key.
| Parameter | Type | Description |
| :-- | :-- | :-- |
| [`name`](#parameter-name) | string | The name of the key. Must follow the [<keyVaultName>_<keyName>_<keyVersion>] pattern. |
| [`serverKeyType`](#parameter-serverkeytype) | string | The encryption protector type like "ServiceManaged", "AzureKeyVault". |
| [`uri`](#parameter-uri) | string | The URI of the key. If the ServerKeyType is AzureKeyVault, then either the URI or the keyVaultName/keyName combination is required. |
| [`serverKeyType`](#parameter-serverkeytype) | string | The server key type like 'ServiceManaged', 'AzureKeyVault'. |
| [`uri`](#parameter-uri) | string | The URI of the server key. If the ServerKeyType is AzureKeyVault, then the URI is required. The AKV URI is required to be in this format: 'https://YourVaultName.azure.net/keys/YourKeyName/YourKeyVersion'. |

### Parameter: `serverName`

Expand All @@ -46,7 +46,7 @@ The name of the key. Must follow the [<keyVaultName>_<keyName>_<keyVersion>] pat

### Parameter: `serverKeyType`

The encryption protector type like "ServiceManaged", "AzureKeyVault".
The server key type like 'ServiceManaged', 'AzureKeyVault'.

- Required: No
- Type: string
Expand All @@ -61,7 +61,7 @@ The encryption protector type like "ServiceManaged", "AzureKeyVault".

### Parameter: `uri`

The URI of the key. If the ServerKeyType is AzureKeyVault, then either the URI or the keyVaultName/keyName combination is required.
The URI of the server key. If the ServerKeyType is AzureKeyVault, then the URI is required. The AKV URI is required to be in this format: 'https://YourVaultName.azure.net/keys/YourKeyName/YourKeyVersion'.

- Required: No
- Type: string
Expand Down
4 changes: 2 additions & 2 deletions avm/res/sql/server/key/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ param name string?
@description('Conditional. The name of the parent SQL server. Required if the template is used in a standalone deployment.')
param serverName string

@description('Optional. The encryption protector type like "ServiceManaged", "AzureKeyVault".')
@description('Optional. The server key type like \'ServiceManaged\', \'AzureKeyVault\'.')
peterbud marked this conversation as resolved.
Show resolved Hide resolved
@allowed([
'AzureKeyVault'
'ServiceManaged'
])
param serverKeyType string = 'ServiceManaged'

@description('Optional. The URI of the key. If the ServerKeyType is AzureKeyVault, then either the URI or the keyVaultName/keyName combination is required.')
@description('Optional. The URI of the server key. If the ServerKeyType is AzureKeyVault, then the URI is required. The AKV URI is required to be in this format: \'https://YourVaultName.azure.net/keys/YourKeyName/YourKeyVersion\'.')
param uri string = ''

var splittedKeyUri = split(uri, '/')
Expand Down
8 changes: 4 additions & 4 deletions avm/res/sql/server/key/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.30.23.60470",
"templateHash": "17839617504395216689"
"version": "0.31.92.45157",
"templateHash": "7651488637711444262"
},
"name": "Azure SQL Server Keys",
"description": "This module deploys an Azure SQL Server Key.",
Expand Down Expand Up @@ -34,14 +34,14 @@
"ServiceManaged"
],
"metadata": {
"description": "Optional. The encryption protector type like \"ServiceManaged\", \"AzureKeyVault\"."
"description": "Optional. The server key type like 'ServiceManaged', 'AzureKeyVault'."
}
},
"uri": {
"type": "string",
"defaultValue": "",
"metadata": {
"description": "Optional. The URI of the key. If the ServerKeyType is AzureKeyVault, then either the URI or the keyVaultName/keyName combination is required."
"description": "Optional. The URI of the server key. If the ServerKeyType is AzureKeyVault, then the URI is required. The AKV URI is required to be in this format: 'https://YourVaultName.azure.net/keys/YourKeyName/YourKeyVersion'."
}
}
},
Expand Down
Loading
Loading