azure-sdk-for-cpp/eng/common/scripts/Helpers
Azure SDK Bot 8a2c551230
Sync eng/common directory with azure-sdk-tools for PR 1912 (#2767)
* Attempt to purge all vaults, managed HSMs

Reverts #1910. Vaults and managed HSMs are automatically purged on their purge date. The point was to purge them daily to preserve capacity. The default purge date is +90 days.

* Add timeout and more logging

* Pass required -Resource

* Fix log message

* Ensure the $Resource is correctly captured

Added comment to new code explaining why, since ScriptBlock.GetNewClosure() is not working as expected.

* Add -ErrorAction to Receive-Job

Worked without terminating when run locally, but failed on the first error in the AzDO agent.

* Use $using:r instead of creating ScriptBlock

More idiomatic for passing ScriptBlocks to jobs.

* Resolve PR feedback

* Change default DeleteAfterHours to 120

Resolves #1917

* Use the Az cmdlets built-in -AsJob

Co-authored-by: Heath Stewart <heaths@microsoft.com>
2021-08-18 13:23:31 -07:00
..
ApiView-Helpers.ps1 Sync eng/common directory with azure-sdk-tools for PR 1611 (#2349) 2021-06-01 14:22:44 -04:00
DevOps-WorkItem-Helpers.ps1 Add Rest Method checks to Prepare-Release (#2748) 2021-08-13 15:22:38 -07:00
PSModule-Helpers.ps1 Enable Caching of PS Modules (#2363) 2021-05-27 19:04:12 -04:00
Resource-Helpers.ps1 Sync eng/common directory with azure-sdk-tools for PR 1912 (#2767) 2021-08-18 13:23:31 -07:00