Skip to main content

basic_auths

Creates, updates, deletes, gets or lists a basic_auths resource.

Overview

Namebasic_auths
TypeResource
Idazure.app_service.basic_auths

Fields

The following fields are returned by SELECT queries:

OK.

NameDatatypeDescription
idstringResource Id.
namestringResource Name.
kindstringKind of resource.
propertiesobjectStaticSiteBasicAuthPropertiesARMResource resource specific properties
typestringResource type.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresourceGroupName, name, basicAuthName, subscriptionIdDescription for Gets the basic auth properties for a static site.
listselectresourceGroupName, name, subscriptionIdDescription for Gets the basic auth properties for a static site as a collection.
create_or_updateinsertresourceGroupName, name, basicAuthName, subscriptionIdDescription for Adds or updates basic auth for a static site.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
basicAuthNamestringname of the basic auth entry.
namestringName of the static site.
resourceGroupNamestringName of the resource group to which the resource belongs.
subscriptionIdstringYour Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000).

SELECT examples

Description for Gets the basic auth properties for a static site.

SELECT
id,
name,
kind,
properties,
type
FROM azure.app_service.basic_auths
WHERE resourceGroupName = '{{ resourceGroupName }}' -- required
AND name = '{{ name }}' -- required
AND basicAuthName = '{{ basicAuthName }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
;

INSERT examples

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

INSERT INTO azure.app_service.basic_auths (
data__kind,
data__properties,
resourceGroupName,
name,
basicAuthName,
subscriptionId
)
SELECT
'{{ kind }}',
'{{ properties }}',
'{{ resourceGroupName }}',
'{{ name }}',
'{{ basicAuthName }}',
'{{ subscriptionId }}'
RETURNING
id,
name,
kind,
properties,
type
;