From 3755f9edb75157c8b547a5f3f01b944786dc44b3 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Mon, 6 May 2024 02:52:50 +0000 Subject: [PATCH] CodeGen from PR 28980 in Azure/azure-rest-api-specs Merge 185960b80913e3300b96afd0f902f80a973b8da9 into 3940cd77b8d74b58d4a8b3a80388ff890052be67 --- .../Microsoft.DevOpsInfrastructure.json | 536 ----------- .../Microsoft.DevOpsInfrastructure.json | 698 --------------- .../Microsoft.DevOpsInfrastructure.json | 768 ---------------- .../Microsoft.DevOpsInfrastructure.json | 837 ------------------ schemas/common/autogeneratedResources.json | 12 - 5 files changed, 2851 deletions(-) delete mode 100644 schemas/2023-10-30-preview/Microsoft.DevOpsInfrastructure.json delete mode 100644 schemas/2023-12-13-preview/Microsoft.DevOpsInfrastructure.json delete mode 100644 schemas/2024-03-26-preview/Microsoft.DevOpsInfrastructure.json delete mode 100644 schemas/2024-04-04-preview/Microsoft.DevOpsInfrastructure.json diff --git a/schemas/2023-10-30-preview/Microsoft.DevOpsInfrastructure.json b/schemas/2023-10-30-preview/Microsoft.DevOpsInfrastructure.json deleted file mode 100644 index 6272c96fb4..0000000000 --- a/schemas/2023-10-30-preview/Microsoft.DevOpsInfrastructure.json +++ /dev/null @@ -1,536 +0,0 @@ -{ - "id": "https://schema.management.azure.com/schemas/2023-10-30-preview/Microsoft.DevOpsInfrastructure.json#", - "title": "Microsoft.DevOpsInfrastructure", - "description": "Microsoft DevOpsInfrastructure Resource Types", - "$schema": "http://json-schema.org/draft-04/schema#", - "resourceDefinitions": { - "pools": { - "description": "Microsoft.DevOpsInfrastructure/pools", - "properties": { - "apiVersion": { - "enum": [ - "2023-10-30-preview" - ], - "type": "string" - }, - "identity": { - "description": "The managed service identities assigned to this resource.", - "oneOf": [ - { - "$ref": "#/definitions/ManagedServiceIdentity" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "location": { - "description": "The geo-location where the resource lives", - "type": "string" - }, - "name": { - "description": "Name of the pool. It needs to be globally unique.", - "oneOf": [ - { - "pattern": "^[a-z][a-z0-9]*$", - "type": "string" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "properties": { - "description": "The resource-specific properties for this resource.", - "oneOf": [ - { - "$ref": "#/definitions/PoolProperties" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "tags": { - "description": "Resource tags.", - "oneOf": [ - { - "additionalProperties": { - "type": "string" - }, - "properties": {}, - "type": "object" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "type": { - "enum": [ - "Microsoft.DevOpsInfrastructure/pools" - ], - "type": "string" - } - }, - "required": [ - "name", - "properties", - "apiVersion", - "type" - ], - "type": "object" - } - }, - "definitions": { - "AgentProfile": { - "description": "The agent profile of the machines in the pool.", - "oneOf": [ - { - "description": "Stateful profile meaning that the machines will be returned to the pool after running a job.", - "properties": { - "kind": { - "enum": [ - "Stateful" - ], - "type": "string" - }, - "maxAgentLifetime": { - "description": "How long should stateful machines be kept around. The maximum is one week.", - "type": "string" - } - }, - "required": [ - "maxAgentLifetime", - "kind" - ], - "type": "object" - }, - { - "description": "Stateless profile meaning that the machines will be cleaned up after running a job.", - "properties": { - "kind": { - "enum": [ - "Stateless" - ], - "type": "string" - } - }, - "required": [ - "kind" - ], - "type": "object" - } - ], - "properties": { - "resourcePredictions": { - "description": "Defines pool buffer.", - "oneOf": [ - { - "type": "object" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - }, - "type": "object" - }, - "DevOpsAzureSku": { - "description": "The Azure SKU of the machines in the pool.", - "properties": { - "name": { - "description": "The Azure SKU name of the machines in the pool.", - "type": "string" - }, - "tier": { - "description": "The Azure SKU tier of the machines in the pool.", - "type": "string" - } - }, - "required": [ - "name" - ], - "type": "object" - }, - "FabricProfile": { - "description": "Defines the type of fabric the agent will run on.", - "oneOf": [ - { - "description": "The agents will run on Virtual Machine Scale Sets.", - "properties": { - "images": { - "description": "The VM images of the machines in the pool.", - "oneOf": [ - { - "items": { - "$ref": "#/definitions/PoolImage" - }, - "type": "array" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "kind": { - "enum": [ - "Vmss" - ], - "type": "string" - }, - "networkProfile": { - "description": "The network profile of the machines in the pool.", - "oneOf": [ - { - "$ref": "#/definitions/NetworkProfile" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "osProfile": { - "description": "The OS profile of the machines in the pool.", - "oneOf": [ - { - "$ref": "#/definitions/OsProfile" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "sku": { - "description": "The Azure SKU of the machines in the pool.", - "oneOf": [ - { - "$ref": "#/definitions/DevOpsAzureSku" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - }, - "required": [ - "sku", - "images", - "kind" - ], - "type": "object" - } - ], - "properties": {}, - "type": "object" - }, - "ManagedServiceIdentity": { - "description": "Managed service identity (system assigned and/or user assigned identities)", - "properties": { - "type": { - "description": "Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).", - "oneOf": [ - { - "enum": [ - "None", - "SystemAssigned", - "UserAssigned", - "SystemAssigned, UserAssigned" - ], - "type": "string" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "userAssignedIdentities": { - "description": "The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests.", - "oneOf": [ - { - "additionalProperties": { - "$ref": "#/definitions/UserAssignedIdentity" - }, - "properties": {}, - "type": "object" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - }, - "required": [ - "type" - ], - "type": "object" - }, - "NetworkProfile": { - "description": "The network profile of the machines in the pool.", - "properties": { - "subnetId": { - "description": "The subnet id on which to put all machines created in the pool.", - "type": "string" - } - }, - "required": [ - "subnetId" - ], - "type": "object" - }, - "Organization": { - "description": "Defines an Azure DevOps organization.", - "properties": { - "parallelism": { - "description": "How many machines can be created at maximum in this organization out of the maximumConcurrency of the pool.", - "oneOf": [ - { - "type": "integer" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "projects": { - "description": "Optional list of projects in which the pool should be created.", - "oneOf": [ - { - "items": { - "type": "string" - }, - "type": "array" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "url": { - "description": "The Azure DevOps organization URL in which the pool should be created.", - "type": "string" - } - }, - "required": [ - "url" - ], - "type": "object" - }, - "OrganizationProfile": { - "description": "Defines the organization in which the pool will be used.", - "oneOf": [ - { - "description": "Azure DevOps organization profile", - "properties": { - "kind": { - "enum": [ - "AzureDevOps" - ], - "type": "string" - }, - "organizations": { - "description": "The list of Azure DevOps organizations the pool should be present in.", - "oneOf": [ - { - "items": { - "$ref": "#/definitions/Organization" - }, - "type": "array" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - }, - "required": [ - "organizations", - "kind" - ], - "type": "object" - } - ], - "properties": {}, - "type": "object" - }, - "OsProfile": { - "description": "The OS profile of the machines in the pool.", - "properties": { - "secretsManagementSettings": { - "description": "The secret management settings of the machines in the pool.", - "oneOf": [ - { - "$ref": "#/definitions/SecretsManagementSettings" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - }, - "required": [ - "secretsManagementSettings" - ], - "type": "object" - }, - "PoolImage": { - "description": "The VM image of the machines in the pool.", - "properties": { - "aliases": { - "description": "List of aliases to reference the image by.", - "oneOf": [ - { - "items": { - "type": "string" - }, - "type": "array" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "buffer": { - "description": "The percentage of the buffer to be allocated to this image.", - "type": "string" - }, - "resourceId": { - "description": "The resource id of the image.", - "type": "string" - } - }, - "required": [ - "resourceId" - ], - "type": "object" - }, - "PoolProperties": { - "description": "Pool properties", - "properties": { - "agentProfile": { - "description": "Defines how the machine will be handled once it executed a job.", - "oneOf": [ - { - "$ref": "#/definitions/AgentProfile" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "devCenterProjectResourceId": { - "description": "The resource id of the DevCenter Project the pool belongs to.", - "type": "string" - }, - "fabricProfile": { - "description": "Defines the type of fabric the agent will run on.", - "oneOf": [ - { - "$ref": "#/definitions/FabricProfile" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "maximumConcurrency": { - "description": "Defines how many resources can there be created at any given time.", - "oneOf": [ - { - "maximum": 10000, - "minimum": 1, - "type": "integer" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "organizationProfile": { - "description": "Defines the organization in which the pool will be used.", - "oneOf": [ - { - "$ref": "#/definitions/OrganizationProfile" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "provisioningState": { - "description": "The status of the current operation.", - "oneOf": [ - { - "enum": [ - "Succeeded", - "Failed", - "Canceled", - "Provisioning", - "Updating", - "Deleting", - "Accepted" - ], - "type": "string" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - }, - "required": [ - "maximumConcurrency", - "organizationProfile", - "agentProfile", - "fabricProfile", - "devCenterProjectResourceId" - ], - "type": "object" - }, - "SecretsManagementSettings": { - "description": "The secret management settings of the machines in the pool.", - "properties": { - "certificateStoreLocation": { - "description": "Where to store certificates on the machine.", - "type": "string" - }, - "keyExportable": { - "description": "Defines if the key of the certificates should be exportable.", - "oneOf": [ - { - "type": "boolean" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "observedCertificates": { - "description": "The list of certificates to install on all machines in the pool.", - "oneOf": [ - { - "items": { - "type": "string" - }, - "type": "array" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - }, - "required": [ - "observedCertificates", - "keyExportable" - ], - "type": "object" - }, - "UserAssignedIdentity": { - "description": "User assigned identity properties", - "properties": {}, - "type": "object" - } - } -} \ No newline at end of file diff --git a/schemas/2023-12-13-preview/Microsoft.DevOpsInfrastructure.json b/schemas/2023-12-13-preview/Microsoft.DevOpsInfrastructure.json deleted file mode 100644 index e706bb6ab2..0000000000 --- a/schemas/2023-12-13-preview/Microsoft.DevOpsInfrastructure.json +++ /dev/null @@ -1,698 +0,0 @@ -{ - "id": "https://schema.management.azure.com/schemas/2023-12-13-preview/Microsoft.DevOpsInfrastructure.json#", - "title": "Microsoft.DevOpsInfrastructure", - "description": "Microsoft DevOpsInfrastructure Resource Types", - "$schema": "http://json-schema.org/draft-04/schema#", - "resourceDefinitions": { - "pools": { - "description": "Microsoft.DevOpsInfrastructure/pools", - "properties": { - "apiVersion": { - "enum": [ - "2023-12-13-preview" - ], - "type": "string" - }, - "identity": { - "description": "The managed service identities assigned to this resource.", - "oneOf": [ - { - "$ref": "#/definitions/ManagedServiceIdentity" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "location": { - "description": "The geo-location where the resource lives", - "type": "string" - }, - "name": { - "description": "Name of the pool. It needs to be globally unique.", - "oneOf": [ - { - "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-.]*$", - "type": "string" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "properties": { - "description": "The resource-specific properties for this resource.", - "oneOf": [ - { - "$ref": "#/definitions/PoolProperties" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "tags": { - "description": "Resource tags.", - "oneOf": [ - { - "additionalProperties": { - "type": "string" - }, - "properties": {}, - "type": "object" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "type": { - "enum": [ - "Microsoft.DevOpsInfrastructure/pools" - ], - "type": "string" - } - }, - "required": [ - "name", - "properties", - "apiVersion", - "type" - ], - "type": "object" - } - }, - "definitions": { - "AgentProfile": { - "description": "The agent profile of the machines in the pool.", - "oneOf": [ - { - "description": "Stateful profile meaning that the machines will be returned to the pool after running a job.", - "properties": { - "kind": { - "enum": [ - "Stateful" - ], - "type": "string" - }, - "maxAgentLifetime": { - "description": "How long should stateful machines be kept around. The maximum is one week.", - "type": "string" - } - }, - "required": [ - "maxAgentLifetime", - "kind" - ], - "type": "object" - }, - { - "description": "Stateless profile meaning that the machines will be cleaned up after running a job.", - "properties": { - "kind": { - "enum": [ - "Stateless" - ], - "type": "string" - } - }, - "required": [ - "kind" - ], - "type": "object" - } - ], - "properties": { - "resourcePredictions": { - "description": "Defines pool buffer.", - "oneOf": [ - { - "type": "object" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - }, - "type": "object" - }, - "AzureDevOpsPermissionProfile": { - "description": "Defines the type of Azure DevOps pool permission.", - "properties": { - "groups": { - "description": "Group email addresses", - "oneOf": [ - { - "items": { - "type": "string" - }, - "type": "array" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "kind": { - "description": "Determines who has admin permissions to the Azure DevOps pool.", - "oneOf": [ - { - "enum": [ - "Inherit", - "CreatorOnly", - "SpecificAccounts" - ], - "type": "string" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "users": { - "description": "User email addresses", - "oneOf": [ - { - "items": { - "type": "string" - }, - "type": "array" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - }, - "required": [ - "kind" - ], - "type": "object" - }, - "DevOpsAzureSku": { - "description": "The Azure SKU of the machines in the pool.", - "properties": { - "name": { - "description": "The Azure SKU name of the machines in the pool.", - "type": "string" - } - }, - "required": [ - "name" - ], - "type": "object" - }, - "FabricProfile": { - "description": "Defines the type of fabric the agent will run on.", - "oneOf": [ - { - "description": "The agents will run on Virtual Machine Scale Sets.", - "properties": { - "images": { - "description": "The VM images of the machines in the pool.", - "oneOf": [ - { - "items": { - "$ref": "#/definitions/PoolImage" - }, - "type": "array" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "kind": { - "enum": [ - "Vmss" - ], - "type": "string" - }, - "networkProfile": { - "description": "The network profile of the machines in the pool.", - "oneOf": [ - { - "$ref": "#/definitions/NetworkProfile" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "osProfile": { - "description": "The OS profile of the machines in the pool.", - "oneOf": [ - { - "$ref": "#/definitions/OsProfile" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "sku": { - "description": "The Azure SKU of the machines in the pool.", - "oneOf": [ - { - "$ref": "#/definitions/DevOpsAzureSku" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "storageProfile": { - "description": "The storage profile of the machines in the pool.", - "oneOf": [ - { - "$ref": "#/definitions/StorageProfile" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - }, - "required": [ - "sku", - "images", - "kind" - ], - "type": "object" - } - ], - "properties": {}, - "type": "object" - }, - "GitHubOrganization": { - "description": "Defines a GitHub organization", - "properties": { - "repositories": { - "description": "Optional list of repositories in which the pool should be created.", - "oneOf": [ - { - "items": { - "type": "string" - }, - "type": "array" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "url": { - "description": "The GitHub organization URL in which the pool should be created.", - "type": "string" - } - }, - "required": [ - "url" - ], - "type": "object" - }, - "ManagedServiceIdentity": { - "description": "Managed service identity (system assigned and/or user assigned identities)", - "properties": { - "type": { - "description": "Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).", - "oneOf": [ - { - "enum": [ - "None", - "SystemAssigned", - "UserAssigned", - "SystemAssigned, UserAssigned" - ], - "type": "string" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "userAssignedIdentities": { - "description": "The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests.", - "oneOf": [ - { - "additionalProperties": { - "$ref": "#/definitions/UserAssignedIdentity" - }, - "properties": {}, - "type": "object" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - }, - "required": [ - "type" - ], - "type": "object" - }, - "NetworkProfile": { - "description": "The network profile of the machines in the pool.", - "properties": { - "subnetId": { - "description": "The subnet id on which to put all machines created in the pool.", - "type": "string" - } - }, - "required": [ - "subnetId" - ], - "type": "object" - }, - "Organization": { - "description": "Defines an Azure DevOps organization.", - "properties": { - "parallelism": { - "description": "How many machines can be created at maximum in this organization out of the maximumConcurrency of the pool.", - "oneOf": [ - { - "type": "integer" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "projects": { - "description": "Optional list of projects in which the pool should be created.", - "oneOf": [ - { - "items": { - "type": "string" - }, - "type": "array" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "url": { - "description": "The Azure DevOps organization URL in which the pool should be created.", - "type": "string" - } - }, - "required": [ - "url" - ], - "type": "object" - }, - "OrganizationProfile": { - "description": "Defines the organization in which the pool will be used.", - "oneOf": [ - { - "description": "Azure DevOps organization profile", - "properties": { - "kind": { - "enum": [ - "AzureDevOps" - ], - "type": "string" - }, - "organizations": { - "description": "The list of Azure DevOps organizations the pool should be present in.", - "oneOf": [ - { - "items": { - "$ref": "#/definitions/Organization" - }, - "type": "array" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "permissionProfile": { - "description": "The type of permission which determines which accounts are admins on the Azure DevOps pool.", - "oneOf": [ - { - "$ref": "#/definitions/AzureDevOpsPermissionProfile" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - }, - "required": [ - "organizations", - "kind" - ], - "type": "object" - }, - { - "description": "GitHub organization profile", - "properties": { - "kind": { - "enum": [ - "GitHub" - ], - "type": "string" - }, - "organizations": { - "description": "The list of GitHub organizations/repositories the pool should be present in.", - "oneOf": [ - { - "items": { - "$ref": "#/definitions/GitHubOrganization" - }, - "type": "array" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - }, - "required": [ - "organizations", - "kind" - ], - "type": "object" - } - ], - "properties": {}, - "type": "object" - }, - "OsProfile": { - "description": "The OS profile of the machines in the pool.", - "properties": { - "logonType": { - "description": "Determines how the service should be run. By default, this will be set to Service.", - "oneOf": [ - { - "enum": [ - "Service", - "Interactive" - ], - "type": "string" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "secretsManagementSettings": { - "description": "The secret management settings of the machines in the pool.", - "oneOf": [ - { - "$ref": "#/definitions/SecretsManagementSettings" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - }, - "type": "object" - }, - "PoolImage": { - "description": "The VM image of the machines in the pool.", - "properties": { - "aliases": { - "description": "List of aliases to reference the image by.", - "oneOf": [ - { - "items": { - "type": "string" - }, - "type": "array" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "buffer": { - "description": "The percentage of the buffer to be allocated to this image.", - "type": "string" - }, - "resourceId": { - "description": "The resource id of the image.", - "type": "string" - } - }, - "required": [ - "resourceId" - ], - "type": "object" - }, - "PoolProperties": { - "description": "Pool properties", - "properties": { - "agentProfile": { - "description": "Defines how the machine will be handled once it executed a job.", - "oneOf": [ - { - "$ref": "#/definitions/AgentProfile" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "devCenterProjectResourceId": { - "description": "The resource id of the DevCenter Project the pool belongs to.", - "type": "string" - }, - "fabricProfile": { - "description": "Defines the type of fabric the agent will run on.", - "oneOf": [ - { - "$ref": "#/definitions/FabricProfile" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "maximumConcurrency": { - "description": "Defines how many resources can there be created at any given time.", - "oneOf": [ - { - "maximum": 10000, - "minimum": 1, - "type": "integer" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "organizationProfile": { - "description": "Defines the organization in which the pool will be used.", - "oneOf": [ - { - "$ref": "#/definitions/OrganizationProfile" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "provisioningState": { - "description": "The status of the current operation.", - "oneOf": [ - { - "enum": [ - "Succeeded", - "Failed", - "Canceled", - "Provisioning", - "Updating", - "Deleting", - "Accepted" - ], - "type": "string" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - }, - "required": [ - "maximumConcurrency", - "organizationProfile", - "agentProfile", - "fabricProfile", - "devCenterProjectResourceId" - ], - "type": "object" - }, - "SecretsManagementSettings": { - "description": "The secret management settings of the machines in the pool.", - "properties": { - "certificateStoreLocation": { - "description": "Where to store certificates on the machine.", - "type": "string" - }, - "keyExportable": { - "description": "Defines if the key of the certificates should be exportable.", - "oneOf": [ - { - "type": "boolean" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "observedCertificates": { - "description": "The list of certificates to install on all machines in the pool.", - "oneOf": [ - { - "items": { - "type": "string" - }, - "type": "array" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - }, - "required": [ - "observedCertificates", - "keyExportable" - ], - "type": "object" - }, - "StorageProfile": { - "description": "The storage profile of the VMSS.", - "properties": { - "osDiskStorageAccountType": { - "description": "The Azure SKU name of the machines in the pool.", - "oneOf": [ - { - "enum": [ - "Standard", - "Premium", - "StandardSSD" - ], - "type": "string" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - }, - "type": "object" - }, - "UserAssignedIdentity": { - "description": "User assigned identity properties", - "properties": {}, - "type": "object" - } - } -} \ No newline at end of file diff --git a/schemas/2024-03-26-preview/Microsoft.DevOpsInfrastructure.json b/schemas/2024-03-26-preview/Microsoft.DevOpsInfrastructure.json deleted file mode 100644 index 986f178a56..0000000000 --- a/schemas/2024-03-26-preview/Microsoft.DevOpsInfrastructure.json +++ /dev/null @@ -1,768 +0,0 @@ -{ - "id": "https://schema.management.azure.com/schemas/2024-03-26-preview/Microsoft.DevOpsInfrastructure.json#", - "title": "Microsoft.DevOpsInfrastructure", - "description": "Microsoft DevOpsInfrastructure Resource Types", - "$schema": "http://json-schema.org/draft-04/schema#", - "resourceDefinitions": { - "pools": { - "description": "Microsoft.DevOpsInfrastructure/pools", - "properties": { - "apiVersion": { - "enum": [ - "2024-03-26-preview" - ], - "type": "string" - }, - "identity": { - "description": "The managed service identities assigned to this resource.", - "oneOf": [ - { - "$ref": "#/definitions/ManagedServiceIdentity" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "location": { - "description": "The geo-location where the resource lives", - "type": "string" - }, - "name": { - "description": "Name of the pool. It needs to be globally unique.", - "oneOf": [ - { - "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-.]*$", - "type": "string" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "properties": { - "description": "The resource-specific properties for this resource.", - "oneOf": [ - { - "$ref": "#/definitions/PoolProperties" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "tags": { - "description": "Resource tags.", - "oneOf": [ - { - "additionalProperties": { - "type": "string" - }, - "properties": {}, - "type": "object" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "type": { - "enum": [ - "Microsoft.DevOpsInfrastructure/pools" - ], - "type": "string" - } - }, - "required": [ - "name", - "properties", - "apiVersion", - "type" - ], - "type": "object" - } - }, - "definitions": { - "AgentProfile": { - "description": "The agent profile of the machines in the pool.", - "oneOf": [ - { - "description": "Stateful profile meaning that the machines will be returned to the pool after running a job.", - "properties": { - "kind": { - "enum": [ - "Stateful" - ], - "type": "string" - }, - "maxAgentLifetime": { - "description": "How long should stateful machines be kept around. The maximum is one week.", - "type": "string" - } - }, - "required": [ - "maxAgentLifetime", - "kind" - ], - "type": "object" - }, - { - "description": "Stateless profile meaning that the machines will be cleaned up after running a job.", - "properties": { - "kind": { - "enum": [ - "Stateless" - ], - "type": "string" - } - }, - "required": [ - "kind" - ], - "type": "object" - } - ], - "properties": { - "resourcePredictions": { - "description": "Defines pool buffer.", - "oneOf": [ - { - "type": "object" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - }, - "type": "object" - }, - "AzureDevOpsPermissionProfile": { - "description": "Defines the type of Azure DevOps pool permission.", - "properties": { - "groups": { - "description": "Group email addresses", - "oneOf": [ - { - "items": { - "type": "string" - }, - "type": "array" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "kind": { - "description": "Determines who has admin permissions to the Azure DevOps pool.", - "oneOf": [ - { - "enum": [ - "Inherit", - "CreatorOnly", - "SpecificAccounts" - ], - "type": "string" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "users": { - "description": "User email addresses", - "oneOf": [ - { - "items": { - "type": "string" - }, - "type": "array" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - }, - "required": [ - "kind" - ], - "type": "object" - }, - "DataDisk": { - "description": "The data disk of the VMSS.", - "properties": { - "caching": { - "description": "The type of caching to be enabled for the data disks. The default value for caching is readwrite. For information about the caching options see: https://blogs.msdn.microsoft.com/windowsazurestorage/2012/06/27/exploring-windows-azure-drives-disks-and-images/.", - "oneOf": [ - { - "enum": [ - "None", - "ReadOnly", - "ReadWrite" - ], - "type": "string" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "diskSizeGiB": { - "description": "The initial disk size in gigabytes.", - "oneOf": [ - { - "type": "integer" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "driveLetter": { - "description": "The drive letter for the empty data disk. If not specified, it will be the first available letter.", - "type": "string" - }, - "storageAccountType": { - "description": "The storage Account type to be used for the data disk. If omitted, the default is \"standard_lrs\".", - "oneOf": [ - { - "enum": [ - "standard_lrs", - "premium_lrs", - "standardssd_lrs", - "premium_zrs", - "standardssd_zrs" - ], - "type": "string" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - }, - "type": "object" - }, - "DevOpsAzureSku": { - "description": "The Azure SKU of the machines in the pool.", - "properties": { - "name": { - "description": "The Azure SKU name of the machines in the pool.", - "type": "string" - } - }, - "required": [ - "name" - ], - "type": "object" - }, - "FabricProfile": { - "description": "Defines the type of fabric the agent will run on.", - "oneOf": [ - { - "description": "The agents will run on Virtual Machine Scale Sets.", - "properties": { - "images": { - "description": "The VM images of the machines in the pool.", - "oneOf": [ - { - "items": { - "$ref": "#/definitions/PoolImage" - }, - "type": "array" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "kind": { - "enum": [ - "Vmss" - ], - "type": "string" - }, - "networkProfile": { - "description": "The network profile of the machines in the pool.", - "oneOf": [ - { - "$ref": "#/definitions/NetworkProfile" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "osProfile": { - "description": "The OS profile of the machines in the pool.", - "oneOf": [ - { - "$ref": "#/definitions/OsProfile" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "sku": { - "description": "The Azure SKU of the machines in the pool.", - "oneOf": [ - { - "$ref": "#/definitions/DevOpsAzureSku" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "storageProfile": { - "description": "The storage profile of the machines in the pool.", - "oneOf": [ - { - "$ref": "#/definitions/StorageProfile" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - }, - "required": [ - "sku", - "images", - "kind" - ], - "type": "object" - } - ], - "properties": {}, - "type": "object" - }, - "GitHubOrganization": { - "description": "Defines a GitHub organization", - "properties": { - "repositories": { - "description": "Optional list of repositories in which the pool should be created.", - "oneOf": [ - { - "items": { - "type": "string" - }, - "type": "array" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "url": { - "description": "The GitHub organization URL in which the pool should be created.", - "type": "string" - } - }, - "required": [ - "url" - ], - "type": "object" - }, - "ManagedServiceIdentity": { - "description": "Managed service identity (system assigned and/or user assigned identities)", - "properties": { - "type": { - "description": "Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).", - "oneOf": [ - { - "enum": [ - "None", - "SystemAssigned", - "UserAssigned", - "SystemAssigned, UserAssigned" - ], - "type": "string" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "userAssignedIdentities": { - "description": "The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests.", - "oneOf": [ - { - "additionalProperties": { - "$ref": "#/definitions/UserAssignedIdentity" - }, - "properties": {}, - "type": "object" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - }, - "required": [ - "type" - ], - "type": "object" - }, - "NetworkProfile": { - "description": "The network profile of the machines in the pool.", - "properties": { - "subnetId": { - "description": "The subnet id on which to put all machines created in the pool.", - "type": "string" - } - }, - "required": [ - "subnetId" - ], - "type": "object" - }, - "Organization": { - "description": "Defines an Azure DevOps organization.", - "properties": { - "parallelism": { - "description": "How many machines can be created at maximum in this organization out of the maximumConcurrency of the pool.", - "oneOf": [ - { - "type": "integer" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "projects": { - "description": "Optional list of projects in which the pool should be created.", - "oneOf": [ - { - "items": { - "type": "string" - }, - "type": "array" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "url": { - "description": "The Azure DevOps organization URL in which the pool should be created.", - "type": "string" - } - }, - "required": [ - "url" - ], - "type": "object" - }, - "OrganizationProfile": { - "description": "Defines the organization in which the pool will be used.", - "oneOf": [ - { - "description": "Azure DevOps organization profile", - "properties": { - "kind": { - "enum": [ - "AzureDevOps" - ], - "type": "string" - }, - "organizations": { - "description": "The list of Azure DevOps organizations the pool should be present in.", - "oneOf": [ - { - "items": { - "$ref": "#/definitions/Organization" - }, - "type": "array" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "permissionProfile": { - "description": "The type of permission which determines which accounts are admins on the Azure DevOps pool.", - "oneOf": [ - { - "$ref": "#/definitions/AzureDevOpsPermissionProfile" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - }, - "required": [ - "organizations", - "kind" - ], - "type": "object" - }, - { - "description": "GitHub organization profile", - "properties": { - "kind": { - "enum": [ - "GitHub" - ], - "type": "string" - }, - "organizations": { - "description": "The list of GitHub organizations/repositories the pool should be present in.", - "oneOf": [ - { - "items": { - "$ref": "#/definitions/GitHubOrganization" - }, - "type": "array" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - }, - "required": [ - "organizations", - "kind" - ], - "type": "object" - } - ], - "properties": {}, - "type": "object" - }, - "OsProfile": { - "description": "The OS profile of the machines in the pool.", - "properties": { - "logonType": { - "description": "Determines how the service should be run. By default, this will be set to Service.", - "oneOf": [ - { - "enum": [ - "Service", - "Interactive" - ], - "type": "string" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "secretsManagementSettings": { - "description": "The secret management settings of the machines in the pool.", - "oneOf": [ - { - "$ref": "#/definitions/SecretsManagementSettings" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - }, - "type": "object" - }, - "PoolImage": { - "description": "The VM image of the machines in the pool.", - "properties": { - "aliases": { - "description": "List of aliases to reference the image by.", - "oneOf": [ - { - "items": { - "type": "string" - }, - "type": "array" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "buffer": { - "description": "The percentage of the buffer to be allocated to this image.", - "type": "string" - }, - "resourceId": { - "description": "The resource id of the image.", - "type": "string" - }, - "wellKnownImageName": { - "description": "The image to use from a well-known set of images made available to customers.", - "type": "string" - } - }, - "type": "object" - }, - "PoolProperties": { - "description": "Pool properties", - "properties": { - "agentProfile": { - "description": "Defines how the machine will be handled once it executed a job.", - "oneOf": [ - { - "$ref": "#/definitions/AgentProfile" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "devCenterProjectResourceId": { - "description": "The resource id of the DevCenter Project the pool belongs to.", - "type": "string" - }, - "fabricProfile": { - "description": "Defines the type of fabric the agent will run on.", - "oneOf": [ - { - "$ref": "#/definitions/FabricProfile" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "maximumConcurrency": { - "description": "Defines how many resources can there be created at any given time.", - "oneOf": [ - { - "maximum": 10000, - "minimum": 1, - "type": "integer" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "organizationProfile": { - "description": "Defines the organization in which the pool will be used.", - "oneOf": [ - { - "$ref": "#/definitions/OrganizationProfile" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "provisioningState": { - "description": "The status of the current operation.", - "oneOf": [ - { - "enum": [ - "Succeeded", - "Failed", - "Canceled", - "Provisioning", - "Updating", - "Deleting", - "Accepted" - ], - "type": "string" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - }, - "required": [ - "maximumConcurrency", - "organizationProfile", - "agentProfile", - "fabricProfile", - "devCenterProjectResourceId" - ], - "type": "object" - }, - "SecretsManagementSettings": { - "description": "The secret management settings of the machines in the pool.", - "properties": { - "certificateStoreLocation": { - "description": "Where to store certificates on the machine.", - "type": "string" - }, - "keyExportable": { - "description": "Defines if the key of the certificates should be exportable.", - "oneOf": [ - { - "type": "boolean" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "observedCertificates": { - "description": "The list of certificates to install on all machines in the pool.", - "oneOf": [ - { - "items": { - "type": "string" - }, - "type": "array" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - }, - "required": [ - "observedCertificates", - "keyExportable" - ], - "type": "object" - }, - "StorageProfile": { - "description": "The storage profile of the VMSS.", - "properties": { - "dataDisks": { - "description": "A list of empty data disks to attach.", - "oneOf": [ - { - "items": { - "$ref": "#/definitions/DataDisk" - }, - "type": "array" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "osDiskStorageAccountType": { - "description": "The Azure SKU name of the machines in the pool.", - "oneOf": [ - { - "enum": [ - "Standard", - "Premium", - "StandardSSD" - ], - "type": "string" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - }, - "type": "object" - }, - "UserAssignedIdentity": { - "description": "User assigned identity properties", - "properties": {}, - "type": "object" - } - } -} \ No newline at end of file diff --git a/schemas/2024-04-04-preview/Microsoft.DevOpsInfrastructure.json b/schemas/2024-04-04-preview/Microsoft.DevOpsInfrastructure.json deleted file mode 100644 index 46e4ff5eae..0000000000 --- a/schemas/2024-04-04-preview/Microsoft.DevOpsInfrastructure.json +++ /dev/null @@ -1,837 +0,0 @@ -{ - "id": "https://schema.management.azure.com/schemas/2024-04-04-preview/Microsoft.DevOpsInfrastructure.json#", - "title": "Microsoft.DevOpsInfrastructure", - "description": "Microsoft DevOpsInfrastructure Resource Types", - "$schema": "http://json-schema.org/draft-04/schema#", - "resourceDefinitions": { - "pools": { - "description": "Microsoft.DevOpsInfrastructure/pools", - "properties": { - "apiVersion": { - "enum": [ - "2024-04-04-preview" - ], - "type": "string" - }, - "identity": { - "description": "The managed service identities assigned to this resource.", - "oneOf": [ - { - "$ref": "#/definitions/ManagedServiceIdentity" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "location": { - "description": "The geo-location where the resource lives", - "type": "string" - }, - "name": { - "description": "Name of the pool. It needs to be globally unique.", - "oneOf": [ - { - "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-.]*$", - "type": "string" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "properties": { - "description": "The resource-specific properties for this resource.", - "oneOf": [ - { - "$ref": "#/definitions/PoolProperties" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "tags": { - "description": "Resource tags.", - "oneOf": [ - { - "additionalProperties": { - "type": "string" - }, - "properties": {}, - "type": "object" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "type": { - "enum": [ - "Microsoft.DevOpsInfrastructure/pools" - ], - "type": "string" - } - }, - "required": [ - "name", - "properties", - "apiVersion", - "type" - ], - "type": "object" - } - }, - "definitions": { - "AgentProfile": { - "description": "The agent profile of the machines in the pool.", - "oneOf": [ - { - "description": "Stateful profile meaning that the machines will be returned to the pool after running a job.", - "properties": { - "gracePeriodTimeSpan": { - "description": "How long should the machine be kept around after it ran a workload when there are no stand-by agents. The maximum is one week.", - "type": "string" - }, - "kind": { - "enum": [ - "Stateful" - ], - "type": "string" - }, - "maxAgentLifetime": { - "description": "How long should stateful machines be kept around. The maximum is one week.", - "type": "string" - } - }, - "required": [ - "kind" - ], - "type": "object" - }, - { - "description": "Stateless profile meaning that the machines will be cleaned up after running a job.", - "properties": { - "kind": { - "enum": [ - "Stateless" - ], - "type": "string" - } - }, - "required": [ - "kind" - ], - "type": "object" - } - ], - "properties": { - "resourcePredictions": { - "description": "Defines pool buffer/stand-by agents.", - "oneOf": [ - { - "type": "object" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "resourcePredictionsProfile": { - "description": "Defines how the pool buffer/stand-by agents is provided.", - "oneOf": [ - { - "$ref": "#/definitions/ResourcePredictionsProfile" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - }, - "type": "object" - }, - "AzureDevOpsPermissionProfile": { - "description": "Defines the type of Azure DevOps pool permission.", - "properties": { - "groups": { - "description": "Group email addresses", - "oneOf": [ - { - "items": { - "type": "string" - }, - "type": "array" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "kind": { - "description": "Determines who has admin permissions to the Azure DevOps pool.", - "oneOf": [ - { - "enum": [ - "Inherit", - "CreatorOnly", - "SpecificAccounts" - ], - "type": "string" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "users": { - "description": "User email addresses", - "oneOf": [ - { - "items": { - "type": "string" - }, - "type": "array" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - }, - "required": [ - "kind" - ], - "type": "object" - }, - "DataDisk": { - "description": "The data disk of the VMSS.", - "properties": { - "caching": { - "description": "The type of caching to be enabled for the data disks. The default value for caching is readwrite. For information about the caching options see: https://blogs.msdn.microsoft.com/windowsazurestorage/2012/06/27/exploring-windows-azure-drives-disks-and-images/.", - "oneOf": [ - { - "enum": [ - "None", - "ReadOnly", - "ReadWrite" - ], - "type": "string" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "diskSizeGiB": { - "description": "The initial disk size in gigabytes.", - "oneOf": [ - { - "type": "integer" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "driveLetter": { - "description": "The drive letter for the empty data disk. If not specified, it will be the first available letter.", - "type": "string" - }, - "storageAccountType": { - "description": "The storage Account type to be used for the data disk. If omitted, the default is \"standard_lrs\".", - "oneOf": [ - { - "enum": [ - "Standard_LRS", - "Premium_LRS", - "StandardSSD_LRS", - "Premium_ZRS", - "StandardSSD_ZRS" - ], - "type": "string" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - }, - "type": "object" - }, - "DevOpsAzureSku": { - "description": "The Azure SKU of the machines in the pool.", - "properties": { - "name": { - "description": "The Azure SKU name of the machines in the pool.", - "type": "string" - } - }, - "required": [ - "name" - ], - "type": "object" - }, - "FabricProfile": { - "description": "Defines the type of fabric the agent will run on.", - "oneOf": [ - { - "description": "The agents will run on Virtual Machine Scale Sets.", - "properties": { - "images": { - "description": "The VM images of the machines in the pool.", - "oneOf": [ - { - "items": { - "$ref": "#/definitions/PoolImage" - }, - "type": "array" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "kind": { - "enum": [ - "Vmss" - ], - "type": "string" - }, - "networkProfile": { - "description": "The network profile of the machines in the pool.", - "oneOf": [ - { - "$ref": "#/definitions/NetworkProfile" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "osProfile": { - "description": "The OS profile of the machines in the pool.", - "oneOf": [ - { - "$ref": "#/definitions/OsProfile" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "sku": { - "description": "The Azure SKU of the machines in the pool.", - "oneOf": [ - { - "$ref": "#/definitions/DevOpsAzureSku" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "storageProfile": { - "description": "The storage profile of the machines in the pool.", - "oneOf": [ - { - "$ref": "#/definitions/StorageProfile" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - }, - "required": [ - "sku", - "images", - "kind" - ], - "type": "object" - } - ], - "properties": {}, - "type": "object" - }, - "GitHubOrganization": { - "description": "Defines a GitHub organization", - "properties": { - "repositories": { - "description": "Optional list of repositories in which the pool should be created.", - "oneOf": [ - { - "items": { - "type": "string" - }, - "type": "array" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "url": { - "description": "The GitHub organization URL in which the pool should be created.", - "type": "string" - } - }, - "required": [ - "url" - ], - "type": "object" - }, - "ManagedServiceIdentity": { - "description": "Managed service identity (system assigned and/or user assigned identities)", - "properties": { - "type": { - "description": "Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).", - "oneOf": [ - { - "enum": [ - "None", - "SystemAssigned", - "UserAssigned", - "SystemAssigned,UserAssigned" - ], - "type": "string" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "userAssignedIdentities": { - "description": "The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests.", - "oneOf": [ - { - "additionalProperties": { - "$ref": "#/definitions/UserAssignedIdentity" - }, - "properties": {}, - "type": "object" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - }, - "required": [ - "type" - ], - "type": "object" - }, - "NetworkProfile": { - "description": "The network profile of the machines in the pool.", - "properties": { - "subnetId": { - "description": "The subnet id on which to put all machines created in the pool.", - "type": "string" - } - }, - "required": [ - "subnetId" - ], - "type": "object" - }, - "Organization": { - "description": "Defines an Azure DevOps organization.", - "properties": { - "parallelism": { - "description": "How many machines can be created at maximum in this organization out of the maximumConcurrency of the pool.", - "oneOf": [ - { - "type": "integer" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "projects": { - "description": "Optional list of projects in which the pool should be created.", - "oneOf": [ - { - "items": { - "type": "string" - }, - "type": "array" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "url": { - "description": "The Azure DevOps organization URL in which the pool should be created.", - "type": "string" - } - }, - "required": [ - "url" - ], - "type": "object" - }, - "OrganizationProfile": { - "description": "Defines the organization in which the pool will be used.", - "oneOf": [ - { - "description": "Azure DevOps organization profile", - "properties": { - "kind": { - "enum": [ - "AzureDevOps" - ], - "type": "string" - }, - "organizations": { - "description": "The list of Azure DevOps organizations the pool should be present in.", - "oneOf": [ - { - "items": { - "$ref": "#/definitions/Organization" - }, - "type": "array" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "permissionProfile": { - "description": "The type of permission which determines which accounts are admins on the Azure DevOps pool.", - "oneOf": [ - { - "$ref": "#/definitions/AzureDevOpsPermissionProfile" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - }, - "required": [ - "organizations", - "kind" - ], - "type": "object" - }, - { - "description": "GitHub organization profile", - "properties": { - "kind": { - "enum": [ - "GitHub" - ], - "type": "string" - }, - "organizations": { - "description": "The list of GitHub organizations/repositories the pool should be present in.", - "oneOf": [ - { - "items": { - "$ref": "#/definitions/GitHubOrganization" - }, - "type": "array" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - }, - "required": [ - "organizations", - "kind" - ], - "type": "object" - } - ], - "properties": {}, - "type": "object" - }, - "OsProfile": { - "description": "The OS profile of the machines in the pool.", - "properties": { - "logonType": { - "description": "Determines how the service should be run. By default, this will be set to Service.", - "oneOf": [ - { - "enum": [ - "Service", - "Interactive" - ], - "type": "string" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "secretsManagementSettings": { - "description": "The secret management settings of the machines in the pool.", - "oneOf": [ - { - "$ref": "#/definitions/SecretsManagementSettings" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - }, - "type": "object" - }, - "PoolImage": { - "description": "The VM image of the machines in the pool.", - "properties": { - "aliases": { - "description": "List of aliases to reference the image by.", - "oneOf": [ - { - "items": { - "type": "string" - }, - "type": "array" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "buffer": { - "description": "The percentage of the buffer to be allocated to this image.", - "type": "string" - }, - "resourceId": { - "description": "The resource id of the image.", - "type": "string" - }, - "wellKnownImageName": { - "description": "The image to use from a well-known set of images made available to customers.", - "type": "string" - } - }, - "type": "object" - }, - "PoolProperties": { - "description": "Pool properties", - "properties": { - "agentProfile": { - "description": "Defines how the machine will be handled once it executed a job.", - "oneOf": [ - { - "$ref": "#/definitions/AgentProfile" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "devCenterProjectResourceId": { - "description": "The resource id of the DevCenter Project the pool belongs to.", - "type": "string" - }, - "fabricProfile": { - "description": "Defines the type of fabric the agent will run on.", - "oneOf": [ - { - "$ref": "#/definitions/FabricProfile" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "maximumConcurrency": { - "description": "Defines how many resources can there be created at any given time.", - "oneOf": [ - { - "maximum": 10000, - "minimum": 1, - "type": "integer" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "organizationProfile": { - "description": "Defines the organization in which the pool will be used.", - "oneOf": [ - { - "$ref": "#/definitions/OrganizationProfile" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "provisioningState": { - "description": "The status of the current operation.", - "oneOf": [ - { - "enum": [ - "Succeeded", - "Failed", - "Canceled", - "Provisioning", - "Updating", - "Deleting", - "Accepted" - ], - "type": "string" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - }, - "required": [ - "maximumConcurrency", - "organizationProfile", - "agentProfile", - "fabricProfile", - "devCenterProjectResourceId" - ], - "type": "object" - }, - "ResourcePredictionsProfile": { - "description": "Determines how the stand-by scheme should be provided.", - "oneOf": [ - { - "description": "The stand-by agent scheme is determined based on historical demand.", - "properties": { - "kind": { - "enum": [ - "Automatic" - ], - "type": "string" - }, - "predictionPreference": { - "description": "Determines the balance between cost and performance.", - "oneOf": [ - { - "enum": [ - "Balanced", - "MostCostEffective", - "MoreCostEffective", - "MorePerformance", - "BestPerformance" - ], - "type": "string" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - }, - "required": [ - "kind" - ], - "type": "object" - }, - { - "description": "Customer provides the stand-by agent scheme.", - "properties": { - "kind": { - "enum": [ - "Manual" - ], - "type": "string" - } - }, - "required": [ - "kind" - ], - "type": "object" - } - ], - "properties": {}, - "type": "object" - }, - "SecretsManagementSettings": { - "description": "The secret management settings of the machines in the pool.", - "properties": { - "certificateStoreLocation": { - "description": "Where to store certificates on the machine.", - "type": "string" - }, - "keyExportable": { - "description": "Defines if the key of the certificates should be exportable.", - "oneOf": [ - { - "type": "boolean" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "observedCertificates": { - "description": "The list of certificates to install on all machines in the pool.", - "oneOf": [ - { - "items": { - "type": "string" - }, - "type": "array" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - }, - "required": [ - "observedCertificates", - "keyExportable" - ], - "type": "object" - }, - "StorageProfile": { - "description": "The storage profile of the VMSS.", - "properties": { - "dataDisks": { - "description": "A list of empty data disks to attach.", - "oneOf": [ - { - "items": { - "$ref": "#/definitions/DataDisk" - }, - "type": "array" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - }, - "osDiskStorageAccountType": { - "description": "The Azure SKU name of the machines in the pool.", - "oneOf": [ - { - "enum": [ - "Standard", - "Premium", - "StandardSSD" - ], - "type": "string" - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ] - } - }, - "type": "object" - }, - "UserAssignedIdentity": { - "description": "User assigned identity properties", - "properties": {}, - "type": "object" - } - } -} \ No newline at end of file diff --git a/schemas/common/autogeneratedResources.json b/schemas/common/autogeneratedResources.json index ab4d6df4d4..d05d48a61e 100644 --- a/schemas/common/autogeneratedResources.json +++ b/schemas/common/autogeneratedResources.json @@ -14170,18 +14170,6 @@ { "$ref": "https://schema.management.azure.com/schemas/2020-07-13-preview/Microsoft.DevOps.json#/resourceDefinitions/pipelines" }, - { - "$ref": "https://schema.management.azure.com/schemas/2023-10-30-preview/Microsoft.DevOpsInfrastructure.json#/resourceDefinitions/pools" - }, - { - "$ref": "https://schema.management.azure.com/schemas/2023-12-13-preview/Microsoft.DevOpsInfrastructure.json#/resourceDefinitions/pools" - }, - { - "$ref": "https://schema.management.azure.com/schemas/2024-03-26-preview/Microsoft.DevOpsInfrastructure.json#/resourceDefinitions/pools" - }, - { - "$ref": "https://schema.management.azure.com/schemas/2024-04-04-preview/Microsoft.DevOpsInfrastructure.json#/resourceDefinitions/pools" - }, { "$ref": "https://schema.management.azure.com/schemas/2019-04-01/Microsoft.DevSpaces.json#/resourceDefinitions/controllers" },