-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
azurerm_log_analytics_linked_storage_account - data_storage_type - case validation #16234
Comments
Do we know whether this is a Terraform or Azure API issue? |
this is still happening on provider version 3.16
and of course the obligatory:
I understand this is an older version of terraform binary |
Hi @w0rldart and @capusta , thanks for the comment.
if there is still diff ( |
Thank you for your reply @teowa, but besides updating the Terraform provider version to |
@w0rldart thanks for the update. Seems I cannot repro your issue by creating a new linkedStorageAccount resource with the latest azurerm provider
And please check if the |
@teowa since I have the same issue, I checked via the API. I'm running 3.19.1 as well. I get the following `> curl -X GET -H "Authorization: Bearer $tk" -H "Content-Type:application/json" -H "Accept:application/json" https://management.azure.com//subscriptions/1234*****/resourceGroups/test-e3a644d5/providers/Microsoft.OperationalInsights/workspaces/test-law/linkedStorageAccounts/customlogs\?api-version\=2020-08-01 {"properties":{"dataSourceType":"CustomLogs","storageAccountIds":["/subscriptions/1234*****/resourceGroups/test-e3a644d5/providers/Microsoft.Storage/storageAccounts/satest00"]},"location":"northcentralus","id":"/subscriptions/1234*****/resourceGroups/test-e3a644d5/providers/Microsoft.OperationalInsights/workspaces/test-law/linkedstorageaccounts/CustomLogs","name":"CustomLogs","type":"Microsoft.OperationalInsights/workspaces/linkedstorageaccounts"}%` |
still having the same issue :( I have done a refresh.
|
The issue is releated to service API issue Azure/azure-rest-api-specs#20619, cases sensitivity differs with locations. |
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. |
Is there an existing issue for this?
Community Note
Terraform Version
1.1.7
AzureRM Provider Version
3.0.2
Affected Resource(s)/Data Source(s)
azurerm_log_analytics_linked_storage_account
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
Plans and applies ok every time
Actual Behaviour
Plans and applies ok the first time without issue
but on subsequent plans and applies gives the above output.
It looks like the case of data_source_type is being changed by the API upon apply
If you change the code to be
You get the following validation error
Error: expected data_source_type to be one of [customlogs azurewatson query alerts ingestion], got CustomLogs
Steps to Reproduce
No response
Important Factoids
No response
References
No response
The text was updated successfully, but these errors were encountered: