Skip to content

Commit 52cd179

Browse files
Merge pull request #284236 from sdgilley/sdg-remediate-ropc
Remediate ROPC how-to-manage-workspace.md
2 parents 690264f + 99e689e commit 52cd179

File tree

1 file changed

+6
-34
lines changed

1 file changed

+6
-34
lines changed

articles/machine-learning/v1/how-to-manage-workspace.md

Lines changed: 6 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ You can create a workspace [directly in Azure Machine Learning studio](../quicks
7474
)
7575
```
7676

77-
* **[Sovereign cloud](../reference-machine-learning-cloud-parity.md)**. You'll need extra code to authenticate to Azure if you're working in a sovereign cloud.
77+
* **[Sovereign cloud](../reference-machine-learning-cloud-parity.md)**. You need extra code to authenticate to Azure if you're working in a sovereign cloud.
7878

7979
[!INCLUDE [sdk v1](../includes/machine-learning-sdk-v1.md)]
8080

@@ -92,38 +92,10 @@ You can create a workspace [directly in Azure Machine Learning studio](../quicks
9292
)
9393
```
9494

95-
* **Use existing Azure resources**. You can also create a workspace that uses existing Azure resources with the Azure resource ID format. Find the specific Azure resource IDs in the Azure portal or with the SDK. This example assumes that the resource group, storage account, key vault, App Insights, and container registry already exist.
96-
97-
[!INCLUDE [sdk v1](../includes/machine-learning-sdk-v1.md)]
98-
99-
```python
100-
import os
101-
from azureml.core import Workspace
102-
from azureml.core.authentication import ServicePrincipalAuthentication
103-
104-
service_principal_password = os.environ.get("AZUREML_PASSWORD")
105-
106-
service_principal_auth = ServicePrincipalAuthentication(
107-
tenant_id="<tenant-id>",
108-
username="<application-id>",
109-
password=service_principal_password)
110-
111-
auth=service_principal_auth,
112-
subscription_id='<azure-subscription-id>',
113-
resource_group='myresourcegroup',
114-
create_resource_group=False,
115-
location='eastus2',
116-
friendly_name='My workspace',
117-
storage_account='subscriptions/<azure-subscription-id>/resourcegroups/myresourcegroup/providers/microsoft.storage/storageaccounts/mystorageaccount',
118-
key_vault='subscriptions/<azure-subscription-id>/resourcegroups/myresourcegroup/providers/microsoft.keyvault/vaults/mykeyvault',
119-
app_insights='subscriptions/<azure-subscription-id>/resourcegroups/myresourcegroup/providers/microsoft.insights/components/myappinsights',
120-
container_registry='subscriptions/<azure-subscription-id>/resourcegroups/myresourcegroup/providers/microsoft.containerregistry/registries/mycontainerregistry',
121-
exist_ok=False)
122-
```
12395

12496
For more information, see [Workspace SDK reference](/python/api/azureml-core/azureml.core.workspace.workspace).
12597

126-
If you have problems in accessing your subscription, see [Set up authentication for Azure Machine Learning resources and workflows](how-to-setup-authentication.md), as well as the [Authentication in Azure Machine Learning](https://aka.ms/aml-notebook-auth) notebook.
98+
If you have problems in accessing your subscription, see [Set up authentication for Azure Machine Learning resources and workflows](how-to-setup-authentication.md), and the [Authentication in Azure Machine Learning](https://aka.ms/aml-notebook-auth) notebook.
12799

128100

129101
### Networking
@@ -175,7 +147,7 @@ from azureml.core import Workspace
175147

176148
### Download a configuration file
177149

178-
If you'll be using a [compute instance](../quickstart-create-resources.md) in your workspace to run your code, skip this step. The compute instance will create and store a copy of this file for you.
150+
If you are using a [compute instance](../quickstart-create-resources.md) in your workspace to run your code, skip this step. The compute instance will create and store a copy of this file for you.
179151

180152
If you plan to use code on your local environment that references this workspace (`ws`), write the configuration file:
181153

@@ -189,7 +161,7 @@ Place the file into the directory structure with your Python scripts or Jupyter
189161

190162
## Connect to a workspace
191163

192-
In your Python code, you create a workspace object to connect to your workspace. This code will read the contents of the configuration file to find your workspace. You'll get a prompt to sign in if you aren't already authenticated.
164+
In your Python code, you create a workspace object to connect to your workspace. This code reads the contents of the configuration file to find your workspace. You get a prompt to sign in if you aren't already authenticated.
193165

194166
[!INCLUDE [sdk v1](../includes/machine-learning-sdk-v1.md)]
195167

@@ -211,7 +183,7 @@ ws = Workspace.from_config()
211183
ws = Workspace.from_config(auth=interactive_auth)
212184
```
213185

214-
* **[Sovereign cloud](../reference-machine-learning-cloud-parity.md)**. You'll need extra code to authenticate to Azure if you're working in a sovereign cloud.
186+
* **[Sovereign cloud](../reference-machine-learning-cloud-parity.md)**. You need extra code to authenticate to Azure if you're working in a sovereign cloud.
215187

216188
[!INCLUDE [sdk v1](../includes/machine-learning-sdk-v1.md)]
217189

@@ -223,7 +195,7 @@ ws = Workspace.from_config()
223195
ws = Workspace.from_config(auth=interactive_auth)
224196
```
225197

226-
If you have problems in accessing your subscription, see [Set up authentication for Azure Machine Learning resources and workflows](../how-to-setup-authentication.md), as well as the [Authentication in Azure Machine Learning](https://aka.ms/aml-notebook-auth) notebook.
198+
If you have problems in accessing your subscription, see [Set up authentication for Azure Machine Learning resources and workflows](../how-to-setup-authentication.md), and the [Authentication in Azure Machine Learning](https://aka.ms/aml-notebook-auth) notebook.
227199

228200
## Find a workspace
229201

0 commit comments

Comments
 (0)