This is an extension to Azure CLI to manage Gallery Service Artifact resources.
Remove existing extension (if previously installed)
```az extension remove --name gallery-service-artifact```
Add Gallery Service Artifact extension using the wheel file
```az extension add --name gallery-service-artifact```
Lists all Service Artifacts under a Gallery.
az gallery service-artifact list --gallery-name <gallery-name> --resource-group <resource-group-name> --subscription <subscription-id>
Creates a new Service Artifact
az gallery service-artifact create --gallery-name <gallery-name> --resource-group <resource-group-name> --subscription <subscription-id> --service-artifact-name <service-artifact-name> --location <location> --target-locations '@<path-to-target-location-json-file>' --vm-artifacts-profiles '@<path-to-vm-artifact-json-file>' --description "<service-artifact-description>"
Retrieves an existing Service Artifact
az gallery service-artifact get --gallery-name <gallery-name> --resource-group <resource-group-name> --subscription <subscription-id> --service-artifact-name <service-artifact-name>
Updates an existing Service Artifact.
az gallery service-artifact update --gallery-name <gallery-name> --resource-group <resource-group-name> --subscription <subscription-id> --service-artifact-name <service-artifact-name> --location <location> --target-locations '@<path-to-target-location-json-file>' --vm-artifacts-profiles '@<path-to-vm-artifact-json-file>' --description "<service-artifact-description>"