Skip to content

Support for Azure Managed Devops pool #30279

@kaiyuanlim-adh

Description

@kaiyuanlim-adh

Is there an existing issue for this?

  • I have searched the existing issues

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave comments along the lines of "+1", "me too" or "any updates", they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment and review the contribution guide to help.

Description

I am trying to move away from vm scale sets to managed devops pool.

Source: https://learn.microsoft.com/en-us/azure/devops/managed-devops-pools/migrate-from-scale-set-agents?view=azure-devops

Motivation: Because of the following issue microsoft/vsts-azurevm-extension#230

New or Affected Resource(s)/Data Source(s)

azurerm_managed_devops_pool

Potential Terraform Configuration

resource "azurerm_managed_devops_pool" "this" {
  name                   = var.name
  resource_group_name    = var.rg_name
  location               = var.rg_region
  sku                    = var.vm_size
  priority               = "Spot"
  eviction_policy        = "Delete"
  admin_username         = var.admin_username
  source_image_id        = data.azurerm_shared_image_version.default.id
  single_placement_group = true
  overprovision          = false

  scale_in {
    rule                   = "Default"
    force_deletion_enabled = false
  }

  admin_ssh_key {
    username   = var.admin_username
    public_key = var.ssh_public_key
  }

  os_disk {
    storage_account_type = "Standard_LRS"
    caching              = "ReadOnly"

    diff_disk_settings {
      option    = "Local"
      placement = "ResourceDisk"
    }
  }

  network_interface {
    name    = var.network_name
    primary = true

    ip_configuration {
      name      = "internal"
      primary   = true
      subnet_id = var.subnet_id
    }
  }

}

References

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions