Start-AzAksDashboard
建立受控叢集儀錶板的 Kubectl SSH 通道。
Syntax
Start-AzAksDashboard
[-ResourceGroupName] <String>
[-Name] <String>
[-DisableBrowser]
[-ListenPort <Int32>]
[-PassThru]
[-DefaultProfile <IAzureContextContainer>]
[-SubscriptionId <String>]
[<CommonParameters>]
Start-AzAksDashboard
[-InputObject] <PSKubernetesCluster>
[-DisableBrowser]
[-ListenPort <Int32>]
[-PassThru]
[-DefaultProfile <IAzureContextContainer>]
[-SubscriptionId <String>]
[<CommonParameters>]
Start-AzAksDashboard
[-Id] <String>
[-DisableBrowser]
[-ListenPort <Int32>]
[-PassThru]
[-DefaultProfile <IAzureContextContainer>]
[-SubscriptionId <String>]
[<CommonParameters>]
Description
建立受控叢集儀錶板的 Kubectl SSH 通道。 SSH 通道是在名為 Kubectl-Tunnel 的 PowerShell 作業中設定,而且可以藉由執行 Get-Job
來找到。 通道應該可透過 http://127.0.0.1:8001存取。
範例
啟動 SSH 通道,並開啟瀏覽器至 Kubernetes 儀錶板
Start-AzAksDashboard -ResourceGroupName group -Name myCluster
參數
-DefaultProfile
用於與 Azure 通訊的認證、帳戶、租用戶和訂用帳戶。
Type: | IAzureContextContainer |
Aliases: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-DisableBrowser
建立 kubectl 埠轉寄之後,請勿快顯開啟瀏覽器。
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Id
受控 Kubernetes 叢集的標識碼
Type: | String |
Aliases: | ResourceId |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-InputObject
PSKubernetesCluster 物件,通常會通過管線。
Type: | PSKubernetesCluster |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-ListenPort
儀錶板的接聽埠。 預設值為8003。
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Name
受控 Kubernetes 叢集的名稱
Type: | String |
Position: | 1 |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-PassThru
如果傳遞,Cmdlet 會傳回 KubeTunnelJob。
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ResourceGroupName
資源群組名稱
Type: | String |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-SubscriptionId
訂用帳戶的識別碼。 根據預設,Cmdlet 會在目前內容中設定的訂用帳戶中執行。 如果使用者指定另一個訂用帳戶,則會在使用者指定的訂用帳戶中執行目前的 Cmdlet。 覆寫訂閱只會在目前 Cmdlet 的生命週期內生效。 它不會變更內容中的訂用帳戶,而且不會影響後續的 Cmdlet。
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
輸入
輸出
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應