# Synapse Managed Private Endpoint - auto\_approval option

**URL:** <https://discuss.hashicorp.com/t/synapse-managed-private-endpoint-auto-approval-option/25238>\
**Category:** Azure\
**Created:** [June 9, 2021, 11:55am UTC](https://discuss.hashicorp.com/t/synapse-managed-private-endpoint-auto-approval-option/25238 "2021-06-09T11:55:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![SureshBettadapur](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/sureshbettadapur/32/14642_2.png) [@SureshBettadapur](https://discuss.hashicorp.com/u/SureshBettadapur)\
**Post date:** [June 9, 2021, 11:55am UTC](https://discuss.hashicorp.com/t/synapse-managed-private-endpoint-auto-approval-option/25238/1 "2021-06-09T11:55:44Z")

</div>

Hello Friends

I have a question for implementing an Azure service using Terraform.

I am trying to create Synapse Managed Private Endpoint for a Storage account using Terraform script. The module doesn’t have the sub-resource block to enable auto-approval of private endpoint in the target resource. As we are implementing infrastructure fully using automation scripts, looking for some ways of achieving this.

resource “azurerm\_synapse\_managed\_private\_endpoint” “example” {  
name = “example-endpoint”  
synapse\_workspace\_id = azurerm\_synapse\_workspace.example.id  
target\_resource\_id = azurerm\_storage\_account.example\_connect.id  
subresource\_name = “blob”

depends\_on = [azurerm\_synapse\_firewall\_rule.example]  
}

---

<div class="post-metadata">

**Author:** ![djpirra](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/djpirra/32/18946_2.png) [@djpirra](https://discuss.hashicorp.com/u/djpirra)\
**Post date:** [August 23, 2021, 8:19pm UTC](https://discuss.hashicorp.com/t/synapse-managed-private-endpoint-auto-approval-option/25238/2 "2021-08-23T20:19:38Z")

</div>

> [@SureshBettadapur](#):
>
> mplementing infrastructure fully using automation scripts, looking for some ways of achieving this

Hi, I am actually looking for the same. Did you happen to find a solution?

Thank you

Regards,  
LS
