-
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
Cannot delete Azure DPS using Service Principal #3955
Comments
Hey @ezhaar, I'm unable to reproduce this with the information you provided. Do you mind running through this again with |
@mbfrahry I have tested this with several SP's and I can reproduce the bug every time. Debug logs are here: https://gist.github.com/ezhaar/e744ec8065638e20718901bf4776a673 (removed tenant, subscription and client ids) |
Hey @ezhaar, found and fixed! Thanks for submitting the logs. This will go out in the next release |
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! |
This issue was originally opened by @ezhaar as hashicorp/terraform#22228. It was migrated here as a result of the provider split. The original body of the issue is below.
Terraform Version
Terraform Configuration Files
Expected Behavior
terraform destroy
should succeedActual Behavior
The scope is wrong i.e.
/subscriptions/<subscription_id>/resourceGroups/tf-test-dps/providers/Microsoft.Devices/provisioningServices/tf-test-rg
should be
/subscriptions/<subscription_id>/resourceGroups/tf-test-rg/providers/Microsoft.Devices/provisioningServices/tf-test-dps
The names of the resource group and dps instance are in the wrong position and must be swapped.
Steps to Reproduce
Additional Context
The DPS can be deleted using the same client_id from the CLI
The text was updated successfully, but these errors were encountered: