File tree 1 file changed +9
-10
lines changed
{{cookiecutter.__src_folder_name}}/infra/core/security
1 file changed +9
-10
lines changed Original file line number Diff line number Diff line change @@ -5,27 +5,26 @@ param tags object = {}
5
5
6
6
param principalId string = ''
7
7
8
- // Allow public network access to Key Vault
9
- param allowPublicNetworkAccess bool = false
8
+ @ description ( 'List of IP addresses or IP address ranges in CIDR format that are allowed to access the key vault.' )
9
+ param ipRules array = []
10
10
11
11
// Allow all Azure services to bypass Key Vault network rules
12
12
param allowAzureServicesAccess bool = true
13
13
14
- param networkAcls object = {
15
- bypass : allowAzureServicesAccess ? 'AzureServices' : 'None'
16
- defaultAction : allowPublicNetworkAccess ? 'Allow' : 'Deny'
17
- ipRules : []
18
- virtualNetworkRules : []
19
- }
20
-
21
14
resource keyVault 'Microsoft.KeyVault/vaults@2022-07-01' = {
22
15
name : name
23
16
location : location
24
17
tags : tags
25
18
properties : {
26
19
tenantId : subscription ().tenantId
27
20
sku : { family : 'A' , name : 'standard' }
28
- networkAcls : networkAcls
21
+ networkAcls : {
22
+ bypass : allowAzureServicesAccess ? 'AzureServices' : 'None'
23
+ defaultAction : 'Deny'
24
+ ipRules : ipRules
25
+ virtualNetworkRules : []
26
+ }
27
+ enableRbacAuthorization : true
29
28
accessPolicies : !empty (principalId ) ? [
30
29
{
31
30
objectId : principalId
You can’t perform that action at this time.
0 commit comments