-
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
New Resource: azurerm_log_analytics_storage_insights
#9014
Conversation
azurerm_log_analytics_storage_insight_config
azurerm_log_analytics_storage_insight_config
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @WodansSon - Insight config seems like the wrong name for this. I think it should be Storage Insights? as per documentation: https://docs.microsoft.com/en-us/rest/api/loganalytics/connectedsources/storage%20insights/listbyworkspace
azurerm/internal/services/loganalytics/log_analytics_storage_insights_config_resource.go
Outdated
Show resolved
Hide resolved
azurerm/internal/services/loganalytics/log_analytics_storage_insights_config_resource.go
Outdated
Show resolved
Hide resolved
azurerm/internal/services/loganalytics/log_analytics_storage_insights_config_resource.go
Outdated
Show resolved
Hide resolved
Optional: true, | ||
Elem: &schema.Schema{ | ||
Type: schema.TypeString, | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could we validate this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not sure what the rules are for this field 🙁
Co-authored-by: kt <[email protected]>
…b.com/terraform-providers/terraform-provider-azurerm into nr_logAnalytics_storageInsightConfigs
…form-provider-azurerm into nr_logAnalytics_storageInsightConfigs
azurerm_log_analytics_storage_insight_config
azurerm_log_analytics_storage_insights
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for pushing those changes - I've taken a look through and left a few comments inline but this otherwise LGTM 👍
Thanks!
azurerm/internal/services/loganalytics/log_analytics_storage_insights_resource.go
Outdated
Show resolved
Hide resolved
azurerm/internal/services/loganalytics/log_analytics_storage_insights_resource.go
Outdated
Show resolved
Hide resolved
azurerm/internal/services/loganalytics/log_analytics_storage_insights_resource.go
Outdated
Show resolved
Hide resolved
"storage_account_id": { | ||
Type: schema.TypeString, | ||
Required: true, | ||
ValidateFunc: storageValidate.StorageAccountID, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this not ForceNew?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The API supports update in place for the storage account value.
azurerm/internal/services/loganalytics/log_analytics_storage_insights_resource.go
Outdated
Show resolved
Hide resolved
azurerm/internal/services/loganalytics/parse/log_analytics_storage_insights.go
Outdated
Show resolved
Hide resolved
azurerm/internal/services/loganalytics/validate/log_analytics_name.go
Outdated
Show resolved
Hide resolved
@tombuildsstuff @jackofallops
NOTE: Notice how Terraform correctly preserves the users casing(e.g.
If anyone has a suggestion for a better way to fix this I am more than open to it 🙂 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
This has been released in version 2.36.0 of the provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. As an example: provider "azurerm" {
version = "~> 2.36.0"
}
# ... other configuration ... |
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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks! |
No description provided.