File tree Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -56,16 +56,6 @@ PS C:\> Get-AzSynapseWorkspace -ResourceId /subscriptions/21686af7-58ec-4f4d-9c6
56
56
57
57
This command gets the Azure Synapse Analytics workspace with the specified resource ID.
58
58
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
-
69
59
## PARAMETERS
70
60
71
61
### -DefaultProfile
Original file line number Diff line number Diff line change @@ -35,6 +35,16 @@ PS C:\> New-AzSynapseWorkspace -ResourceGroupName ContosoResourceGroup -Name Con
35
35
36
36
This command creates a Synapse Analytics workspace named ContosoWorkspace that uses the ContosoAdlGenStorage Data Store, in the resource group named ContosoResourceGroup.
37
37
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
+
38
48
## PARAMETERS
39
49
40
50
### -AsJob
You can’t perform that action at this time.
0 commit comments