From 6188c0269df5fc38a3e4082195676d934f033f3a Mon Sep 17 00:00:00 2001 From: Amit Chauhan <70937115+achauhan-scc@users.noreply.github.com> Date: Tue, 9 Jul 2024 20:53:12 +0530 Subject: [PATCH] adding NPS extension to avoid forcing network policy (#3270) * adding NPS extension to avoid forcing network policy * formatting fix * fixing formatting * formatting * formating fix --- .../online-endpoints-managed-identity-sai.ipynb | 5 ++++- .../online-endpoints-managed-identity-uai.ipynb | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/sdk/python/endpoints/online/managed/managed-identities/online-endpoints-managed-identity-sai.ipynb b/sdk/python/endpoints/online/managed/managed-identities/online-endpoints-managed-identity-sai.ipynb index 77c5cfb269..f6302fb8b8 100644 --- a/sdk/python/endpoints/online/managed/managed-identities/online-endpoints-managed-identity-sai.ipynb +++ b/sdk/python/endpoints/online/managed/managed-identities/online-endpoints-managed-identity-sai.ipynb @@ -250,7 +250,10 @@ "outputs": [], "source": [ "storage_account_parameters = StorageAccountCreateParameters(\n", - " sku=Sku(name=\"Standard_LRS\"), kind=\"Storage\", location=workspace_location\n", + " sku=Sku(name=\"Standard_LRS\"),\n", + " kind=\"Storage\",\n", + " location=workspace_location,\n", + " tags={\"NRMS.NSP-extension\": \"ServiceTag-storage\"},\n", ")\n", "\n", "storage_account = storage_client.storage_accounts.begin_create(\n", diff --git a/sdk/python/endpoints/online/managed/managed-identities/online-endpoints-managed-identity-uai.ipynb b/sdk/python/endpoints/online/managed/managed-identities/online-endpoints-managed-identity-uai.ipynb index e8856b61e7..f1cc291c5f 100644 --- a/sdk/python/endpoints/online/managed/managed-identities/online-endpoints-managed-identity-uai.ipynb +++ b/sdk/python/endpoints/online/managed/managed-identities/online-endpoints-managed-identity-uai.ipynb @@ -317,7 +317,10 @@ "outputs": [], "source": [ "storage_account_parameters = StorageAccountCreateParameters(\n", - " sku=Sku(name=\"Standard_LRS\"), kind=\"Storage\", location=workspace_location\n", + " sku=Sku(name=\"Standard_LRS\"),\n", + " kind=\"Storage\",\n", + " location=workspace_location,\n", + " tags={\"NRMS.NSP-extension\": \"ServiceTag-storage\"},\n", ")\n", "\n", "storage_account = storage_client.storage_accounts.begin_create(\n",