az network dns zone

Manage DNS zones.

Commands

az network dns zone create Create a DNS zone.
az network dns zone delete Delete a DNS zone and all associated records.
az network dns zone export Export a DNS zone as a DNS zone file.
az network dns zone import Create a DNS zone using a DNS zone file.
az network dns zone list List DNS zones.
az network dns zone show Get a DNS zone's parameters. Does not show DNS records within the zone.
az network dns zone update Update a DNS zone's properties. Does not modify DNS records within the zone.

az network dns zone create

Create a DNS zone.

az network dns zone create --name
--resource-group
[--if-none-match]
[--tags]

Examples

Create a DNS zone using a fully qualified domain name.

az network dns zone create -g MyResourceGroup -n www.mysite.com

Required Parameters

--name -n
The name of the zone.
--resource-group -g
Name of resource group. You can configure the default group using `az configure --defaults group=<name>`.

Optional Parameters

--if-none-match
Only create a DNS zone if one doesn't exist that matches the given name.
--tags
Space separated tags in 'key[=value]' format. Use "" to clear existing tags.

az network dns zone delete

Delete a DNS zone and all associated records.

az network dns zone delete --name
--resource-group
[--if-match]
[--yes]

Required Parameters

--name -n
The name of the zone.
--resource-group -g
Name of resource group. You can configure the default group using `az configure --defaults group=<name>`.

Optional Parameters

--if-match
The etag of the DNS zone. Omit this value to always delete the current zone. Specify the last-seen etag value to prevent accidentally deleting any concurrent changes.
--yes -y
Do not prompt for confirmation.

az network dns zone export

Export a DNS zone as a DNS zone file.

az network dns zone export --name
--resource-group

Required Parameters

--name -n
The name of the zone.
--resource-group -g
Name of resource group. You can configure the default group using `az configure --defaults group=<name>`.

az network dns zone import

Create a DNS zone using a DNS zone file.

az network dns zone import --file-name
--name
--resource-group

Examples

Import a local zone file into a DNS zone resource.

az network dns zone import -g MyResourceGroup -n MyZone -f /path/to/zone/file

Required Parameters

--file-name -f
Path to the DNS zone file to import.
--name -n
The name of the zone.
--resource-group -g
Name of resource group. You can configure the default group using `az configure --defaults group=<name>`.

az network dns zone list

List DNS zones.

az network dns zone list [--resource-group]

Optional Parameters

--resource-group -g
Name of resource group. You can configure the default group using `az configure --defaults group=<name>`.

az network dns zone show

Get a DNS zone's parameters. Does not show DNS records within the zone.

az network dns zone show --name
--resource-group

Required Parameters

--name -n
The name of the zone.
--resource-group -g
Name of resource group. You can configure the default group using `az configure --defaults group=<name>`.

az network dns zone update

Update a DNS zone's properties. Does not modify DNS records within the zone.

az network dns zone update --name
--resource-group
[--add]
[--if-match]
[--remove]
[--set]
[--tags]

Required Parameters

--name -n
The name of the zone.
--resource-group -g
Name of resource group. You can configure the default group using `az configure --defaults group=<name>`.

Optional Parameters

--add
Add an object to a list of objects by specifying a path and key value pairs. Example: --add property.listProperty .
--if-match
Update only if the resource with the same ETAG exists.
--remove
Remove a property or an element from a list. Example: --remove property.list OR --remove propertyToRemove.
--set
Update an object by specifying a property path and value to set. Example: --set property1.property2=.
--tags
Space separated tags in 'key[=value]' format. Use "" to clear existing tags.