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.
To create a Microsoft.Network/serviceEndpointPolicies resource, add the following Bicep to your template.
resource symbolicname 'Microsoft.Network/serviceEndpointPolicies@2025-05-01' = {
location: 'string'
name: 'string'
properties: {
contextualServiceEndpointPolicies: [
'string'
]
serviceAlias: 'string'
serviceEndpointPolicyDefinitions: [
{
id: 'string'
name: 'string'
properties: {
description: 'string'
service: 'string'
serviceResources: [
'string'
]
}
type: '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 |
| type |
The type of the resource. |
string |
| 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 |
| contextualServiceEndpointPolicies |
A collection of contextual service endpoint policy. |
string[] |
| serviceAlias |
The alias indicating if the policy belongs to a service |
string |
| serviceEndpointPolicyDefinitions |
A collection of service endpoint policy definitions of the service endpoint policy. |
ServiceEndpointPolicyDefinition[] |
Usage Examples
Bicep Samples
A basic example of deploying Subnet Service Endpoint Storage Policy.
param resourceName string = 'acctest0001'
param location string = 'westeurope'
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.
ARM template 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.
To create a Microsoft.Network/serviceEndpointPolicies resource, add the following JSON to your template.
{
"type": "Microsoft.Network/serviceEndpointPolicies",
"apiVersion": "2025-05-01",
"name": "string",
"location": "string",
"properties": {
"contextualServiceEndpointPolicies": [ "string" ],
"serviceAlias": "string",
"serviceEndpointPolicyDefinitions": [
{
"id": "string",
"name": "string",
"properties": {
"description": "string",
"service": "string",
"serviceResources": [ "string" ]
},
"type": "string"
}
]
},
"tags": {
"{customized property}": "string"
}
}
Property Values
Microsoft.Network/serviceEndpointPolicies
| Name |
Description |
Value |
| apiVersion |
The api version |
'2025-05-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 |
| type |
The type of the resource. |
string |
| 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 |
| contextualServiceEndpointPolicies |
A collection of contextual service endpoint policy. |
string[] |
| serviceAlias |
The alias indicating if the policy belongs to a service |
string |
| serviceEndpointPolicyDefinitions |
A collection of service endpoint policy definitions of the service endpoint policy. |
ServiceEndpointPolicyDefinition[] |
Usage Examples
Azure Quickstart Templates
The following Azure Quickstart templates deploy this resource type.
The serviceEndpointPolicies resource type can be deployed with operations that target:
For a list of changed properties in each API version, see change log.
To create a Microsoft.Network/serviceEndpointPolicies resource, add the following Terraform to your template.
resource "azapi_resource" "symbolicname" {
type = "Microsoft.Network/serviceEndpointPolicies@2025-05-01"
name = "string"
parent_id = "string"
location = "string"
tags = {
{customized property} = "string"
}
body = {
properties = {
contextualServiceEndpointPolicies = [
"string"
]
serviceAlias = "string"
serviceEndpointPolicyDefinitions = [
{
id = "string"
name = "string"
properties = {
description = "string"
service = "string"
serviceResources = [
"string"
]
}
type = "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@2025-05-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 |
| type |
The type of the resource. |
string |
| 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 |
| contextualServiceEndpointPolicies |
A collection of contextual service endpoint policy. |
string[] |
| serviceAlias |
The alias indicating if the policy belongs to a service |
string |
| serviceEndpointPolicyDefinitions |
A collection of service endpoint policy definitions of the service endpoint policy. |
ServiceEndpointPolicyDefinition[] |
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 = ["*"]
}