Azure container registry private enpoint with ARM template in Azure

Viewed 19

So wasn´t able to find to much about this and I´m quite new with arm templates. I basically need to create a private endpoint for an Azure container registry, but not sure how to reference the subnet and resource type following this documentation:

I know it´s using this portion of code but don´t know exactly how:

 "manualPrivateLinkServiceConnections": [
      {
        "id": "string",
        "name": "string",
        "properties": {
          "groupIds": [ "string" ],
          "privateLinkServiceConnectionState": {
            "actionsRequired": "string",
            "description": "string",
            "status": "string"
          },
          "privateLinkServiceId": "string",
          "requestMessage": "string"
        }
      }
    ],
    "privateLinkServiceConnections": [
      {
        "id": "string",
        "name": "string",
        "properties": {
          "groupIds": [ "string" ],
          "privateLinkServiceConnectionState": {
            "actionsRequired": "string",
            "description": "string",
            "status": "string"
          },
          "privateLinkServiceId": "string",
          "requestMessage": "string"
        }
      }
    ],

This guy here in this post looks like is using: "privateLinkServiceConnections" for resource type (for my case should be container registry) , according to simulation while creating a private endpoint in Azure portal it should be

enter image description here

But not quite sure how that is used here in his code:

privateLinkServiceId": "[resourceId(parameters('resourceType'), parameters('resourceName'))]",

And then hi is using this part: manualPrivateLinkServiceConnections for the subnet. The subnet in the simulation in Azure is referenced here after the resource type:

enter image description here

As I said, quite new with arm and trying to see best way to achieve this. So how is the proper way for creating A private endpoint for an ACR?

Also if the Registry is in another template, is it possible to reference it from the one I´m using for private endpoint? Thank you!

0 Answers
Related