File tree Expand file tree Collapse file tree 3 files changed +17
-3
lines changed
Commands/ManagementCommands/SparkPool Expand file tree Collapse file tree 3 files changed +17
-3
lines changed Original file line number Diff line number Diff line change 18
18
- Additional information about change #1
19
19
-->
20
20
## Upcoming Release
21
+ * Fixed the issue when ` Update-AzSynapseSparkPool ` is used with workspace package
21
22
22
23
## Version 0.15.0
23
24
* Added support for Synapse Managed Private Endpoint
Original file line number Diff line number Diff line change @@ -222,7 +222,7 @@ public override void ExecuteCmdlet()
222
222
{
223
223
if ( this . PackageAction == SynapseConstants . PackageActionType . Add )
224
224
{
225
- if ( existingSparkPool == null )
225
+ if ( existingSparkPool . CustomLibraries == null )
226
226
{
227
227
existingSparkPool . CustomLibraries = new List < LibraryInfo > ( ) ;
228
228
}
@@ -251,6 +251,11 @@ public override void ExecuteCmdlet()
251
251
252
252
private LibraryRequirements CreateLibraryRequirements ( )
253
253
{
254
+ if ( string . IsNullOrEmpty ( LibraryRequirementsFilePath ) )
255
+ {
256
+ return null ;
257
+ }
258
+
254
259
var powerShellDestinationPath = SessionState . Path . GetUnresolvedProviderPathFromPSPath ( LibraryRequirementsFilePath ) ;
255
260
256
261
return new LibraryRequirements
Original file line number Diff line number Diff line change @@ -122,15 +122,23 @@ PS C:\> $packages = Get-AzSynapseWorkspacePackage -WorkspaceName ContosoWorkspac
122
122
PS C:\> Update-AzSynapseSparkPool -WorkspaceName ContosoWorkspace -Name ContosoSparkPool -PackageAction Add -Package $packages
123
123
```
124
124
125
- The first command retrieves workspace packages. The second command links these workspaces packages to an Apache Spark pool in Azure Synapse Analytics.
125
+ The first command retrieves workspace packages. The second command links these workspace packages to an Apache Spark pool in Azure Synapse Analytics.
126
126
127
127
### Example 10
128
128
``` powershell
129
129
PS C:\> $package = Get-AzSynapseWorkspacePackage -WorkspaceName ContosoWorkspace -Name ContosoPackage
130
130
PS C:\> Update-AzSynapseSparkPool -WorkspaceName ContosoWorkspace -Name ContosoSparkPool -PackageAction Remove -Package $package
131
131
```
132
132
133
- The first command retrieves workspace packages named ContosoPackage. The second command removes the workspaces package from an Apache Spark pool in Azure Synapse Analytics.
133
+ The first command retrieves workspace packages named ContosoPackage. The second command removes the workspace package from an Apache Spark pool in Azure Synapse Analytics.
134
+
135
+ ### Example 11
136
+ ``` powershell
137
+ PS C:\> $pool = Get-AzSynapseSparkPool -ResourceGroupName ContosoResourceGroup -WorkspaceName ContosoWorkspace -Name ContosoSparkPool
138
+ PS C:\> $pool | Update-AzSynapseSparkPool -PackageAction Remove -Package $pool.WorkspacePackages
139
+ ```
140
+
141
+ The first command retrieves an Apache Spark pool in Azure Synapse Analytics. The second command removes all workspace packages that are linked to that Apache Spark pool.
134
142
135
143
## PARAMETERS
136
144
You can’t perform that action at this time.
0 commit comments