-
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
Support for permanently-delete in azurerm_machine_learning_workspace #22171
Comments
I was just about to open this issue as well. As we have automated jobs that create and destroy our machine learning development & test infrastructure on a daily basis, our setup is currently broken until such a feature is implemented. |
My automation is currently broken now and either "azurerm_machine_learning_workspace" or "machine_learning_workspace" are not supported in features block. |
HashiCorp internal reference IPL-4256 (Terraform Support) |
Until it's supported I ended up just using: echo "Deleting ml workspace outside of terraform : https://github.com/hashicorp/terraform-provider-azurerm/issues/22171"
az login --service-principal -u $ARM_CLIENT_ID -p $ARM_CLIENT_SECRET --tenant $ARM_TENANT_ID -o none
az extension add --name ml
az ml workspace delete --name workspacename --resource-group rgname -resources --yes --permanently-delete
echo "Initializing Terraform..."
terraform -chdir=terraform init
echo "Destroying Terraform configuration..."
terraform -chdir=terraform destroy -auto-approve |
@sharccc can you give an update please? Is that support coming any time soon? |
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
Any info on this, we are currently also seeing a demand for full deletion of the azure machine learning workspace. |
potentially fixed via #25624 |
Closed by #25624 |
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
Description
Azure recently added a new feature soft-deletion for Azure Machine Learning Workspaces (https://learn.microsoft.com/en-us/azure/machine-learning/concept-soft-delete?view=azureml-api-2).
With this feature you need to hard-delete the ML workspace before you can re-create the workspace with the same name again (e.g. in pipelines).
It would be really helpful if you could also integrate the permanantly-delete option (https://learn.microsoft.com/en-us/cli/azure/ml/workspace?view=azure-cli-latest#az-ml-workspace-delete) in Terraform.
New or Affected Resource(s)/Data Source(s)
azurerm_machine_learning_workspace
Potential Terraform Configuration
Maybe it can be solved with a similar feature as with the KeyVault (https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/key_vault):
The text was updated successfully, but these errors were encountered: