-
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
add resource "azurerm_cognitive_account_customer_managed_key" #12901
add resource "azurerm_cognitive_account_customer_managed_key" #12901
Conversation
29a9796
to
0896d0f
Compare
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.
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!
internal/services/cognitive/cognitive_account_customer_managed_key_resource.go
Outdated
Show resolved
Hide resolved
internal/services/cognitive/cognitive_account_customer_managed_key_resource.go
Outdated
Show resolved
Hide resolved
internal/services/cognitive/cognitive_account_customer_managed_key_resource.go
Outdated
Show resolved
Hide resolved
internal/services/cognitive/cognitive_account_customer_managed_key_resource.go
Outdated
Show resolved
Hide resolved
internal/services/cognitive/cognitive_account_customer_managed_key_resource.go
Show resolved
Hide resolved
website/docs/r/cognitive_account_customer_managed_key.html.markdown
Outdated
Show resolved
Hide resolved
website/docs/r/cognitive_account_customer_managed_key.html.markdown
Outdated
Show resolved
Hide resolved
internal/services/cognitive/cognitive_account_customer_managed_key_resource_test.go
Outdated
Show resolved
Hide resolved
internal/services/cognitive/cognitive_account_customer_managed_key_resource_test.go
Outdated
Show resolved
Hide resolved
internal/services/cognitive/cognitive_account_customer_managed_key_resource_test.go
Outdated
Show resolved
Hide resolved
@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 |
@tombuildsstuff , Hi, thanks for code review. I've added a commit according to your suggestions, please take another look, thanks! |
No problem. |
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.
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!
internal/services/cognitive/cognitive_account_customer_managed_key_resource_test.go
Outdated
Show resolved
Hide resolved
website/docs/r/cognitive_account_customer_managed_key.html.markdown
Outdated
Show resolved
Hide resolved
website/docs/r/cognitive_account_customer_managed_key.html.markdown
Outdated
Show resolved
Hide resolved
@tombuildsstuff . thanks! I've added a commit to fix them, please take another look, thanks! |
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.
@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
@katbyte , Hi, all passed. |
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 @ms-henglu - LGTM 🍰
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! |
@tombuildsstuff , Hi, I've talked with service team and they have no plan to support this feature. |
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. |
I re-write this CMK resource. I contacted with service team, that we can set
keysource
toMicrosoft.CognitiveServices
to disable CMK feature without re-recreate cognitive account.