verification_dns_records
Creates, updates, deletes, gets or lists a verification_dns_records resource.
Overview
| Name | verification_dns_records |
| Type | Resource |
| Id | entra_id.domains.verification_dns_records |
Fields
The following fields are returned by SELECT queries:
- get
- list
Retrieved navigation property
| Name | Datatype | Description |
|---|---|---|
id | string | The unique identifier for an entity. Read-only. |
isOptional | boolean | If false, the customer must configure this record at the DNS host for Microsoft Online Services to operate correctly with the domain. |
label | string | Value used when configuring the name of the DNS record at the DNS host. |
recordType | string | Indicates what type of DNS record this entity represents. The value can be CName, Mx, Srv, or Txt. |
supportedService | string | Microsoft Online Service or feature that has a dependency on this DNS record. Can be one of the following values: null, Email, Sharepoint, EmailInternalRelayOnly, OfficeCommunicationsOnline, SharePointDefaultDomain, FullRedelegation, SharePointPublic, OrgIdAuthentication, Yammer, Intune. |
ttl | number (int32) | Value to use when configuring the time-to-live (ttl) property of the DNS record at the DNS host. Not nullable. |
Retrieved collection
| Name | Datatype | Description |
|---|---|---|
id | string | The unique identifier for an entity. Read-only. |
isOptional | boolean | If false, the customer must configure this record at the DNS host for Microsoft Online Services to operate correctly with the domain. |
label | string | Value used when configuring the name of the DNS record at the DNS host. |
recordType | string | Indicates what type of DNS record this entity represents. The value can be CName, Mx, Srv, or Txt. |
supportedService | string | Microsoft Online Service or feature that has a dependency on this DNS record. Can be one of the following values: null, Email, Sharepoint, EmailInternalRelayOnly, OfficeCommunicationsOnline, SharePointDefaultDomain, FullRedelegation, SharePointPublic, OrgIdAuthentication, Yammer, Intune. |
ttl | number (int32) | Value to use when configuring the time-to-live (ttl) property of the DNS record at the DNS host. Not nullable. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | domain_id, domain_dns_record_id | DNS records that the customer adds to the DNS zone file of the domain before the customer can complete domain ownership verification with Microsoft Entra ID. Read-only, Nullable. Doesn't support $expand. | |
list | select | domain_id | Retrieve a list of domainDnsRecord objects. You cannot use an associated domain with your Microsoft Entra tenant until ownership is verified. To verify the ownership of the domain, retrieve the domain verification records and add the details to the zone file of the domain. This can be done through the domain registrar or DNS server configuration. Root domains require verification. For example, contoso.com requires verification. If a root domain is verified, subdomains of the root domain are automatically verified. For example, subdomain.contoso.com is automatically be verified if contoso.com has been verified. | |
insert | insert | domain_id | ||
update | update | domain_id, domain_dns_record_id | ||
delete | delete | domain_id, domain_dns_record_id | If-Match |
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.
| Name | Datatype | Description |
|---|---|---|
domain_dns_record_id | string | The unique identifier of domainDnsRecord |
domain_id | string | The unique identifier of domain |
If-Match | string | ETag |
SELECT examples
- get
- list
DNS records that the customer adds to the DNS zone file of the domain before the customer can complete domain ownership verification with Microsoft Entra ID. Read-only, Nullable. Doesn't support $expand.
SELECT
id,
isOptional,
label,
recordType,
supportedService,
ttl
FROM entra_id.domains.verification_dns_records
WHERE domain_id = '{{ domain_id }}' -- required
AND domain_dns_record_id = '{{ domain_dns_record_id }}' -- required
;
Retrieve a list of domainDnsRecord objects. You cannot use an associated domain with your Microsoft Entra tenant until ownership is verified. To verify the ownership of the domain, retrieve the domain verification records and add the details to the zone file of the domain. This can be done through the domain registrar or DNS server configuration. Root domains require verification. For example, contoso.com requires verification. If a root domain is verified, subdomains of the root domain are automatically verified. For example, subdomain.contoso.com is automatically be verified if contoso.com has been verified.
SELECT
id,
isOptional,
label,
recordType,
supportedService,
ttl
FROM entra_id.domains.verification_dns_records
WHERE domain_id = '{{ domain_id }}' -- required
;
INSERT examples
- insert
- Manifest
No description available.
INSERT INTO entra_id.domains.verification_dns_records (
id,
isOptional,
label,
recordType,
supportedService,
ttl,
domain_id
)
SELECT
'{{ id }}',
{{ isOptional }},
'{{ label }}',
'{{ recordType }}',
'{{ supportedService }}',
{{ ttl }},
'{{ domain_id }}'
RETURNING
id,
isOptional,
label,
recordType,
supportedService,
ttl
;
# Description fields are for documentation purposes
- name: verification_dns_records
props:
- name: domain_id
value: "{{ domain_id }}"
description: Required parameter for the verification_dns_records resource.
- name: id
value: "{{ id }}"
description: |
The unique identifier for an entity. Read-only.
- name: isOptional
value: {{ isOptional }}
description: |
If false, the customer must configure this record at the DNS host for Microsoft Online Services to operate correctly with the domain.
- name: label
value: "{{ label }}"
description: |
Value used when configuring the name of the DNS record at the DNS host.
- name: recordType
value: "{{ recordType }}"
description: |
Indicates what type of DNS record this entity represents. The value can be CName, Mx, Srv, or Txt.
- name: supportedService
value: "{{ supportedService }}"
description: |
Microsoft Online Service or feature that has a dependency on this DNS record. Can be one of the following values: null, Email, Sharepoint, EmailInternalRelayOnly, OfficeCommunicationsOnline, SharePointDefaultDomain, FullRedelegation, SharePointPublic, OrgIdAuthentication, Yammer, Intune.
- name: ttl
value: {{ ttl }}
description: |
Value to use when configuring the time-to-live (ttl) property of the DNS record at the DNS host. Not nullable.
UPDATE examples
- update
No description available.
UPDATE entra_id.domains.verification_dns_records
SET
id = '{{ id }}',
isOptional = {{ isOptional }},
label = '{{ label }}',
recordType = '{{ recordType }}',
supportedService = '{{ supportedService }}',
ttl = {{ ttl }}
WHERE
domain_id = '{{ domain_id }}' --required
AND domain_dns_record_id = '{{ domain_dns_record_id }}' --required
RETURNING
id,
isOptional,
label,
recordType,
supportedService,
ttl;
DELETE examples
- delete
No description available.
DELETE FROM entra_id.domains.verification_dns_records
WHERE domain_id = '{{ domain_id }}' --required
AND domain_dns_record_id = '{{ domain_dns_record_id }}' --required
AND If-Match = '{{ If-Match }}'
;