-
Notifications
You must be signed in to change notification settings - Fork 387
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
fix: Update avm/ptn/lz/sub-vending
-- Bug fixes and improvements
#4274
base: main
Are you sure you want to change the base?
Conversation
…nce README with new resource references
… deployment scripts
…script and update download commands to use Invoke-WebRequest
…d Microsoft repository GPG keys
…/sebassem/bicep-registry-modules into avm-lz-subvending-policy-refresh
…ersion requirement
…port in action.yml
…n module import in action.yml
…module import in action.yml
…keys in Set-EnvironmentOnAgent.ps1
…/sebassem/bicep-registry-modules into avm-lz-subvending-policy-refresh
Important The "Needs: Triage 🔍" 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. |
Important If this is a module-related PR, being submitted by the sole owner of the module, the AVM core team must review and approve it (as module owners can't approve their own PRs). To indicate this PR needs the core team''s attention, apply the "Needs: Core Team 🧞" label! The core team will only review and approve PRs that have this label applied! |
@@ -74,4 +74,6 @@ runs: | |||
# Set agent up | |||
Set-EnvironmentOnAgent -PSModules $modules | |||
#Import-module Az.Subscription -MinimumVersion 0.11.1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Leftover
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Resolved
avm/ptn/lz/sub-vending
-- Bug fixes and improvements
@@ -269,6 +269,7 @@ function Invoke-ResourceRemoval { | |||
if ($subscriptionState -eq 'Enabled') { | |||
Write-Verbose ('[*] Disabling resource [{0}] of type [{1}]' -f $subscriptionName, $Type) -Verbose | |||
if ($PSCmdlet.ShouldProcess("Subscription [$subscriptionName]", 'Remove')) { | |||
Import-Module Az.Accounts -MinimumVersion 4.0.1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this still required here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it only worked when I specified this here, I can remove it once the agents use the latest version of this module by default
@@ -45,7 +45,7 @@ runs: | |||
# Define PS modules to install on the runner | |||
$modules = @( | |||
@{ Name = 'Az.Accounts' }, | |||
@{ Name = 'Az.Accounts'; Version = '4.0.2' }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add a comment here to explain why this version so if we ever want to allow any never version than 4.0.2 and retest we know which module this was for. The same applies to the other explicit version your hardcoded below.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Resolved
Description
PublicnetworkAccess:Disabled
to the storage account due to a recent change in policyPipeline Reference
Type of Change
version.json
:version.json
.version.json
.Checklist
Set-AVMModule
locally to generate the supporting module files.