-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# AzureSaver | ||
This is a simple Waterfall/Bungeecord plugin that automatically turns on an Azure VM when players connect to the Waterfall/Bungeecord proxy, and turns it off 10 minutes after the last person has disconnected. | ||
|
||
Since the VM doesn't consume credits when it's stopped and deallocated, this provides a way to save credits when your server isn't serving anybody, hence the "saver" name part of the plugin. I'm not very good with names. | ||
|
||
Since I'm not using it anymore, support is very limited (unless you're a [patron](https://r.robomwm.com/patreon)) and it's not very configurable, but if there's a demand I'll see what I can do. | ||
|
||
Config: | ||
|
||
```yml | ||
resourceGroup: # Resource name your VM exists in | ||
vmName: # Name of the VM | ||
``` | ||
To fill out creds.properties, basically follow this documentation: https://docs.microsoft.com/en-us/azure/virtual-machines/windows/java#create-credentials | ||
It's been a while since I followed these steps, but to summarize: | ||
1. [Create a service principle application](https://docs.microsoft.com/en-us/azure/active-directory/develop/howto-create-service-principal-portal#create-an-azure-active-directory-application) | ||
1. Then you somehow find those credentials and put it in the file. I think I did some expermentation here, and not sure if I have it documented anywhere but the docs should get you in the right direction. | ||
creds.properties: | ||
``` | ||
subscription=<subscription-id> your subscription identifier | ||
client=<application-id> Active Directory application identifier | ||
key=<authentication-key> application key | ||
tenant=<tenant-id> tenant identifier | ||
managementURI=https://management.core.windows.net/ | ||
baseURL=https://management.azure.com/ | ||
authURL=https://login.windows.net/ | ||
graphURL=https://graph.windows.net/ | ||
``` | ||
|
||
It'll attempt to teleport the player to the server named "lobby" in your bungeecord config when the player connects. |