-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp_Services.ps1
88 lines (71 loc) · 2.35 KB
/
App_Services.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
# Create a resource group
# Create an app service plan
# Create a web app
az group create -n rg-waf -l uaenorth
az appservice plan create --name rg-waf-plan \
--resource-group rg-waf \
--sku s1 \
--is-linux
#
az webapp create -g rg-waf \
-p rg-waf-plan \
-n app-service-myapp \
--runtime "DOTNETCORE:6.0"
#
az webapp up -g rg-waf \
-p rg-waf-plan \
--runtime "JAVA:11-java11"
#
# Add a deployment slot:
az webapp deployment slot create --name app-service-myapp \
-g rg-waf \
--slot staging
#
az webapp delete --name app-service-myapp --resource-group rg-waf
# Delete a resource group:
az group delete -n rg-waf --yes
az group list -o table
az account show --output table
az account list -o table
az account set -s 7f1f265d-dc8c-4232-af03-db9ab6f9fa63
# List all available frameworks:
az webapp list-runtimes
# Create an app service plan:
az appservice plan create --name
--resource-group
[--app-service-environment]
[--hyper-v]
[--is-linux]
[--location]
[--no-wait]
[--number-of-workers]
[--per-site-scaling]
[--sku {B1, B2, B3, D1, F1, FREE, I1, I1v2, I2, I2v2, I3, I3v2, P1V2, P1V3, P2V2, P2V3, P3V2, P3V3, S1, S2, S3, SHARED, WS1, WS2, WS3}]
[--tags]
[--zone-redundant]
#
# Show app service plan:
az appservice plan show [--ids]
[--name]
[--resource-group]
#
# List app service plans:
az appservice plan list [--resource-group]
# List all free tier App Service plans.
az appservice plan list --query "[?sku.tier=='Free']"
# List all App Service plans for an App Service environment:
az appservice plan list --query "[?hostingEnvironmentProfile.name=='<ase-name>']"
# Update an app service plan.
az appservice plan update [--add]
[--elastic-scale {false, true}]
[--force-string]
[--ids]
[--max-elastic-worker-count]
[--name]
[--no-wait]
[--number-of-workers]
[--remove]
[--resource-group]
[--set]
[--sku {B1, B2, B3, D1, F1, FREE, I1, I1v2, I2, I2v2, I3, I3v2, P1V2, P1V3, P2V2, P2V3, P3V2, P3V3, S1, S2, S3, SHARED, WS1, WS2, WS3}]
#