Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Service Connector configures connection information, such as database connection strings, when creating or updating service connections. After service connections are created, you can write code to consume these connection configurations. This article shows how to get connection configurations added by Service Connector.
There are multiple ways to get the connection configurations for a service connection.
You can get configuration names for specific target service types from articles such as Integrate Azure Database for PostgreSQL with Service Connector. You can also get connection configurations programmatically by running the following commands.
You can run the following commands in Azure CLI to list configurations of a service connection.
# for Azure Web App
az webapp connection list-configuration -g <myResourceGroupName> -n <myWebAppName> --connection <myConnectionName>
# for Azure Spring App
az spring connection list-configuration --id /subscriptions/{subscription}/resourceGroups/{myResourceGroupName}/providers/Microsoft.AppPlatform/Spring/{mySpringAppName}/apps/{myAppName}/deployments/default/providers/Microsoft.ServiceLinker/linkers/{myConnectionName}
For more information, see az webapp connection list-configuration.