PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/builds/{environmentName}/databaseConnections/{databaseConnectionName}/?api-version=2023-01-01

Description for Create or update a database connection for a static site build

Servers

Path parameters

Name Type Required Description
name String Yes

Name of the static site

databaseConnectionName String Yes

Name of the database connection.

subscriptionId String Yes

Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000).

environmentName String Yes

The stage site identifier.

resourceGroupName String Yes

Name of the resource group to which the resource belongs.

Request headers

Name Type Required Description
Content-Type String Yes The media type of the request body.

Default value: "application/json"

Request body fields

Name Type Required Description
id String No

Resource Id.

name String No

Resource Name.

properties Object No

DatabaseConnection resource specific properties

properties.connectionIdentity String No

If present, the identity is used in conjunction with connection string to connect to the database. Use of the system-assigned managed identity is indicated with the string 'SystemAssigned', while use of a user-assigned managed identity is indicated with the resource id of the managed identity resource.

properties.region String Yes

The region of the database resource.

properties.resourceId String Yes

The resource id of the database.

properties.connectionString String No

The connection string to use to connect to the database.

properties.configurationFiles[] Array No

A list of configuration files associated with this database connection.

properties.configurationFiles[].contents String No

The Base64 encoding of the file contents.

properties.configurationFiles[].fileName String No

The name of the configuration file.

properties.configurationFiles[].type String No

The type of configuration file.

type String No

Resource type.

kind String No

Kind of resource.

How to start integrating

  1. Add HTTP Task to your workflow definition.
  2. Search for the API you want to integrate with and click on the name.
    • This loads the API reference documentation and prepares the Http request settings.
  3. Click Test request to test run your request to the API and see the API's response.