Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
Get-AzVMRunCommandDocument
- Module:
- Az.Compute Module
Get a run command document.
Syntax
Default (Default)
Get-AzVMRunCommandDocument
[-Location] <String>
[[-CommandId] <String>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
Get a run command document.
Examples
Example 1
Get-AzVMRunCommandDocument -Location 'westus' -CommandId 'RunPowerShellScript'
Gets a specific run command document for 'RunPowerShellScript' in 'westus'.
Example 2
Get-AzVMRunCommandDocument -Location 'westus'
Lists all available run commands in 'westus'.
Parameters
-CommandId
The command ID.
Parameter properties
| Type: | String |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
-DefaultProfile
The credentials, account, tenant, and subscription used for communication with azure.
Parameter properties
| Type: | IAzureContextContainer |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
| Aliases: | AzContext, AzureRmContext, AzureCredential |
Parameter sets
-Location
The location upon which run commands are queried.
Parameter properties
| Type: | String |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
Inputs
String
Outputs
PSRunCommandDocument
Azure PowerShell
Feedback
Was this page helpful?
