Azure Virtual Machines Dedicated Host Groups API

The DedicatedHostGroups API from Azure Virtual Machines — 3 operation(s) for dedicatedhostgroups.

GitHub OpenAPI

Operations 6

GET /subscriptions/{subscriptionId}/providers/Microsoft.Compute/hostGroups Dedicated host groups list by subscription #
GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups Dedicated host groups list by resource group #
GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName} Dedicated host groups get #
PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName} Dedicated host groups create or update #
PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName} Dedicated host groups update #
DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName} Dedicated host groups delete #

Documentation

Specifications

SDKs

Schemas & Data

Other Resources

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/microsoft-azure-virtual-machines:microsoft-azure-virtual-machines-dedicatedhostgroups-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

microsoft-azure-virtual-machines-dedicatedhostgroups-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Azure Compute resource management API.
  version: '2026-04-01'
  description: Compute Client
  x-typespec-generated:
  - emitter: '@azure-tools/typespec-autorest'
servers:
- url: https://management.azure.com
security:
- azure_auth:
  - user_impersonation
tags:
- name: DedicatedHostGroups
paths:
  /subscriptions/{subscriptionId}/providers/Microsoft.Compute/hostGroups:
    get:
      operationId: DedicatedHostGroups_ListBySubscription
      tags:
      - DedicatedHostGroups
      description: Lists all of the dedicated host groups in the subscription. Use the nextLink property in the response to get the next page of dedicated host groups.
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      responses:
        '200':
          description: The request has succeeded.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DedicatedHostGroupListResult'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CloudError'
      x-ms-pageable:
        nextLinkName: nextLink
      summary: Dedicated host groups list by subscription
      x-summary-source: derived
  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups:
    get:
      operationId: DedicatedHostGroups_ListByResourceGroup
      tags:
      - DedicatedHostGroups
      description: Lists all of the dedicated host groups in the specified resource group. Use the nextLink property in the response to get the next page of dedicated host groups.
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      responses:
        '200':
          description: The request has succeeded.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DedicatedHostGroupListResult'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CloudError'
      x-ms-pageable:
        nextLinkName: nextLink
      summary: Dedicated host groups list by resource group
      x-summary-source: derived
  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}:
    get:
      operationId: DedicatedHostGroups_Get
      tags:
      - DedicatedHostGroups
      description: Retrieves information about a dedicated host group.
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      - name: hostGroupName
        in: path
        description: The name of the dedicated host group.
        required: true
        schema:
          type: string
      - name: $expand
        in: query
        description: The expand expression to apply on the operation. 'InstanceView' will retrieve the list of instance views of the dedicated hosts under the dedicated host group. 'UserData' is not supported for dedicated host group.
        required: false
        x-ms-enum:
          name: InstanceViewTypes
          modelAsString: false
        schema:
          type: string
          enum:
          - instanceView
          - userData
          - resiliencyView
      responses:
        '200':
          description: Azure operation completed successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DedicatedHostGroup'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CloudError'
      summary: Dedicated host groups get
      x-summary-source: derived
    put:
      operationId: DedicatedHostGroups_CreateOrUpdate
      tags:
      - DedicatedHostGroups
      description: Create or update a dedicated host group. For details of Dedicated Host and Dedicated Host Groups please see [Dedicated Host Documentation] (https://go.microsoft.com/fwlink/?linkid=2082596)
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      - name: hostGroupName
        in: path
        description: The name of the dedicated host group.
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Resource 'DedicatedHostGroup' update operation succeeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DedicatedHostGroup'
        '201':
          description: Resource 'DedicatedHostGroup' create operation succeeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DedicatedHostGroup'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CloudError'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DedicatedHostGroup'
        description: Parameters supplied to the Create Dedicated Host Group.
        required: true
      summary: Dedicated host groups create or update
      x-summary-source: derived
    patch:
      operationId: DedicatedHostGroups_Update
      tags:
      - DedicatedHostGroups
      description: Update an dedicated host group.
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      - name: hostGroupName
        in: path
        description: The name of the dedicated host group.
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Azure operation completed successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DedicatedHostGroup'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CloudError'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DedicatedHostGroupUpdate'
        description: Parameters supplied to the Update Dedicated Host Group operation.
        required: true
      summary: Dedicated host groups update
      x-summary-source: derived
    delete:
      operationId: DedicatedHostGroups_Delete
      tags:
      - DedicatedHostGroups
      description: Delete a dedicated host group.
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      - name: hostGroupName
        in: path
        description: The name of the dedicated host group.
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Resource deleted successfully.
        '204':
          description: Resource does not exist.
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CloudError'
      summary: Dedicated host groups delete
      x-summary-source: derived
components:
  schemas:
    ApiError:
      type: object
      properties:
        details:
          type: array
          items:
            $ref: '#/components/schemas/ApiErrorBase'
          x-ms-identifiers:
          - message
          - target
          description: The Api error details
        innererror:
          $ref: '#/components/schemas/InnerError'
          description: The Api inner error
        code:
          type: string
          description: The error code.
        target:
          type: string
          description: The target of the particular error.
        message:
          type: string
          description: The error message.
      description: Api error.
    DedicatedHostInstanceViewWithName:
      type: object
      description: The instance view of a dedicated host that includes the name of the dedicated host. It is used for the response to the instance view of a dedicated host group.
      properties:
        name:
          type: string
          description: The name of the dedicated host.
          readOnly: true
      allOf:
      - $ref: '#/components/schemas/DedicatedHostInstanceView'
    TrackedResource:
      type: object
      title: Tracked Resource
      description: The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location'
      properties:
        tags:
          type: object
          description: Resource tags.
          additionalProperties:
            type: string
          x-ms-mutability:
          - read
          - create
          - update
        location:
          type: string
          description: The geo-location where the resource lives
          x-ms-mutability:
          - read
          - create
      required:
      - location
      allOf:
      - $ref: '#/components/schemas/Resource'
    DedicatedHostGroupUpdate:
      type: object
      description: Specifies information about the dedicated host group that the dedicated host should be assigned to. Only tags may be updated.
      properties:
        properties:
          $ref: '#/components/schemas/DedicatedHostGroupProperties'
          description: Dedicated Host Group Properties.
          x-ms-client-flatten: true
        zones:
          type: array
          description: Availability Zone to use for this host group. Only single zone is supported. The zone can be assigned only during creation. If not provided, the group supports all zones in the region. If provided, enforces each host in the group to be in the same zone.
          items:
            type: string
      allOf:
      - $ref: '#/components/schemas/UpdateResource'
    InstanceViewStatus:
      type: object
      description: Instance view status.
      properties:
        code:
          type: string
          description: The status code.
        level:
          $ref: '#/components/schemas/StatusLevelTypes'
          description: The level code.
        displayStatus:
          type: string
          description: The short localizable label for the status.
        message:
          type: string
          description: The detailed status message, including for alerts and error messages.
        time:
          type: string
          format: date-time
          description: The time of the status.
    DedicatedHostGroupProperties:
      type: object
      description: Dedicated Host Group Properties.
      properties:
        platformFaultDomainCount:
          type: integer
          format: int32
          description: Number of fault domains that the host group can span.
          minimum: 1
        hosts:
          type: array
          description: A list of references to all dedicated hosts in the dedicated host group.
          items:
            $ref: '#/components/schemas/SubResourceReadOnly'
          readOnly: true
        instanceView:
          $ref: '#/components/schemas/DedicatedHostGroupInstanceView'
          description: The dedicated host group instance view, which has the list of instance view of the dedicated hosts under the dedicated host group.
          readOnly: true
        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. Minimum api-version: 2020-06-01.'
        additionalCapabilities:
          $ref: '#/components/schemas/DedicatedHostGroupPropertiesAdditionalCapabilities'
          description: 'Enables or disables a capability on the dedicated host group. Minimum api-version: 2022-03-01.'
      required:
      - platformFaultDomainCount
    DedicatedHostInstanceView:
      type: object
      description: The instance view of a dedicated host.
      properties:
        assetId:
          type: string
          description: Specifies the unique id of the dedicated physical machine on which the dedicated host resides.
          readOnly: true
        availableCapacity:
          $ref: '#/components/schemas/DedicatedHostAvailableCapacity'
          description: Unutilized capacity of the dedicated host.
        statuses:
          type: array
          description: The resource status information.
          items:
            $ref: '#/components/schemas/InstanceViewStatus'
          x-ms-identifiers: []
    SubResourceReadOnly:
      type: object
      properties:
        id:
          readOnly: true
          type: string
          description: Resource Id
    DedicatedHostGroupPropertiesAdditionalCapabilities:
      type: object
      description: 'Enables or disables a capability on the dedicated host group. Minimum api-version: 2022-03-01.'
      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 resource needs to be set true as well. The value is defaulted to ''false'' when not provided. Please refer to https://docs.microsoft.com/en-us/azure/virtual-machines/disks-enable-ultra-ssd for more details on Ultra SSD feature. **Note:** The ultraSSDEnabled setting can only be enabled for Host Groups that are created as zonal. Minimum api-version: 2022-03-01.'
    StatusLevelTypes:
      type: string
      description: The level code.
      enum:
      - Info
      - Warning
      - Error
      x-ms-enum:
        name: StatusLevelTypes
        modelAsString: false
    DedicatedHostGroup:
      type: object
      description: Specifies information about the dedicated host group that the dedicated hosts should be assigned to. Currently, a dedicated host can only be added to a dedicated host group at creation time. An existing dedicated host cannot be added to another dedicated host group.
      properties:
        properties:
          $ref: '#/components/schemas/DedicatedHostGroupProperties'
          description: Dedicated Host Group Properties.
          x-ms-client-flatten: true
        zones:
          type: array
          description: The availability zones.
          items:
            type: string
      allOf:
      - $ref: '#/components/schemas/TrackedResource'
    DedicatedHostGroupListResult:
      type: object
      description: The List Dedicated Host Group with resource group response.
      properties:
        value:
          type: array
          description: The list of dedicated host groups.
          items:
            $ref: '#/components/schemas/DedicatedHostGroup'
        nextLink:
          type: string
          format: uri
          description: The URI to fetch the next page of Dedicated Host Groups. Call ListNext() with this URI to fetch the next page of Dedicated Host Groups.
      required:
      - value
    DedicatedHostAllocatableVM:
      type: object
      description: Represents the dedicated host unutilized capacity in terms of a specific VM size.
      properties:
        vmSize:
          type: string
          description: VM size in terms of which the unutilized capacity is represented.
        count:
          type: number
          format: double
          description: Maximum number of VMs of size vmSize that can fit in the dedicated host's remaining capacity.
    DedicatedHostAvailableCapacity:
      type: object
      description: Dedicated host unutilized capacity.
      properties:
        allocatableVMs:
          type: array
          description: The unutilized capacity of the dedicated host represented in terms of each VM size that is allowed to be deployed to the dedicated host.
          items:
            $ref: '#/components/schemas/DedicatedHostAllocatableVM'
          x-ms-identifiers: []
    CloudError:
      type: object
      x-ms-external: true
      properties:
        error:
          $ref: '#/components/schemas/ApiError'
      description: An error response from the Compute service.
    DedicatedHostGroupInstanceView:
      type: object
      properties:
        hosts:
          type: array
          description: List of instance view of the dedicated hosts under the dedicated host group.
          items:
            $ref: '#/components/schemas/DedicatedHostInstanceViewWithName'
          x-ms-identifiers:
          - name
    UpdateResource:
      type: object
      description: The Update Resource model definition.
      properties:
        tags:
          type: object
          description: Resource tags
          additionalProperties:
            type: string
  parameters:
    SubscriptionIdParameter:
      name: subscriptionId
      in: path
      description: The ID of the target subscription.
      required: true
      schema:
        type: string
        minLength: 1
    ResourceGroupNameParameter:
      name: resourceGroupName
      in: path
      description: The name of the resource group. The name is case insensitive.
      required: true
      x-ms-parameter-location: method
      schema:
        type: string
        maxLength: 90
        minLength: 1
    ApiVersionParameter:
      name: api-version
      in: query
      description: The API version to use for this operation.
      required: true
      schema:
        type: string
        minLength: 1
  securitySchemes:
    azure_auth:
      type: oauth2
      flows:
        implicit:
          scopes:
            user_impersonation: impersonate your user account
          authorizationUrl: https://login.microsoftonline.com/common/oauth2/authorize
      description: Azure Active Directory OAuth2 Flow.
x-ms-paths:
  ? /subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmimage/offers/{offer}/skus/{skus}/versions?$expand=Properties
  : get:
      operationId: VirtualMachineImages_ListWithProperties
      tags:
      - VirtualMachineImages
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/LocationParameter'
      - name: publisherName
        in: path
        description: A valid image publisher.
        required: true
        type: string
      - name: offer
        in: path
        description: A valid image publisher offer.
        required: true
        type: string
      - name: skus
        in: path
        description: A valid image SKU.
        required: true
        type: string
      - name: $expand
        in: query
        description: The expand expression to apply on the operation.
        required: true
        type: string
      - name: $top
        in: query
        required: false
        type: integer
        format: int32
      - name: $orderby
        in: query
        required: false
        type: string
      responses:
        '200':
          description: Azure operation completed successfully.
          schema:
            type: array
            items:
              $ref: '#/components/schemas/VirtualMachineImage'
        default:
          description: An unexpected error response.
          schema:
            $ref: '#/components/schemas/CloudError'