hashicorp / terraform-provider-azurerm

Terraform provider for Azure Resource Manager
https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs
Mozilla Public License 2.0
4.52k stars 4.6k forks source link

Support for Stream Analytics storage account settings #8886

Open ggmahyar opened 3 years ago

ggmahyar commented 3 years ago

Community Note

Description

A Storage Account is needed for an Stream Analytic Job to run, if the output is set to Synapse. In contact with Mircosoft we found out that it is already implemented in ARM and .net SDK but the setting is not yet possible via Azure CLI. We want to continue using azurerm_stream_analytics_job and refrain deploying with ARM template.

New or Affected Resource(s)

And in this point of the ARM Template

    {
      "type": "Microsoft.StreamAnalytics/StreamingJobs",
      "apiVersion": "2017-04-01-preview",
      "name": "${job_name}",
      "location": "${location}",
      "properties": {
        "sku": {
          "name": "${sku}"
        },
...
        "jobStorageAccount": {
          "accountName": "${job_storage_account_name}",
          "accountKey": "${job_storage_account_key}"
        }
...
      }
    }

Potential Terraform Configuration

resource "azurerm_stream_analytics_job" "example" {
  name                                     = "example-job"
  resource_group_name                      = var.name
  location                                 = var.location
...
  storage_account = {
     name = var.storage_account_name
     key    = var.storage_account_key
   }
}

References

ZAHEERPASHA commented 3 years ago

we want to configure storage account settings with Azure stream analytics job using Terraform. Can someone help us with the code snippet.

Avalaxy commented 2 years ago

Huh, is this still open? TF Azurerm has so many possible inputs/outputs for asa now, but can't use them because it's impossible to configure a storage account? Or is there a workaround?

Avalaxy commented 1 year ago

@katbyte do you know if this issue is on the radar? It's what is still preventing us for using Terraform for Azure Stream Analytics.