Skip to content

Commit 581a97e

Browse files
Working ARM template
1 parent b6799c2 commit 581a97e

File tree

3 files changed

+435
-0
lines changed

3 files changed

+435
-0
lines changed

README.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,45 @@ An existing [App Service on Linux app](https://learn.microsoft.com/en-us/azure/a
1111
An Azure Storage account.
1212
An Azure file share and directory.
1313

14+
15+
## Deploy ARM Template from local
16+
17+
18+
19+
```bash
20+
az login
21+
22+
az group create --name 182764JH --location "UK South"
23+
24+
az deployment group create --resource-group <resource-group-name> --template-file <path-to-template>
25+
26+
az deployment group create --resource-group 182764JH --template-file ./infrastructure/template.json
27+
28+
29+
30+
31+
32+
az deployment sub create --location <location> --template-file <path-to-template>
33+
34+
az deployment sub create --location "UK South" --template-file ./infrastructure/template.json
35+
36+
37+
38+
```
39+
40+
GitHub action authenticate for ARM Template deploy.
41+
42+
43+
## Setup CI
44+
45+
App Service > Configuration > General settings > SCM Basic Auth Publishing > ON
46+
47+
App Service > Overview > Download publish profile
48+
49+
Github > settings > Secrets and variables > Actions > set
50+
51+
AZUREAPPSERVICE_PUBLISHPROFILE
52+
53+
Set
54+
55+
AZUREAPPSERVICE_NAME (using template name)

infrastructure/parameters.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json#",
3+
"contentVersion": "1.0.0.0",
4+
"parameters": {
5+
"sites_css_name": {
6+
"value": null
7+
},
8+
"serverfarms_css_name": {
9+
"value": null
10+
},
11+
"storageAccounts_csstest_name": {
12+
"value": null
13+
}
14+
}
15+
}

0 commit comments

Comments
 (0)