Microsoft.Authorization resourceManagementPrivateLinks 2020-05-01

Bicep resource definition

The resourceManagementPrivateLinks resource type can be deployed with operations that target:

For a list of changed properties in each API version, see change log.

Usage Examples

Bicep Samples

A basic example of deploying Resource Management Private Link to restrict access for managing resources in the tenant.

param resourceName string = 'acctest0001'
param location string = 'westus'

resource resourceManagementPrivateLink 'Microsoft.Authorization/resourceManagementPrivateLinks@2020-05-01' = {
  name: resourceName
  location: location
}

Resource format

To create a Microsoft.Authorization/resourceManagementPrivateLinks resource, add the following Bicep to your template.

resource symbolicname 'Microsoft.Authorization/resourceManagementPrivateLinks@2020-05-01' = {
  location: 'string'
  name: 'string'
}

Property Values

Name Description Value
location the region to create private link association. string
name The resource name string (required)

ARM template resource definition

The resourceManagementPrivateLinks resource type can be deployed with operations that target:

Usage Examples

Resource format

To create a Microsoft.Authorization/resourceManagementPrivateLinks resource, add the following JSON to your template.

{
  "type": "Microsoft.Authorization/resourceManagementPrivateLinks",
  "apiVersion": "2020-05-01",
  "name": "string",
  "location": "string"
}

Property Values

Name Description Value
apiVersion The api version '2020-05-01'
location the region to create private link association. string
name The resource name string (required)
type The resource type 'Microsoft.Authorization/resourceManagementPrivateLinks'

Terraform (AzAPI provider) resource definition

The resourceManagementPrivateLinks resource type can be deployed with operations that target:

  • Resource groups For a list of changed properties in each API version, see change log.

Usage Examples

Terraform Samples

A basic example of deploying Resource Management Private Link to restrict access for managing resources in the tenant.

terraform {
  required_providers {
    azapi = {
      source = "Azure/azapi"
    }
  }
}

provider "azapi" {
  skip_provider_registration = false
}

variable "resource_name" {
  type    = string
  default = "acctest0001"
}

variable "location" {
  type    = string
  default = "westus"
}

resource "azapi_resource" "resourceGroup" {
  type     = "Microsoft.Resources/resourceGroups@2020-06-01"
  name     = var.resource_name
  location = var.location
}

resource "azapi_resource" "resourceManagementPrivateLink" {
  type      = "Microsoft.Authorization/resourceManagementPrivateLinks@2020-05-01"
  parent_id = azapi_resource.resourceGroup.id
  name      = var.resource_name
  location  = var.location
}

Resource format

To create a Microsoft.Authorization/resourceManagementPrivateLinks resource, add the following Terraform to your template.

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.Authorization/resourceManagementPrivateLinks@2020-05-01"
  name = "string"
  parent_id = "string"
  location = "string"
}

Property Values

Name Description Value
location the region to create private link association. string
name The resource name string (required)
type The resource type "Microsoft.Authorization/resourceManagementPrivateLinks@2020-05-01"