Skip to content

Commit 881d4c2

Browse files
authored
{ams} Command examples document (#31328)
1 parent a382f46 commit 881d4c2

File tree

1 file changed

+40
-0
lines changed
  • src/azure-cli/azure/cli/command_modules/ams

1 file changed

+40
-0
lines changed

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

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@
2020
helps['ams account create'] = """
2121
type: command
2222
short-summary: Create an Azure Media Services account.
23+
examples:
24+
- name: Create an Azure Media Services account.
25+
text: >
26+
az ams account create -n ams -g rg --storage-account mystorage -l westus
2327
"""
2428

2529
helps['ams account update'] = """
@@ -119,6 +123,10 @@
119123
helps['ams account storage add'] = """
120124
type: command
121125
short-summary: Attach a secondary storage to an Azure Media Services account.
126+
examples:
127+
- name: Attach a secondary storage to an Azure Media Services account.
128+
text: >
129+
az ams account storage add -a myAMS -g rg -n myStorage
122130
"""
123131

124132
helps['ams account storage remove'] = """
@@ -254,6 +262,10 @@
254262
helps['ams asset-track create'] = """
255263
type: command
256264
short-summary: Create a track for an Azure Media Services asset.
265+
examples:
266+
- name: Create a track for an Azure Media Services asset.
267+
text: >
268+
az ams asset-track create -a myAMS -g rg --track-name track --track-type Text --asset-name asset --file-name assetTrack.ttml
257269
"""
258270

259271
helps['ams asset-track update'] = """
@@ -288,6 +300,10 @@
288300
helps['ams asset create'] = """
289301
type: command
290302
short-summary: Create an asset.
303+
examples:
304+
- name: Create an asset.
305+
text: >
306+
az ams asset create -a myAMS -n asset -g rg
291307
"""
292308

293309
helps['ams asset update'] = """
@@ -455,6 +471,10 @@
455471
helps['ams streaming-locator create'] = """
456472
type: command
457473
short-summary: Create a streaming locator.
474+
examples:
475+
- name: Create a streaming locator.
476+
text: >
477+
az ams streaming-locator create -n mylocator -a ams -g rg --streaming-policy-name Predefined_ClearStreamingOnly --asset-name asset
458478
"""
459479

460480
helps['ams streaming-locator list'] = """
@@ -485,6 +505,10 @@
485505
helps['ams streaming-policy create'] = """
486506
type: command
487507
short-summary: Create a streaming policy.
508+
examples:
509+
- name: Create a streaming policy.
510+
text: >
511+
az ams streaming-policy create -a ams -n mypolicy -g rg --no-encryption-protocols HLS
488512
"""
489513

490514
helps['ams streaming-policy list'] = """
@@ -525,6 +549,10 @@
525549
helps['ams streaming-endpoint create'] = """
526550
type: command
527551
short-summary: Create a streaming endpoint.
552+
examples:
553+
- name: Create a streaming endpoint.
554+
text: >
555+
az ams streaming-endpoint create -g rg -a ams -n myendpoint --scale-units 6
528556
"""
529557

530558
helps['ams streaming-endpoint wait'] = """
@@ -543,6 +571,10 @@
543571
helps['ams streaming-endpoint akamai add'] = """
544572
type: command
545573
short-summary: Add an AkamaiAccessControl to an existing streaming endpoint.
574+
examples:
575+
- name: Add an AkamaiAccessControl to an existing streaming endpoint.
576+
text: >
577+
az ams streaming-endpoint akamai add -g rg -a ams -n myendpoint --identifier id1 --expiration xxxT16:00:00-08:00 --base64-key dGVzdGlkMQ==
546578
"""
547579

548580
helps['ams streaming-endpoint show'] = """
@@ -578,6 +610,10 @@
578610
helps['ams live-event create'] = """
579611
type: command
580612
short-summary: Create a live event.
613+
examples:
614+
- name: Create a live event.
615+
text: >
616+
az ams live-event create -a myAMS -n liveevent -g rg --ips AllowAll --streaming-protocol FragmentedMP4
581617
"""
582618

583619
helps['ams live-event start'] = """
@@ -648,6 +684,10 @@
648684
helps['ams live-output create'] = """
649685
type: command
650686
short-summary: Create a live output.
687+
examples:
688+
- name: Create a live output.
689+
text: >
690+
az ams live-output create -a myAMS -n liveoutput -g rg --asset-name asset --live-event-name liveevent --archive-window-length PT5M --manifest-name man
651691
"""
652692

653693
helps['ams live-output show'] = """

0 commit comments

Comments
 (0)