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

fix(azure_link_account): add update capability for all fields in azure cloud link account #1242

Merged
merged 1 commit into from
Oct 28, 2024

Conversation

vagrawal-newrelic
Copy link
Contributor

@vagrawal-newrelic vagrawal-newrelic commented Oct 25, 2024

Please include a summary of the change and which issue is fixed (if relevant).

earlier newrelic_azure_link_account resource was providing only renaming of the link account feature. This PR include changes which will allow users to update all the fields for the resource.
These changes are done as a part of this help request.

jira ticket: https://new-relic.atlassian.net/browse/NR-323227

Fixes # (issue)

Type of change
Please delete options that are not relevant.

Bug fix (non-breaking change which fixes an issue)
New feature (non-breaking change which adds functionality)
Breaking change (fix or feature that would cause existing functionality to not work as expected)
This change requires a documentation update
Checklist:
Please delete options that are not relevant.

My commit message follows conventional commits
My code is formatted to Go standards
I have performed a self-review of my own code
I have made corresponding changes to the documentation
I have added tests that prove my fix is effective or that my feature works
New and existing unit tests pass locally with my changes. Go here for instructions on running tests locally.

@vagrawal-newrelic vagrawal-newrelic changed the title Cloud update account fix(azure_link_account): add update capability for all fields in azure cloud link account Oct 25, 2024
…e link account

fix(azure link account): remove argument override

fix(azure link account): add update capability for all fields in azure cloud link account
Comment on lines +480 to +483
exclude_fields:
- "integration"
- "integrations"
- "provider"
Copy link
Member

@pranav-new-relic pranav-new-relic Oct 25, 2024

Choose a reason for hiding this comment

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

why this 🤔 (am I missing something)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

in the response linkedAccounts some arguments have mandatory fields. Due to which I was getting error expected int but got nil( Please refer to the image- id field is mandatory for the integration argument )
As we don't require any field from these arguments for the update functionality so excluded it!
image

Please note we are saving only the below fields in the terraform state.
image

@vagrawal-newrelic vagrawal-newrelic merged commit 56b7f44 into main Oct 28, 2024
11 of 12 checks passed
@vagrawal-newrelic vagrawal-newrelic deleted the cloud-update-account branch October 28, 2024 11:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants