Get-AzureRmVMRunCommandDocument

Get run command document.

Syntax

Get-AzureRmVMRunCommandDocument
   [-Location] <String>
   [[-CommandId] <String>]
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]

Description

Get run command document.

Examples

Example 1

PS C:\> Get-AzureRmVMRunCommandDocument -Location 'westus' -CommandId 'RunPowerShellScript'

Gets a specific run command document for 'RunPowerShellScript' in 'westus'. Get-AzureRmVMRunCommandDocument -Location $loc

Example 2

PS C:\> Get-AzureRmVMRunCommandDocument -Location 'westus'

Lists all available run commands in 'westus'.

Parameters

-CommandId

The command id.

Type:String
Position:2
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-DefaultProfile

The credentials, account, tenant, and subscription used for communication with azure.

Type:Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContextContainer
Aliases:AzureRmContext, AzureCredential
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Location

The location upon which run commands is queried.

Type:String
Position:1
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False

Inputs

String

Outputs

PSRunCommandDocument