@@ -4,30 +4,44 @@ Module Name: Az.Synapse
4
4
online version : https://docs.microsoft.com/en-us/powershell/module/az.synapse/new-azsynapsesparkpool
5
5
schema : 2.0.0
6
6
---
7
-
7
+ # test
8
8
# New-AzSynapseSparkPool
9
9
10
10
## SYNOPSIS
11
11
Creates a Synapse Analytics Spark pool.
12
12
13
13
## SYNTAX
14
14
15
- ### CreateByNameParameterSet (Default)
15
+ ### CreateByNameAndEnableAutoScaleParameterSet (Default)
16
+ ```
17
+ New-AzSynapseSparkPool [-ResourceGroupName <String>] -WorkspaceName <String> -Name <String> [-Tag <Hashtable>]
18
+ -NodeSize <String> -AutoScaleMinNodeCount <Int32> -AutoScaleMaxNodeCount <Int32> [-EnableAutoPause]
19
+ [-AutoPauseDelayInMinute <Int32>] -SparkVersion <String> [-LibraryRequirementsFilePath <String>] [-AsJob]
20
+ [-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm] [<CommonParameters>]
21
+ ```
22
+
23
+ ### CreateByNameAndUnableAutoScaleParameterSet
16
24
```
17
25
New-AzSynapseSparkPool [-ResourceGroupName <String>] -WorkspaceName <String> -Name <String> [-Tag <Hashtable>]
18
- -NodeCount <Int32> -NodeSize <String> [-EnableAutoScale] [-AutoScaleMinNodeCount <Int32>]
19
- [-AutoScaleMaxNodeCount <Int32>] [-EnableAutoPause] [-AutoPauseDelayInMinute <Int32>] -SparkVersion <String>
20
- [-LibraryRequirementsFilePath <String>] [-AsJob] [-DefaultProfile <IAzureContextContainer>] [-WhatIf]
21
- [-Confirm] [<CommonParameters>]
26
+ -NodeCount <Int32> -NodeSize <String> [-EnableAutoPause] [-AutoPauseDelayInMinute <Int32>]
27
+ -SparkVersion <String> [-LibraryRequirementsFilePath <String>] [-AsJob]
28
+ [-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm] [<CommonParameters>]
22
29
```
23
30
24
- ### CreateByParentObjectParameterSet
31
+ ### CreateByParentObjectAndEnableAutoScaleParameterSet
25
32
```
26
33
New-AzSynapseSparkPool -WorkspaceObject <PSSynapseWorkspace> -Name <String> [-Tag <Hashtable>]
27
- -NodeCount <Int32> -NodeSize <String> [-EnableAutoScale] [-AutoScaleMinNodeCount <Int32>]
28
- [-AutoScaleMaxNodeCount <Int32>] [-EnableAutoPause] [-AutoPauseDelayInMinute <Int32>] -SparkVersion <String>
29
- [-LibraryRequirementsFilePath <String>] [-AsJob] [-DefaultProfile <IAzureContextContainer>] [-WhatIf]
30
- [-Confirm] [<CommonParameters>]
34
+ -NodeSize <String> -AutoScaleMinNodeCount <Int32> -AutoScaleMaxNodeCount <Int32> [-EnableAutoPause]
35
+ [-AutoPauseDelayInMinute <Int32>] -SparkVersion <String> [-LibraryRequirementsFilePath <String>] [-AsJob]
36
+ [-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm] [<CommonParameters>]
37
+ ```
38
+
39
+ ### CreateByParentObjectAndUnableAutoScaleParameterSet
40
+ ```
41
+ New-AzSynapseSparkPool -WorkspaceObject <PSSynapseWorkspace> -Name <String> [-Tag <Hashtable>]
42
+ -NodeCount <Int32> -NodeSize <String> [-EnableAutoPause] [-AutoPauseDelayInMinute <Int32>]
43
+ -SparkVersion <String> [-LibraryRequirementsFilePath <String>] [-AsJob]
44
+ [-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm] [<CommonParameters>]
31
45
```
32
46
33
47
## DESCRIPTION
@@ -40,15 +54,30 @@ The **New-AzSynapseSparkPool** cmdlet creates an Azure Synapse Analytics Spark p
40
54
PS C:\> New-AzSynapseSparkPool -WorkspaceName ContosoWorkspace -Name ContosoSparkPool -NodeCount 3 -SparkVersion 2.4 -NodeSize Small
41
55
```
42
56
43
- This command creates an Azure Synapse Analytics Spark pool.
57
+ This command creates a non-scalable Azure Synapse Analytics Spark pool
44
58
45
59
### Example 2
46
60
``` powershell
61
+ PS C:\> New-AzSynapseSparkPool -WorkspaceName ContosoWorkspace -Name ContosoSparkPool -AutoScaleMinNodeCount 3 -AutoScaleMaxNodeCount 10 -SparkVersion 2.4 -NodeSize Small
62
+ ```
63
+
64
+ This command creates a scalable Azure Synapse Analytics Spark pool
65
+
66
+ ### Example 3
67
+ ``` powershell
47
68
PS C:\> $ws = Get-AzSynapseWorkspace -Name ContosoWorkspace
48
69
PS C:\> $ws | New-AzSynapseSparkPool -Name ContosoSparkPool -NodeCount 3 -SparkVersion 2.4 -NodeSize Small
49
70
```
50
71
51
- This command creates an Azure Synapse Analytics Spark pool through pipeline.
72
+ This command creates a non-scalable Azure Synapse Analytics Spark pool through pipeline.
73
+
74
+ ### Example 4
75
+ ``` powershell
76
+ PS C:\> $ws = Get-AzSynapseWorkspace -Name ContosoWorkspace
77
+ PS C:\> $ws | New-AzSynapseSparkPool -Name ContosoSparkPool -AutoScaleMinNodeCount 3 -AutoScaleMaxNodeCount 10 -SparkVersion 2.4 -NodeSize Small
78
+ ```
79
+
80
+ This command creates a scalable Azure Synapse Analytics Spark pool through pipeline.
52
81
53
82
## PARAMETERS
54
83
@@ -88,10 +117,10 @@ This parameter must be specified when Auto-scale is enabled.
88
117
89
118
` ` ` yaml
90
119
Type : System.Int32
91
- Parameter Sets : (All)
120
+ Parameter Sets : CreateByNameAndEnableAutoScaleParameterSet, CreateByParentObjectAndEnableAutoScaleParameterSet
92
121
Aliases :
93
122
94
- Required : False
123
+ Required : True
95
124
Position : Named
96
125
Default value : None
97
126
Accept pipeline input : False
@@ -104,10 +133,10 @@ This parameter must be specified when Auto-scale is enabled.
104
133
105
134
` ` ` yaml
106
135
Type : System.Int32
107
- Parameter Sets : (All)
136
+ Parameter Sets : CreateByNameAndEnableAutoScaleParameterSet, CreateByParentObjectAndEnableAutoScaleParameterSet
108
137
Aliases :
109
138
110
- Required : False
139
+ Required : True
111
140
Position : Named
112
141
Default value : None
113
142
Accept pipeline input : False
@@ -144,21 +173,6 @@ Accept pipeline input: False
144
173
Accept wildcard characters : False
145
174
` ` `
146
175
147
- ### -EnableAutoScale
148
- Indicates whether Auto-scale should be enabled
149
-
150
- ` ` ` yaml
151
- Type : System.Management.Automation.SwitchParameter
152
- Parameter Sets : (All)
153
- Aliases :
154
-
155
- Required : False
156
- Position : Named
157
- Default value : None
158
- Accept pipeline input : False
159
- Accept wildcard characters : False
160
- ` ` `
161
-
162
176
### -LibraryRequirementsFilePath
163
177
Environment configuration file ("PIP freeze" output).
164
178
@@ -194,7 +208,7 @@ Number of nodes to be allocated in the specified Spark pool.
194
208
195
209
` ` ` yaml
196
210
Type : System.Int32
197
- Parameter Sets : (All)
211
+ Parameter Sets : CreateByNameAndUnableAutoScaleParameterSet, CreateByParentObjectAndUnableAutoScaleParameterSet
198
212
Aliases :
199
213
200
214
Required : True
@@ -226,7 +240,7 @@ Resource group name.
226
240
227
241
` ` ` yaml
228
242
Type : System.String
229
- Parameter Sets : CreateByNameParameterSet
243
+ Parameter Sets : CreateByNameAndEnableAutoScaleParameterSet, CreateByNameAndUnableAutoScaleParameterSet
230
244
Aliases :
231
245
232
246
Required : False
@@ -272,7 +286,7 @@ Name of Synapse workspace.
272
286
273
287
` ` ` yaml
274
288
Type : System.String
275
- Parameter Sets : CreateByNameParameterSet
289
+ Parameter Sets : CreateByNameAndEnableAutoScaleParameterSet, CreateByNameAndUnableAutoScaleParameterSet
276
290
Aliases :
277
291
278
292
Required : True
@@ -287,7 +301,7 @@ workspace input object, usually passed through the pipeline.
287
301
288
302
` ` ` yaml
289
303
Type : Microsoft.Azure.Commands.Synapse.Models.PSSynapseWorkspace
290
- Parameter Sets : CreateByParentObjectParameterSet
304
+ Parameter Sets : CreateByParentObjectAndEnableAutoScaleParameterSet, CreateByParentObjectAndUnableAutoScaleParameterSet
291
305
Aliases :
292
306
293
307
Required : True
0 commit comments