Skip to content

Commit

Permalink
feat: RP update (#1623)
Browse files Browse the repository at this point in the history
  • Loading branch information
segraef authored Apr 9, 2024
1 parent 0d918aa commit d576709
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion avm/res/compute/disk-encryption-set/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ This module deploys a Disk Encryption Set. The module will attempt to set permis
| :-- | :-- |
| `Microsoft.Authorization/locks` | [2020-05-01](https://learn.microsoft.com/en-us/azure/templates/Microsoft.Authorization/2020-05-01/locks) |
| `Microsoft.Authorization/roleAssignments` | [2022-04-01](https://learn.microsoft.com/en-us/azure/templates/Microsoft.Authorization/2022-04-01/roleAssignments) |
| `Microsoft.Compute/diskEncryptionSets` | [2022-07-02](https://learn.microsoft.com/en-us/azure/templates/Microsoft.Compute/2022-07-02/diskEncryptionSets) |
| `Microsoft.Compute/diskEncryptionSets` | [2023-10-02](https://learn.microsoft.com/en-us/azure/templates/Microsoft.Compute/2023-10-02/diskEncryptionSets) |
| `Microsoft.KeyVault/vaults/accessPolicies` | [2022-07-01](https://learn.microsoft.com/en-us/azure/templates/Microsoft.KeyVault/2022-07-01/vaults/accessPolicies) |

## Usage examples
Expand Down
2 changes: 1 addition & 1 deletion avm/res/compute/disk-encryption-set/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ module keyVaultPermissions 'modules/nested_keyVaultPermissions.bicep' = [
}
]

resource diskEncryptionSet 'Microsoft.Compute/diskEncryptionSets@2022-07-02' = {
resource diskEncryptionSet 'Microsoft.Compute/diskEncryptionSets@2023-10-02' = {
name: name
location: location
tags: tags
Expand Down
12 changes: 6 additions & 6 deletions avm/res/compute/disk-encryption-set/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"_generator": {
"name": "bicep",
"version": "0.26.54.24096",
"templateHash": "15675582132137222221"
"templateHash": "12741671665077521328"
},
"name": "Disk Encryption Sets",
"description": "This module deploys a Disk Encryption Set. The module will attempt to set permissions on the provided Key Vault for any used user-assigned identity.",
Expand Down Expand Up @@ -279,7 +279,7 @@
},
"diskEncryptionSet": {
"type": "Microsoft.Compute/diskEncryptionSets",
"apiVersion": "2022-07-02",
"apiVersion": "2023-10-02",
"name": "[parameters('name')]",
"location": "[parameters('location')]",
"tags": "[parameters('tags')]",
Expand Down Expand Up @@ -711,14 +711,14 @@
"metadata": {
"description": "The principal ID of the system assigned identity."
},
"value": "[coalesce(tryGet(tryGet(reference('diskEncryptionSet', '2022-07-02', 'full'), 'identity'), 'principalId'), '')]"
"value": "[coalesce(tryGet(tryGet(reference('diskEncryptionSet', '2023-10-02', 'full'), 'identity'), 'principalId'), '')]"
},
"identities": {
"type": "object",
"metadata": {
"description": "The idenities of the disk encryption set."
},
"value": "[reference('diskEncryptionSet', '2022-07-02', 'full').identity]"
"value": "[reference('diskEncryptionSet', '2023-10-02', 'full').identity]"
},
"keyVaultName": {
"type": "string",
Expand All @@ -732,7 +732,7 @@
"metadata": {
"description": "The location the resource was deployed into."
},
"value": "[reference('diskEncryptionSet', '2022-07-02', 'full').location]"
"value": "[reference('diskEncryptionSet', '2023-10-02', 'full').location]"
}
}
}
}

0 comments on commit d576709

Please sign in to comment.