Delen via


New-AzSynapseSparkConfiguration

Hiermee maakt of werkt u een Spark-configuratie in een werkruimte bij.

Syntaxis

New-AzSynapseSparkConfiguration
   -WorkspaceName <String>
   [-Name <String>]
   -DefinitionFile <String>
   [-AsJob]
   [-DefaultProfile <IAzureContextContainer>]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
New-AzSynapseSparkConfiguration
   -WorkspaceObject <PSSynapseWorkspace>
   [-Name <String>]
   -DefinitionFile <String>
   [-AsJob]
   [-DefaultProfile <IAzureContextContainer>]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]

Description

Met de cmdlet New-AzSynapseSparkConfiguration wordt een Spark-configuratie in een werkruimte gemaakt of bijgewerkt. Als u de naam van een Spark-configuratie opgeeft, wordt de nieuwe Spark-configuratie benoemd als de opgegeven configuratie. Als u de naam niet opgeeft, is de nieuwe Spark-configuratie dezelfde naam als het definitiebestand.

Voorbeelden

Voorbeeld 1

New-AzSynapseSparkConfiguration -WorkspaceName ContosoWorkspace -DefinitionFile "C:\\samples\\sparkconfiguration.json"

Met deze opdracht maakt of werkt u een Spark-configuratie van het bestand sparkconfiguration.json in de werkruimte met de naam ContosoWorkspace.

Voorbeeld 2

New-AzSynapseSparkConfiguration -WorkspaceName ContosoWorkspace -Name ContosoSparkConfiguration -DefinitionFile "C:\\samples\\sparkconfiguration.json"

Met deze opdracht maakt of werkt u een Spark-configuratie met de naam ContosoSparkConfiguration uit het bestand sparkconfiguration.json in de werkruimte met de naam ContosoWorkspace.

Voorbeeld 3

$ws = Get-AzSynapseWorkspace -Name ContosoWorkspace
$ws | New-AzSynapseSparkConfiguration -DefinitionFile "C:\\samples\\sparkconfiguration.json"

Met deze opdracht wordt een Spark-configuratie gemaakt of bijgewerkt van bestand sparkconfiguration.json in de werkruimte met de naam ContosoWorkspace via pijplijn.

Parameters

-AsJob

Cmdlet op de achtergrond uitvoeren

Type:SwitchParameter
Position:Named
Default value:None
Vereist:False
Pijplijninvoer accepteren:False
Jokertekens accepteren:False

-Confirm

Hiermee wordt u gevraagd om bevestiging voordat u de cmdlet uitvoert.

Type:SwitchParameter
Aliassen:cf
Position:Named
Default value:None
Vereist:False
Pijplijninvoer accepteren:False
Jokertekens accepteren:False

-DefaultProfile

De referenties, accounts, tenants en abonnementen die worden gebruikt voor communicatie met Azure.

Type:IAzureContextContainer
Aliassen:AzContext, AzureRmContext, AzureCredential
Position:Named
Default value:None
Vereist:False
Pijplijninvoer accepteren:False
Jokertekens accepteren:False

-DefinitionFile

Het JSON-bestandspad.

Type:String
Aliassen:File
Position:Named
Default value:None
Vereist:True
Pijplijninvoer accepteren:False
Jokertekens accepteren:False

-Name

De naam van de Spark-configuratie.

Type:String
Aliassen:SparkConfigurationName
Position:Named
Default value:None
Vereist:False
Pijplijninvoer accepteren:False
Jokertekens accepteren:False

-WhatIf

Hiermee wordt weergegeven wat er zou gebeuren als u de cmdlet uitvoert. De cmdlet wordt niet uitgevoerd.

Type:SwitchParameter
Aliassen:wi
Position:Named
Default value:None
Vereist:False
Pijplijninvoer accepteren:False
Jokertekens accepteren:False

-WorkspaceName

Naam van Synapse-werkruimte.

Type:String
Position:Named
Default value:None
Vereist:True
Pijplijninvoer accepteren:False
Jokertekens accepteren:False

-WorkspaceObject

werkruimte-invoerobject, meestal doorgegeven via de pijplijn.

Type:PSSynapseWorkspace
Position:Named
Default value:None
Vereist:True
Pijplijninvoer accepteren:True
Jokertekens accepteren:False

Invoerwaarden

PSSynapseWorkspace

Uitvoerwaarden

PSSparkConfigurationResource