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 proximityPlacementGroups resource type can be deployed with operations that target:
For a list of changed properties in each API version, see change log.
Resource format
To create a Microsoft.Compute/proximityPlacementGroups resource, add the following Bicep to your template.
resource symbolicname 'Microsoft.Compute/proximityPlacementGroups@2025-04-01' = {
scope: resourceSymbolicName or scope
___location: 'string'
name: 'string'
properties: {
colocationStatus: {
code: 'string'
displayStatus: 'string'
level: 'string'
message: 'string'
time: 'string'
}
intent: {
vmSizes: [
'string'
]
}
proximityPlacementGroupType: 'string'
}
tags: {
{customized property}: 'string'
}
zones: [
'string'
]
}
Property Values
Microsoft.Compute/proximityPlacementGroups
| Name | Description | Value |
|---|---|---|
| ___location | The geo-___location where the resource lives | string (required) |
| name | The resource name | string (required) |
| properties | Describes the properties of a Proximity Placement Group. | ProximityPlacementGroupProperties |
| scope | Use when creating a resource at a scope that is different than the deployment scope. | Set this property to the symbolic name of a resource to apply the extension resource. |
| tags | Resource tags | Dictionary of tag names and values. See Tags in templates |
| zones | The availability zones. | string[] |
InstanceViewStatus
| Name | Description | Value |
|---|---|---|
| code | The status code. | string |
| displayStatus | The short localizable label for the status. | string |
| level | The level code. | 'Error' 'Info' 'Warning' |
| message | The detailed status message, including for alerts and error messages. | string |
| time | The time of the status. | string |
ProximityPlacementGroupProperties
| Name | Description | Value |
|---|---|---|
| colocationStatus | Describes colocation status of the Proximity Placement Group. | InstanceViewStatus |
| intent | Specifies the user intent of the proximity placement group. | ProximityPlacementGroupPropertiesIntent |
| proximityPlacementGroupType | Specifies the type of the proximity placement group. Possible values are: Standard : Co-locate resources within an Azure region or Availability Zone. Ultra : For future use. | 'Standard' 'Ultra' |
ProximityPlacementGroupPropertiesIntent
| Name | Description | Value |
|---|---|---|
| vmSizes | Specifies possible sizes of virtual machines that can be created in the proximity placement group. | string[] |
TrackedResourceTags
| Name | Description | Value |
|---|
Usage Examples
Azure Verified Modules
The following Azure Verified Modules can be used to deploy this resource type.
| Module | Description |
|---|---|
| Proximity Placement Group | AVM Resource Module for Proximity Placement Group |
ARM template resource definition
The proximityPlacementGroups resource type can be deployed with operations that target:
For a list of changed properties in each API version, see change log.
Resource format
To create a Microsoft.Compute/proximityPlacementGroups resource, add the following JSON to your template.
{
"type": "Microsoft.Compute/proximityPlacementGroups",
"apiVersion": "2025-04-01",
"name": "string",
"___location": "string",
"properties": {
"colocationStatus": {
"code": "string",
"displayStatus": "string",
"level": "string",
"message": "string",
"time": "string"
},
"intent": {
"vmSizes": [ "string" ]
},
"proximityPlacementGroupType": "string"
},
"tags": {
"{customized property}": "string"
},
"zones": [ "string" ]
}
Property Values
Microsoft.Compute/proximityPlacementGroups
| Name | Description | Value |
|---|---|---|
| apiVersion | The api version | '2025-04-01' |
| ___location | The geo-___location where the resource lives | string (required) |
| name | The resource name | string (required) |
| properties | Describes the properties of a Proximity Placement Group. | ProximityPlacementGroupProperties |
| tags | Resource tags | Dictionary of tag names and values. See Tags in templates |
| type | The resource type | 'Microsoft.Compute/proximityPlacementGroups' |
| zones | The availability zones. | string[] |
InstanceViewStatus
| Name | Description | Value |
|---|---|---|
| code | The status code. | string |
| displayStatus | The short localizable label for the status. | string |
| level | The level code. | 'Error' 'Info' 'Warning' |
| message | The detailed status message, including for alerts and error messages. | string |
| time | The time of the status. | string |
ProximityPlacementGroupProperties
| Name | Description | Value |
|---|---|---|
| colocationStatus | Describes colocation status of the Proximity Placement Group. | InstanceViewStatus |
| intent | Specifies the user intent of the proximity placement group. | ProximityPlacementGroupPropertiesIntent |
| proximityPlacementGroupType | Specifies the type of the proximity placement group. Possible values are: Standard : Co-locate resources within an Azure region or Availability Zone. Ultra : For future use. | 'Standard' 'Ultra' |
ProximityPlacementGroupPropertiesIntent
| Name | Description | Value |
|---|---|---|
| vmSizes | Specifies possible sizes of virtual machines that can be created in the proximity placement group. | string[] |
TrackedResourceTags
| Name | Description | Value |
|---|
Usage Examples
Azure Quickstart Templates
The following Azure Quickstart templates deploy this resource type.
| Template | Description |
|---|---|
| Example Parameterized Deployment With Linked Templates |
This sample template will deploy multiple tiers of resources into an Azure Resource Group. Each tier has configurable elements, to show how you can expose parameterization to the end user. |
Terraform (AzAPI provider) resource definition
The proximityPlacementGroups resource type can be deployed with operations that target:
For a list of changed properties in each API version, see change log.
Resource format
To create a Microsoft.Compute/proximityPlacementGroups resource, add the following Terraform to your template.
resource "azapi_resource" "symbolicname" {
type = "Microsoft.Compute/proximityPlacementGroups@2025-04-01"
name = "string"
parent_id = "string"
___location = "string"
tags = {
{customized property} = "string"
}
body = {
properties = {
colocationStatus = {
code = "string"
displayStatus = "string"
level = "string"
message = "string"
time = "string"
}
intent = {
vmSizes = [
"string"
]
}
proximityPlacementGroupType = "string"
}
zones = [
"string"
]
}
}
Property Values
Microsoft.Compute/proximityPlacementGroups
| Name | Description | Value |
|---|---|---|
| ___location | The geo-___location where the resource lives | string (required) |
| name | The resource name | string (required) |
| parent_id | The ID of the resource to apply this extension resource to. | string (required) |
| properties | Describes the properties of a Proximity Placement Group. | ProximityPlacementGroupProperties |
| tags | Resource tags | Dictionary of tag names and values. |
| type | The resource type | "Microsoft.Compute/proximityPlacementGroups@2025-04-01" |
| zones | The availability zones. | string[] |
InstanceViewStatus
| Name | Description | Value |
|---|---|---|
| code | The status code. | string |
| displayStatus | The short localizable label for the status. | string |
| level | The level code. | 'Error' 'Info' 'Warning' |
| message | The detailed status message, including for alerts and error messages. | string |
| time | The time of the status. | string |
ProximityPlacementGroupProperties
| Name | Description | Value |
|---|---|---|
| colocationStatus | Describes colocation status of the Proximity Placement Group. | InstanceViewStatus |
| intent | Specifies the user intent of the proximity placement group. | ProximityPlacementGroupPropertiesIntent |
| proximityPlacementGroupType | Specifies the type of the proximity placement group. Possible values are: Standard : Co-locate resources within an Azure region or Availability Zone. Ultra : For future use. | 'Standard' 'Ultra' |
ProximityPlacementGroupPropertiesIntent
| Name | Description | Value |
|---|---|---|
| vmSizes | Specifies possible sizes of virtual machines that can be created in the proximity placement group. | string[] |
TrackedResourceTags
| Name | Description | Value |
|---|
Usage Examples
Terraform Samples
A basic example of deploying proximity placement group for virtual machines, virtual machine scale sets and availability sets.
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" "proximityPlacementGroup" {
type = "Microsoft.Compute/proximityPlacementGroups@2022-03-01"
parent_id = azapi_resource.resourceGroup.id
name = var.resource_name
___location = var.___location
body = {
properties = {
}
}
schema_validation_enabled = false
response_export_values = ["*"]
}
Azure Verified Modules
The following Azure Verified Modules can be used to deploy this resource type.
| Module | Description |
|---|---|
| Proximity Placement Group | AVM Resource Module for Proximity Placement Group |