Skip to content
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

[keyvault] KeyVault Admin deployment fixes #31817

Merged
merged 6 commits into from
Dec 3, 2024

Conversation

maorleger
Copy link
Member

@maorleger maorleger commented Nov 18, 2024

Packages impacted by this PR

@azure/keyvault-admin
@azure/keyvault-keys (somewhat)

Issues associated with this PR

Resolves #30273

Describe the problem that is addressed by this PR

As part of the recent changes removing SAS tokens from our deployment we
disabled backup and restore keyvault tests. This PR re-enables them by
configuring a user assigned managed identity and associating it with the correct
resources. Omitting the sasToken parameter will allow the SDK to use managed
identity and thus re-enable backup/restore tests.

In passing I also noticed that the deployment happens twice: once via ARM and once via bicep. I went
ahead and removed the arm template so that we only need to worry about bicep

What are the possible designs available to address the problem? If there are more than one possible design, why was the one in this PR chosen?

Are there test cases added in this PR? (If not, why?)

Provide a list of related PRs (if any)

Command used to generate this PR: (Applicable only to SDK release request PRs)

Checklists

  • Added impacted package name to the issue description.
  • Does this PR need any fixes in the SDK Generator?** (If so, create an Issue in the Autorest/typescript repository and link it here.)
  • Added a changelog (if necessary).

@maorleger
Copy link
Member Author

/azp run js - keyvault-admin - tests-weekly

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@azure-sdk
Copy link
Collaborator

API change check

API changes are not detected in this pull request.

@maorleger
Copy link
Member Author

maorleger commented Nov 18, 2024

TODO: Connect-AzAccount once #31335 is merged in order to refresh the credential but I tested this locally and am able to backup/restore using these credentials

@maorleger maorleger marked this pull request as ready for review November 20, 2024 21:39
@maorleger maorleger force-pushed the fix-backup-keyvault branch from fa31e8c to 9a88f00 Compare December 3, 2024 16:18
@maorleger
Copy link
Member Author

/check-enforcer override

@maorleger
Copy link
Member Author

(failure is unrelated due to flaky test in appconfig)

@maorleger maorleger merged commit 8918861 into Azure:main Dec 3, 2024
12 of 14 checks passed
@maorleger maorleger deleted the fix-backup-keyvault branch December 3, 2024 17:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

[keyvault] Re-enable keyvault-admin's backup tests
3 participants