Skip to content

Commit

Permalink
change coolAccessRetrievalPolicy to Default
Browse files Browse the repository at this point in the history
  • Loading branch information
bobmclane999 committed Jul 10, 2024
1 parent c4413aa commit ce325e3
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 15 deletions.
3 changes: 1 addition & 2 deletions avm/res/net-app/net-app-account/capacity-pool/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -105,14 +105,13 @@ module capacityPool_volumes 'volume/main.bicep' = [
coolAccess: contains(volume, 'coolAccess') ? volume.coolAccess : false
coolAccessRetrievalPolicy: contains(volume, 'coolAccessRetrievalPolicy')
? volume.coolAccessRetrievalPolicy
: 'None'
: 'Default'
coolnessPeriod: contains(volume, 'coolnessPeriod') ? volume.coolnessPeriod : 0
endpointType: contains(volume, 'endpointType') ? volume.endpointType : ''
remoteVolumeRegion: contains(volume, 'remoteVolumeRegion') ? volume.remoteVolumeRegion : ''
remoteVolumeResourceId: contains(volume, 'remoteVolumeResourceId') ? volume.remoteVolumeResourceId : ''
replicationSchedule: contains(volume, 'replicationSchedule') ? volume.replicationSchedule : ''
backupPolicyName: contains(volume, 'backupPolicyName') ? volume.backupPolicyName : 'backupPolicy'
//backupPolicyName: volume.backupPolicyName!
backupPolicyLocation: contains(volume, 'backupPolicyLocation') ? volume.backupPolicyLocation : ''
dailyBackupsToKeep: contains(volume, 'dailyBackupsToKeep') ? volume.dailyBackupsToKeep : 0
backupEnabled: contains(volume, 'backupEnabled') ? volume.backupEnabled : false
Expand Down
8 changes: 4 additions & 4 deletions avm/res/net-app/net-app-account/capacity-pool/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"_generator": {
"name": "bicep",
"version": "0.28.1.47646",
"templateHash": "13334383153797238447"
"templateHash": "17304854614770516158"
},
"name": "Azure NetApp Files Capacity Pools",
"description": "This module deploys an Azure NetApp Files Capacity Pool.",
Expand Down Expand Up @@ -277,7 +277,7 @@
"zones": "[if(contains(parameters('volumes')[copyIndex()], 'zones'), createObject('value', parameters('volumes')[copyIndex()].zones), createObject('value', createArray()))]",
"roleAssignments": "[if(contains(parameters('volumes')[copyIndex()], 'roleAssignments'), createObject('value', parameters('volumes')[copyIndex()].roleAssignments), createObject('value', createArray()))]",
"coolAccess": "[if(contains(parameters('volumes')[copyIndex()], 'coolAccess'), createObject('value', parameters('volumes')[copyIndex()].coolAccess), createObject('value', false()))]",
"coolAccessRetrievalPolicy": "[if(contains(parameters('volumes')[copyIndex()], 'coolAccessRetrievalPolicy'), createObject('value', parameters('volumes')[copyIndex()].coolAccessRetrievalPolicy), createObject('value', 'None'))]",
"coolAccessRetrievalPolicy": "[if(contains(parameters('volumes')[copyIndex()], 'coolAccessRetrievalPolicy'), createObject('value', parameters('volumes')[copyIndex()].coolAccessRetrievalPolicy), createObject('value', 'Default'))]",
"coolnessPeriod": "[if(contains(parameters('volumes')[copyIndex()], 'coolnessPeriod'), createObject('value', parameters('volumes')[copyIndex()].coolnessPeriod), createObject('value', 0))]",
"endpointType": "[if(contains(parameters('volumes')[copyIndex()], 'endpointType'), createObject('value', parameters('volumes')[copyIndex()].endpointType), createObject('value', ''))]",
"remoteVolumeRegion": "[if(contains(parameters('volumes')[copyIndex()], 'remoteVolumeRegion'), createObject('value', parameters('volumes')[copyIndex()].remoteVolumeRegion), createObject('value', ''))]",
Expand Down Expand Up @@ -305,7 +305,7 @@
"_generator": {
"name": "bicep",
"version": "0.28.1.47646",
"templateHash": "6186302804775003679"
"templateHash": "8818431800962559009"
},
"name": "Azure NetApp Files Capacity Pool Volumes",
"description": "This module deploys an Azure NetApp Files Capacity Pool Volume.",
Expand Down Expand Up @@ -406,7 +406,7 @@
},
"coolAccessRetrievalPolicy": {
"type": "string",
"defaultValue": "None",
"defaultValue": "Default",
"metadata": {
"description": "Optional. determines the data retrieval behavior from the cool tier to standard storage based on the read pattern for cool access enabled volumes (Default/Never/Read)."
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ determines the data retrieval behavior from the cool tier to standard storage ba

- Required: No
- Type: string
- Default: `'None'`
- Default: `'Default'`

### Parameter: `coolnessPeriod`

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ param coolAccess bool
param coolnessPeriod int

@description('Optional. determines the data retrieval behavior from the cool tier to standard storage based on the read pattern for cool access enabled volumes (Default/Never/Read).')
param coolAccessRetrievalPolicy string = 'None'
param coolAccessRetrievalPolicy string = 'Default'

@description('Optional. Availability Zone.')
param zones string[]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"_generator": {
"name": "bicep",
"version": "0.28.1.47646",
"templateHash": "6186302804775003679"
"templateHash": "8818431800962559009"
},
"name": "Azure NetApp Files Capacity Pool Volumes",
"description": "This module deploys an Azure NetApp Files Capacity Pool Volume.",
Expand Down Expand Up @@ -107,7 +107,7 @@
},
"coolAccessRetrievalPolicy": {
"type": "string",
"defaultValue": "None",
"defaultValue": "Default",
"metadata": {
"description": "Optional. determines the data retrieval behavior from the cool tier to standard storage based on the read pattern for cool access enabled volumes (Default/Never/Read)."
}
Expand Down
10 changes: 5 additions & 5 deletions avm/res/net-app/net-app-account/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"_generator": {
"name": "bicep",
"version": "0.28.1.47646",
"templateHash": "3198700958000368825"
"templateHash": "14917522462016584458"
},
"name": "Azure NetApp Files",
"description": "This module deploys an Azure NetApp File.",
Expand Down Expand Up @@ -478,7 +478,7 @@
"_generator": {
"name": "bicep",
"version": "0.28.1.47646",
"templateHash": "13334383153797238447"
"templateHash": "17304854614770516158"
},
"name": "Azure NetApp Files Capacity Pools",
"description": "This module deploys an Azure NetApp Files Capacity Pool.",
Expand Down Expand Up @@ -749,7 +749,7 @@
"zones": "[if(contains(parameters('volumes')[copyIndex()], 'zones'), createObject('value', parameters('volumes')[copyIndex()].zones), createObject('value', createArray()))]",
"roleAssignments": "[if(contains(parameters('volumes')[copyIndex()], 'roleAssignments'), createObject('value', parameters('volumes')[copyIndex()].roleAssignments), createObject('value', createArray()))]",
"coolAccess": "[if(contains(parameters('volumes')[copyIndex()], 'coolAccess'), createObject('value', parameters('volumes')[copyIndex()].coolAccess), createObject('value', false()))]",
"coolAccessRetrievalPolicy": "[if(contains(parameters('volumes')[copyIndex()], 'coolAccessRetrievalPolicy'), createObject('value', parameters('volumes')[copyIndex()].coolAccessRetrievalPolicy), createObject('value', 'None'))]",
"coolAccessRetrievalPolicy": "[if(contains(parameters('volumes')[copyIndex()], 'coolAccessRetrievalPolicy'), createObject('value', parameters('volumes')[copyIndex()].coolAccessRetrievalPolicy), createObject('value', 'Default'))]",
"coolnessPeriod": "[if(contains(parameters('volumes')[copyIndex()], 'coolnessPeriod'), createObject('value', parameters('volumes')[copyIndex()].coolnessPeriod), createObject('value', 0))]",
"endpointType": "[if(contains(parameters('volumes')[copyIndex()], 'endpointType'), createObject('value', parameters('volumes')[copyIndex()].endpointType), createObject('value', ''))]",
"remoteVolumeRegion": "[if(contains(parameters('volumes')[copyIndex()], 'remoteVolumeRegion'), createObject('value', parameters('volumes')[copyIndex()].remoteVolumeRegion), createObject('value', ''))]",
Expand Down Expand Up @@ -777,7 +777,7 @@
"_generator": {
"name": "bicep",
"version": "0.28.1.47646",
"templateHash": "6186302804775003679"
"templateHash": "8818431800962559009"
},
"name": "Azure NetApp Files Capacity Pool Volumes",
"description": "This module deploys an Azure NetApp Files Capacity Pool Volume.",
Expand Down Expand Up @@ -878,7 +878,7 @@
},
"coolAccessRetrievalPolicy": {
"type": "string",
"defaultValue": "None",
"defaultValue": "Default",
"metadata": {
"description": "Optional. determines the data retrieval behavior from the cool tier to standard storage based on the read pattern for cool access enabled volumes (Default/Never/Read)."
}
Expand Down

0 comments on commit ce325e3

Please sign in to comment.