Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -838,6 +838,12 @@
"CapacityReservationUtilization": {
"type": "object",
"properties": {
"currentCapacity": {
"readOnly": true,
"type": "integer",
"format": "int32",
"description": "The value provides the actual reserved count for the VM size which was provisioned sucessfully and for which the customer is getting billed for the Capacity Reservation.<br><br>Minimum api-version: 2022-08-01."
Comment thread
hari-bodicherla marked this conversation as resolved.
Outdated
},
"virtualMachinesAllocated": {
"type": "array",
"items": {
Expand Down Expand Up @@ -873,6 +879,12 @@
"type": "string",
"description": "A unique id generated and assigned to the capacity reservation by the platform which does not change throughout the lifetime of the resource."
},
"platformFaultDomainCount": {
"readOnly": true,
"type": "integer",
"format": "int32",
"description": "This is the readonly property that is populated and set in the response to specify the Maximum Fault Domain Count that capacity reservation support for the VM Size.<br><br>Minimum api-version: 2022-08-01."
Comment thread
hari-bodicherla marked this conversation as resolved.
Outdated
},
"virtualMachinesAssociated": {
"type": "array",
"items": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
{
"name": "myCapacityReservation1",
"utilizationInfo": {
"currentCapacity": 5,

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In this and other example files for capacity reservation change expand parameter wherever specified to $expand.

"virtualMachinesAllocated": [
{
"id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVM1"
Expand All @@ -43,6 +44,7 @@
{
"name": "myCapacityReservation2",
"utilizationInfo": {
"currentCapacity": 5,
"virtualMachinesAllocated": [
{
"id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVM3"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
"1"
],
"properties": {
"platformFaultDomainCount": 3,
"reservationId": "{GUID}",
"provisioningState": "Creating",
"provisioningTime": "2021-06-27T01:02:38.3138469+00:00"
Expand All @@ -58,6 +59,7 @@
"1"
],
"properties": {
"platformFaultDomainCount": 3,
"reservationId": "{GUID}",
"provisioningState": "Creating",
"provisioningTime": "2021-06-27T01:02:38.3138469+00:00"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"200": {
"body": {
"properties": {
"platformFaultDomainCount": 3,

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pls. add the $expand = instanceView parameter in the request parameters as this example is also returning the instance view in the response.

"reservationId": "{GUID}",
"provisioningTime": "2021-06-27T01:02:38.3138469+00:00",
"virtualMachinesAssociated": [
Expand All @@ -26,6 +27,7 @@
"provisioningState": "Succeeded",
"instanceView": {
"utilizationInfo": {
"currentCapacity": 5,
"virtualMachinesAllocated": [
{
"id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVM1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"type": "Microsoft.Compute/CapacityReservations",
"location": "West US",
"properties": {
"platformFaultDomainCount": 3,
"reservationId": "{GUID}",
"provisioningTime": "2021-06-27T01:02:38.3138469+00:00",
"virtualMachinesAssociated": [
Expand Down Expand Up @@ -48,6 +49,7 @@
"type": "Microsoft.Compute/CapacityReservations",
"location": "West US",
"properties": {
"platformFaultDomainCount": 3,
"reservationId": "{GUID}",
"provisioningTime": "2021-06-27T01:02:38.3138469+00:00",
"virtualMachinesAssociated": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
}
},
"sku": {
"name": "DSv3-Type1",
"name": "Standard_DS1_v2",
"tier": "aaa",
"capacity": 7
Comment thread
hari-bodicherla marked this conversation as resolved.
},
Expand All @@ -44,6 +44,7 @@
"1"
],
"properties": {
"platformFaultDomainCount": 3,
"reservationId": "{GUID}",
"virtualMachinesAssociated": [
{
Expand Down