Skip to content

Commit

Permalink
Adding UltraSSDcapability properties in dedicated host resource (#18076)
Browse files Browse the repository at this point in the history
* Added diffDiskSettings property as part of Swagger changes needed for Ephemeral VM\VMSS

* updated comment

* updated swagger specs for diffdisksettings property

* updated swagger spec comments  for diff disk settings [property

* added example to create Diff OS disk scaleset

* updated 2018-10-01 version specs with diffdisk property

* added example file for creating VM with diffdisksettings property

* updated swagger changes for reimage operation in single vm

* update examples

* udpated examples

* fixed validation errors

* updated comments for reimage operation documentation

* Updated examples and documentation for APIs in swagger

* updated examples as per review comments

* updated swagger documentation

* updated swagger documentation with zone details in the sku example

* updated swagger documentation and reverted the breaking changes

* updated examples as per swagger model

* updated swagger to remove the model validation errors for existing examples where we are passing read only parameter in the request

* updated swagger

* updated swagger

* Added new property in DiffDiskSettings

* updated swagger spec

* udpated swagger

* updated swagger spec

* updated code

* updated code

* udpated swagger

* updated code

* updated swagger documentation for DiffDiskPlacement

* updated code

* updated documentation

* updated code

* updated swagger

* updated swagger

* updated swagger

* updated code

* updated code

* updated example json

* updated swagger changes

* updated swagger
  • Loading branch information
hari-bodicherla authored and grizzlytheodore committed Apr 18, 2022
1 parent 4310599 commit 1a943ff
Show file tree
Hide file tree
Showing 3 changed files with 145 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,9 @@
"x-ms-examples": {
"Create or update a dedicated host group.": {
"$ref": "./examples/dedicatedHostExamples/DedicatedHostGroup_CreateOrUpdate.json"
},
"Create or update a dedicated host group with Ultra SSD support.": {
"$ref": "./examples/dedicatedHostExamples/DedicatedHostGroup_CreateOrUpdateWithUltraSSD.json"
}
}
},
Expand Down Expand Up @@ -269,6 +272,9 @@
"x-ms-examples": {
"Create a dedicated host group.": {
"$ref": "./examples/dedicatedHostExamples/DedicatedHostGroup_Get.json"
},
"Create an ultraSSDEnabled dedicated host group.": {
"$ref": "./examples/dedicatedHostExamples/DedicatedHostGroup_GetAnUltraSSDEnabledDedicatedHostGroup.json"
}
}
}
Expand Down Expand Up @@ -785,6 +791,15 @@
"supportAutomaticPlacement": {
"type": "boolean",
"description": "Specifies whether virtual machines or virtual machine scale sets can be placed automatically on the dedicated host group. Automatic placement means resources are allocated on dedicated hosts, that are chosen by Azure, under the dedicated host group. The value is defaulted to 'false' when not provided. <br><br>Minimum api-version: 2020-06-01."
},
"additionalCapabilities": {
"properties": {
"ultraSSDEnabled": {
"type": "boolean",
"description": "The flag that enables or disables a capability to have UltraSSD Enabled Virtual Machines on Dedicated Hosts of the Dedicated Host Group. For the Virtual Machines to be UltraSSD Enabled, UltraSSDEnabled flag for the resoure needs to be set true as well. The value is defaulted to 'false' when not provided.<br><br>Minimum api-version: 2022-03-01."
}
},
"description": "Enables or disables a capability on the dedicated host group.<br><br>Minimum api-version: 2022-03-01."
}
},
"required": [
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
{
"parameters": {
"subscriptionId": "{subscription-id}",
"resourceGroupName": "myResourceGroup",
"api-version": "2022-03-01",
"hostGroupName": "myDedicatedHostGroup",
"parameters": {
"location": "westus",
"tags": {
"department": "finance"
},
"zones": [
"1"
],
"properties": {
"platformFaultDomainCount": 3,
"supportAutomaticPlacement": true,
"additionalCapabilities": {
"ultraSSDEnabled": true
}
}
}
},
"responses": {
"201": {
"body": {
"name": "myDedicatedHostGroup",
"location": "westus",
"id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/HostGroups/myDedicatedHostGroup",
"tags": {
"department": "finance"
},
"zones": [
"1"
],
"properties": {
"platformFaultDomainCount": 3,
"supportAutomaticPlacement": true,
"additionalCapabilities": {
"ultraSSDEnabled": true
}
}
}
},
"200": {
"body": {
"properties": {
"platformFaultDomainCount": 3,
"supportAutomaticPlacement": true,
"additionalCapabilities": {
"ultraSSDEnabled": true
}
},
"location": "westus",
"tags": {
"department": "finance",
"owner": "myCompany"
},
"name": "myDedicatedHostGroup",
"id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/HostGroups/myDedicatedHostGroup",
"zones": [
"1"
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
{
"parameters": {
"subscriptionId": "{subscriptionId}",
"resourceGroupName": "myResourceGroup",
"api-version": "2022-03-01",
"hostGroupName": "myDedicatedHostGroup",
"expand": "instanceView"
},
"responses": {
"200": {
"body": {
"properties": {
"platformFaultDomainCount": 3,
"hosts": [
{
"id": "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/myDedicatedHostGroup/myHostGroup/Hosts/myHost"
}
],
"supportAutomaticPlacement": true,
"additionalCapabilities": {
"ultraSSDEnabled": true
},
"instanceView": {
"hosts": [
{
"name": "myHost",
"assetId": "eb3f58b8-b4e8-4882-b69f-301a01812407",
"availableCapacity": {
"allocatableVMs": [
{
"vmSize": "Standard_A1",
"count": 10
}
]
},
"statuses": [
{
"code": "ProvisioningState/succeeded",
"level": "Info",
"displayStatus": "Provisioning succeeded"
},
{
"code": "HealthState/available",
"level": "Info",
"displayStatus": "Host available"
}
]
}
]
}
},
"location": "westus",
"tags": {
"{tagName}": "{tagValue}"
},
"name": "myDedicatedHostGroup",
"zones": [
"3"
]
}
}
}
}

0 comments on commit 1a943ff

Please sign in to comment.