PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/basicAuth/{basicAuthName}/?api-version=2023-01-01

Description for Adds or updates basic auth for a static site.

Servers

Path parameters

Name Type Required Description
name String Yes

Name of the static site.

basicAuthName String Yes

name of the basic auth entry.

Possible values:

  • "default"
subscriptionId String Yes

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

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

StaticSiteBasicAuthPropertiesARMResource resource specific properties

properties.environments[] Array No

The list of enabled environments for Basic Auth if ApplicableEnvironmentsMode is set to SpecifiedEnvironments.

properties.secretState String No

State indicating if basic auth has a secret and what type it is.

properties.password String No

The password for basic auth.

properties.applicableEnvironmentsMode String Yes

State indicating if basic auth is enabled and for what environments it is active.

properties.secretUrl String No

Url to the secret in Key Vault.

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.