New-AzStreamAnalyticsInput

Hiermee maakt u een invoer of vervangt u een al bestaande invoer onder een bestaande streamingtaak.

Syntax

New-AzStreamAnalyticsInput
   -File <String>
   -JobName <String>
   -Name <String>
   -ResourceGroupName <String>
   [-SubscriptionId <String>]
   [-IfMatch <String>]
   [-IfNoneMatch <String>]
   [-DefaultProfile <PSObject>]
   [-Confirm]
   [-WhatIf]
   [<CommonParameters>]

Description

Hiermee maakt u een invoer of vervangt u een al bestaande invoer onder een bestaande streamingtaak.

Voorbeelden

Voorbeeld 1: Een taakinvoer maken met een definitie van een bestand

New-AzStreamAnalyticsInput -ResourceGroupName azure-rg-test -JobName sajob-02-pwsh -Name input-01 -File .\test\template-json\EventHub.json

Name     Type                                           ETag
----     ----                                           ----
input-01 Microsoft.StreamAnalytics/streamingjobs/inputs 6c9f5122-44b9-45bf-81c9-5349a9dd8851

Met deze opdracht maakt u een invoer van het bestand EventHub.json.

(hieronder ziet u een voorbeeld voor 'EventHub.json') { "properties": { "type": "Stream", "serialization": { "type": "Json", "properties": { "encoding": "UTF8" } }, "compression": { "type": "None" }, "datasource": { "type": "Microsoft.EventHub/EventHub", "properties": { "serviceBusNamespace": "xxxxxxxxxxxxxxxx", "sharedAccessPolicyName": "xxxxxxxxxxxxxxxx", "sharedAccessPolicyKey": "xxxxxx", "authenticationMode": "Verbinding makenionString", "eventHubName": "xxxxxxxxxxxxxxxxxx", "consumerGroupName": "xxxxxxxxxxxxxx" } } } } }

Voorbeeld 2: Een taakinvoer maken met een definitie van een bestand

New-AzStreamAnalyticsInput -ResourceGroupName azure-rg-test -JobName sajob-02-pwsh -Name input-01 -File .\test\template-json\IotHub.json

Name     Type                                           ETag
----     ----                                           ----
input-01 Microsoft.StreamAnalytics/streamingjobs/inputs 6c9f5122-44b9-45bf-81c9-5349a9dd8851

Met deze opdracht maakt u een invoer van het bestand IotHub.json.

(hieronder ziet u een voorbeeld voor 'IotHub.json') { "properties": { "type": "Stream", "serialization": { "type": "Json", "properties": { "encoding": "UTF8" } }, "compression": { "type": "None" }, "partitionKey": "", "", "datasource": { "type": "Microsoft.Devices/IotHubs", "properties": { "iotHubNamespace": "xxxxxxxxxxxxx", "sharedAccessPolicyName": "xxxxxxxxxxxxxx", "sharedAccessPolicyKey": "xxxxxxxxxxx", "consumerGroupName": "$Default", "endpoint": "messages/events" } } }

Parameters

-Confirm

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

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-DefaultProfile

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

Type:PSObject
Aliases:AzureRMContext, AzureCredential
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-File

De naam van de streamingtaak.

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-IfMatch

De ETag van de invoer. Laat deze waarde weg om altijd de huidige invoer te overschrijven. Geef de laatst geziene ETag-waarde op om te voorkomen dat gelijktijdige wijzigingen per ongeluk worden overschreven.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-IfNoneMatch

Stel deze optie in op *om toe te staan dat er nieuwe invoer wordt gemaakt, maar om te voorkomen dat een bestaande invoer wordt bijgewerkt. Andere waarden resulteren in een reactie van 412 Pre-condition Failed.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-JobName

De naam van de streamingtaak.

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-Name

De naam van de invoer.

Type:String
Aliases:InputName
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-ResourceGroupName

De naam van de resourcegroep. De naam is niet hoofdlettergevoelig.

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-SubscriptionId

De id van het doelabonnement.

Type:String
Position:Named
Default value:(Get-AzContext).Subscription.Id
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-WhatIf

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

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Invoerwaarden

IInput

IStreamAnalyticsIdentity

Uitvoerwaarden

IInput

Notities

ALIASSEN