-
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_machine_learning_datastore_blobstorage
#19909
Conversation
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.
have a test failure, the delete might need to wait
------- Stdout: -------
=== RUN TestAccMachineLearningDataStoreBlobStorage_Update
=== PAUSE TestAccMachineLearningDataStoreBlobStorage_Update
=== CONT TestAccMachineLearningDataStoreBlobStorage_Update
testing_new.go:84: Error running post-test destroy, there may be dangling resources: exit status 1
Error: deleting Resource Group "acctestRG-ml-230109183301437055": the Resource Group still contains Resources.
Terraform is configured to check for Resources within the Resource Group when deleting the Resource Group - and
raise an error if nested Resources still exist to avoid unintentionally deleting these Resources.
Terraform has detected that the following Resources still exist within the Resource Group:
* `/subscriptions/*******/resourceGroups/acctestRG-ml-230109183301437055/providers/microsoft.alertsmanagement/smartDetectorAlertRules/Failure Anomalies - acctestai-230109183301437055`
* `/subscriptions/*******/resourceGroups/acctestRG-ml-230109183301437055/providers/microsoft.insights/actiongroups/Application Insights Smart Detection`
This feature is intended to avoid the unintentional destruction of nested Resources provisioned through some
other means (for example, an ARM Template Deployment) - as such you must either remove these Resources, or
disable this behaviour using the feature flag `prevent_deletion_if_contains_resources` within the `features`
block when configuring the Provider, for example:
provider "azurerm" {
features {
resource_group {
prevent_deletion_if_contains_resources = false
}
}
}
When that feature flag is set, Terraform will skip checking for any Resources within the Resource Group and
delete this using the Azure API directly (which will clear up any nested resources).
More information on the `features` block can be found in the documentation:
https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs#features
--- FAIL: TestAccMachineLearningDataStoreBlobStorage_Update (1284.92s)
FAIL
@katbyte Machine learning workspace blob store APIs only have sync APIs. Test failure is because the application insight triggering the smart detection alert which is not covered by this PR. Do we need to fix 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.
Thanks for this @xuzhang3. I left some suggestions in-line, also this resource still needs to be converted to a typed resource as requested in the review comment left on the initial PR
internal/services/machinelearning/machine_learning_datastore_blobstorage_resource.go
Outdated
Show resolved
Hide resolved
internal/services/machinelearning/machine_learning_datastore_blobstorage_resource.go
Outdated
Show resolved
Hide resolved
internal/services/machinelearning/machine_learning_datastore_blobstorage_resource.go
Outdated
Show resolved
Hide resolved
internal/services/machinelearning/machine_learning_datastore_blobstorage_resource.go
Outdated
Show resolved
Hide resolved
internal/services/machinelearning/machine_learning_datastore_blobstorage_resource.go
Outdated
Show resolved
Hide resolved
website/docs/r/machine_learning_datastore_blogstorage.html.markdown
Outdated
Show resolved
Hide resolved
internal/services/machinelearning/machine_learning_datastore_blobstorage_resource.go
Outdated
Show resolved
Hide resolved
internal/services/machinelearning/machine_learning_datastore_blobstorage_resource.go
Outdated
Show resolved
Hide resolved
internal/services/machinelearning/machine_learning_datastore_blobstorage_resource.go
Outdated
Show resolved
Hide resolved
@stephybun Thanks for reviewing this PR. Refactored into typed resource. |
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 functionality has been released in v3.40.0 of the Terraform Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions. |
New resource for Machine learning workspace data store - blob storage