Skip to content

Commit bea35e5

Browse files
author
Dongwei Wang
committed
Correct help doc
1 parent 24dd3ac commit bea35e5

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

src/Synapse/Synapse/help/Get-AzSynapseWorkspace.md

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -56,16 +56,6 @@ PS C:\> Get-AzSynapseWorkspace -ResourceId /subscriptions/21686af7-58ec-4f4d-9c6
5656

5757
This command gets the Azure Synapse Analytics workspace with the specified resource ID.
5858

59-
### Example 5
60-
```powershell
61-
PS C:\> $config = New-AzSynapseManagedVirtualNetworkConfig -PreventDataExfiltration -AllowedAadTenantIdsForLinking ContosoTenantId
62-
PS C:\> $password = ConvertTo-SecureString "Password123!" -AsPlainText -Force
63-
PS C:\> $creds = New-Object System.Management.Automation.PSCredential ("ContosoUser", $password)
64-
PS C:\> New-AzSynapseWorkspace -ResourceGroupName ContosoResourceGroup -Name ContosoWorkspace -Location northeurope -DefaultDataLakeStorageAccountName ContosoAdlGen2Storage -DefaultDataLakeStorageFilesystem ContosoFileSystem -SqlAdministratorLoginCredential $creds -ManagedVirtualNetwork $config
65-
```
66-
67-
The first command creates a managed virtual network configuration. Then the rest methods uses the configuration to creates a new Synapse workspace.
68-
6959
## PARAMETERS
7060

7161
### -DefaultProfile

src/Synapse/Synapse/help/New-AzSynapseWorkspace.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,16 @@ PS C:\> New-AzSynapseWorkspace -ResourceGroupName ContosoResourceGroup -Name Con
3535

3636
This command creates a Synapse Analytics workspace named ContosoWorkspace that uses the ContosoAdlGenStorage Data Store, in the resource group named ContosoResourceGroup.
3737

38+
### Example 2
39+
```powershell
40+
PS C:\> $config = New-AzSynapseManagedVirtualNetworkConfig -PreventDataExfiltration -AllowedAadTenantIdsForLinking ContosoTenantId
41+
PS C:\> $password = ConvertTo-SecureString "Password123!" -AsPlainText -Force
42+
PS C:\> $creds = New-Object System.Management.Automation.PSCredential ("ContosoUser", $password)
43+
PS C:\> New-AzSynapseWorkspace -ResourceGroupName ContosoResourceGroup -Name ContosoWorkspace -Location northeurope -DefaultDataLakeStorageAccountName ContosoAdlGen2Storage -DefaultDataLakeStorageFilesystem ContosoFileSystem -SqlAdministratorLoginCredential $creds -ManagedVirtualNetwork $config
44+
```
45+
46+
The first command creates a managed virtual network configuration. Then the rest methods uses the configuration to creates a new Synapse workspace.
47+
3848
## PARAMETERS
3949

4050
### -AsJob

0 commit comments

Comments
 (0)