You can manage connections, and their associated connection types, in Microsoft Azure Automation through the Azure Automation API.
Just as connection types can be created through a module import, they can also be created and further managed through the Automation API. Before creating a connection, you must first create a connection type that defines the fields available for a connection. Then you must specify values in the request body for a connection that match the fields you defined in the connection type.
Azure Automation provides a set of global connection types, such as "Azure", that you can immediately start using to create connections (instances of those connection types) without needing to create a connection type.