|
22 | 22 | "metadata": { |
23 | 23 | "description": "Your Github Repository token (see https://docs.microsoft.com/en-us/azure/static-web-apps/publish-azure-resource-manager?tabs=azure-cli#create-a-github-personal-access-token" |
24 | 24 | } |
25 | | - }, |
26 | | - "GithubAPIRepository": { |
27 | | - "defaultValue": "https://github.com/KelvinTegelaar/CIPP-API", |
28 | | - "type": "string", |
29 | | - "metadata": { |
30 | | - "description": "URL to your Github backend fork." |
31 | | - } |
32 | 25 | } |
33 | 26 | }, |
34 | 27 | "variables": { |
|
57 | 50 | "objectId": "[reference(resourceId('Microsoft.Web/sites', variables('funcAppName')),'2019-08-01', 'full').identity.principalId]", |
58 | 51 | "permissions": { |
59 | 52 | "keys": [], |
60 | | - "secrets": ["all"], |
| 53 | + "secrets": [ "all" ], |
61 | 54 | "certificates": [] |
62 | 55 | } |
63 | 56 | } |
|
116 | 109 | ] |
117 | 110 | } |
118 | 111 | ], |
119 | | - "dependsOn": ["[resourceId('Microsoft.Web/sites', variables('funcAppName'))]"] |
| 112 | + "dependsOn": [ "[resourceId('Microsoft.Web/sites', variables('funcAppName'))]" ] |
120 | 113 | }, |
121 | 114 | { |
122 | 115 | "apiVersion": "2015-08-01", |
|
135 | 128 | "serverFarmId": "[resourceId('Microsoft.Web/serverfarms', variables('serverFarmName'))]", |
136 | 129 | "siteConfig": { |
137 | 130 | "Use32BitWorkerProcess": false, |
138 | | - "powerShellVersion": "7.2", |
| 131 | + "powerShellVersion": "7.4", |
139 | 132 | "appSettings": [ |
140 | 133 | { |
141 | 134 | "name": "AzureWebJobsStorage", |
|
154 | 147 | "value": "~4" |
155 | 148 | }, |
156 | 149 | { |
157 | | - "name": "ApplicationID", |
158 | | - "value": "[concat('@Microsoft.KeyVault(SecretUri=https://',variables('uniqueResourceNameBase'), '.vault.azure.net/secrets/ApplicationId)')]" |
159 | | - }, |
160 | | - { |
161 | | - "name": "ApplicationSecret", |
162 | | - "value": "[concat('@Microsoft.KeyVault(SecretUri=https://',variables('uniqueResourceNameBase'), '.vault.azure.net/secrets/ApplicationSecret)')]" |
163 | | - }, |
164 | | - { |
165 | | - "name": "RefreshToken", |
166 | | - "value": "[concat('@Microsoft.KeyVault(SecretUri=https://',variables('uniqueResourceNameBase'), '.vault.azure.net/secrets/RefreshToken)')]" |
167 | | - }, |
168 | | - { |
169 | | - "name": "TenantID", |
170 | | - "value": "[concat('@Microsoft.KeyVault(SecretUri=https://',variables('uniqueResourceNameBase'), '.vault.azure.net/secrets/tenantid)')]" |
| 150 | + "name": "WEBSITE_RUN_FROM_PACKAGE", |
| 151 | + "value": "1" |
171 | 152 | }, |
172 | 153 | { |
173 | 154 | "name": "FUNCTIONS_WORKER_RUNTIME", |
174 | 155 | "value": "powershell" |
175 | 156 | } |
176 | 157 | ] |
177 | 158 | } |
178 | | - }, |
179 | | - "resources": [ |
180 | | - { |
181 | | - "apiVersion": "2015-08-01", |
182 | | - "name": "web", |
183 | | - "type": "sourcecontrols", |
184 | | - "dependsOn": ["[resourceId('Microsoft.Web/sites/', variables('funcAppName'))]"], |
185 | | - "properties": { |
186 | | - "RepoUrl": "[parameters('GithubAPIRepository')]", |
187 | | - "repositoryToken": "[parameters('GithubToken')]", |
188 | | - "token": "[parameters('GithubToken')]", |
189 | | - |
190 | | - "branch": "master", |
191 | | - "publishRunbook": true, |
192 | | - "IsManualIntegration": true |
193 | | - } |
194 | | - } |
195 | | - ] |
| 159 | + } |
| 160 | + }, |
| 161 | + { |
| 162 | + "name": "[concat(variables('funcAppName'), '/ZipDeploy')]", |
| 163 | + "type": "Microsoft.Web/sites/extensions", |
| 164 | + "apiVersion": "2021-02-01", |
| 165 | + "location": "[resourceGroup().location]", |
| 166 | + "dependsOn": [ |
| 167 | + "[resourceId('Microsoft.Web/sites', variables('funcAppName'))]" |
| 168 | + ], |
| 169 | + "properties": { |
| 170 | + "packageUri": "https://cippreleases.blob.core.windows.net/cipp-api/latest.zip" |
| 171 | + } |
196 | 172 | }, |
197 | 173 | { |
198 | 174 | "type": "Microsoft.Storage/storageAccounts", |
|
0 commit comments