Before you can use your domain with G Suite/Google Cloud, you need to verify that you own it. This can be achieved simply by adding a txt verification record to your domain’s settings. Although Google do provide instructions for a lot of DNS providers such as AWS, GoDaddy etc…However I did notice that Azure was not included in this list.
For convenience I have outlined steps below if you are using Azure to manage the DNS Zone.
Get Verification Code
- Open a new browser window or tab, and sign in to your Google Admin console.
- Select the option to Verify Domain.
- Select Other from the provider list
- Select the Add a domain host record (TXT or CNAME) verification method.
- Copy the complete contents of the Value/Answer/Destination field. The contents should have “google-site-verification=” at the beginning. This is the verification record that you will submit to your domain host.
Add Verification Record to Azure DNS
- Open a new browser window or tab, and sign in to your Azure Portal.
- Open up DNS Zones
- Select the Domain
- Click add Record Set
- It will already prefix with your domain, so either leave blank or use @. However if you are using a subdomain enter the subdomain such as test.contoso.com. Although the @ should cover the complete domain, I noticed the google verification process was looking for the exact subdomain record
- Select TXT from the Type dropdown
- Leave TTL as 1 Hour
- In the Value field paste the google site verification string
- Click Ok to create the record
Now return back to google and finish the verification process. It may take up to 72hr for some changes to take effect.
Using nslookup, you can verify to see if the TXT record is returned.
From command prompt:
nslookup
set type=txt
subdomain.yourdomain.com