Setting up Fully Automatic DNS Provisioning

Automatic provisioning of DNS records and derived trunk domain fully automates the onboarding process for a new Microsoft direct routing tenant. The wizard adds the new domain on the end customer M365 tenant:

Creates a PSTN gateway and domain
Creates a TXT record in the Service Provider Azure DNS environment
Adds A-Record to the Service Provider DNS environment
Creates a temporary activation user in the end customer tenant with the newly created domain assigned and licensed with a Microsoft Office 365 Phone System user license.
The following Administrative roles must be assigned to the Customer administrator (see Grant Roles to Global admin Account):
Domain Name Administrator (for txt and A-record creation)
User Administrator (for user license activation of the PSTN trunk)

The automatic provisioning of the DNS sub domains requires the following setup on Service Provider Azure tenant:

Registering DNS Application (Service Provider Tenant)
Creating A Records for SBC Devices
Assign Access Control
Configure DNS API

Once the above setup has been completed, the Onboarding wizard can be used to provision the DNS sub domains (see Fully Automatic DNS Provisioning).