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

DRIVERS-2411 delete Azure Virtual Network #339

Closed

Conversation

kevinAlbs
Copy link
Contributor

@kevinAlbs kevinAlbs commented Aug 21, 2023

Summary

  • Add az network vnet delete to delete created Virtual Network.
  • Add --vnet-name option to the azure vm create command.

Tested with C driver: https://spruce.mongodb.com/version/64e3a22ad1fe07741da84c88/tasks

Background & Motivation

azure vm create creates a Virtual Network along with the Virtual Machine. The Virtual Network does not appear to be deleted with azure vm delete. After running delete-vm.sh, a Virtual Network was observed in the portal:

Leftover Virtual Network

@kevinAlbs kevinAlbs marked this pull request as ready for review August 21, 2023 20:04
@kevinAlbs kevinAlbs requested review from blink1073 and removed request for blink1073 August 21, 2023 20:04
@kevinAlbs kevinAlbs marked this pull request as draft August 21, 2023 20:12
@kevinAlbs
Copy link
Contributor Author

Disregard. The Virtual Network created appears to be scoped to the Resource Group. This PR may result in creating a Virtual Network per VM, rather than per Resource Group.

@kevinAlbs kevinAlbs closed this Aug 21, 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.

1 participant