Azure Stream Analytics Output Blob

This page shows how to write Terraform and Azure Resource Manager for Stream Analytics Output Blob and write them securely.

azurerm_stream_analytics_output_blob (Terraform)

The Output Blob in Stream Analytics can be configured in Terraform with the resource name azurerm_stream_analytics_output_blob. The following sections describe 6 examples of how to use the resource and its parameters.

Example Usage from GitHub

main.tf#L55
resource "azurerm_stream_analytics_output_blob" "storejob" {
  name                      = "blobstorage"
  stream_analytics_job_name = azurerm_stream_analytics_job.asajob.name
  resource_group_name       = "_resource_group_name_"
  storage_account_name      = "_storage_account_name_"
  storage_account_key       = "_storage_account_key_"
main.tf#L160
resource "azurerm_stream_analytics_output_blob" "prodbs" {
  name                      = "blobstorage"
  stream_analytics_job_name = azurerm_stream_analytics_job.asa.name
  resource_group_name       = azurerm_resource_group.rg.name
  storage_account_name      = azurerm_storage_account.sa.name
  storage_account_key       = azurerm_storage_account.sa.primary_access_key
main.tf#L7
resource "azurerm_stream_analytics_output_blob" "this" {
  date_format               = var.date_format
  name                      = var.name
  path_pattern              = var.path_pattern
  resource_group_name       = var.resource_group_name
  storage_account_key       = var.storage_account_key
main.tf#L7
resource "azurerm_stream_analytics_output_blob" "this" {
  date_format               = var.date_format
  name                      = var.name
  path_pattern              = var.path_pattern
  resource_group_name       = var.resource_group_name
  storage_account_key       = var.storage_account_key
main.tf#L51
resource "azurerm_stream_analytics_output_blob" "prodbs" {
  name                      = "__asa_output_name__"
  stream_analytics_job_name = azurerm_stream_analytics_job.asa.name
  resource_group_name       = "__rg_name__"
  storage_account_name      = "__sa_name__"
  storage_account_key       = "__sa_key__"
main.tf#L55
resource "azurerm_stream_analytics_output_blob" "stream_output" {
  name                      = var.stream_output_name
  stream_analytics_job_name = azurerm_stream_analytics_job.job.name
  resource_group_name       = var.resource_group_name
  storage_account_name      = data.azurerm_storage_account.storage_account.name
  storage_account_key       = data.azurerm_storage_account.storage_account.primary_access_key

Review your Terraform file for Azure best practices

Shisho Cloud, our free checker to make sure your Terraform configuration follows best practices, is available (beta).

Parameters

Explanation in Terraform Registry

Manages a Stream Analytics Output to Blob Storage.

Microsoft.StreamAnalytics/streamingjobs/outputs (Azure Resource Manager)

The streamingjobs/outputs in Microsoft.StreamAnalytics can be configured in Azure Resource Manager with the resource name Microsoft.StreamAnalytics/streamingjobs/outputs. The following sections describe how to use the resource and its parameters.

Example Usage from GitHub

An example could not be found in GitHub.

Parameters

  • apiVersion required - string
  • name required - string

    The name of the output.

  • properties required
      • datasource optional
        • serialization optional
          • sizeWindow optional - number

            The size window to constrain a Stream Analytics output to.

          • timeWindow optional - string

            The time frame for filtering Stream Analytics job outputs.

      • type required - string

      Frequently asked questions

      What is Azure Stream Analytics Output Blob?

      Azure Stream Analytics Output Blob is a resource for Stream Analytics of Microsoft Azure. Settings can be wrote in Terraform.

      Where can I find the example code for the Azure Stream Analytics Output Blob?

      For Terraform, the jortegam22/StreamAnalytic, jortegam22/ArquitecturaCompleta and kevinhead/azurerm source code examples are useful. See the Terraform Example section for further details.