Bicep resource definition
The serviceEndpointPolicies 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 Subnet Service Endpoint Storage Policy.
param location string = 'westeurope'
param resourceName string = 'acctest0001'
resource serviceEndpointPolicy 'Microsoft.Network/serviceEndpointPolicies@2022-07-01' = {
name: resourceName
location: location
properties: {}
}
Azure Verified Modules
The following Azure Verified Modules can be used to deploy this resource type.
To create a Microsoft.Network/serviceEndpointPolicies resource, add the following Bicep to your template.
resource symbolicname 'Microsoft.Network/serviceEndpointPolicies@2020-08-01' = {
location: 'string'
name: 'string'
properties: {
serviceEndpointPolicyDefinitions: [
{
id: 'string'
name: 'string'
properties: {
description: 'string'
service: 'string'
serviceResources: [
'string'
]
}
}
]
}
tags: {
{customized property}: 'string'
}
}
Property Values
Microsoft.Network/serviceEndpointPolicies
ServiceEndpointPolicyDefinition
| Name |
Description |
Value |
| id |
Resource ID. |
string |
| name |
The name of the resource that is unique within a resource group. This name can be used to access the resource. |
string |
| properties |
Properties of the service endpoint policy definition. |
ServiceEndpointPolicyDefinitionPropertiesFormat |
| Name |
Description |
Value |
| description |
A description for this rule. Restricted to 140 chars. |
string |
| service |
Service endpoint name. |
string |
| serviceResources |
A list of service resources. |
string[] |
| Name |
Description |
Value |
| serviceEndpointPolicyDefinitions |
A collection of service endpoint policy definitions of the service endpoint policy. |
ServiceEndpointPolicyDefinition[] |
ARM template resource definition
The serviceEndpointPolicies resource type can be deployed with operations that target:
Usage Examples
Azure Quickstart Templates
The following Azure Quickstart templates deploy this resource type.
To create a Microsoft.Network/serviceEndpointPolicies resource, add the following JSON to your template.
{
"type": "Microsoft.Network/serviceEndpointPolicies",
"apiVersion": "2020-08-01",
"name": "string",
"location": "string",
"properties": {
"serviceEndpointPolicyDefinitions": [
{
"id": "string",
"name": "string",
"properties": {
"description": "string",
"service": "string",
"serviceResources": [ "string" ]
}
}
]
},
"tags": {
"{customized property}": "string"
}
}
Property Values
Microsoft.Network/serviceEndpointPolicies
| Name |
Description |
Value |
| apiVersion |
The api version |
'2020-08-01' |
| location |
Resource location. |
string |
| name |
The resource name |
string (required) |
| properties |
Properties of the service end point policy. |
ServiceEndpointPolicyPropertiesFormat |
| tags |
Resource tags |
Dictionary of tag names and values. See Tags in templates |
| type |
The resource type |
'Microsoft.Network/serviceEndpointPolicies' |
ServiceEndpointPolicyDefinition
| Name |
Description |
Value |
| id |
Resource ID. |
string |
| name |
The name of the resource that is unique within a resource group. This name can be used to access the resource. |
string |
| properties |
Properties of the service endpoint policy definition. |
ServiceEndpointPolicyDefinitionPropertiesFormat |
| Name |
Description |
Value |
| description |
A description for this rule. Restricted to 140 chars. |
string |
| service |
Service endpoint name. |
string |
| serviceResources |
A list of service resources. |
string[] |
| Name |
Description |
Value |
| serviceEndpointPolicyDefinitions |
A collection of service endpoint policy definitions of the service endpoint policy. |
ServiceEndpointPolicyDefinition[] |
The serviceEndpointPolicies 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
A basic example of deploying Subnet Service Endpoint Storage Policy.
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 = "westeurope"
}
resource "azapi_resource" "resourceGroup" {
type = "Microsoft.Resources/resourceGroups@2020-06-01"
name = var.resource_name
location = var.location
}
resource "azapi_resource" "serviceEndpointPolicy" {
type = "Microsoft.Network/serviceEndpointPolicies@2022-07-01"
parent_id = azapi_resource.resourceGroup.id
name = var.resource_name
location = var.location
body = {
properties = {
}
}
schema_validation_enabled = false
response_export_values = ["*"]
}
To create a Microsoft.Network/serviceEndpointPolicies resource, add the following Terraform to your template.
resource "azapi_resource" "symbolicname" {
type = "Microsoft.Network/serviceEndpointPolicies@2020-08-01"
name = "string"
parent_id = "string"
location = "string"
tags = {
{customized property} = "string"
}
body = {
properties = {
serviceEndpointPolicyDefinitions = [
{
id = "string"
name = "string"
properties = {
description = "string"
service = "string"
serviceResources = [
"string"
]
}
}
]
}
}
}
Property Values
Microsoft.Network/serviceEndpointPolicies
| Name |
Description |
Value |
| location |
Resource location. |
string |
| name |
The resource name |
string (required) |
| properties |
Properties of the service end point policy. |
ServiceEndpointPolicyPropertiesFormat |
| tags |
Resource tags |
Dictionary of tag names and values. |
| type |
The resource type |
"Microsoft.Network/serviceEndpointPolicies@2020-08-01" |
ServiceEndpointPolicyDefinition
| Name |
Description |
Value |
| id |
Resource ID. |
string |
| name |
The name of the resource that is unique within a resource group. This name can be used to access the resource. |
string |
| properties |
Properties of the service endpoint policy definition. |
ServiceEndpointPolicyDefinitionPropertiesFormat |
| Name |
Description |
Value |
| description |
A description for this rule. Restricted to 140 chars. |
string |
| service |
Service endpoint name. |
string |
| serviceResources |
A list of service resources. |
string[] |
| Name |
Description |
Value |
| serviceEndpointPolicyDefinitions |
A collection of service endpoint policy definitions of the service endpoint policy. |
ServiceEndpointPolicyDefinition[] |