controllerΒΆ

An Azure Function App to disable subscriptions.

Functions

disable_subscriptions(subs_to_deactivate)

Disable Azure subscriptions, which will stop all spending.

enable_subscriptions(subs_to_enable)

Enable Azure subscriptions.

get_desired_states(api_url)

Get a list of subscriptions and their desired states.

main(mytimer)

Disable or enable subscriptions as directed by the API.

Modules

controller.auth

Authentication between status package and API web app.

controller.logutils

Utils to send logs to Azure Application Insights.

controller.settings

Configuration for the app.

controller.subscription

Manage subscription life cycle.