Skip to content

Commit 0f8066d

Browse files
authored
Merge pull request #109117 from bgauseMSFT/patch-1
Update stream-analytics-quick-create-powershell.md
2 parents 4b122ca + bc25cd5 commit 0f8066d

File tree

1 file changed

+5
-19
lines changed

1 file changed

+5
-19
lines changed

articles/stream-analytics/stream-analytics-quick-create-powershell.md

Lines changed: 5 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -142,32 +142,18 @@ The following Azure PowerShell code block uses commands to create blob storage t
142142
143143
## Create a Stream Analytics job
144144
145-
Create a Stream Analytics job with [New-AzStreamAnalyticsJob](/powershell/module/az.streamanalytics/new-azstreamanalyticsjob) cmdlet. This cmdlet takes the job name, resource group name, and job definition as parameters. The job name can be any friendly name that identifies your job. It can have alphanumeric characters, hyphens, and underscores only and it must be between 3 and 63 characters long. The job definition is a JSON file that contains the properties required to create a job. On your local machine, create a file named `JobDefinition.json` and add the following JSON data to it:
145+
Create a Stream Analytics job with [New-AzStreamAnalyticsJob](/powershell/module/az.streamanalytics/new-azstreamanalyticsjob) cmdlet. This cmdlet takes the job name, resource group name, location, and sku name as parameters. The job name can be any friendly name that identifies your job. It can have alphanumeric characters, hyphens, and underscores only and it must be between 3 and 63 characters long.
146146
147-
```json
148-
{
149-
"location":"WestUS2",
150-
"properties":{
151-
"sku":{
152-
"name":"standard"
153-
},
154-
"eventsOutOfOrderPolicy":"adjust",
155-
"eventsOutOfOrderMaxDelayInSeconds":10,
156-
"compatibilityLevel": 1.1
157-
}
158-
}
159-
```
160-
161-
Next, run the `New-AzStreamAnalyticsJob` cmdlet. Replace the value of `jobDefinitionFile` variable with the path where you've stored the job definition JSON file.
147+
Run the `New-AzStreamAnalyticsJob` cmdlet.
162148
163149
```powershell
164150
$jobName = "MyStreamingJob"
165-
$jobDefinitionFile = "C:\JobDefinition.json"
151+
$resourceGroup = "MyResourceGroup"
166152
New-AzStreamAnalyticsJob `
167153
-ResourceGroupName $resourceGroup `
168-
-File $jobDefinitionFile `
169154
-Name $jobName `
170-
-Force
155+
-Location centralus `
156+
-SkuName Standard
171157
```
172158

173159
## Configure input to the job

0 commit comments

Comments
 (0)