Skip to content

Used ScheduledPurgeDate for both KV, MHSM#6739

Merged
heaths merged 1 commit intoAzure:mainfrom
heaths:fix-resource-helpers
Aug 10, 2023
Merged

Used ScheduledPurgeDate for both KV, MHSM#6739
heaths merged 1 commit intoAzure:mainfrom
heaths:fix-resource-helpers

Conversation

@heaths
Copy link
Member

@heaths heaths commented Aug 9, 2023

The previous property was calculated so didn't exist from the REST-based
call. Also updated the api-version to the latest stable control plane
version.

The previous property was calculated so didn't exist from the REST-based
call. Also updated the api-version to the latest stable control plane
version.
@heaths heaths requested a review from konrad-jamrozik as a code owner August 9, 2023 18:42
@heaths heaths requested a review from mikeharder August 9, 2023 18:42
@heaths heaths requested review from benbp and weshaggard as code owners August 9, 2023 18:42
@heaths heaths requested a review from benbp August 9, 2023 18:42
@azure-sdk
Copy link
Collaborator

The following pipelines have been queued for testing:
java - template
java - template - tests
js - template
net - template
net - template - tests
python - template
python - template - tests
You can sign off on the approval gate to test the release stage of each pipeline.
See eng/common workflow

Copy link
Member

@mikeharder mikeharder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Before merging this PR, I'd like to try running the cleanup pipeline using this PR.

https://dev.azure.com/azure-sdk/internal/_build/results?buildId=2991805&view=results

@mikeharder
Copy link
Member

Fix prevents script from failing, but from the logs it appears we still need to do more to actually delete/purge the resources.

@heaths
Copy link
Member Author

heaths commented Aug 9, 2023

Fix prevents script from failing, but from the logs it appears we still need to do more to actually delete/purge the resources.

The script runs on a schedule as well, so it will keep trying and when the purge date expires, they will finally get cleaned up on the next run. That's how it was designed and has been working. What's concerning is how many vaults and HSMs have purge protection enabled. It should almost never be necessary. I started a thread internally to address going forward.

@mikeharder
Copy link
Member

@heaths: Can you merge this today to prevent the pipeline failures?

@heaths heaths merged commit 2e58b08 into Azure:main Aug 10, 2023
@heaths
Copy link
Member Author

heaths commented Aug 10, 2023

I thought it was supposed to merge automatically once the final pipeline was approved.

@heaths heaths deleted the fix-resource-helpers branch August 10, 2023 22:47
dgetu pushed a commit to Azure/azure-sdk-for-js that referenced this pull request Sep 6, 2023
Sync eng/common directory with azure-sdk-tools for PR
Azure/azure-sdk-tools#6739 See [eng/common
workflow](https://github.com/Azure/azure-sdk-tools/blob/main/eng/common/README.md#workflow)

Co-authored-by: Heath Stewart <heaths@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants