-
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
azurerm_cognitive_account
: allows bypass
property for network_acls
#28221
azurerm_cognitive_account
: allows bypass
property for network_acls
#28221
Conversation
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 for this @feliperezende-barbos. This is looking good so far. Could we also add additional test steps to set this to AzureServices
and back to None
so we can confirm that updating this property works as expected? Thanks!
Sure, I just added one more validation test for |
ccfdb01
to
d9ce215
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.
Thanks for updating the tests @feliperezende-barbosa. I had a look at the results and it appears we have a failure, but once that is addressed I can take another look. Thanks!
------- Stdout: -------
=== RUN TestAccCognitiveAccount_networkAcls
=== PAUSE TestAccCognitiveAccount_networkAcls
=== CONT TestAccCognitiveAccount_networkAcls
testcase.go:173: Step 1/6 error: Error running apply: exit status 1
Error: creating Account (Subscription: "*******"
Resource Group Name: "acctestRG-cognitive-241219155302861835"
Account Name: "acctestcogacc-241219155302861835"): unexpected status 400 (400 Bad Request) with error: NetworkAclsBypassNotSupported: The Kind 'Face' does not support Trusted Services.
with azurerm_cognitive_account.test,
on terraform_plugin_test.tf line 68, in resource "azurerm_cognitive_account" "test":
68: resource "azurerm_cognitive_account" "test" {
--- FAIL: TestAccCognitiveAccount_networkAcls (177.11s)
FAIL
I realized you had tested the |
d9ce215
to
91b2500
Compare
Thanks for your reply @feliperezende-barbosa. My concern is that adding this property seems to be affecting existing configurations which are not using the |
91b2500
to
3034fb8
Compare
3034fb8
to
11bf9e4
Compare
Thanks @catriona-m, it had the risk of affecting the existing configurations that are not using and do not support it. I've added more tests and one more validating an error that does not support the Results of the tests:
|
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 for updating this @feliperezende-barbosa - I have left one query inline but I can take another look once that is addressed. Thanks!
Sorry about that @feliperezende-barbosa - not sure how it got lost, but I've added the comment again now! |
11bf9e4
to
16a3d53
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.
Thanks for updating this @feliperezende-barbosa - I had another look through and left a couple more suggestions for you to consider, let me know what you think. Thanks!
16a3d53
to
fa1c7b1
Compare
Thanks for the suggestions. I've applied them. |
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 for making the requested changes on this @feliperezende-barbosa - LGTM!
* Update for #27950 * Update for #27824 * Update for #28592 #28583 #28599 #28590 #28453 * Update #28528 * Update for #27853 * Update CHANGELOG.md #28221 * Update for #27760 * Update CHANGELOG.md #28480 * Update CHANGELOG.md typo * Update CHANGELOG.md #28372 * Update CHANGELOG.md for #26047 also alphabetised ENHANCEMENTS * Update for #28146 * Update CHANGELOG.md #28013 * Update CHANGELOG.md for #28492 * Update CHANGELOG.md for #28648 * Update CHANGELOG.md for #28549 * Update for #28469 #28620 * prep for release * i touched it last --------- Co-authored-by: catriona-m <[email protected]> Co-authored-by: jackofallops <[email protected]> Co-authored-by: sreallymatt <[email protected]> Co-authored-by: Matthew Frahry <[email protected]> Co-authored-by: jackofallops <[email protected]>
* Update for hashicorp#27950 * Update for hashicorp#27824 * Update for hashicorp#28592 hashicorp#28583 hashicorp#28599 hashicorp#28590 hashicorp#28453 * Update hashicorp#28528 * Update for hashicorp#27853 * Update CHANGELOG.md hashicorp#28221 * Update for hashicorp#27760 * Update CHANGELOG.md hashicorp#28480 * Update CHANGELOG.md typo * Update CHANGELOG.md hashicorp#28372 * Update CHANGELOG.md for hashicorp#26047 also alphabetised ENHANCEMENTS * Update for hashicorp#28146 * Update CHANGELOG.md hashicorp#28013 * Update CHANGELOG.md for hashicorp#28492 * Update CHANGELOG.md for hashicorp#28648 * Update CHANGELOG.md for hashicorp#28549 * Update for hashicorp#28469 hashicorp#28620 * prep for release * i touched it last --------- Co-authored-by: catriona-m <[email protected]> Co-authored-by: jackofallops <[email protected]> Co-authored-by: sreallymatt <[email protected]> Co-authored-by: Matthew Frahry <[email protected]> Co-authored-by: jackofallops <[email protected]>
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 PR implements the
network_acls.bypass
property forazurerm_coginitive_account
. Azure Services for Azure OpenAIPR 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
- support for thebypass
trusted Azure Services property [GH-28221]This is a (please select all that apply):
Related Issue(s)
Fixes #28304
Note
If this PR changes meaningfully during the course of review please update the title and description as required.