Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support contentStoragePolicy and jobStorageAccount in azurerm_stream_analytics_job #19018

Closed
1 task done
ThreeFive-O opened this issue Oct 27, 2022 · 3 comments
Closed
1 task done

Comments

@ThreeFive-O
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Description

Stream Analytics Job now allow to store private data assets in dedicated storage account. See Data protection in Azure Stream Analytics

Assigning a dedicated storage account for private data assets can only be done on creation of a Stream Analytics job. Not modification/update afterwards.

New or Affected Resource(s)/Data Source(s)

azurerm_stream_analytics_job

Potential Terraform Configuration

resource "azurerm_stream_analytics_job" "example" {
  name                = "asa-job-example"
  location            = "westus"
  resource_group_name = "rg-asa"

  identity {
    type = "SystemAssigned"
  }

  content_storage_policy = "JobStorageAccount" # Requires "job_storage_account" block to be present; Default: "SystemAccount"

  job_storage_account {
    account_name = "saasajobaccount"
    authentication_mode = "Msi" # Alternatively "ConnectionString"
    # account_key = "" # Only required for authentication_mode = "ConnectionString"
  }
}

References

REST API Documentation here: https://learn.microsoft.com/en-us/rest/api/streamanalytics/2020-03-01/streaming-jobs/create-or-replace?tabs=HTTP

SDK support here: https://github.com/hashicorp/go-azure-sdk/blob/0e8a0b3a8f7c2ad1ef138a40c13159ece58b3e44/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_streamingjobproperties.go#L15
and here: https://github.com/hashicorp/go-azure-sdk/blob/0e8a0b3a8f7c2ad1ef138a40c13159ece58b3e44/resource-manager/streamanalytics/2020-03-01/streamingjobs/model_streamingjobproperties.go#L15

@ThreeFive-O
Copy link
Author

Hi @neil-yechenwei, maybe you can help out here too. Thank you.

@jiaweitao001
Copy link
Contributor

PR merged. #19120

Copy link

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 25, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants