Skip to content

Commit f40e79c

Browse files
Larry Franksmikefrobbins
andauthored
Update articles/machine-learning/how-to-manage-workspace-powershell.md
Co-authored-by: Mike F. Robbins <[email protected]>
1 parent 8d30ea3 commit f40e79c

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

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

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -103,11 +103,16 @@ The following command creates the workspace and configures it to use the service
103103
104104
```azurepowershell-interactive
105105
$Workspace = 'MyWorkspace'
106-
New-AzMLWorkspace -Name $Workspace -ResourceGroupName $ResourceGroup -Location $Location `
107-
-ApplicationInsightID $appid `
108-
-KeyVaultId $kvid `
109-
-StorageAccountId $storeid `
110-
-IdentityType 'SystemAssigned'
106+
$mlWorkspaceParams = @{
107+
Name = $Workspace
108+
ResourceGroupName = $ResourceGroup
109+
Location = $Location
110+
ApplicationInsightID = $appid
111+
KeyVaultId = $kvid
112+
StorageAccountId = $storeid
113+
IdentityType = 'SystemAssigned'
114+
}
115+
New-AzMLWorkspace @mlWorkspaceParams
111116
```
112117

113118
> [!TIP]

0 commit comments

Comments
 (0)