-
Notifications
You must be signed in to change notification settings - Fork 378
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
[AVM Module Issue]: Unable to set licenseType to RHEL_BYOS for linux VMs #1676
Comments
@oramoss, thanks for submitting this issue for the A member of the @azure/avm-res-compute-virtualmachine-module-owners-bicep or @azure/avm-res-compute-virtualmachine-module-contributors-bicep team will review it soon! |
@oramoss thanks for bringing that up. I will investigate |
I'm doing a lot with AVM recently and I've read this article https://johnlokerse.dev/2024/04/10/your-first-contribution-to-azure-verified-modules/ from John Lokerse about contributing...so I'd like to do the fix if I can...if it's as simple as just adding the value to the allowed list on the parameters, of course. |
@oramoss That would be awesome. Please read the contribution guide. Basically you need to create your own fork and test environment. After the change you might also need to regenerate the readme file. Feel free to ping me, if you need help. |
When I try to run the Test locally, with: Install-Module -Name Pester -Force ...it runs through fine with no failures.... |
@oramoss please add both missing Linux values: 'RHEL_BYOS' and 'SLES_BYOS' |
@oramoss the name prefix needs to be a secret in your GH, see 3.1 https://azure.github.io/Azure-Verified-Modules/contributing/bicep/bicep-contribution-flow/#31-set-up-secrets |
Name prefix in secrets worked fine - it builds stuff in my tenant now. I now get 6 of the 10 deployments to run successfully. The 4 failures occur because: Exception: /home/runner/work/_temp/dc66c607-7139-4670-939c-8c68d0c69c33.ps1:56 waf-aligned - authorisation again...same error as above... Exception: /home/runner/work/_temp/5e417921-511e-4f42-a279-532a7e0141e7.ps1:56 Given that the other 6 work fine, I fail to see how the Service Principal doesn't have the right privileges for the first 3. For the Nvidia one, I simply don't have the capability to run that one to success due to constraints I can't control. Thoughts? |
@oramoss The issue is that the Azure Backup Service GUID is tenant specific. You need to find out yours and replace it. Mind you not to forget to change it back, after the tests. |
Ok - great - that GUID change fixed the 3 failures at the top but still leaves the nvidia one. Ultimately, that one requires a quota of nvidia SKU and I don't have it and can't obtain it....so I'm not sure what I can do here... |
@oramoss yes, please create a PR and assign it to me |
Created PR. |
…#1769) ## Description This change adds two extra allowed values for the licenseType parameter in the virtual-machine AVM template. The two new allowed parameter values are: RHEL_BYOS SLES_BYOS Fixes #1676 ## Pipeline Reference <!-- Insert your Pipeline Status Badge below --> | Pipeline | | -------- | |[](https://github.com/oramoss/bicep-registry-modules/actions/workflows/avm.res.compute.virtual-machine.yml)| ## Type of Change <!-- Use the check-boxes [x] on the options that are relevant. --> - [ ] Update to CI Environment or utlities (Non-module effecting 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`: - [x] 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`. - [x] 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. - [x] My corresponding pipelines / checks run clean and green without any errors or warnings <!-- Please keep up to day with the contribution guide at https://aka.ms/avm/contribute/bicep --> --------- Co-authored-by: Rainer Halanek <[email protected]>
@oramoss thanks for your contribution. PR is merged |
Excellent. I'll go an have a quiet sit down now :-) |
Check for previous/existing GitHub issues
Issue Type?
Feature Request
Module Name
avm/res/compute/virtual-machine
(Optional) Module Version
0.2.3
Description
For Linux VMs that use Bring Your Own Subscription, we can't set licenseType to "RHEL_BYOS" for these images because the input parameter only allows Windows values (Windows_Client / Windows_Server) or an empty string.
Need to add "RHEL_BYOS" as an allowed value.
(Optional) Correlation Id
No response
The text was updated successfully, but these errors were encountered: