Skip to content
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

format the help markdown file of Az.Batch #18596

Merged
merged 2 commits into from
Jun 22, 2022
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion src/Batch/Batch/help/Get-AzBatchCertificate.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Specify the *Filter* parameter to get the certificates that match an Open Data P

### Example 1: Get a certificate by thumbprint
```powershell
Get-AzBatchCertificate -ThumbprintAlgorithm "sha1" - Thumbprint "C1E494A415149C5F211C4778B52F2E834A07247C" -BatchContext $Context
Get-AzBatchCertificate -ThumbprintAlgorithm "sha1" -Thumbprint "C1E494A415149C5F211C4778B52F2E834A07247C" -BatchContext $Context
```

```output
Expand Down
8 changes: 6 additions & 2 deletions src/Batch/Batch/help/Get-AzBatchComputeNodeExtension.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,10 @@ If an extension name is provided, a single extension with a matching name is ret

### Example 1 Get all extensions from a compute node.
```powershell
PS C:\> Get-AzBatchComputeNodeExtension "testPool" "testNode" -BatchContext $context
Get-AzBatchComputeNodeExtension "testPool" "testNode" -BatchContext $context
```

```output
InstanceView ProvisioningState VmExtension
------------ ----------------- -----------
Microsoft.Azure.Commands.Batch.Models.PSVMExtensionInstanceView Succeeded Microsoft.Azure.Commands.Batch.Models.PSVMExtension
Expand All @@ -44,8 +46,10 @@ Microsoft.Azure.Commands.Batch.Models.PSVMExtensionInstanceView Failed
### Example 2 Get a specific extension from a compute node.

```powershell
PS C:\> Get-AzBatchComputeNodeExtension "testPool" "testNode" "secretext" -BatchContext $context
Get-AzBatchComputeNodeExtension "testPool" "testNode" "secretext" -BatchContext $context
```

```output
InstanceView ProvisioningState VmExtension
------------ ----------------- -----------
Microsoft.Azure.Commands.Batch.Models.PSVMExtensionInstanceView Failed Microsoft.Azure.Commands.Batch.Models.PSVMExtension
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,10 @@ Get-AzBatchSupportedVirtualMachineSku [-Location] <String> [[-MaxResultCount] <I

### Example 1 Get supported skus for a region
```powershell
PS C:\> Get-AzBatchSupportedVirtualMachineSku eastus
Get-AzBatchSupportedVirtualMachineSku eastus
```

```output
Name FamilyName Capabilities
---- ---------- ------------
Basic_A1 basicAFamily {MaxResourceVolumeMB, OSVhdSizeMB, vCPUs, MemoryPreservingMaintenanceSupporte...
Expand Down
3 changes: 2 additions & 1 deletion src/Batch/Batch/help/New-AzBatchTask.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,8 @@ New-AzBatchTask -JobId "Job-000001" -Id "Task23" -CommandLine "cmd /c dir /s" -A

### Example 7: Add a task which runs in a container
```powershell
New-AzBatchTask -JobId "Job-000001" -Id "Task23" -CommandLine "cmd /c dir /s" -ContainerSettings New-Object Microsoft.Azure.Commands.Batch.Models.PSTaskContainerSettings "containerImageName"
$Context = Get-AzBatchAccountKey -AccountName "ContosoBatchAccount"
New-AzBatchTask -JobId "Job-000001" -Id "Task23" -CommandLine "cmd /c dir /s" -ContainerSettings (New-Object Microsoft.Azure.Commands.Batch.Models.PSTaskContainerSettings "containerImageName") -BatchContext $Context
```

## PARAMETERS
Expand Down