Skip to content

Add catch-all parameter to test resources script#20265

Closed
benbp wants to merge 1 commit intoAzure:mainfrom
benbp:benbp/stress-pull-policy
Closed

Add catch-all parameter to test resources script#20265
benbp wants to merge 1 commit intoAzure:mainfrom
benbp:benbp/stress-pull-policy

Conversation

@benbp
Copy link
Member

@benbp benbp commented Feb 8, 2022

This updates the New-TestResources.ps1 script to not fail when extra unused parameters are passed in. This prevents the script from breaking if new keys/values are added to the subscription config object in keyvault (which gets splatted onto the script parameters here). Currently this is a problem with historical versions of the script that get run as part of a backport to a hotfix/release branch, where the old version of the script is not compatible with the subscription configuration parameters.

For example, the addition of ProvisionerApplicationOid here is causing issues for live test pipeline runs using eng/common code older than the change as the parameter was also added to the subscription configuration.

@benbp benbp added the Central-EngSys This issue is owned by the Engineering System team. label Feb 8, 2022
@benbp benbp self-assigned this Feb 8, 2022
@benbp
Copy link
Member Author

benbp commented Feb 8, 2022

...wrong repository...

@benbp benbp closed this Feb 8, 2022
@benbp benbp deleted the benbp/stress-pull-policy branch February 8, 2022 23:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Central-EngSys This issue is owned by the Engineering System team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments