Get-AzureDns
取得 Azure 部署的 DNS 設定。
注意
本檔中參考的 Cmdlet 用於管理使用服務管理 API 的舊版 Azure 資源。 如需管理 Azure Resource Manager 資源的 Cmdlet,請參閱 Az PowerShell 模組 。
Syntax
Get-AzureDns
[-DnsSettings <DnsSettings>]
[-InformationAction <ActionPreference>]
[-InformationVariable <String>]
[<CommonParameters>]
Description
Get-AzureDns Cmdlet 會取得 Azure 部署的 DNS 設定。 Cmdlet 會傳回 DNS 設定物件中 DNS 伺服器的易記名稱和 IP 位址。
範例
範例 1:取得 DNS 設定
PS C:\> Get-AzureDeployment -ServiceName "ContosoService" -Slot "Production" | Get-AzureDNS
此命令會使用 Get-AzureDeployment Cmdlet 來取得名為 ContosoService 的服務生產部署。 命令會使用管線運算子,將該物件傳遞至目前的 Cmdlet。 目前的 Cmdlet 會取得 DNS 設定。
參數
-DnsSettings
指定 DnsSettings 物件。
Type: | DnsSettings |
Aliases: | InputObject |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-InformationAction
指定此 Cmdlet 如何回應資訊事件。
此參數可接受的值為:
- 繼續
- 忽略
- 詢問
- SilentlyContinue
- 停止
- 暫止
Type: | ActionPreference |
Aliases: | infa |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-InformationVariable
指定資訊變數。
Type: | String |
Aliases: | iv |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |