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

adding logic to check if Key Vault or SQL server exists. #579

Merged
merged 20 commits into from
Dec 5, 2023

Conversation

msalemcode
Copy link
Contributor

Adding logic to deployment script to exit if Key Vault exists and deleted and give information how to proceed.

@msalemcode msalemcode requested a review from dstarr October 19, 2023 18:55
@msalemcode msalemcode linked an issue Oct 19, 2023 that may be closed by this pull request
@msalemcode msalemcode changed the title adding logic to check if Key Vault exists. adding logic to check if Key Vault or SQL server exists. Oct 19, 2023
Copy link
Contributor

@code4clouds code4clouds left a comment

Choose a reason for hiding this comment

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

This has some of your environment and not the params.

@code4clouds code4clouds self-requested a review October 27, 2023 22:43
Write-Host "To Purge KeyVault please use the following doc:"
Write-Host "https://learn.microsoft.com/en-us/cli/azure/keyvault?view=azure-cli-latest#az-keyvault-purge."
Write-Host "You could use new KeyVault name by using parameter -KeyVault"
Throw "🛑 KeyVault name already exists."
Copy link
Contributor

Choose a reason for hiding this comment

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

Do not throw the error, instead provide the message as is and exit with 1

Copy link
Contributor

@code4clouds code4clouds left a comment

Choose a reason for hiding this comment

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

@msalemcode Its all good... just add an extra space on the emoji and merge.

Copy link
Contributor

@dstarr dstarr left a comment

Choose a reason for hiding this comment

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

Works fine with new install and new installs with pre-existing artifacts.

@code4clouds
Copy link
Contributor

code4clouds commented Nov 11, 2023

@msalemcode - Code approved, pleases merge when ready.

@santhoshb-msft
Copy link
Contributor

The PR is still not merged, @msalem have you seen this #568 ? maybe a better approach? I dont if it handles unpurged ones though?

@santhoshb-msft santhoshb-msft merged commit c096529 into Azure:main Dec 5, 2023
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.

Installer stops when old keyvault is present
4 participants