azurerm_cognitive_account data resource update - including new attributes#30778
Conversation
teowa
left a comment
There was a problem hiding this comment.
Thank you for the PR. LGTM except for a few documentation issues.
|
Thanks @promisinganuj , LGTM! |
magodo
left a comment
There was a problem hiding this comment.
Thanks for this PR!
I've taken a look through and left some comments inline, but this is mostly looking good to me 👍
|
LGTM! Thanks! |
345a470 to
64000bb
Compare
64000bb to
c6909ba
Compare
|
@WodansSon As discussed, i have skipped the two test cases. Please have a look. |
|
@magodo , I have incorporated the changes. Please have a look. |
catriona-m
left a comment
There was a problem hiding this comment.
Thanks @promisinganuj I left a couple of minor comments inline, but otherwise this is looking good. Once those are addressed I can take another look. Thanks!
| localAuthEnabled = !*props.DisableLocalAuth | ||
| d.Set("custom_subdomain_name", pointer.From(props.CustomSubDomainName)) | ||
|
|
||
| customerManagedKey, err := flattenCognitiveAccountCustomerManagedKey(props.Encryption) |
There was a problem hiding this comment.
could we create a separate function here specifically for flattening the customerManagedKey for the datasource?
There was a problem hiding this comment.
Hi @catriona-m , is there any specific reason for this? There are other similar functions which are reused such as "flattenCognitiveAccountNetworkInjection", "flattenCognitiveAccountStorage".
There was a problem hiding this comment.
it's best practice to separate these out just incase something later changes in the resource
There was a problem hiding this comment.
Got it, I have copied all the three functions within the Data Source. Please have another look.
|
Thanks @catriona-m for taking time to review the changes. I have addressed all of them accept one. Please take another look. |
|
Hi @catriona-m , I have created separate functions in the data source. Please take another look. |
catriona-m
left a comment
There was a problem hiding this comment.
Thanks @promisinganuj LGTM!
|
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. |





Community Note
Description
This change is part of a larger initiative to streamline the deployment of Azure AI Foundry (kind='AIServices') service.
Here is the complete list of proposed changes:
PR Checklist
For example: “
resource_name_here- description of change e.g. adding propertynew_property_name_here”Changes to existing Resource / Data Source
Testing
Change Log
Below please provide what should go into the changelog (if anything) conforming to the Changelog Format documented here.
azurerm_cognitive_account- export many new and existing attributes.This is a (please select all that apply):
Related Issue(s)
Fixes #0000
AI Assistance Disclosure
Rollback Plan
If a change needs to be reverted, we will publish an updated version of the provider.
Changes to Security Controls
Are there any changes to security controls (access controls, encryption, logging) in this pull request? If so, explain.
Note
If this PR changes meaningfully during the course of review please update the title and description as required.