Azure / bicep-registry-modules

Bicep registry modules
MIT License
410 stars 273 forks source link

[AVM Module Issue]: Unable to load specific modules for a specific runtime environment #2485

Open denis-beuermann opened 1 week ago

denis-beuermann commented 1 week ago

Check for previous/existing GitHub issues

Issue Type?

Feature Request

Module Name

avm/res/automation/automation-account

(Optional) Module Version

latest

Description

I have deployed Automation Account using AVM module. The deployment contains the specification for additional PowerShell Gallery modules like Microsoft.Graph.Authentication. The module should be used inside a PowerShell 7.2 runbook. The version of the runbook can be specified in the runbook parameter of the module. Unfortunately it's not possible to do the same in the module parameter.

runbooks: [ { name: 'RunbookName' description: 'Description' type: 'PowerShell72' uri: '${runbookPath}/RunbookName.ps1?${accountSasToken}' version: '1.0.0.0' } ]

modules: [ { name: 'Microsoft.Graph.Authentication' uri: 'https://www.powershellgallery.com/api/v2/package' version: 'latest' } ]

So the feature request would be to extend the "main.bicep" of "avm/res/automation/automation-account/module" to include modules of namespace "Microsoft.Automation/automationAccounts/powerShell72Modules@2023-11-01" and maybe other runtime environments as well (f.e. 'Microsoft.Automation/automationAccounts/python3Packages@2023-11-01').

(Optional) Correlation Id

No response

microsoft-github-policy-service[bot] commented 1 week ago

[!IMPORTANT] The "Needs: Triage :mag:" label must be removed once the triage process is complete!

[!TIP] For additional guidance on how to triage this issue/PR, see the BRM Issue Triage documentation.

avm-team-linter[bot] commented 1 week ago

@denis-beuermann, thanks for submitting this issue for the avm/res/automation/automation-account module!

[!IMPORTANT] A member of the @Azure/avm-res-automation-automationaccount-module-owners-bicep or @Azure/avm-res-automation-automationaccount-module-contributors-bicep team will review it soon!

elanzel commented 1 week ago

Hello @denis-beuermann , thank you for contacting us. So the request is to implement this child resources:

denis-beuermann commented 1 week ago

Yes, exactly...

Gesendet von Outlook für Androidhttps://aka.ms/AAb9ysg


Von: elisa anzelmo @.> Gesendet: Freitag, Juni 21, 2024 4:04:14 PM An: Azure/bicep-registry-modules @.> Cc: denis-beuermann @.>; Mention @.> Betreff: Re: [Azure/bicep-registry-modules] [AVM Module Issue]: Unable to load specific modules for a specific runtime environment (Issue #2485)

Hello @denis-beuermannhttps://github.com/denis-beuermann , thank you for contacting us. So the request is to implement this child resources:

— Reply to this email directly, view it on GitHubhttps://github.com/Azure/bicep-registry-modules/issues/2485#issuecomment-2182819508, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AQBFQY52FGYKEW3MYMSW7G3ZIQXFXAVCNFSM6AAAAABJRPFPRCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOBSHAYTSNJQHA. You are receiving this because you were mentioned.Message ID: @.***>