Skip to main content

attestation_providers

Creates, updates, deletes, gets or lists an attestation_providers resource.

Overview

Nameattestation_providers
TypeResource
Idazure.attestation.attestation_providers

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.
attestUristringGets the uri of attestation service.
locationstringThe geo-location where the resource lives. Required.
privateEndpointConnectionsarrayList of private endpoint connections associated with the attestation provider.
publicNetworkAccessstringControls whether traffic from the public network is allowed to access the Attestation Provider APIs. Known values are: "Enabled" and "Disabled". (Enabled, Disabled)
statusstringStatus of attestation service. Known values are: "Ready", "NotReady", and "Error". (Ready, NotReady, Error)
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
tagsobjectResource tags.
tpmAttestationAuthenticationstringThe setting that controls whether authentication is enabled or disabled for TPM Attestation REST APIs. Known values are: "Enabled" and "Disabled". (Enabled, Disabled)
trustModelstringTrust model for the attestation provider.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, provider_name, subscription_idGet the status of Attestation Provider.
list_by_resource_groupselectresource_group_name, subscription_idReturns attestation providers list in a resource group.
get_default_by_locationselectlocation, subscription_idGet the default provider by location.
listselectsubscription_idReturns a list of attestation providers in a subscription.
createinsertresource_group_name, provider_name, subscription_id, location, propertiesCreates or updates an Attestation Provider.
updateupdateresource_group_name, provider_name, subscription_idUpdates the Attestation Provider.
deletedeleteresource_group_name, provider_name, subscription_idDelete Attestation Service.
list_defaultexecsubscription_idGet the default provider.

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
locationstringThe name of the Azure region. Required.
provider_namestringName of the attestation provider. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring

SELECT examples

Get the status of Attestation Provider.

SELECT
id,
name,
attestUri,
location,
privateEndpointConnections,
publicNetworkAccess,
status,
systemData,
tags,
tpmAttestationAuthentication,
trustModel,
type
FROM azure.attestation.attestation_providers
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND provider_name = '{{ provider_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Creates or updates an Attestation Provider.

INSERT INTO azure.attestation.attestation_providers (
location,
tags,
properties,
resource_group_name,
provider_name,
subscription_id
)
SELECT
'{{ location }}' /* required */,
'{{ tags }}',
'{{ properties }}' /* required */,
'{{ resource_group_name }}',
'{{ provider_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
location,
properties,
systemData,
tags,
type
;

UPDATE examples

Updates the Attestation Provider.

UPDATE azure.attestation.attestation_providers
SET
tags = '{{ tags }}',
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND provider_name = '{{ provider_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
location,
properties,
systemData,
tags,
type;

DELETE examples

Delete Attestation Service.

DELETE FROM azure.attestation.attestation_providers
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND provider_name = '{{ provider_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;

Lifecycle Methods

Get the default provider.

EXEC azure.attestation.attestation_providers.list_default 
@subscription_id='{{ subscription_id }}' --required
;