Skip to content

Fix the header, example, and some typos #8441

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 30, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions src/Compute/Compute/help/Invoke-AzVMRunCommand.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
---
---
external help file: Microsoft.Azure.PowerShell.Cmdlets.Compute.dll-Help.xml
Module Name: Az.Compute
online version: https://docs.microsoft.com/en-us/powershell/module/az.compute/invoke-azvmruncommand
Expand All @@ -8,7 +8,7 @@ schema: 2.0.0
# Invoke-AzVMRunCommand

## SYNOPSIS
Run command on the VM.
Run a command on the VM.

## SYNTAX

Expand Down Expand Up @@ -40,15 +40,15 @@ Invoke a run command on the VM.

### Example 1
```
PS C:\> Invoke-AzVMRunCommand -ResourceGroupName 'rgname' -Name 'vmname' -CommandId 'RunPowerShellScript' -ScriptPath 'sample.ps1' -Parameter @{"arg1" = "var1";"arg2" = "var2"}
PS C:\> Invoke-AzVMRunCommand -ResourceGroupName 'rgname' -Name 'vmname' -CommandId 'RunPowerShellScript' -ScriptPath 'sample.ps1' -Parameter @{param1 = "var1"; param2 = "var2"}
```

Invoke a run command of RunPowerShellScript with overriding the script 'sample.ps1' and the parameters on the VM of 'vmname' in resource group 'rgname'.

## PARAMETERS

### -AsJob
Run cmdlet in the background and return a Job to track progress.
Run cmdlet in the background and return a job object to track progress.

```yaml
Type: System.Management.Automation.SwitchParameter
Expand All @@ -63,7 +63,7 @@ Accept wildcard characters: False
```

### -CommandId
The run command id.
The run command ID.

```yaml
Type: System.String
Expand All @@ -78,7 +78,7 @@ Accept wildcard characters: False
```

### -DefaultProfile
The credentials, account, tenant, and subscription used for communication with azure.
The credentials, account, tenant, and subscription used for communication with Azure.

```yaml
Type: Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer
Expand Down Expand Up @@ -123,7 +123,7 @@ Accept wildcard characters: False
```

### -ResourceId
The resource id for the VM
The resource ID for the VM.

```yaml
Type: System.String
Expand Down Expand Up @@ -153,7 +153,7 @@ Accept wildcard characters: False
```

### -VM
The PS virtual Machine Object.
The PS virtual machine object.

```yaml
Type: Microsoft.Azure.Commands.Compute.Models.PSVirtualMachine
Expand Down