Complete the code to create a DNS zone in Azure CLI.
az network dns zone create --resource-group myResourceGroup --name [1]The --name parameter specifies the DNS zone name, such as example.com.
Complete the code to add an A record to the DNS zone using Azure CLI.
az network dns record-set a add-record --resource-group myResourceGroup --zone-name example.com --record-set-name www --ipv4-address [1]The --ipv4-address parameter requires the IP address for the A record, such as 192.168.1.1.
Fix the error in the Azure CLI command to delete a DNS zone.
az network dns zone [1] --resource-group myResourceGroup --name example.comThe correct command to delete a DNS zone is az network dns zone delete.
Fill both blanks to create a CNAME record pointing www to contoso.com.
az network dns record-set cname create --resource-group myResourceGroup --zone-name example.com --record-set-name [1] && az network dns record-set cname set-record --resource-group myResourceGroup --zone-name example.com --record-set-name www --cname [2]
The --record-set-name and --record-set-name should be 'www' to create the CNAME record for www. The --cname points to 'contoso.com'.
Fill all three blanks to list all DNS zones in a resource group and filter by name containing 'prod'.
az network dns zone list --resource-group [1] --query "[?contains(name, '[2]')]" --output [3]
The --resource-group is 'myResourceGroup'. The query filters zones with 'prod' in their name. The output format 'table' shows results clearly.