title | description | services | ms.service | author | ms.author | ms.workload | ms.topic | ms.custom | ms.date |
---|---|---|---|---|---|---|---|---|---|
Quickstart - Create an Azure Stream Analytics job by Azure Resource Manager template |
This quickstart shows how to use the Azure Resource Manager template to create an Azure Stream Analytics job. |
stream-analytics |
stream-analytics |
sidramadoss |
sidram |
big-data |
quickstart |
mvc, subject-armqs, devx-track-azurepowershell, mode-arm |
05/28/2020 |
In this quickstart, you use an Azure Resource Manager template (ARM template) to create an Azure Stream Analytics job. Once the job is created, you validate the deployment.
[!INCLUDE About Azure Resource Manager]
If your environment meets the prerequisites and you're familiar with using ARM templates, select the Deploy to Azure button. The template will open in the Azure portal.
To complete this article, you need to:
- Have an Azure subscription - create one for free.
The template used in this quickstart is from Azure Quickstart Templates.
:::code language="json" source="~/quickstart-templates/quickstarts/microsoft.streamanalytics/streamanalytics-create/azuredeploy.json":::
The Azure resource defined in the template is Microsoft.StreamAnalytics/StreamingJobs: create an Azure Stream Analytics job.
In this section, you create an Azure Stream Analytics job using the ARM template.
-
Select the following image to sign in to Azure and open a template. The template creates an Azure Stream Analytics job.
-
Provide the required values to create your Azure Stream Analytics job.
Provide the following values:
Property Description Subscription From the drop-down, select your Azure subscription. Resource group Specify whether you want to create a new resource group or use an existing one. A resource group is a container that holds related resources for an Azure solution. For more information, see Azure Resource Group overview. Region Select East US. For other available regions, see Azure services available by region. Stream Analytics Job Name Provide a name for your Stream Analytics job. Number of Streaming Units Choose the number of streaming units you need. For more information, see Understand and adjust Streaming Units. -
Select Review + Create, then Create.
You can either use the Azure portal to check the Azure Stream Analytics job or use the following Azure CLI or Azure PowerShell script to list the resource.
echo "Enter your Azure Stream Analytics job name:" &&
read streamAnalyticsJobName &&
echo "Enter the resource group where the Azure Stream Analytics job exists:" &&
read resourcegroupName &&
az stream-analytics job show -g $resourcegroupName -n $streamAnalyticsJobName
$resourceGroupName = Read-Host -Prompt "Enter the resource group name where your Azure Stream Analytics job exists"
(Get-AzResource -ResourceType "Microsoft.StreamAnalytics/StreamingJobs" -ResourceGroupName $resourceGroupName).Name
Write-Host "Press [ENTER] to continue..."
If you plan to continue on to subsequent tutorials, you may wish to leave these resources in place. When no longer needed, delete the resource group, which deletes the Azure Stream Analytics job. To delete the resource group by using Azure CLI or Azure PowerShell:
echo "Enter the Resource Group name:" &&
read resourceGroupName &&
az group delete --name $resourceGroupName &&
echo "Press [ENTER] to continue ..."
$resourceGroupName = Read-Host -Prompt "Enter the Resource Group name"
Remove-AzResourceGroup -Name $resourceGroupName
Write-Host "Press [ENTER] to continue..."
In this quickstart, you created an Azure Stream Analytics job by using an ARM template and validated the deployment. Advance to the next article to learn how to export an ARM template for an existing job using VS Code.
[!div class="nextstepaction"] Export an Azure Stream Analytics job ARM template