https://github.com/iamncj/azure-activation-service
Auto Activate Azure Roles
https://github.com/iamncj/azure-activation-service
Last synced: 2 months ago
JSON representation
Auto Activate Azure Roles
- Host: GitHub
- URL: https://github.com/iamncj/azure-activation-service
- Owner: iamNCJ
- License: mit
- Created: 2024-11-22T03:29:23.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2025-01-18T03:52:17.000Z (5 months ago)
- Last Synced: 2025-01-29T16:08:36.292Z (4 months ago)
- Language: Python
- Size: 33.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Azure Activation Service
Auto Activate Azure Roles!
The tool works as a companion to the [MSRA Intern's Tool](https://github.com/JeffreyXiang/MSRA-Intern-s-Toolkit). Many thanks for jianfeng's great project.
The tool aims to produce a linux user-space service that runs periodically to activate Azure roles so that you don't need to keep your VSCode open.
## Installation
```bash
pip install azure-activation-service
```## Usage
```bash
# In a bash shell that has the Azure CLI env set up
aas list-roles # refresh role list
aas import-config # import auto-renew config from MSRA Intern's Tool
aas auto-activate # auto activate roles
aas generate-service # generate user service
systemctl --user enable azure-pim-activator # enable user service
loginctl enable-linger $USER # to keep user service active
```The tool reads and stores everything in `$AZURE_CONFIG_DIR`, so if you are working with multiple users you can do the above operations with different `$AZURE_CONFIG_DIR` and set a different service name when running `ass generate-service [another-name]`.