Microsoft.PolicyInsights attestations 2024-10-01

Bicep resource definition

The attestations resource type can be deployed with operations that target:

For a list of changed properties in each API version, see change log.

Resource format

To create a Microsoft.PolicyInsights/attestations resource, add the following Bicep to your template.

resource symbolicname 'Microsoft.PolicyInsights/attestations@2024-10-01' = {
  scope: resourceSymbolicName or scope
  name: 'string'
  properties: {
    assessmentDate: 'string'
    comments: 'string'
    complianceState: 'string'
    evidence: [
      {
        description: 'string'
        sourceUri: 'string'
      }
    ]
    expiresOn: 'string'
    metadata: any(...)
    owner: 'string'
    policyAssignmentId: 'string'
    policyDefinitionReferenceId: 'string'
  }
}

Property Values

Microsoft.PolicyInsights/attestations

Name Description Value
name The resource name string (required)
properties Properties for the attestation. AttestationProperties (required)
scope Use when creating a resource at a scope that is different than the deployment scope. Set this property to the symbolic name of a resource to apply the extension resource.

AttestationEvidence

Name Description Value
description The description for this piece of evidence. string
sourceUri The URI location of the evidence. string

AttestationProperties

Name Description Value
assessmentDate The time the evidence was assessed string
comments Comments describing why this attestation was created. string
complianceState The compliance state that should be set on the resource. 'Compliant'
'NonCompliant'
'Unknown'
evidence The evidence supporting the compliance state set in this attestation. AttestationEvidence[]
expiresOn The time the compliance state should expire. string
metadata Additional metadata for this attestation any
owner The person responsible for setting the state of the resource. This value is typically an Azure Active Directory object ID. string
policyAssignmentId The resource ID of the policy assignment that the attestation is setting the state for. string (required)
policyDefinitionReferenceId The policy definition reference ID from a policy set definition that the attestation is setting the state for. If the policy assignment assigns a policy set definition the attestation can choose a definition within the set definition with this property or omit this and set the state for the entire set definition. string

ARM template resource definition

The attestations resource type can be deployed with operations that target:

Usage Examples

Resource format

To create a Microsoft.PolicyInsights/attestations resource, add the following JSON to your template.

{
  "type": "Microsoft.PolicyInsights/attestations",
  "apiVersion": "2024-10-01",
  "name": "string",
  "properties": {
    "assessmentDate": "string",
    "comments": "string",
    "complianceState": "string",
    "evidence": [
      {
        "description": "string",
        "sourceUri": "string"
      }
    ],
    "expiresOn": "string",
    "metadata": {},
    "owner": "string",
    "policyAssignmentId": "string",
    "policyDefinitionReferenceId": "string"
  }
}

Property Values

Microsoft.PolicyInsights/attestations

Name Description Value
apiVersion The api version '2024-10-01'
name The resource name string (required)
properties Properties for the attestation. AttestationProperties (required)
type The resource type 'Microsoft.PolicyInsights/attestations'

AttestationEvidence

Name Description Value
description The description for this piece of evidence. string
sourceUri The URI location of the evidence. string

AttestationProperties

Name Description Value
assessmentDate The time the evidence was assessed string
comments Comments describing why this attestation was created. string
complianceState The compliance state that should be set on the resource. 'Compliant'
'NonCompliant'
'Unknown'
evidence The evidence supporting the compliance state set in this attestation. AttestationEvidence[]
expiresOn The time the compliance state should expire. string
metadata Additional metadata for this attestation any
owner The person responsible for setting the state of the resource. This value is typically an Azure Active Directory object ID. string
policyAssignmentId The resource ID of the policy assignment that the attestation is setting the state for. string (required)
policyDefinitionReferenceId The policy definition reference ID from a policy set definition that the attestation is setting the state for. If the policy assignment assigns a policy set definition the attestation can choose a definition within the set definition with this property or omit this and set the state for the entire set definition. string

Terraform (AzAPI provider) resource definition

The attestations resource type can be deployed with operations that target:

  • Tenant* Management groups* Subscription* Resource groups For a list of changed properties in each API version, see change log.

Resource format

To create a Microsoft.PolicyInsights/attestations resource, add the following Terraform to your template.

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.PolicyInsights/attestations@2024-10-01"
  name = "string"
  parent_id = "string"
  body = {
    properties = {
      assessmentDate = "string"
      comments = "string"
      complianceState = "string"
      evidence = [
        {
          description = "string"
          sourceUri = "string"
        }
      ]
      expiresOn = "string"
      metadata = ?
      owner = "string"
      policyAssignmentId = "string"
      policyDefinitionReferenceId = "string"
    }
  }
}

Property Values

Microsoft.PolicyInsights/attestations

Name Description Value
name The resource name string (required)
parent_id The ID of the resource to apply this extension resource to. string (required)
properties Properties for the attestation. AttestationProperties (required)
type The resource type "Microsoft.PolicyInsights/attestations@2024-10-01"

AttestationEvidence

Name Description Value
description The description for this piece of evidence. string
sourceUri The URI location of the evidence. string

AttestationProperties

Name Description Value
assessmentDate The time the evidence was assessed string
comments Comments describing why this attestation was created. string
complianceState The compliance state that should be set on the resource. 'Compliant'
'NonCompliant'
'Unknown'
evidence The evidence supporting the compliance state set in this attestation. AttestationEvidence[]
expiresOn The time the compliance state should expire. string
metadata Additional metadata for this attestation any
owner The person responsible for setting the state of the resource. This value is typically an Azure Active Directory object ID. string
policyAssignmentId The resource ID of the policy assignment that the attestation is setting the state for. string (required)
policyDefinitionReferenceId The policy definition reference ID from a policy set definition that the attestation is setting the state for. If the policy assignment assigns a policy set definition the attestation can choose a definition within the set definition with this property or omit this and set the state for the entire set definition. string