Microsoft.DevHub (preview:2025-03-01)

2025/03/13 • 28 new methods

IacProfiles_List (new)
Description Gets a list of IacProfiles associated with the specified subscription.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.DevHub/iacProfiles
{
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
githubProfile:
{
repositoryName: string ,
repositoryMainBranch: string ,
repositoryOwner: string ,
authStatus: enum ,
pullNumber: integer ,
prStatus: enum ,
branchName: string ,
}
,
terraformProfile:
{
storageAccountSubscription: string ,
storageAccountResourceGroup: string ,
storageAccountName: string ,
storageContainerName: string ,
}
,
stages:
[
{
stageName: string ,
dependencies:
[
string ,
]
,
gitEnvironment: string ,
}
,
]
,
templates:
[
{
templateName: string ,
sourceResourceId: string ,
instanceStage: string ,
instanceName: string ,
templateDetails:
[
{
productName: string ,
count: integer ,
namingConvention: string ,
}
,
]
,
quickStartTemplateType: enum ,
}
,
]
,
}
,
etag: string ,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
IacProfiles_ListByResourceGroup (new)
Description Gets a list of iacProfiles within a resource group.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevHub/iacProfiles
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
githubProfile:
{
repositoryName: string ,
repositoryMainBranch: string ,
repositoryOwner: string ,
authStatus: enum ,
pullNumber: integer ,
prStatus: enum ,
branchName: string ,
}
,
terraformProfile:
{
storageAccountSubscription: string ,
storageAccountResourceGroup: string ,
storageAccountName: string ,
storageContainerName: string ,
}
,
stages:
[
{
stageName: string ,
dependencies:
[
string ,
]
,
gitEnvironment: string ,
}
,
]
,
templates:
[
{
templateName: string ,
sourceResourceId: string ,
instanceStage: string ,
instanceName: string ,
templateDetails:
[
{
productName: string ,
count: integer ,
namingConvention: string ,
}
,
]
,
quickStartTemplateType: enum ,
}
,
]
,
}
,
etag: string ,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
IacProfiles_Get (new)
Description Gets a IacProfile.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevHub/iacProfiles/{iacProfileName}
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
iacProfileName: string ,
}

⚐ Response (200)

{
properties:
{
githubProfile:
{
repositoryName: string ,
repositoryMainBranch: string ,
repositoryOwner: string ,
authStatus: enum ,
pullNumber: integer ,
prStatus: enum ,
branchName: string ,
}
,
terraformProfile:
{
storageAccountSubscription: string ,
storageAccountResourceGroup: string ,
storageAccountName: string ,
storageContainerName: string ,
}
,
stages:
[
{
stageName: string ,
dependencies:
[
string ,
]
,
gitEnvironment: string ,
}
,
]
,
templates:
[
{
templateName: string ,
sourceResourceId: string ,
instanceStage: string ,
instanceName: string ,
templateDetails:
[
{
productName: string ,
count: integer ,
namingConvention: string ,
}
,
]
,
quickStartTemplateType: enum ,
}
,
]
,
}
,
etag: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
IacProfiles_CreateOrUpdate (new)
Description Creates or updates a IacProfile
Reference Link ¶

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevHub/iacProfiles/{iacProfileName}
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
iacProfileName: string ,
parameters:
{
properties:
{
githubProfile:
{
repositoryName: string ,
repositoryMainBranch: string ,
repositoryOwner: string ,
authStatus: enum ,
pullNumber: integer ,
prStatus: enum ,
branchName: string ,
}
,
terraformProfile:
{
storageAccountSubscription: string ,
storageAccountResourceGroup: string ,
storageAccountName: string ,
storageContainerName: string ,
}
,
stages:
[
{
stageName: string ,
dependencies:
[
string ,
]
,
gitEnvironment: string ,
}
,
]
,
templates:
[
{
templateName: string ,
sourceResourceId: string ,
instanceStage: string ,
instanceName: string ,
templateDetails:
[
{
productName: string ,
count: integer ,
namingConvention: string ,
}
,
]
,
quickStartTemplateType: enum ,
}
,
]
,
}
,
etag: string ,
}
,
}

⚐ Response (200)

{
properties:
{
githubProfile:
{
repositoryName: string ,
repositoryMainBranch: string ,
repositoryOwner: string ,
authStatus: enum ,
pullNumber: integer ,
prStatus: enum ,
branchName: string ,
}
,
terraformProfile:
{
storageAccountSubscription: string ,
storageAccountResourceGroup: string ,
storageAccountName: string ,
storageContainerName: string ,
}
,
stages:
[
{
stageName: string ,
dependencies:
[
string ,
]
,
gitEnvironment: string ,
}
,
]
,
templates:
[
{
templateName: string ,
sourceResourceId: string ,
instanceStage: string ,
instanceName: string ,
templateDetails:
[
{
productName: string ,
count: integer ,
namingConvention: string ,
}
,
]
,
quickStartTemplateType: enum ,
}
,
]
,
}
,
etag: string ,
}

