🔗
Ligoj Azure VM plugin
Ligoj EC2 AWS plugin, and extending VM plugin Provides the following features :
- Supported operations from the VM plugin : ON, OFF, REBOOT, RESTART. No suspend or resume.
- Use AWS secret and access key with AWS API 4.0
Dashboard features :
- Status of the VM, including the intermediate busy mode
- OS
- DNS and IP
- Disk size
- CPU
- RAM
Susbcription parameters
- Tenant ID (Directory ID)
- Application ID (Id of application account of ligoj)
- Key (secret token of application account of ligoj)
- Subscription ID
- Resource group name
- VM (RM) name
How to create/get these Azure parameters?
Tenant ID/Application ID and Key
Everything takes place in Azure Active Directory
- Navigate to RegisteredApps
- Click on "New application registration"
- Fill the form : Name="ligoj", Application type="Web app / API", Sign-on URL=ligoj URL, can be updated later
- "Create"
- Click on the create registration
- Copy the "Application ID"
- Click on "Keys" (right panel)
- In the "Passwords" panel, fill "Key Description" and "Duration", then "Save"
- Copy the one time displayed key value.
- Navigate to Properties
- Copy the "Directory ID", used as "Tenant ID" by Ligoj
Resource Group
Navigate to Resource groups Copy the resource group name Grant the rights to "ligoj" account on the selected resource group
Subscription
- Navigate to Cost Management + Billing
- Get the subscription id from one of your enabled subscription
Technical details
Used API is "Microsoft.Compute" (2017-03-30) Authentication is OAuth2, no required CLI to be installed Only RM type "VM" are supported, no "Classic". Only the VM name is stored, not its identifier. So a deleted VM and then recreated with the same name is not lost by ligoj.