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

New resource azurerm_iothub_endpoint_cosmosdb_account #23065

Merged
merged 2 commits into from
Sep 8, 2023

Conversation

myc2h6o
Copy link
Contributor

@myc2h6o myc2h6o commented Aug 24, 2023

Close #20591

@myc2h6o
Copy link
Contributor Author

myc2h6o commented Aug 24, 2023

Test result
image

Copy link
Member

@catriona-m catriona-m left a comment

Choose a reason for hiding this comment

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

Thanks for this @myc2h6o - this is looking pretty good, I've left a couple of minor comments but can have another look once those get fixed up. Thanks!

}

endpoint.PrimaryKey = pointer.To(state.PrimaryKey)
endpoint.SecondaryKey = pointer.To(state.PrimaryKey)
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
endpoint.SecondaryKey = pointer.To(state.PrimaryKey)
endpoint.SecondaryKey = pointer.To(state.SecondaryKey)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

thanks for pointing this out! I've fixed it

iothub, err := client.Get(ctx, id.ResourceGroup, id.IotHubName)
if err != nil {
if utils.ResponseWasNotFound(iothub.Response) {
return nil
Copy link
Member

Choose a reason for hiding this comment

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

should we return an error here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

have added the error return

Copy link
Member

@catriona-m catriona-m left a comment

Choose a reason for hiding this comment

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

Thanks for updating @myc2h6o - LGTM 🎷

@catriona-m catriona-m merged commit 3fcb430 into hashicorp:main Sep 8, 2023
25 checks passed
catriona-m added a commit that referenced this pull request Sep 8, 2023
@github-actions github-actions bot added this to the v3.73.0 milestone Sep 8, 2023
@myc2h6o myc2h6o deleted the iothub_endpoint_cosmos branch September 8, 2023 12:06
Copy link

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 May 14, 2024
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.

CosmosDB endpoint fot Iot Hub
2 participants