Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Bicep resource definition
The networkManagerConnections resource type can be deployed with operations that target:
- Management groups - See management group deployment commands* Subscription - See subscription deployment commands
For a list of changed properties in each API version, see change log.
Resource format
To create a Microsoft.Network/networkManagerConnections resource, add the following Bicep to your template.
resource symbolicname 'Microsoft.Network/networkManagerConnections@2023-02-01' = {
name: 'string'
properties: {
description: 'string'
networkManagerId: 'string'
}
}
Property Values
Microsoft.Network/networkManagerConnections
| Name | Description | Value |
|---|---|---|
| name | The resource name | string (required) |
| properties | The scope connection properties | NetworkManagerConnectionProperties |
NetworkManagerConnectionProperties
| Name | Description | Value |
|---|---|---|
| description | A description of the network manager connection. | string |
| networkManagerId | Network Manager Id. | string |
ARM template resource definition
The networkManagerConnections resource type can be deployed with operations that target:
- Management groups - See management group deployment commands* Subscription - See subscription deployment commands
For a list of changed properties in each API version, see change log.
Resource format
To create a Microsoft.Network/networkManagerConnections resource, add the following JSON to your template.
{
"type": "Microsoft.Network/networkManagerConnections",
"apiVersion": "2023-02-01",
"name": "string",
"properties": {
"description": "string",
"networkManagerId": "string"
}
}
Property Values
Microsoft.Network/networkManagerConnections
| Name | Description | Value |
|---|---|---|
| apiVersion | The api version | '2023-02-01' |
| name | The resource name | string (required) |
| properties | The scope connection properties | NetworkManagerConnectionProperties |
| type | The resource type | 'Microsoft.Network/networkManagerConnections' |
NetworkManagerConnectionProperties
| Name | Description | Value |
|---|---|---|
| description | A description of the network manager connection. | string |
| networkManagerId | Network Manager Id. | string |
Usage Examples
Terraform (AzAPI provider) resource definition
The networkManagerConnections resource type can be deployed with operations that target:
- Management groups* Subscription
For a list of changed properties in each API version, see change log.
Resource format
To create a Microsoft.Network/networkManagerConnections resource, add the following Terraform to your template.
resource "azapi_resource" "symbolicname" {
type = "Microsoft.Network/networkManagerConnections@2023-02-01"
name = "string"
parent_id = "string"
body = {
properties = {
description = "string"
networkManagerId = "string"
}
}
}
Property Values
Microsoft.Network/networkManagerConnections
| Name | Description | Value |
|---|---|---|
| name | The resource name | string (required) |
| properties | The scope connection properties | NetworkManagerConnectionProperties |
| type | The resource type | "Microsoft.Network/networkManagerConnections@2023-02-01" |
NetworkManagerConnectionProperties
| Name | Description | Value |
|---|---|---|
| description | A description of the network manager connection. | string |
| networkManagerId | Network Manager Id. | string |
Usage Examples
Terraform Samples
A basic example of deploying Network Manager Management Group Connection.
terraform {
required_providers {
azapi = {
source = "Azure/azapi"
}
azurerm = {
source = "hashicorp/azurerm"
}
}
}
provider "azurerm" {
features {
}
}
provider "azapi" {
skip_provider_registration = false
}
variable "resource_name" {
type = string
default = "acctest0001"
}
variable "location" {
type = string
default = "westeurope"
}
data "azurerm_client_config" "current" {
}
data "azapi_resource" "subscription" {
type = "Microsoft.Resources/subscriptions@2021-01-01"
resource_id = "/subscriptions/${data.azurerm_client_config.current.subscription_id}"
response_export_values = ["*"]
}
resource "azapi_resource" "resourceGroup" {
type = "Microsoft.Resources/resourceGroups@2020-06-01"
name = var.resource_name
location = var.location
}
resource "azapi_resource" "networkManager" {
type = "Microsoft.Network/networkManagers@2022-09-01"
parent_id = azapi_resource.resourceGroup.id
name = var.resource_name
location = var.location
body = {
properties = {
description = ""
networkManagerScopeAccesses = [
"SecurityAdmin",
]
networkManagerScopes = {
managementGroups = [
]
subscriptions = [
data.azapi_resource.subscription.id,
]
}
}
}
schema_validation_enabled = false
response_export_values = ["*"]
}
resource "azapi_resource" "networkManagerConnection" {
type = "Microsoft.Network/networkManagerConnections@2022-09-01"
parent_id = data.azapi_resource.subscription.id
name = var.resource_name
body = {
properties = {
networkManagerId = azapi_resource.networkManager.id
}
}
schema_validation_enabled = false
response_export_values = ["*"]
}