Skip to content

Commit

Permalink
updated smple with share command, updated description as a tag in reg… (
Browse files Browse the repository at this point in the history
#2417)

* updated smple with share command, updated description as a tag in registry YAMLs and removed the extra ReadME

* updated share syntax
  • Loading branch information
fkriti authored Jul 5, 2023
1 parent 66d1a3a commit e862760
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ az ml model create --name nyc-taxi-model --version $version --type mlflow_model
echo "model create in workspace failed"; exit 1;
}

# copy model created in workspace to registry
az ml model create --registry-name <REGISTRY_NAME> --path azureml://subscriptions/$ws_sub/resourceGroups/$ws_rg/workspaces/$ws_name/models/nyc-taxi-model/versions/$version || {
# share model created in workspace to registry
az ml model share --name nyc-taxi-model --version $version --share-with-name nyc-taxi-model --share-with-version $version --registry-name <REGISTRY_NAME> || {
echo "model create in registry failed"; exit 1;
}

Expand Down
4 changes: 2 additions & 2 deletions cli/resources/registry/registry-demo.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: <REGISTRY-NAME>
description: Basic registry with one primary region and to additional regions
tags:
foo: bar
description: Basic registry with one primary region and to additional regions
location: <LOCATION>
replication_locations:
- location: <LOCATION>
- location: <LOCATION>
4 changes: 2 additions & 2 deletions cli/resources/registry/registry-storage-options.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: DemoRegistry2
description: Registry with additional configuration for storage accounts
tags:
foo: bar
description: Registry with additional configuration for storage accounts
location: eastus
replication_locations:
- location: eastus
Expand All @@ -15,4 +15,4 @@ replication_locations:
- location: westus
storage_config:
storage_account_hns: False
storage_account_type: Standard_LRS
storage_account_type: Standard_LRS
4 changes: 2 additions & 2 deletions cli/resources/registry/registry.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: DemoRegistry
description: Basic registry with one primary region and to additional regions
tags:
foo: bar
description: Basic registry with one primary region and to additional regions
location: eastus
replication_locations:
- location: eastus
- location: eastus2
- location: westus
- location: westus2
- location: westus2
7 changes: 0 additions & 7 deletions sdk/python/foundation-models/huggingface/README.md

This file was deleted.

0 comments on commit e862760

Please sign in to comment.