Hi @PATRICIA FUENTES ,
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
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)
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.