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 for Managed Identity on the azurerm_stream_analytics_stream_input_blob Resource #27837

Open
1 task done
dawsonar802 opened this issue Oct 31, 2024 · 2 comments
Open
1 task done

Comments

@dawsonar802
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 comments along the lines of "+1", "me too" or "any updates", 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 and review the contribution guide to help.

Description

Currently it looks like in the azurerm_stream_analytics_stream_input_blob resource it is not possible to set the authentication_mode to be Msi so it defaults to ConnectionString. Unfortunately, this does not work in some needed scenarios where the MSI is needed.

The odd thing is the "Reference" version of this resource azurerm_stream_analytics_reference_input_blob does seem to support using Autherntication_Mode.

The API Support AuthenticationMode - https://learn.microsoft.com/en-us/rest/api/streamanalytics/inputs/create-or-replace?view=rest-streamanalytics-2020-03-01&tabs=HTTP#authenticationmode

I was also able to deploy successfully using the AzAPI Provider.

Note - There may be other Stream Analytics resources that can be updated as well.

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

azurerm_stream_analytics_stream_input_blob

Potential Terraform Configuration

resource "azurerm_stream_analytics_stream_input_blob" "example" {
  name                      = "blob-stream-input"
  stream_analytics_job_name = data.azurerm_stream_analytics_job.example.name
  resource_group_name       = data.azurerm_stream_analytics_job.example.resource_group_name
  storage_account_name      = azurerm_storage_account.example.name
  storage_account_key       = azurerm_storage_account.example.primary_access_key
  storage_container_name    = azurerm_storage_container.example.name
  path_pattern              = "some-random-pattern"
  date_format               = "yyyy/MM/dd"
  time_format               = "HH"
  authentication_mode       = "Msi"

  serialization {
    type     = "Json"
    encoding = "UTF8"
  }
}

References

No response

@jiaweitao001
Copy link
Contributor

jiaweitao001 commented Nov 1, 2024

Hi @dawsonar802 , I've submitted a PR for supporting this.

@dawsonar802
Copy link
Author

Hi @dawsonar802 , I've submitted a PR for supporting this.

Thank you @jiaweitao001 , much appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants