az/groupmanager-v1-aa.template.json

156 lines
4.5 KiB
JSON

{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"tenantName": {
"defaultValue": "exampleorg",
"type": "string"
},
"projectName": {
"defaultValue": "groupmanager",
"type": "String"
},
"projectEnvironment": {
"defaultValue": "t",
"type": "String"
},
"projectVersion": {
"defaultValue": "v1",
"type": "String"
},
"subscriptionId": {
"defaultValue": "00000000-0000-0000-0000-000000000000",
"type": "String"
},
"aaRgName": {
"defaultValue": "my-aa-rg-name",
"type": "String"
},
"aaName": {
"defaultValue": "my-aa-name",
"type": "String"
},
"hybridWorkerId": {
"defaultValue": "00000000-0000-0000-0000-000000000000",
"type": "string"
},
"azTableVersion": {
"defaultValue": "2.1.0",
"type": "string"
}
},
"variables": {
"projectPrefix": "[concat(parameters('projectName'), '-', parameters('projectEnvironment'), '-', parameters('projectVersion'))]",
"aaName": "[concat(variables('projectPrefix'), '-aa')]",
"miName": "[concat(variables('projectPrefix'), '-mi')]",
"reName": "[concat(variables('aaName'), 're')]",
"hwgwName": "[concat(variables('aaName'), '/', '001-hwgw')]"
},
"resources": [
{
"type": "Microsoft.Automation/automationAccounts",
"apiVersion": "2023-11-01",
"name": "[variables('aaName')]",
"location": "uksouth",
"identity": {
"type": "UserAssigned",
"userAssignedIdentities": {
"[resourceId('Microsoft.ManagedIdentity/userAssignedIdentities', variables('miName'))]": {}
}
},
"properties": {
"publicNetworkAccess": true,
"disableLocalAuth": false,
"sku": {
"name": "Basic"
},
"encryption": {
"keySource": "Microsoft.Automation",
"identity": {}
}
}
},
{
"type": "Microsoft.Automation/automationAccounts/connectionTypes",
"apiVersion": "2023-11-01",
"name": "[concat(variables('aaName'), '/Azure')]",
"dependsOn": [
"[resourceId('Microsoft.Automation/automationAccounts', variables('aaName'))]"
],
"properties": {
"isGlobal": false,
"fieldDefinitions": {
"AutomationCertificateName": {
"isEncrypted": false,
"isOptional": false,
"type": "System.String"
},
"SubscriptionID": {
"isEncrypted": false,
"isOptional": false,
"type": "System.String"
}
}
}
},
{
"type": "Microsoft.Automation/automationAccounts/runtimeEnvironments",
"apiVersion": "2023-05-15-preview",
"name": "[concat(variables('aaName'), '/', variables('reName'))]",
"location": "uksouth",
"dependsOn": [
"[resourceId('Microsoft.Automation/automationAccounts', variables('aaName'))]"
],
"properties": {
"runtime": {
"language": "PowerShell",
"version": "7.2"
},
"defaultPackages": {
"az": "11.2.0",
"azure cli": "2.56.0"
},
"packages": {
"aztable": "[parameters('azTableVersion')]"
},
"description": "The main runtime environment used for managing UoR Group Manager."
}
},
{
"type": "Microsoft.Automation/automationAccounts/runtimeEnvironments/packages",
"apiVersion": "2023-05-15-preview",
"name": "[concat(variables('aaName'), '/', variables('aaName'), 're/AzTable')]",
"location": "uksouth",
"dependsOn": [
"[resourceId('Microsoft.Automation/automationAccounts/runtimeEnvironments', variables('aaName'), concat(variables('aaName'), 're'))]",
"[resourceId('Microsoft.Automation/automationAccounts', variables('aaName'))]"
],
"properties": {
"contentLink": {
"uri": "[concat('https://devopsgallerystorage.blob.core.windows.net/packages/aztable.', parameters('azTableVersion'), '.nupkg')]",
"version": "[parameters('azTableVersion')]"
}
}
},
{
"type": "Microsoft.Automation/automationAccounts/runbooks",
"apiVersion": "2023-11-01",
"name": "[concat(variables('aaName'), '/groupmanager-update-membership-t-v1-aar')]",
"location": "uksouth",
"dependsOn": [
"[resourceId('Microsoft.Automation/automationAccounts', variables('aaName'))]"
],
"properties": {
"description": "This runbook updates the membership of a group, by using the associated message queues to process requests.",
"runbookType": "PowerShell",
"publishContentLink": {
"uri": "https://git.wnd.sh/neogroupmanager/neogroupmanager/branch/main/update-membership.ps1",
"version": "1.0.0"
},
"logVerbose": false,
"logProgress": false,
"logActivityTrace": 0
}
}
]
}