fix: Update avm/res/net-app/net-app-account - fix optional zone for volumes and specify protocolTypes options#4469
Conversation
Update avm/res/net-app/net-app-account - fix optional zone for volumes and specify protocolTypes optionsavm/res/net-app/net-app-account - fix optional zone for volumes and specify protocolTypes options
avm/res/net-app/net-app-account/capacity-pool/volume/main.bicep
Outdated
Show resolved
Hide resolved
|
Hey @fbinotto, |
|
Just had a thought around another change I would like to make. Being that the capacity pool size must be set in 1TiB chunks. Is there any value in a user defined function to handle the Tebibyte to byte conversion? Would make consuming the module considerably easier. Thoughts @AlexanderSehr and @fbinotto? |
Hey @thecmdradama, |
Thanks @AlexanderSehr, a user defined function was what I was thinking of implementing to then simplify the capacity pool size parameter. I've thrown a quick example together on how it could look in my last commit. Maybe a topic of discussion for the AVM Core team on an agreed approach for utilising UDF's in modules and patterns? Thanks, |
ah well, no standard means no restrictions 😉 |
That's when I get worried 😄
Yeah, I definitely see value in having a common functions utility module for when others start adopting UDFs, though I don't think many other modules would need this specific one. Only similar one I can see would be elastic-san but that just needs you to pass in tebibytes not tebibyte blocks in bytes...
Thank you, I'll take that compliment :D |
## Description Fixes an issue created with the #4469 PR with the referenced parameter for `zone` on the net-app capacity pool. I had not changed this from `availabilityZone`. <!-- >Thank you for your contribution ! > Please include a summary of the change and which issue is fixed. > Please also include the context. > List any dependencies that are required for this change. Fixes #123 Fixes #456 Closes #123 Closes #456 --> ## Pipeline Reference <!-- Insert your Pipeline Status Badge below --> | Pipeline | | -------- | | | ## Type of Change <!-- Use the checkboxes [x] on the options that are relevant. --> - [ ] Update to CI Environment or utilities (Non-module affecting changes) - [x] Azure Verified Module updates: - [x] Bugfix containing backwards-compatible bug fixes, and I have NOT bumped the MAJOR or MINOR version in `version.json`: - [ ] Someone has opened a bug report issue, and I have included "Closes #{bug_report_issue_number}" in the PR description. - [ ] The bug was found by the module author, and no one has opened an issue to report it yet. - [ ] Feature update backwards compatible feature updates, and I have bumped the MINOR version in `version.json`. - [ ] Breaking changes and I have bumped the MAJOR version in `version.json`. - [ ] Update to documentation ## Checklist - [x] I'm sure there are no other open Pull Requests for the same update/change - [x] I have run `Set-AVMModule` locally to generate the supporting module files. - [ ] My corresponding pipelines / checks run clean and green without any errors or warnings <!-- Please keep up to date with the contribution guide at https://aka.ms/avm/contribute/bicep --> --------- Co-authored-by: Adam Ricket <adam.ricket@cybercx.com.au>
Description
This PR resolves the following issues in the
avm/res/net-app/net-app-accountmodulezonehas been renamed toavailabilityZone.availabilityZonehas been changed tostringfromint[]and is now optional with null as the default. Previously the module would try and deploy a volume into all three zones if no value is defined.protocolTypesis now an optional array of strings with three possible options'NFSv3', 'NFSv4.1', and 'CIFS'. If no value is provided, the default value of['NFSv3']is used.protocolTypesindicating that the user will need to specify['NFSv3','CIFS']or['NFSv4.1','CIFS']if creating dual-stack volumes.Pipeline Reference
Type of Change
version.json:version.json.version.json.Checklist
Set-AVMModulelocally to generate the supporting module files.