Created
May 17, 2023 17:18
-
-
Save JayDoubleu/252200b40579e99e86823bd96db58459 to your computer and use it in GitHub Desktop.
Bicep file to Link, Create or Update Azure DevOps Organisation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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