|
37 | 37 | "description": "Deploy for pre-production use. Uses development SKU for Azure Data Explorer."
|
38 | 38 | }
|
39 | 39 | },
|
| 40 | + "updating": { |
| 41 | + "type": "bool", |
| 42 | + "defaultValue": false, |
| 43 | + "metadata": { |
| 44 | + "description": "Set to true if redeploying the template. Data Factory trigger resources can not be redeployed while they are enabled." |
| 45 | + } |
| 46 | + }, |
40 | 47 | "_artifactsLocation": {
|
41 |
| - "defaultValue": "https://github.com/wpbrown/azmeta-pipeline/releases/download/v2.0.0/", |
| 48 | + "defaultValue": "https://github.com/wpbrown/azmeta-pipeline/releases/latest/download/", |
42 | 49 | "type": "string",
|
43 | 50 | "metadata": {
|
44 | 51 | "description": "The base URI where artifacts required by this template are located including a trailing '/'"
|
|
145 | 152 | {
|
146 | 153 | "name": "AZMETA_DATABASE",
|
147 | 154 | "value": "[parameters('kustoDatabaseName')]"
|
| 155 | + }, |
| 156 | + { |
| 157 | + "name": "AZMETA_DB_INIT_URL", |
| 158 | + "value": "[concat(parameters('_artifactsLocation'), 'db_init.pyz')]" |
148 | 159 | }
|
149 | 160 | ],
|
150 |
| - "scriptContent": "python3 db_init.pyz \"${AZMETA_CLUSTER}\" \"${AZMETA_DATABASE}\"", |
151 |
| - "supportingScriptUris": [ "[concat(parameters('_artifactsLocation'), 'db_init.pyz')]" ], |
| 161 | + "scriptContent": "curl -LO --retry-connrefused --retry 5 \"${AZMETA_DB_INIT_URL}\"; python3 db_init.pyz \"${AZMETA_CLUSTER}\" \"${AZMETA_DATABASE}\"", |
152 | 162 | "timeout": "PT30M",
|
153 | 163 | "cleanupPreference": "OnSuccess",
|
154 | 164 | "retentionInterval": "P1D"
|
|
649 | 659 | ]
|
650 | 660 | },
|
651 | 661 | {
|
| 662 | + "condition": "[not(parameters('updating'))]", |
652 | 663 | "name": "[concat(parameters('dataFactoryName'), '/trigger_usage_final_amortized')]",
|
653 | 664 | "type": "Microsoft.DataFactory/factories/triggers",
|
654 | 665 | "apiVersion": "2018-06-01",
|
|
681 | 692 | ]
|
682 | 693 | },
|
683 | 694 | {
|
| 695 | + "condition": "[not(parameters('updating'))]", |
684 | 696 | "name": "[concat(parameters('dataFactoryName'), '/trigger_usage_preliminary_amortized')]",
|
685 | 697 | "type": "Microsoft.DataFactory/factories/triggers",
|
686 | 698 | "apiVersion": "2018-06-01",
|
|
0 commit comments