CmdID

CmdID / az / az staticwebapp / az staticwebapp dbconnection

az staticwebapp dbconnection create

Create a Static Web App database connection. Azure CLI extensions reference

6 options Its page in the Azure CLI extensions reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Options

6 in the Azure CLI extensions reference
--db-name, -bThe name of the database to connect to.
--db-resource-id, -dThe azure resource ID for the database server/account to connect to e.g. '/subscriptions/MySubId/resourceGroups/MyResourceGroup/providers/Microsoft.Sql/servers/MyServer' for an Azure SQL database.
--mi-system-assigned, -sUse the Static Web App's system-assigned identity for auth with the database.
--mi-user-assigned, -iA resource ID for a user-assigned managed identity to use for auth with the database.
--password, -pThe password to use for authentication with the database.
--username, -uThe username to use for authentication with the database.