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

feat: added azure vm start stop support #54

Merged
merged 4 commits into from
Mar 27, 2024
Merged

Conversation

zeteoh
Copy link
Contributor

@zeteoh zeteoh commented Mar 27, 2024

This pr adds azure start/stop support when users indicate an azure flag
river-guide --provider azure

Fixes #53.

To test, run to create VMs in azure:

az vm create \
  --resource-group FRGAPAC \                 
  --name testtwo \
  --image Ubuntu2204 \
  --admin-username azureuser \
  --generate-ssh-keys \
  --location southeastasia

Assumption:

  1. User have local az configs

Default:

  1. Subscription ID in local az config points to the desired resource block
  2. Resource block name is FRGAPAC

Alternatively:
Users can specify the resource block name or subscription id, for example:

./river-guide --provider azure --resource-block-name FRGAPAC
./river-guide --provider azure --resource-block-name FRGAPAC --subscription-id <id>

image
image

@zeteoh zeteoh marked this pull request as ready for review March 27, 2024 08:08
cmd/root.go Outdated Show resolved Hide resolved
cmd/root.go Outdated Show resolved Hide resolved
@hskiba hskiba merged commit eb8d35f into frgrisk:main Mar 27, 2024
1 check passed
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.

Add Azure Support
2 participants