az staticwebapp dbconnection
Note
This reference is part of the staticwebapp extension for the Azure CLI (version 2.39.0 or higher). The extension will automatically install the first time you run an az staticwebapp dbconnection command. Learn more about extensions.
This command group is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Manage Static Web App database connections.
Commands
Name | Description | Type | Status |
---|---|---|---|
az staticwebapp dbconnection create |
Create a Static Web App database connection. |
Extension | Preview |
az staticwebapp dbconnection delete |
Delete a Static Web App database connection. |
Extension | Preview |
az staticwebapp dbconnection show |
Get details for a Static Web App database connection. |
Extension | Preview |
az staticwebapp dbconnection create
Command group 'staticwebapp dbconnection' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Create a Static Web App database connection.
az staticwebapp dbconnection create --db-resource-id
--name
--resource-group
[--db-name]
[--environment]
[--mi-system-assigned]
[--mi-user-assigned]
[--password]
[--username]
Required Parameters
The 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.
Name of the Static Web App.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Optional Parameters
The name of the database to connect to. Not required for CosmosDB.
Name of the environment of Static Web App.
Use the Static Web App's system-assigned identity for auth with the database. Must be assigned to the Static Web App and have the right permissions on the database.
A resource ID for a user-assigned managed identity to use for auth with the database. Must be assigned to the Static Web App and have the right permissions on the database.
The password to use for authentication with the database. Not required for all databases.
The username to use for authentication with the database. Not required for all databases.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az staticwebapp dbconnection delete
Command group 'staticwebapp dbconnection' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Delete a Static Web App database connection.
az staticwebapp dbconnection delete --name
--resource-group
[--environment]
[--yes]
Required Parameters
Name of the Static Web App.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Optional Parameters
Name of the environment of Static Web App.
Do not prompt for confirmation.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az staticwebapp dbconnection show
Command group 'staticwebapp dbconnection' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Get details for a Static Web App database connection.
az staticwebapp dbconnection show --name
--resource-group
[--detailed]
[--environment]
Required Parameters
Name of the Static Web App.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Optional Parameters
Get detailed information on database connections.
Name of the environment of Static Web App.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
Azure CLI