status

An Azure Function App to collect status information.

status.CREDENTIALS

A set of credentials to use for authentication.

Type:

Final

Functions

get_all_status()

Get status and role assignments for all subscriptions.

get_auth_client(subscription)

Get an auth client for a given subscription.

get_graph_group_members(group_id, client)

Get the members list for a group.

get_graph_service_principal(...)

Get a user from the graph client.

get_graph_user(user_id, client)

Get a user from the graph client.

get_principal_details(principal)

Get details of a service principal.

get_role_assignment_models(assignment, ...)

Populate RoleAssignment objects with principal role details.

get_role_assignments_list(auth_client)

Return a list of role assignments from an auth client.

get_role_def_dict(auth_client, subscription_id)

Return a dictionary of role definitions from an auth client.

get_subscription_role_assignment_models(...)

Get the role assignment models for each a subscription.

main(mytimer)

Run status app.

send_status(hostname_or_ip, status_data)

Post each item of status_data to a route.

Modules

status.auth

Authentication between status package and API web app.

status.logutils

Utils to send logs to Azure Application Insights.

status.settings

Configuration for the app.