< Back

Set-AzureDns

Wed Jan 30, 2019 5:53 pm

NAME Set-AzureDns



SYNOPSIS

Modifies the IP address of a DNS server.





SYNTAX

Set-AzureDns [-Name] <String> [-IPAddress] <String> [-ServiceName] <String> [-Profile <AzureSMProfile>] [-InformationAction <ActionPreference>]

[-InformationVariable <String>] [<CommonParameters>]





DESCRIPTION

The Set-AzureDns cmdlet modifies the IP address of a DNS server for an Azure service.





PARAMETERS

-Name <String>

Specifies the name of the DNS server that this cmdlet modifies.



Required? true

Position? 0

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-IPAddress <String>

Specifies the new IP address of the DNS server.



Required? true

Position? 1

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-ServiceName <String>

Specifies the name of the service for which this cmdlet modifies the address of the DNS server.



Required? true

Position? 2

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Profile <AzureSMProfile>

Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-InformationAction <ActionPreference>





Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-InformationVariable <String>





Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS

Microsoft.WindowsAzure.Commands.Utilities.Common.ManagementOperationContext







NOTES









-------------------------- Example 1: Modify the IP address of a DNS server --------------------------



PS C:\\>Set-AzureDns -ServiceName "ContosoService" -IPAddress 10.1.2.5 -Name "Dns07"



This command modifies the IP address of the DNS server named Dns07 for the service named ContosoService.



RELATED LINKS

Add-AzureDns

Get-AzureDns

New-AzureDns

Remove-AzureDns