⚐ Response (201)

{
properties:
{
githubProfile:
{
repositoryName: string ,
repositoryMainBranch: string ,
repositoryOwner: string ,
authStatus: enum ,
pullNumber: integer ,
prStatus: enum ,
branchName: string ,
}
,
terraformProfile:
{
storageAccountSubscription: string ,
storageAccountResourceGroup: string ,
storageAccountName: string ,
storageContainerName: string ,
}
,
stages:
[
{
stageName: string ,
dependencies:
[
string ,
]
,
gitEnvironment: string ,
}
,
]
,
templates:
[
{
templateName: string ,
sourceResourceId: string ,
instanceStage: string ,
instanceName: string ,
templateDetails:
[
{
productName: string ,
count: integer ,
namingConvention: string ,
}
,
]
,
quickStartTemplateType: enum ,
}
,
]
,
}
,
etag: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
IacProfiles_Delete (new)
Description Deletes a IacProfile
Reference Link ¶

⚼ Request

DELETE:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevHub/iacProfiles/{iacProfileName}
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
iacProfileName: string ,
}

⚐ Response (200)

{}

⚐ Response (204)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
IacProfiles_UpdateTags (new)
Description Updates tags on a IacProfile.
Reference Link ¶

⚼ Request

PATCH:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevHub/iacProfiles/{iacProfileName}
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
iacProfileName: string ,
parameters:
{
tags: object ,
}
,
}

⚐ Response (200)

{
properties:
{
githubProfile:
{
repositoryName: string ,
repositoryMainBranch: string ,
repositoryOwner: string ,
authStatus: enum ,
pullNumber: integer ,
prStatus: enum ,
branchName: string ,
}
,
terraformProfile:
{
storageAccountSubscription: string ,
storageAccountResourceGroup: string ,
storageAccountName: string ,
storageContainerName: string ,
}
,
stages:
[
{
stageName: string ,
dependencies:
[
string ,
]
,
gitEnvironment: string ,
}
,
]
,
templates:
[
{
templateName: string ,
sourceResourceId: string ,
instanceStage: string ,
instanceName: string ,
templateDetails:
[
{
productName: string ,
count: integer ,
namingConvention: string ,
}
,
]
,
quickStartTemplateType: enum ,
}
,
]
,
}
,
etag: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
IacProfiles_Export (new)
Description Export a template
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevHub/iacProfiles/{iacProfileName}/export
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
iacProfileName: string ,
parameters:
{
templateName: string ,
resourceGroupIds:
[
string ,
]
,
siteId: string ,
instanceName: string ,
instanceStage: string ,
}
,
}

⚐ Response (200)

{
prLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
IacProfiles_Scale (new)
Description Scale by template
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevHub/iacProfiles/{iacProfileName}/scale
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
iacProfileName: string ,
parameters:
{
templateName: string ,
scaleRequirement:
[
{
region: string ,
stage: string ,
numberOfStore: integer ,
}
,
]
,
}
,
}

⚐ Response (200)

{
prLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
IacProfiles_Sync (new)
Description Sync template
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevHub/iacProfiles/{iacProfileName}/sync
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
iacProfileName: string ,
}

⚐ Response (200)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
Template_List (new)
Description Gets a list of supported templates.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.DevHub/templates
{
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
templateName: string ,
defaultVersion: string ,
versions:
[
string ,
]
,
description: string ,
templateType: enum ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
Template_Get (new)
Description Gets a list of supported templates.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.DevHub/templates/{templateName}
{
api-version: string ,
subscriptionId: string ,
templateName: string ,
}

⚐ Response (200)

{
properties:
{
templateName: string ,
defaultVersion: string ,
versions:
[
string ,
]
,
description: string ,
templateType: enum ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
VersionedTemplate_List (new)
Description Gets a list of VersionedTemplate.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.DevHub/templates/{templateName}/versions
{
api-version: string ,
subscriptionId: string ,
templateName: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
version: string ,
templateType: enum ,
parameters:
[
{
name: string ,
description: string ,
parameterType: enum ,
parameterKind: enum ,
required: boolean ,
default:
{
value: string ,
referenceParameter: string ,
}
,
}
,
]
,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
VersionedTemplate_Get (new)
Description Gets a VersionedTemplate.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.DevHub/templates/{templateName}/versions/{templateVersion}
{
api-version: string ,
subscriptionId: string ,
templateName: string ,
templateVersion: string ,
}

⚐ Response (200)

{
properties:
{
version: string ,
templateType: enum ,
parameters:
[
{
name: string ,
description: string ,
parameterType: enum ,
parameterKind: enum ,
required: boolean ,
default:
{
value: string ,
referenceParameter: string ,
}
,
}
,
]
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
VersionedTemplate_Generate (new)
Description Generates a VersionedTemplate.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/providers/Microsoft.DevHub/templates/{templateName}/versions/{templateVersion}/generate
{
api-version: string ,
subscriptionId: string ,
templateName: string ,
templateVersion: string ,
parameters: object ,
}

⚐ Response (200)

{
generatedFiles: object ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
Operations_List (new)
Description Returns list of operations.
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.DevHub/operations
{
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
name: string ,
isDataAction: boolean ,
display:
{
provider: string ,
resource: string ,
operation: string ,
description: string ,
}
,
origin: enum ,
actionType: enum ,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
GitHubOAuth (new)
Description Gets GitHubOAuth info used to authenticate users with the Developer Hub GitHub App.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/providers/Microsoft.DevHub/locations/{location}/githuboauth/default/getGitHubOAuthInfo
{
api-version: string ,
subscriptionId: string ,
location: string ,
parameters:
{
redirectUrl: string ,
}
,
}

⚐ Response (200)

{
authURL: string ,
token: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
GitHubOAuthCallback (new)
Description Callback URL to hit once authenticated with GitHub App to have the service store the OAuth token.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.DevHub/locations/{location}/githuboauth/default
{
api-version: string ,
subscriptionId: string ,
location: string ,
code: string ,
state: string ,
}

⚐ Response (200)

{
properties:
{
username: string ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
ListGitHubOAuth (new)
Description Callback URL to hit once authenticated with GitHub App to have the service store the OAuth token.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.DevHub/locations/{location}/githuboauth
{
api-version: string ,
subscriptionId: string ,
location: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
username: string ,
}
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
Workflow_List (new)
Description Gets a list of workflows associated with the specified subscription.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.DevHub/workflows
{
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
githubWorkflowProfile:
{
repositoryOwner: string ,
repositoryName: string ,
branchName: string ,
dockerfile: string ,
dockerBuildContext: string ,
deploymentProperties:
{
manifestType: enum ,
kubeManifestLocations:
[
string ,
]
,
helmChartPath: string ,
helmValues: string ,
overrides: object ,
}
,
namespace: string ,
acr:
{
acrSubscriptionId: string ,
acrResourceGroup: string ,
acrRegistryName: string ,
acrRepositoryName: string ,
}
,
oidcCredentials:
{
azureClientId: string ,
azureTenantId: string ,
}
,
aksResourceId: string ,
prURL: string ,
pullNumber: integer ,
prStatus: enum ,
lastWorkflowRun:
{
succeeded: boolean ,
workflowRunURL: string ,
lastRunAt: string ,
workflowRunStatus: enum ,
}
,
authStatus: enum ,
}
,
artifactGenerationProperties:
{
generationLanguage: enum ,
languageVersion: string ,
builderVersion: string ,
port: string ,
appName: string ,
dockerfileOutputDirectory: string ,
manifestOutputDirectory: string ,
dockerfileGenerationMode: enum ,
manifestGenerationMode: enum ,
manifestType: enum ,
imageName: string ,
namespace: string ,
imageTag: string ,
}
,
azurePipelineProfile:
{
repository:
{
repositoryOwner: string ,
repositoryName: string ,
branchName: string ,
adoOrganization: string ,
projectName: string ,
}
,
armServiceConnection: string ,
build:
{
dockerfile: string ,
dockerBuildContext: string ,
}
,
deployment:
{
manifestType: enum ,
kubeManifestLocations:
[
string ,
]
,
helmChartPath: string ,
helmValues: string ,
overrides: object ,
}
,
namespace: string ,
acr: string ,
clusterId: string ,
pullRequest:
{
prURL: string ,
pullNumber: integer ,
prStatus: enum ,
}
,
lastWorkflowRun:
{
succeeded: boolean ,
workflowRunURL: string ,
lastRunAt: string ,
workflowRunStatus: enum ,
}
,
authStatus: enum ,
}
,
templateWorkflowProfile:
{
repositoryProvider: enum ,
workflowTemplate:
{
templateId: string ,
destination: string ,
parameters: object ,
}
,
deploymentTemplate:
{
templateId: string ,
destination: string ,
parameters: object ,
}
,
dockerfileTemplate:
{
templateId: string ,
destination: string ,
parameters: object ,
}
,
manifestTemplates:
[
{
templateId: string ,
destination: string ,
parameters: object ,
}
,
]
,
gitHubProviderProfile:
{
repository:
{
repositoryOwner: string ,
repositoryName: string ,
branchName: string ,
}
,
oidcCredentials:
{
azureClientId: string ,
azureTenantId: string ,
}
,
}
,
adoProviderProfile:
{
repository:
{
repositoryOwner: string ,
repositoryName: string ,
branchName: string ,
adoOrganization: string ,
projectName: string ,
}
,
armServiceConnection: string ,
}
,
pullRequest:
{
prURL: string ,
pullNumber: integer ,
prStatus: enum ,
}
,
lastWorkflowRun:
{
succeeded: boolean ,
workflowRunURL: string ,
lastRunAt: string ,
workflowRunStatus: enum ,
}
,
authStatus: enum ,
}
,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
Workflow_ListByResourceGroup (new)
Description Gets a list of workflows within a resource group.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevHub/workflows
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
managedClusterResource: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
githubWorkflowProfile:
{
repositoryOwner: string ,
repositoryName: string ,
branchName: string ,
dockerfile: string ,
dockerBuildContext: string ,
deploymentProperties:
{
manifestType: enum ,
kubeManifestLocations:
[
string ,
]
,
helmChartPath: string ,
helmValues: string ,
overrides: object ,
}
,
namespace: string ,
acr:
{
acrSubscriptionId: string ,
acrResourceGroup: string ,
acrRegistryName: string ,
acrRepositoryName: string ,
}
,
oidcCredentials:
{
azureClientId: string ,
azureTenantId: string ,
}
,
aksResourceId: string ,
prURL: string ,
pullNumber: integer ,
prStatus: enum ,
lastWorkflowRun:
{
succeeded: boolean ,
workflowRunURL: string ,
lastRunAt: string ,
workflowRunStatus: enum ,
}
,
authStatus: enum ,
}
,
artifactGenerationProperties:
{
generationLanguage: enum ,
languageVersion: string ,
builderVersion: string ,
port: string ,
appName: string ,
dockerfileOutputDirectory: string ,
manifestOutputDirectory: string ,
dockerfileGenerationMode: enum ,
manifestGenerationMode: enum ,
manifestType: enum ,
imageName: string ,
namespace: string ,
imageTag: string ,
}
,
azurePipelineProfile:
{
repository:
{
repositoryOwner: string ,
repositoryName: string ,
branchName: string ,
adoOrganization: string ,
projectName: string ,
}
,
armServiceConnection: string ,
build:
{
dockerfile: string ,
dockerBuildContext: string ,
}
,
deployment:
{
manifestType: enum ,
kubeManifestLocations:
[
string ,
]
,
helmChartPath: string ,
helmValues: string ,
overrides: object ,
}
,
namespace: string ,
acr: string ,
clusterId: string ,
pullRequest:
{
prURL: string ,
pullNumber: integer ,
prStatus: enum ,
}
,
lastWorkflowRun:
{
succeeded: boolean ,
workflowRunURL: string ,
lastRunAt: string ,
workflowRunStatus: enum ,
}
,
authStatus: enum ,
}
,
templateWorkflowProfile:
{
repositoryProvider: enum ,
workflowTemplate:
{
templateId: string ,
destination: string ,
parameters: object ,
}
,
deploymentTemplate:
{
templateId: string ,
destination: string ,
parameters: object ,
}
,
dockerfileTemplate:
{
templateId: string ,
destination: string ,
parameters: object ,
}
,
manifestTemplates:
[
{
templateId: string ,
destination: string ,
parameters: object ,
}
,
]
,
gitHubProviderProfile:
{
repository:
{
repositoryOwner: string ,
repositoryName: string ,
branchName: string ,
}
,
oidcCredentials:
{
azureClientId: string ,
azureTenantId: string ,
}
,
}
,
adoProviderProfile:
{
repository:
{
repositoryOwner: string ,
repositoryName: string ,
branchName: string ,
adoOrganization: string ,
projectName: string ,
}
,
armServiceConnection: string ,
}
,
pullRequest:
{
prURL: string ,
pullNumber: integer ,
prStatus: enum ,
}
,
lastWorkflowRun:
{
succeeded: boolean ,
workflowRunURL: string ,
lastRunAt: string ,
workflowRunStatus: enum ,
}
,
authStatus: enum ,
}
,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
Workflow_Get (new)
Description Gets a workflow.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevHub/workflows/{workflowName}
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
workflowName: string ,
}

⚐ Response (200)

{
properties:
{
githubWorkflowProfile:
{
repositoryOwner: string ,
repositoryName: string ,
branchName: string ,
dockerfile: string ,
dockerBuildContext: string ,
deploymentProperties:
{
manifestType: enum ,
kubeManifestLocations:
[
string ,
]
,
helmChartPath: string ,
helmValues: string ,
overrides: object ,
}
,
namespace: string ,
acr:
{
acrSubscriptionId: string ,
acrResourceGroup: string ,
acrRegistryName: string ,
acrRepositoryName: string ,
}
,
oidcCredentials:
{
azureClientId: string ,
azureTenantId: string ,
}
,
aksResourceId: string ,
prURL: string ,
pullNumber: integer ,
prStatus: enum ,
lastWorkflowRun:
{
succeeded: boolean ,
workflowRunURL: string ,
lastRunAt: string ,
workflowRunStatus: enum ,
}
,
authStatus: enum ,
}
,
artifactGenerationProperties:
{
generationLanguage: enum ,
languageVersion: string ,
builderVersion: string ,
port: string ,
appName: string ,
dockerfileOutputDirectory: string ,
manifestOutputDirectory: string ,
dockerfileGenerationMode: enum ,
manifestGenerationMode: enum ,
manifestType: enum ,
imageName: string ,
namespace: string ,
imageTag: string ,
}
,
azurePipelineProfile:
{
repository:
{
repositoryOwner: string ,
repositoryName: string ,
branchName: string ,
adoOrganization: string ,
projectName: string ,
}
,
armServiceConnection: string ,
build:
{
dockerfile: string ,
dockerBuildContext: string ,
}
,
deployment:
{
manifestType: enum ,
kubeManifestLocations:
[
string ,
]
,
helmChartPath: string ,
helmValues: string ,
overrides: object ,
}
,
namespace: string ,
acr: string ,
clusterId: string ,
pullRequest:
{
prURL: string ,
pullNumber: integer ,
prStatus: enum ,
}
,
lastWorkflowRun:
{
succeeded: boolean ,
workflowRunURL: string ,
lastRunAt: string ,
workflowRunStatus: enum ,
}
,
authStatus: enum ,
}
,
templateWorkflowProfile:
{
repositoryProvider: enum ,
workflowTemplate:
{
templateId: string ,
destination: string ,
parameters: object ,
}
,
deploymentTemplate:
{
templateId: string ,
destination: string ,
parameters: object ,
}
,
dockerfileTemplate:
{
templateId: string ,
destination: string ,
parameters: object ,
}
,
manifestTemplates:
[
{
templateId: string ,
destination: string ,
parameters: object ,
}
,
]
,
gitHubProviderProfile:
{
repository:
{
repositoryOwner: string ,
repositoryName: string ,
branchName: string ,
}
,
oidcCredentials:
{
azureClientId: string ,
azureTenantId: string ,
}
,
}
,
adoProviderProfile:
{
repository:
{
repositoryOwner: string ,
repositoryName: string ,
branchName: string ,
adoOrganization: string ,
projectName: string ,
}
,
armServiceConnection: string ,
}
,
pullRequest:
{
prURL: string ,
pullNumber: integer ,
prStatus: enum ,
}
,
lastWorkflowRun:
{
succeeded: boolean ,
workflowRunURL: string ,
lastRunAt: string ,
workflowRunStatus: enum ,
}
,
authStatus: enum ,
}
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
Workflow_CreateOrUpdate (new)
Description Creates or updates a workflow
Reference Link ¶

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevHub/workflows/{workflowName}
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
workflowName: string ,
parameters:
{
properties:
{
githubWorkflowProfile:
{
repositoryOwner: string ,
repositoryName: string ,
branchName: string ,
dockerfile: string ,
dockerBuildContext: string ,
deploymentProperties:
{
manifestType: enum ,
kubeManifestLocations:
[
string ,
]
,
helmChartPath: string ,
helmValues: string ,
overrides: object ,
}
,
namespace: string ,
acr:
{
acrSubscriptionId: string ,
acrResourceGroup: string ,
acrRegistryName: string ,
acrRepositoryName: string ,
}
,
oidcCredentials:
{
azureClientId: string ,
azureTenantId: string ,
}
,
aksResourceId: string ,
prURL: string ,
pullNumber: integer ,
prStatus: enum ,
lastWorkflowRun:
{
succeeded: boolean ,
workflowRunURL: string ,
lastRunAt: string ,
workflowRunStatus: enum ,
}
,
authStatus: enum ,
}
,
artifactGenerationProperties:
{
generationLanguage: enum ,
languageVersion: string ,
builderVersion: string ,
port: string ,
appName: string ,
dockerfileOutputDirectory: string ,
manifestOutputDirectory: string ,
dockerfileGenerationMode: enum ,
manifestGenerationMode: enum ,
manifestType: enum ,
imageName: string ,
namespace: string ,
imageTag: string ,
}
,
azurePipelineProfile:
{
repository:
{
repositoryOwner: string ,
repositoryName: string ,
branchName: string ,
adoOrganization: string ,
projectName: string ,
}
,
armServiceConnection: string ,
build:
{
dockerfile: string ,
dockerBuildContext: string ,
}
,
deployment:
{
manifestType: enum ,
kubeManifestLocations:
[
string ,
]
,
helmChartPath: string ,
helmValues: string ,
overrides: object ,
}
,
namespace: string ,
acr: string ,
clusterId: string ,
pullRequest:
{
prURL: string ,
pullNumber: integer ,
prStatus: enum ,
}
,
lastWorkflowRun:
{
succeeded: boolean ,
workflowRunURL: string ,
lastRunAt: string ,
workflowRunStatus: enum ,
}
,
authStatus: enum ,
}
,
templateWorkflowProfile:
{
repositoryProvider: enum ,
workflowTemplate:
{
templateId: string ,
destination: string ,
parameters: object ,
}
,
deploymentTemplate:
{
templateId: string ,
destination: string ,
parameters: object ,
}
,
dockerfileTemplate:
{
templateId: string ,
destination: string ,
parameters: object ,
}
,
manifestTemplates:
[
{
templateId: string ,
destination: string ,
parameters: object ,
}
,
]
,
gitHubProviderProfile:
{
repository:
{
repositoryOwner: string ,
repositoryName: string ,
branchName: string ,
}
,
oidcCredentials:
{
azureClientId: string ,
azureTenantId: string ,
}
,
}
,
adoProviderProfile:
{
repository:
{
repositoryOwner: string ,
repositoryName: string ,
branchName: string ,
adoOrganization: string ,
projectName: string ,
}
,
armServiceConnection: string ,
}
,
pullRequest:
{
prURL: string ,
pullNumber: integer ,
prStatus: enum ,
}
,
lastWorkflowRun:
{
succeeded: boolean ,
workflowRunURL: string ,
lastRunAt: string ,
workflowRunStatus: enum ,
}
,
authStatus: enum ,
}
,
}
,
}
,
}

⚐ Response (200)

{
properties:
{
githubWorkflowProfile:
{
repositoryOwner: string ,
repositoryName: string ,
branchName: string ,
dockerfile: string ,
dockerBuildContext: string ,
deploymentProperties:
{
manifestType: enum ,
kubeManifestLocations:
[
string ,
]
,
helmChartPath: string ,
helmValues: string ,
overrides: object ,
}
,
namespace: string ,
acr:
{
acrSubscriptionId: string ,
acrResourceGroup: string ,
acrRegistryName: string ,
acrRepositoryName: string ,
}
,
oidcCredentials:
{
azureClientId: string ,
azureTenantId: string ,
}
,
aksResourceId: string ,
prURL: string ,
pullNumber: integer ,
prStatus: enum ,
lastWorkflowRun:
{
succeeded: boolean ,
workflowRunURL: string ,
lastRunAt: string ,
workflowRunStatus: enum ,
}
,
authStatus: enum ,
}
,
artifactGenerationProperties:
{
generationLanguage: enum ,
languageVersion: string ,
builderVersion: string ,
port: string ,
appName: string ,
dockerfileOutputDirectory: string ,
manifestOutputDirectory: string ,
dockerfileGenerationMode: enum ,
manifestGenerationMode: enum ,
manifestType: enum ,
imageName: string ,
namespace: string ,
imageTag: string ,
}
,
azurePipelineProfile:
{
repository:
{
repositoryOwner: string ,
repositoryName: string ,
branchName: string ,
adoOrganization: string ,
projectName: string ,
}
,
armServiceConnection: string ,
build:
{
dockerfile: string ,
dockerBuildContext: string ,
}
,
deployment:
{
manifestType: enum ,
kubeManifestLocations:
[
string ,
]
,
helmChartPath: string ,
helmValues: string ,
overrides: object ,
}
,
namespace: string ,
acr: string ,
clusterId: string ,
pullRequest:
{
prURL: string ,
pullNumber: integer ,
prStatus: enum ,
}
,
lastWorkflowRun:
{
succeeded: boolean ,
workflowRunURL: string ,
lastRunAt: string ,
workflowRunStatus: enum ,
}
,
authStatus: enum ,
}
,
templateWorkflowProfile:
{
repositoryProvider: enum ,
workflowTemplate:
{
templateId: string ,
destination: string ,
parameters: object ,
}
,
deploymentTemplate:
{
templateId: string ,
destination: string ,
parameters: object ,
}
,
dockerfileTemplate:
{
templateId: string ,
destination: string ,
parameters: object ,
}
,
manifestTemplates:
[
{
templateId: string ,
destination: string ,
parameters: object ,
}
,
]
,
gitHubProviderProfile:
{
repository:
{
repositoryOwner: string ,
repositoryName: string ,
branchName: string ,
}
,
oidcCredentials:
{
azureClientId: string ,
azureTenantId: string ,
}
,
}
,
adoProviderProfile:
{
repository:
{
repositoryOwner: string ,
repositoryName: string ,
branchName: string ,
adoOrganization: string ,
projectName: string ,
}
,
armServiceConnection: string ,
}
,
pullRequest:
{
prURL: string ,
pullNumber: integer ,
prStatus: enum ,
}
,
lastWorkflowRun:
{
succeeded: boolean ,
workflowRunURL: string ,
lastRunAt: string ,
workflowRunStatus: enum ,
}
,
authStatus: enum ,
}
,
}
,
}

⚐ Response (201)

{
properties:
{
githubWorkflowProfile:
{
repositoryOwner: string ,
repositoryName: string ,
branchName: string ,
dockerfile: string ,
dockerBuildContext: string ,
deploymentProperties:
{
manifestType: enum ,
kubeManifestLocations:
[
string ,
]
,
helmChartPath: string ,
helmValues: string ,
overrides: object ,
}
,
namespace: string ,
acr:
{
acrSubscriptionId: string ,
acrResourceGroup: string ,
acrRegistryName: string ,
acrRepositoryName: string ,
}
,
oidcCredentials:
{
azureClientId: string ,
azureTenantId: string ,
}
,
aksResourceId: string ,
prURL: string ,
pullNumber: integer ,
prStatus: enum ,
lastWorkflowRun:
{
succeeded: boolean ,
workflowRunURL: string ,
lastRunAt: string ,
workflowRunStatus: enum ,
}
,
authStatus: enum ,
}
,
artifactGenerationProperties:
{
generationLanguage: enum ,
languageVersion: string ,
builderVersion: string ,
port: string ,
appName: string ,
dockerfileOutputDirectory: string ,
manifestOutputDirectory: string ,
dockerfileGenerationMode: enum ,
manifestGenerationMode: enum ,
manifestType: enum ,
imageName: string ,
namespace: string ,
imageTag: string ,
}
,
azurePipelineProfile:
{
repository:
{
repositoryOwner: string ,
repositoryName: string ,
branchName: string ,
adoOrganization: string ,
projectName: string ,
}
,
armServiceConnection: string ,
build:
{
dockerfile: string ,
dockerBuildContext: string ,
}
,
deployment:
{
manifestType: enum ,
kubeManifestLocations:
[
string ,
]
,
helmChartPath: string ,
helmValues: string ,
overrides: object ,
}
,
namespace: string ,
acr: string ,
clusterId: string ,
pullRequest:
{
prURL: string ,
pullNumber: integer ,
prStatus: enum ,
}
,
lastWorkflowRun:
{
succeeded: boolean ,
workflowRunURL: string ,
lastRunAt: string ,
workflowRunStatus: enum ,
}
,
authStatus: enum ,
}
,
templateWorkflowProfile:
{
repositoryProvider: enum ,
workflowTemplate:
{
templateId: string ,
destination: string ,
parameters: object ,
}
,
deploymentTemplate:
{
templateId: string ,
destination: string ,
parameters: object ,
}
,
dockerfileTemplate:
{
templateId: string ,
destination: string ,
parameters: object ,
}
,
manifestTemplates:
[
{
templateId: string ,
destination: string ,
parameters: object ,
}
,
]
,
gitHubProviderProfile:
{
repository:
{
repositoryOwner: string ,
repositoryName: string ,
branchName: string ,
}
,
oidcCredentials:
{
azureClientId: string ,
azureTenantId: string ,
}
,
}
,
adoProviderProfile:
{
repository:
{
repositoryOwner: string ,
repositoryName: string ,
branchName: string ,
adoOrganization: string ,
projectName: string ,
}
,
armServiceConnection: string ,
}
,
pullRequest:
{
prURL: string ,
pullNumber: integer ,
prStatus: enum ,
}
,
lastWorkflowRun:
{
succeeded: boolean ,
workflowRunURL: string ,
lastRunAt: string ,
workflowRunStatus: enum ,
}
,
authStatus: enum ,
}
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
Workflow_Delete (new)
Description Deletes a workflow
Reference Link ¶

⚼ Request

DELETE:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevHub/workflows/{workflowName}
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
workflowName: string ,
}

⚐ Response (200)

{
status: string ,
}

⚐ Response (204)

{}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
Workflow_UpdateTags (new)
Description Updates tags on a workflow.
Reference Link ¶

⚼ Request

PATCH:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevHub/workflows/{workflowName}
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
workflowName: string ,
parameters:
{
tags: object ,
}
,
}

⚐ Response (200)

{
properties:
{
githubWorkflowProfile:
{
repositoryOwner: string ,
repositoryName: string ,
branchName: string ,
dockerfile: string ,
dockerBuildContext: string ,
deploymentProperties:
{
manifestType: enum ,
kubeManifestLocations:
[
string ,
]
,
helmChartPath: string ,
helmValues: string ,
overrides: object ,
}
,
namespace: string ,
acr:
{
acrSubscriptionId: string ,
acrResourceGroup: string ,
acrRegistryName: string ,
acrRepositoryName: string ,
}
,
oidcCredentials:
{
azureClientId: string ,
azureTenantId: string ,
}
,
aksResourceId: string ,
prURL: string ,
pullNumber: integer ,
prStatus: enum ,
lastWorkflowRun:
{
succeeded: boolean ,
workflowRunURL: string ,
lastRunAt: string ,
workflowRunStatus: enum ,
}
,
authStatus: enum ,
}
,
artifactGenerationProperties:
{
generationLanguage: enum ,
languageVersion: string ,
builderVersion: string ,
port: string ,
appName: string ,
dockerfileOutputDirectory: string ,
manifestOutputDirectory: string ,
dockerfileGenerationMode: enum ,
manifestGenerationMode: enum ,
manifestType: enum ,
imageName: string ,
namespace: string ,
imageTag: string ,
}
,
azurePipelineProfile:
{
repository:
{
repositoryOwner: string ,
repositoryName: string ,
branchName: string ,
adoOrganization: string ,
projectName: string ,
}
,
armServiceConnection: string ,
build:
{
dockerfile: string ,
dockerBuildContext: string ,
}
,
deployment:
{
manifestType: enum ,
kubeManifestLocations:
[
string ,
]
,
helmChartPath: string ,
helmValues: string ,
overrides: object ,
}
,
namespace: string ,
acr: string ,
clusterId: string ,
pullRequest:
{
prURL: string ,
pullNumber: integer ,
prStatus: enum ,
}
,
lastWorkflowRun:
{
succeeded: boolean ,
workflowRunURL: string ,
lastRunAt: string ,
workflowRunStatus: enum ,
}
,
authStatus: enum ,
}
,
templateWorkflowProfile:
{
repositoryProvider: enum ,
workflowTemplate:
{
templateId: string ,
destination: string ,
parameters: object ,
}
,
deploymentTemplate:
{
templateId: string ,
destination: string ,
parameters: object ,
}
,
dockerfileTemplate:
{
templateId: string ,
destination: string ,
parameters: object ,
}
,
manifestTemplates:
[
{
templateId: string ,
destination: string ,
parameters: object ,
}
,
]
,
gitHubProviderProfile:
{
repository:
{
repositoryOwner: string ,
repositoryName: string ,
branchName: string ,
}
,
oidcCredentials:
{
azureClientId: string ,
azureTenantId: string ,
}
,
}
,
adoProviderProfile:
{
repository:
{
repositoryOwner: string ,
repositoryName: string ,
branchName: string ,
adoOrganization: string ,
projectName: string ,
}
,
armServiceConnection: string ,
}
,
pullRequest:
{
prURL: string ,
pullNumber: integer ,
prStatus: enum ,
}
,
lastWorkflowRun:
{
succeeded: boolean ,
workflowRunURL: string ,
lastRunAt: string ,
workflowRunStatus: enum ,
}
,
authStatus: enum ,
}
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
GeneratePreviewArtifacts (new)
Description Generate preview dockerfile and manifests.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/providers/Microsoft.DevHub/locations/{location}/generatePreviewArtifacts
{
api-version: string ,
subscriptionId: string ,
location: string ,
parameters:
{
generationLanguage: enum ,
languageVersion: string ,
builderVersion: string ,
port: string ,
appName: string ,
dockerfileOutputDirectory: string ,
manifestOutputDirectory: string ,
dockerfileGenerationMode: enum ,
manifestGenerationMode: enum ,
manifestType: enum ,
imageName: string ,
namespace: string ,
imageTag: string ,
}
,
}

⚐ Response (200)

{
$schema: object ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
GetADOOAuthInfo (new)
Description Gets ADOOAuth info used to authenticate users with ADO.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/providers/Microsoft.DevHub/locations/{location}/adooauth/default/getADOOAuthInfo
{
api-version: string ,
subscriptionId: string ,
location: string ,
parameters:
{
redirectUrl: string ,
}
,
}

⚐ Response (200)

{
authURL: string ,
token: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
ADOOAuth_Get (new)
Description Callback URL to hit once authenticated with Entra ID to have the service store the OAuth token.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.DevHub/locations/{location}/adooauth/default
{
api-version: string ,
subscriptionId: string ,
location: string ,
}

⚐ Response (200)

{
properties:
{
username: string ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
ADOOAuth_List (new)
Description Callback URL to hit once authenticated with ADO to have the service store the OAuth token.
Reference Link ¶

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.DevHub/locations/{location}/adooauth
{
api-version: string ,
subscriptionId: string ,
location: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
username: string ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}