azure_expressroute adapter

Inmanta module to manage Azure ExpressRoute circuits, dedicated for ExpressRoute Partners

Environment variables

Credentials required for Azure API access needs to be stored in environment variables. They are referenced by name in azure_expressroute::Credentials instance.

Usage example

import azure_expressroute

credentials = azure_expressroute::Credentials(
    subscription_id_env_variable="AZURE_DEV_PROVIDER_SUBSCRIPTION_ID",
    tenant_id_env_variable="AZURE_DEV_TENANT_ID",
    client_id_env_variable="AZURE_DEV_CLIENT_ID",
    client_secret_env_variable="AZURE_DEV_CLIENT_SECRET",
)

cross_connection = azure_expressroute::CrossConnection(
    credentials=credentials,
    service_key="aecae801-9672-4834-8e69-b7030203f372",
    service_provider_provisioning_state="Provisioning",
    accepted_service_provider_provisioning_states=["Provisioning", "Provisioned"],
    purged=false,
    agent_name="my_agent",
)