Skip to content

Commit

Permalink
Users/anksing/release 1.5.0 (Azure#2140)
Browse files Browse the repository at this point in the history
* Update share-models-components-environments.ipynb

* Update online-endpoints-keyvault.ipynb

* Update share-models-components-environments.ipynb
  • Loading branch information
singankit committed Mar 21, 2023
1 parent 98774b8 commit 63e3935
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -399,11 +399,14 @@
" name=\"nyc-taxi-model\", version=version\n",
")\n",
"print(\"workspace model:\\n\\n\", model_in_workspace)\n",
"# change the format such that the registry understands the model (when you print the model_ready_to_copy object, notice the asset id\n",
"model_ready_to_copy = ml_client_workspace.models._prepare_to_copy(model_in_workspace)\n",
"print(\"\\n\\nmodel ready to copy:\\n\\n\", model_ready_to_copy)\n",
"# copy the model from registry to workspace\n",
"ml_client_registry.models.create_or_update(model_ready_to_copy).wait()"
"# share the model from registry to workspace\n",
"ml_client_workspace.models.share(\n",
" name=\"nyc-taxi-model\",\n",
" version=version,\n",
" registry=\"<registry-name>\",\n",
" share_with_name=\"nyc-taxi-model-new\",\n",
" share_with_version=version,\n",
")"
]
},
{
Expand Down Expand Up @@ -598,11 +601,6 @@
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.8"
},
"vscode": {
"interpreter": {
"hash": "cb451b1acfd48ceac5a931ea70033c1eb64868bd3ea755a5c8b8f7161e90ef7b"
}
}
},
"nbformat": 4,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@
" location=endpoint.location,\n",
" properties=VaultProperties(\n",
" tenant_id=endpoint.identity.tenant_id,\n",
" sku=Sku(name=\"Standard\"),\n",
" sku=Sku(name=\"Standard\", family=\"A\"),\n",
" access_policies=[endpoint_access_policy, user_or_sp_access_policy],\n",
" ),\n",
" ),\n",
Expand Down

0 comments on commit 63e3935

Please sign in to comment.