Skip to content

Commit c16876d

Browse files
authored
[Batch] az batch: Add some new command examples (#31486)
1 parent bfef7fc commit c16876d

File tree

1 file changed

+21
-0
lines changed
  • src/azure-cli/azure/cli/command_modules/batch

1 file changed

+21
-0
lines changed

src/azure-cli/azure/cli/command_modules/batch/_help.py

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@
3232
helps['batch account create'] = """
3333
type: command
3434
short-summary: Create a Batch account with the specified parameters.
35+
examples:
36+
- name: Create a Batch account with the specified parameters.
37+
text: >
38+
az batch account create --name MyBatchAccount --resource-group MyResourceGroup --location eastus
3539
"""
3640

3741
helps['batch account keys'] = """
@@ -198,6 +202,14 @@
198202
short-summary: Manage Batch applications.
199203
"""
200204

205+
helps['batch application create'] = """
206+
type: command
207+
examples:
208+
- name: Create a Batch application with the specified parameters.
209+
text: >
210+
az batch application create -g MyResourceGroup -n batch --application-name app
211+
"""
212+
201213
helps['batch application package'] = """
202214
type: group
203215
short-summary: Manage Batch application packages.
@@ -212,6 +224,11 @@
212224
helps['batch application package create'] = """
213225
type: command
214226
short-summary: Create a Batch application package record and activate it.
227+
examples:
228+
- name: Create a Batch application package record and activate it.
229+
text: >
230+
az batch application package create -g rg -n batch --application-name myapp --version 1.0 --package-file PackageFilePath
231+
215232
"""
216233

217234
helps['batch application set'] = """
@@ -517,6 +534,10 @@
517534
helps['batch pool create'] = """
518535
type: command
519536
short-summary: Create a Batch pool in an account. When creating a pool, choose arguments from either Cloud Services Configuration or Virtual Machine Configuration.
537+
examples:
538+
- name: Create a Batch pool in an account. When creating a pool, choose arguments from either Cloud Services Configuration or Virtual Machine Configuration.
539+
text: >
540+
az batch pool create --json-file batch-pool-create.json --account-name clibatch --account-key BatchAccountKey
520541
"""
521542

522543
helps['batch pool node-counts'] = """

0 commit comments

Comments
 (0)