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

Support for private_link_access in azurerm_storage_account #11629

Merged
merged 6 commits into from
May 12, 2021

Conversation

yupwei68
Copy link
Contributor

@yupwei68 yupwei68 commented May 8, 2021

Fix #11628

=== RUN TestAccStorageAccount_resourceAccessRules
=== PAUSE TestAccStorageAccount_resourceAccessRules
=== CONT TestAccStorageAccount_resourceAccessRules
--- PASS: TestAccStorageAccount_resourceAccessRules (465.11s)

=== RUN TestAccStorageAccountNetworkRules_resourceAccessRules
=== PAUSE TestAccStorageAccountNetworkRules_resourceAccessRules
=== CONT TestAccStorageAccountNetworkRules_resourceAccessRules
--- PASS: TestAccStorageAccountNetworkRules_resourceAccessRules (381.65s)

yupwei68 added 2 commits May 8, 2021 14:49
website/docs/r/storage_account_network_rules.html.markdown Outdated Show resolved Hide resolved
Comment on lines 97 to 99
* `resource_id` - (Required) The resource id of the `azurerm_private_endpoint` of the resource access rule.

* `tenant_id` - (Optional) The tenant id of the `azurerm_private_endpoint` of the resource access rule. Defaults to the current tenant id.
Copy link
Collaborator

Choose a reason for hiding this comment

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

if this is just for private link

Suggested change
* `resource_id` - (Required) The resource id of the `azurerm_private_endpoint` of the resource access rule.
* `tenant_id` - (Optional) The tenant id of the `azurerm_private_endpoint` of the resource access rule. Defaults to the current tenant id.
* `private_endpoint_id` - (Required) The resource id of the `azurerm_private_endpoint` of the resource access rule.
* `private_endpoint_tenant_id` - (Optional) The tenant id of the `azurerm_private_endpoint` of the resource access rule. Defaults to the current tenant id.

and maybe pulling these out to the top level?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Since there could be several private_endpoint to be connected, shall I keep the block and change the block name?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've update the acctests to connect two private endpoints.

yupwei68 added 2 commits May 10, 2021 14:03
@yupwei68
Copy link
Contributor Author

Thanks kt for your comments. Please continue reviewing.

=== RUN TestAccStorageAccount_privateEndpointAccessRules
=== PAUSE TestAccStorageAccount_privateEndpointAccessRules
=== CONT TestAccStorageAccount_privateEndpointAccessRules
--- PASS: TestAccStorageAccount_privateEndpointAccessRules (495.97s)

=== RUN TestAccStorageAccountNetworkRules_privateEndpointAccessRules
=== PAUSE TestAccStorageAccountNetworkRules_privateEndpointAccessRules
=== CONT TestAccStorageAccountNetworkRules_privateEndpointAccessRules
--- PASS: TestAccStorageAccountNetworkRules_privateEndpointAccessRules (444.25s)

@ghost ghost removed the waiting-response label May 10, 2021
@yupwei68 yupwei68 changed the title Support for resource_access_rules in azurerm_storage_account Support for private_link_access in azurerm_storage_account May 11, 2021
@yupwei68
Copy link
Contributor Author

Thanks kt for your comments. Please continue reviewing.

--- PASS: TestAccStorageAccountNetworkRules_privateLinkAccess (407.79s)
--- PASS: TestAccStorageAccount_privateLinkAccess (477.28s)

@yupwei68 yupwei68 requested a review from katbyte May 11, 2021 03:15
Copy link
Collaborator

@katbyte katbyte left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@katbyte katbyte added this to the v2.59.0 milestone May 12, 2021
@katbyte katbyte merged commit 8e2dbce into hashicorp:master May 12, 2021
katbyte added a commit that referenced this pull request May 12, 2021
@yupwei68 yupwei68 deleted the wyp-storage-acc3 branch May 13, 2021 03:04
@ghost
Copy link

ghost commented May 14, 2021

This has been released in version 2.59.0 of the provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. As an example:

provider "azurerm" {
    version = "~> 2.59.0"
}
# ... other configuration ...

favoretti pushed a commit to gro1m/terraform-provider-azurerm that referenced this pull request May 26, 2021
…corp#11629)

Fix hashicorp#11628

=== RUN TestAccStorageAccount_resourceAccessRules
=== PAUSE TestAccStorageAccount_resourceAccessRules
=== CONT TestAccStorageAccount_resourceAccessRules
--- PASS: TestAccStorageAccount_resourceAccessRules (465.11s)

=== RUN TestAccStorageAccountNetworkRules_resourceAccessRules
=== PAUSE TestAccStorageAccountNetworkRules_resourceAccessRules
=== CONT TestAccStorageAccountNetworkRules_resourceAccessRules
--- PASS: TestAccStorageAccountNetworkRules_resourceAccessRules (381.65s)
favoretti pushed a commit to gro1m/terraform-provider-azurerm that referenced this pull request May 26, 2021
@github-actions
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 Jun 14, 2021
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.

Support for private endpoint in azurerm_storage_account
2 participants