Get-AzVMRunCommandDocument
取得執行命令檔。
Syntax
Get-AzVMRunCommandDocument
[-Location] <String>
[[-CommandId] <String>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
取得執行命令檔。
範例
範例 1
Get-AzVMRunCommandDocument -Location 'westus' -CommandId 'RunPowerShellScript'
取得 'westus' 中 'RunPowerShellScript' 的特定執行命令檔。
範例 2
Get-AzVMRunCommandDocument -Location 'westus'
列出 'westus' 中所有可用的執行命令。
參數
-CommandId
命令 ID。
Type: | String |
Position: | 1 |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-DefaultProfile
用於與 azure 通訊的認證、帳戶、租用戶和訂用帳戶。
Type: | IAzureContextContainer |
Aliases: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Location
查詢執行命令的位置。
Type: | String |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
輸入
輸出
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應