Skip to content

Commit 7a01872

Browse files
authored
[gallery-service-artifact] Add command example (#8962)
* add example * hide values
1 parent fa8e5e9 commit 7a01872

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/gallery-service-artifact/azext_gallery_service_artifact/aaz/latest/gallery/service_artifact/_create.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616
)
1717
class Create(AAZCommand):
1818
"""Create a Service Artifact under a gallery.
19+
20+
:example: Create a Service Artifact under a gallery.
21+
az gallery service-artifact create --gallery-name gallery -g rg --service-artifact-name TestArco --location eastus2euap --target-locations "[{'name': 'eastus2euap'}, {'name': 'centraluseuap'}, {'name': 'westcentralus'}, {'name': 'westus'}]" --vm-artifacts-profiles "[{'artifactProfiles': [{'description': 'Using a SIG Image for mocking', 'imageReference': {'id': '/subscriptions/0000-0000-0000-0000-000000000000/resourceGroups/myrg/providers/Microsoft.Compute/galleries/Gallery1/images/WindowsGen2ImageGeneralized1', 'initialVersion': '0.0.1'}}], 'description': 'VM Artifact profile with default upgrade window', 'name': 'vmArtifactsProfile', 'upgradeSdpPolicy': {'schedulingPolicy': {'disableRegularUpgrades': False, 'maxConcurrentResourceCountPerRegion': 5, 'upgradeWindow': 'Default'}, 'type': 'PlatformOrchestratedForNewAndExistingResources'}}]" --description "Test Arco"
1922
"""
2023

2124
_aaz_info = {

0 commit comments

Comments
 (0)