Skip to content

Commit c75cef3

Browse files
authored
adding process data bicep
1 parent 53ff106 commit c75cef3

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

infra/process_data_scripts.bicep

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
var resourceGroupLocation = resourceGroup().location
2+
var solutionLocation = resourceGroupLocation
3+
4+
param keyVaultName string
5+
param identity string
6+
param managedIdentityClientId string
7+
8+
var baseUrl = 'https://raw.githubusercontent.com/microsoft/Conversation-Knowledge-Mining-Solution-Accelerator/process_new_data/'
9+
10+
resource process_data_scripts 'Microsoft.Resources/deploymentScripts@2020-10-01' = {
11+
kind:'AzureCLI'
12+
name: 'process_data_scripts'
13+
location: solutionLocation // Replace with your desired location
14+
identity: {
15+
type: 'UserAssigned'
16+
userAssignedIdentities: {
17+
'${identity}' : {}
18+
}
19+
}
20+
properties: {
21+
azCliVersion: '2.52.0'
22+
primaryScriptUri: '${baseUrl}infra/scripts/process_data_scripts.sh'
23+
arguments: '${baseUrl} ${keyVaultName} ${managedIdentityClientId}' // Specify any arguments for the script
24+
timeout: 'PT1H' // Specify the desired timeout duration
25+
retentionInterval: 'PT1H' // Specify the desired retention interval
26+
cleanupPreference:'OnSuccess'
27+
}
28+
}

0 commit comments

Comments
 (0)