Skip to content

Commit 9e1ff63

Browse files
aladdindockceiw
andauthored
Add new examples to Batch (#13363)
- Add new examples to the following modules: Batch Co-authored-by: Maoliang Huang <[email protected]>
1 parent ba0cb54 commit 9e1ff63

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed

src/Batch/Batch/help/New-AzBatchAccount.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ The **New-AzBatchAccount** cmdlet creates an Azure Batch account for the specifi
2626
## EXAMPLES
2727

2828
### Example 1: Create a Batch account
29-
```
29+
```powershell
3030
PS C:\>New-AzBatchAccount -AccountName "pfuller" -ResourceGroupName "ResourceGroup03" -Location "WestUS"
3131
AccountName : pfuller
3232
Location : westus
@@ -41,6 +41,15 @@ TaskTenantUrl : https://cmdletexample.westus.batch.azure.com
4141

4242
This command creates a Batch account named pfuller using the ResourceGroup03 resource group in the West US location.
4343

44+
### Example 2
45+
46+
Creates a Batch account. (autogenerated)
47+
48+
<!-- Aladdin Generated Example -->
49+
```powershell
50+
New-AzBatchAccount -AccountName 'pfuller' -AutoStorageAccountId <String> -Location 'WestUS' -ResourceGroupName 'ResourceGroup03'
51+
```
52+
4453
## PARAMETERS
4554

4655
### -AccountName

src/Batch/Batch/help/Set-AzBatchApplication.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,22 @@ The **Set-AzBatchApplication** cmdlet modifies settings for the specified Azure
2525
## EXAMPLES
2626

2727
### Example 1: Update an application in a Batch account
28-
```
28+
```powershell
2929
PS C:\>Set-AzBatchApplication -AccountName "ContosoBatch" -ResourceGroupName "ContosoBatchGroup" -ApplicationName "Litware" -AllowUpdates $False
3030
```
3131

3232
This command changes whether the Litware application in the ContosoBatch account allows updates.
3333
The command does not change the default version or display name of the application.
3434

35+
### Example 2
36+
37+
Updates settings for the specified application. (autogenerated)
38+
39+
<!-- Aladdin Generated Example -->
40+
```powershell
41+
Set-AzBatchApplication -AccountName 'ContosoBatch' -ApplicationName 'Litware' -DefaultVersion <String> -ResourceGroupName 'ContosoBatchGroup'
42+
```
43+
3544
## PARAMETERS
3645

3746
### -AccountName

0 commit comments

Comments
 (0)