Skip to main content

jwt_authenticators

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

Overview

Namejwt_authenticators
TypeResource
Idazure.container_service.jwt_authenticators

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
claimMappingsobjectThe mappings that define how user attributes are extracted from the token claims. Required.
claimValidationRulesarrayThe rules that are applied to validate token claims to authenticate users. All the expressions must evaluate to true for validation to succeed.
issuerobjectThe JWT OIDC issuer details. Required.
provisioningStatestringThe current provisioning state of the JWT authenticator. Known values are: "Succeeded", "Failed", "Canceled", "Creating", "Updating", and "Deleting". (Succeeded, Failed, Canceled, Creating, Updating, Deleting)
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".
userValidationRulesarrayThe rules that are applied to the mapped user before completing authentication. All the expressions must evaluate to true for validation to succeed.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, resource_name, jwt_authenticator_name, subscription_idGets the specified JWT authenticator of a managed cluster.
list_by_managed_clusterselectresource_group_name, resource_name, subscription_idGets a list of JWT authenticators in the specified managed cluster.
create_or_updateinsertresource_group_name, resource_name, jwt_authenticator_name, subscription_id, propertiesCreates or updates JWT authenticator in the managed cluster and updates the managed cluster to apply the settings.
create_or_updatereplaceresource_group_name, resource_name, jwt_authenticator_name, subscription_id, propertiesCreates or updates JWT authenticator in the managed cluster and updates the managed cluster to apply the settings.
deletedeleteresource_group_name, resource_name, jwt_authenticator_name, subscription_idDeletes a JWT authenticator and updates the managed cluster to apply the settings.

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
jwt_authenticator_namestringThe name of the JWT authenticator. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
resource_namestringThe name of the managed cluster resource. Required.
subscription_idstring

SELECT examples

Gets the specified JWT authenticator of a managed cluster.

SELECT
id,
name,
claimMappings,
claimValidationRules,
issuer,
provisioningState,
systemData,
type,
userValidationRules
FROM azure.container_service.jwt_authenticators
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND resource_name = '{{ resource_name }}' -- required
AND jwt_authenticator_name = '{{ jwt_authenticator_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Creates or updates JWT authenticator in the managed cluster and updates the managed cluster to apply the settings.

INSERT INTO azure.container_service.jwt_authenticators (
properties,
resource_group_name,
resource_name,
jwt_authenticator_name,
subscription_id
)
SELECT
'{{ properties }}' /* required */,
'{{ resource_group_name }}',
'{{ resource_name }}',
'{{ jwt_authenticator_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
properties,
systemData,
type
;

REPLACE examples

Creates or updates JWT authenticator in the managed cluster and updates the managed cluster to apply the settings.

REPLACE azure.container_service.jwt_authenticators
SET
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND resource_name = '{{ resource_name }}' --required
AND jwt_authenticator_name = '{{ jwt_authenticator_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
AND properties = '{{ properties }}' --required
RETURNING
id,
name,
properties,
systemData,
type;

DELETE examples

Deletes a JWT authenticator and updates the managed cluster to apply the settings.

DELETE FROM azure.container_service.jwt_authenticators
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND resource_name = '{{ resource_name }}' --required
AND jwt_authenticator_name = '{{ jwt_authenticator_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;