Created
November 14, 2022 20:10
-
-
Save danielscholl/ab079e8549d52f3612ce3e5adaaf961a to your computer and use it in GitHub Desktop.
This file contains 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
{ | |
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", | |
"contentVersion": "1.0.0.0", | |
"metadata": { | |
"_generator": { | |
"name": "bicep", | |
"version": "0.11.1.770", | |
"templateHash": "4298524079732996153" | |
} | |
}, | |
"parameters": { | |
"location": { | |
"type": "string", | |
"defaultValue": "[resourceGroup().location]", | |
"metadata": { | |
"description": "Specify the Azure region to place the application definition." | |
} | |
}, | |
"lockLevel": { | |
"type": "string", | |
"defaultValue": "ReadOnly", | |
"allowedValues": [ | |
"ReadOnly", | |
"CanNotDelete" | |
], | |
"metadata": { | |
"description": "Specify the resource lock being used for the managed application" | |
} | |
}, | |
"groupId": { | |
"type": "string", | |
"metadata": { | |
"description": "Specify the User or Group Id." | |
} | |
}, | |
"version": { | |
"type": "string", | |
"metadata": { | |
"description": "Version to deploy. ie: 0.4.0" | |
} | |
} | |
}, | |
"variables": { | |
"appDescription": "This is an OSDU on Azure Platfrom", | |
"name": "OSDUBicep", | |
"displayName": "OSDU Bicep", | |
"roleDefinitionId": "8e3af657-a8ff-443c-a75c-2fe8c4bcb635", | |
"packageFileUri": "[format('https://managedplatformsa.blob.core.windows.net/osdu-bicep/ama-v{0}.zip', parameters('version'))]", | |
"authorizations": [ | |
{ | |
"principalId": "[parameters('groupId')]", | |
"roleDefinitionId": "[variables('roleDefinitionId')]" | |
} | |
] | |
}, | |
"resources": [ | |
{ | |
"type": "Microsoft.Solutions/applicationDefinitions", | |
"apiVersion": "2021-07-01", | |
"name": "[variables('name')]", | |
"location": "[parameters('location')]", | |
"properties": { | |
"lockLevel": "[parameters('lockLevel')]", | |
"authorizations": "[array(variables('authorizations'))]", | |
"description": "[variables('appDescription')]", | |
"displayName": "[variables('displayName')]", | |
"packageFileUri": "[variables('packageFileUri')]" | |
} | |
} | |
], | |
"outputs": { | |
"managedApplicationName": { | |
"type": "string", | |
"value": "[variables('name')]" | |
}, | |
"lockLevel": { | |
"type": "string", | |
"value": "[parameters('lockLevel')]" | |
}, | |
"packageFileUri": { | |
"type": "string", | |
"value": "[variables('packageFileUri')]" | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment