external help file | Module Name | online version | schema | content_git_url | original_content_git_url |
---|---|---|---|---|---|
Az.ConnectedMachine-help.xml |
Az.ConnectedMachine |
2.0.0 |
The operation to get a run command.
Get-AzConnectedMachineRunCommand -MachineName <String> -ResourceGroupName <String> [-SubscriptionId <String[]>]
[-Expand <String>] [-DefaultProfile <PSObject>] [<CommonParameters>]
Get-AzConnectedMachineRunCommand -MachineName <String> -ResourceGroupName <String> -RunCommandName <String>
[-SubscriptionId <String[]>] [-DefaultProfile <PSObject>]
[<CommonParameters>]
The operation to get a run command.
Get-AzConnectedMachineRunCommand -ResourceGroupName "az-sdk-test" -MachineName "testmachine"
Location Name SystemDataCreatedAt SystemDataCreatedBy SystemDataCreatedByType SystemDataLastModifiedAt Syst
emDa
taLa
stMo
difi
edBy
-------- ---- ------------------- ------------------- ----------------------- ------------------------ ----
eastus2euap myRunCommand2
eastus2euap myRunCommand3
Lists all run-commands for a specific machine.
Get-AzConnectedMachineRunCommand -ResourceGroupName "az-sdk-test" -RunCommandName "myRunCommand2" -MachineName "testmachine"
AsyncExecution : False
ErrorBlobManagedIdentityClientId :
ErrorBlobManagedIdentityObjectId :
ErrorBlobUri :
Id : /subscriptions/********-****-****-****-**********/resourceGroups/az-sdk-test/prov
iders/Microsoft.HybridCompute/machines/testmachine/runcommands/myRunCommand2
InstanceViewEndTime : 12/4/2023 6:16:55 PM
InstanceViewError :
InstanceViewExecutionMessage : RunCommand script execution completed
InstanceViewExecutionState : Succeeded
InstanceViewExitCode : 0
InstanceViewOutput : Hello World!
InstanceViewStartTime : 12/4/2023 6:16:55 PM
InstanceViewStatuses :
Location : eastus2euap
Name : myRunCommand2
OutputBlobManagedIdentityClientId :
OutputBlobManagedIdentityObjectId :
OutputBlobUri :
Parameter :
ProtectedParameter :
ProvisioningState : Succeeded
ResourceGroupName : az-sdk-test
RunAsPassword :
RunAsUser :
ScriptUriManagedIdentityClientId :
ScriptUriManagedIdentityObjectId :
SourceCommandId :
SourceScript : Write-Host Hello World!
SourceScriptUri :
SystemDataCreatedAt :
SystemDataCreatedBy :
SystemDataCreatedByType :
SystemDataLastModifiedAt :
SystemDataLastModifiedBy :
SystemDataLastModifiedByType :
Tag : {
"Tag1": "Value1"
}
TimeoutInSecond : 0
Type : Microsoft.HybridCompute/machines/runcommands
List a specific run-command for a machine
The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
Type: System.Management.Automation.PSObject
Parameter Sets: (All)
Aliases: AzureRMContext, AzureCredential
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
The expand expression to apply on the operation.
Type: System.String
Parameter Sets: List
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
The name of the hybrid machine.
Type: System.String
Parameter Sets: (All)
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
The name of the resource group. The name is case insensitive.
Type: System.String
Parameter Sets: (All)
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
The name of the run command.
Type: System.String
Parameter Sets: Get
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
The ID of the target subscription.
Type: System.String[]
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: (Get-AzContext).Subscription.Id
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.