Skip to main content

Auto Activate Azure Roles

Project description

Azure Activation Service

Auto Activate Azure Roles!

The tool works as a companion to the MSRA Intern's Tool. 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

pip install azure-activation-service

Usage

# 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].

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

azure_activation_service-0.2.1.tar.gz (11.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

azure_activation_service-0.2.1-py3-none-any.whl (11.8 kB view details)

Uploaded Python 3

File details

Details for the file azure_activation_service-0.2.1.tar.gz.

File metadata

  • Download URL: azure_activation_service-0.2.1.tar.gz
  • Upload date:
  • Size: 11.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.8

File hashes

Hashes for azure_activation_service-0.2.1.tar.gz
Algorithm Hash digest
SHA256 052565c4b29036b575dfb07064e4915b785e14f9aa199ac1e38cb1eaf446d275
MD5 2e7ca3a4422d7946af5845a0b22e3170
BLAKE2b-256 daf7e0708b52dd38829ff03bd85cbba05aad9afcbefde8a73df1d95b08b29bc2

See more details on using hashes here.

File details

Details for the file azure_activation_service-0.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for azure_activation_service-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4a6c8c91386e9ccc401f8364a55492da09a7304bea4b9117ce93fa3cdf74bb00
MD5 974772fb31562dfdff5ad842ef75e045
BLAKE2b-256 dcddd9bc1cf20ffecc094f3aaec94736177349153545e629e4c36de8034c5f90

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page