Skip to content
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

add resource "azurerm_cognitive_account_customer_managed_key" #12901

Conversation

ms-henglu
Copy link
Contributor

@ms-henglu ms-henglu commented Aug 9, 2021

image

I re-write this CMK resource. I contacted with service team, that we can set keysource to Microsoft.CognitiveServices to disable CMK feature without re-recreate cognitive account.

@ms-henglu ms-henglu force-pushed the ticket-1853930-enhancement-cognitive-account-cmk-new branch from 29a9796 to 0896d0f Compare August 9, 2021 06:01
Copy link
Contributor

@tombuildsstuff tombuildsstuff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hi @ms-henglu

Thanks for reaching out to the service team here - I've taken a look through and left some comments inline, if we can fix those up then we should be able to take another look.

Thanks!

@tombuildsstuff
Copy link
Contributor

@ms-henglu can you also reach out to the EventHub team too? Whilst I've looked to add the same fix to EventHub Namespaces here: https://github.com/terraform-providers/terraform-provider-azurerm/compare/b/eventhub-cmk - at the moment this returns Original Error: Code="BadRequest" Message="Microsoft.KeyVault is currently the only supported key source. CorrelationId: f11bcb7e-fced-d75c-ede3-c8fff76bd7c8" from the API - as such we'll need to get that fixed (or remove support for that resource)

@ms-henglu
Copy link
Contributor Author

@tombuildsstuff , Hi, thanks for code review. I've added a commit according to your suggestions, please take another look, thanks!

@ms-henglu
Copy link
Contributor Author

can you also reach out to the EventHub team too?

No problem.

Copy link
Contributor

@tombuildsstuff tombuildsstuff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hi @ms-henglu

Thanks for pushing those changes - I've taken a look through and left a few more comments inline but this otherwise LGTM 👍

Thanks!

@ms-henglu
Copy link
Contributor Author

@tombuildsstuff . thanks! I've added a commit to fix them, please take another look, thanks!

@katbyte katbyte modified the milestones: v2.73.0, v2.74.0 Aug 19, 2021
@katbyte katbyte modified the milestones: v2.74.0, v2.75.0 Aug 27, 2021
Copy link
Collaborator

@katbyte katbyte left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ms-henglu - seeing a test failure:

------- Stdout: -------
=== RUN   TestAccCognitiveAccountCustomerManagedKey_complete
=== PAUSE TestAccCognitiveAccountCustomerManagedKey_complete
=== CONT  TestAccCognitiveAccountCustomerManagedKey_complete
    testcase.go:88: Step 1/2 error: Error running apply: exit status 1
        
        Error: Provider produced inconsistent result after apply
        
        When applying changes to azurerm_cognitive_account_customer_managed_key.test,
        provider "provider[\"registry.terraform.io/hashicorp/azurerm\"]" produced an
        unexpected new value: Root resource was present, but now absent.
        
        This is a bug in the provider, which should be reported in the provider's own
        issue tracker.
--- FAIL: TestAccCognitiveAccountCustomerManagedKey_complete (371.05s)
FAIL

@ms-henglu
Copy link
Contributor Author

@katbyte , Hi, all passed.
image

Copy link
Collaborator

@katbyte katbyte left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @ms-henglu - LGTM 🍰

@katbyte katbyte merged commit 2679800 into hashicorp:main Aug 31, 2021
katbyte added a commit that referenced this pull request Aug 31, 2021
@github-actions
Copy link

github-actions bot commented Sep 2, 2021

This functionality has been released in v2.75.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!

@ms-henglu
Copy link
Contributor Author

@ms-henglu can you also reach out to the EventHub team too? Whilst I've looked to add the same fix to EventHub Namespaces here: https://github.com/terraform-providers/terraform-provider-azurerm/compare/b/eventhub-cmk - at the moment this returns Original Error: Code="BadRequest" Message="Microsoft.KeyVault is currently the only supported key source. CorrelationId: f11bcb7e-fced-d75c-ede3-c8fff76bd7c8" from the API - as such we'll need to get that fixed (or remove support for that resource)

@tombuildsstuff , Hi, I've talked with service team and they have no plan to support this feature.

@github-actions
Copy link

github-actions bot commented Oct 7, 2021

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.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 7, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants