Skip to content

Instantly share code, notes, and snippets.

@JayDoubleu
Created May 17, 2023 17:18
Show Gist options
  • Save JayDoubleu/252200b40579e99e86823bd96db58459 to your computer and use it in GitHub Desktop.
Save JayDoubleu/252200b40579e99e86823bd96db58459 to your computer and use it in GitHub Desktop.
Bicep file to Link, Create or Update Azure DevOps Organisation
@description('The name of the Azure Resource to be created.')
param resourceName string
@description('The name of the Azure DevOps organization.')
param accountName string
@description('The operation type to be performed on the Azure DevOps organization.')
@allowed([
'Create '
'Link '
'Update '
])
param operationType string
param location string = resourceGroup().location
param tags object = {}
resource adoOrg 'Microsoft.VisualStudio/account@2014-04-01-preview' = {
name: resourceName
location: location
tags: tags
properties: {
operationType: operationType
accountName: accountName
AccountURL: 'https://dev.azure.com/${accountName}/'
}
dependsOn: []
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment