question

PATRICIAFUENTES-7392 avatar image
0 Votes"
PATRICIAFUENTES-7392 asked PATRICIAFUENTES-7392 commented

How to automatice in AzureDevops the creation of a synapse managed private endpoint across environments?

Hi, I have created a synapse managed private endpoint in synapse studio, and I don't find the proper documentation to create this by AzureDevops CICD pipeline for non-development environment.

The only docu I have found is regarding the ps script New-AzSynapseManagedPrivateEndpoint, but it requires a definition file which is not described in the docu.

azure-synapse-analytics
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

SaurabhSharma-msft avatar image
0 Votes"
SaurabhSharma-msft answered PATRICIAFUENTES-7392 commented

Hi @patriciafuentes-7392,

Thanks for using Microsoft Q&A!!
If my understanding is correct you want to create a managed private endpoint using PowerShell cmdlet which you want to use in the Azure DevOps automation.
I agree with you that the documentation doesn't talk about the definition file. I will provide your feedback internally to the CLI team to provide clarity on the documentation, however, you can use the definition json file in the below format to create a managed private endpoint.

 {
     "name": "AzureBlobStoragePE",
     "properties": {
         "privateLinkResourceId": "/subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/providers/Microsoft.Storage/storageAccounts/{StorageAccountName}",
         "groupId": "blob"
     }
 }

Cmdlet Output using the above json file
176004-image.png

Above json will create private endpoint against a storage account. You need to change the privateLinkResourceId and groupId based on the resource type you are using.
For example -
If you want to create for Datalake Storage then you need to use change groupId to dfs and add fqdns property with the corresponding server details.

Also, groupId is the type of sub-resource that your private endpoint will be able to access e.g. blob, dfs, sql etc.
You could look into documentation to get some idea on the different properties which you could pass in your json file.

Also, you can check the json of existing managed private endpoints in your Synapse Workspace to set specific values for your definition file or use PowerShell cmdlet Get-AzSynapseManagedPrivateEndpoint to get details. (See screenshot below)
176013-image.png
176014-image.png
Other References - Private Link Resources - List By Storage Account

Please let me know if you have any other questions.

Thanks
Saurabh


Please do not forget to "Accept the answer" wherever the information provided helps you to help others in the community.



image.png (66.2 KiB)
image.png (52.4 KiB)
image.png (16.7 KiB)
· 4
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

It works perfectly! Thanks for the support!

1 Vote 1 ·

Hi @patriciafuentes-7392,
We haven't heard back from you. Just wanted to check if you are you still facing the issue? In case If you already found a solution, would you please share it here with the community? Otherwise, let us know and we will continue to engage with you on the issue.

Thanks
Saurabh

0 Votes 0 ·

Hi @patriciafuentes-7392,
Please let me know if you find above reply useful. If yes, please 'Accept the answer' for the above reply. This will help other community members facing similar query to refer to this solution. Thanks.

Thanks
Saurabh

0 Votes 0 ·

Hi @patriciafuentes-7392,

Please let me know if you find above reply useful. If yes, please 'Accept the answer' for the above reply. Thanks.

Thanks
Saurabh

0 Votes 0 ·