@@ -25,110 +25,74 @@ import {
25
25
} from '@nitric/cli-common' ;
26
26
import path from 'path' ;
27
27
import { Deploy } from '../../tasks/deploy' ;
28
- import { AppServicePlan } from '../../types' ;
29
28
30
29
const SUPPORTED_REGIONS = [
31
- 'eastus' ,
32
- 'eastus2' ,
33
- 'southcentralus' ,
34
- 'westus2' ,
35
- 'australiaeast' ,
36
- 'southeastasia' ,
30
+ // 'eastus',
31
+ // 'eastus2',
32
+ // 'southcentralus',
33
+ // 'westus2',
34
+ // 'australiaeast',
35
+ // 'southeastasia',
37
36
'northeurope' ,
38
- 'uksouth' ,
39
- 'westeurope' ,
40
- 'centralus' ,
41
- 'northcentralus' ,
42
- 'westus' ,
43
- 'southafricanorth' ,
44
- 'centralindia' ,
45
- 'eastasia' ,
46
- 'japaneast' ,
47
- 'koreacentral' ,
37
+ // 'uksouth',
38
+ // 'westeurope',
39
+ // 'centralus',
40
+ // 'northcentralus',
41
+ // 'westus',
42
+ // 'southafricanorth',
43
+ // 'centralindia',
44
+ // 'eastasia',
45
+ // 'japaneast',
46
+ // 'koreacentral',
48
47
'canadacentral' ,
49
- 'francecentral' ,
50
- 'germanywestcentral' ,
51
- 'norwayeast' ,
52
- 'switzerlandnorth' ,
53
- 'uaenorth' ,
54
- 'brazilsouth' ,
55
- 'centralusstage' ,
56
- 'eastusstage' ,
57
- 'eastus2stage' ,
58
- 'northcentralusstage' ,
59
- 'southcentralusstage' ,
60
- 'westusstage' ,
61
- 'westus2stage' ,
62
- 'asia' ,
63
- 'asiapacific' ,
64
- 'australia' ,
65
- 'brazil' ,
66
- 'canada' ,
67
- 'europe' ,
68
- 'global' ,
69
- 'india' ,
70
- 'japan' ,
71
- 'uk' ,
72
- 'unitedstates' ,
73
- 'eastasiastage' ,
74
- 'southeastasiastage' ,
75
- 'centraluseuap' ,
76
- 'eastus2euap' ,
77
- 'westcentralus' ,
78
- 'westus3' ,
79
- 'southafricawest' ,
80
- 'australiacentral' ,
81
- 'australiacentral2' ,
82
- 'australiasoutheast' ,
83
- 'japanwest' ,
84
- 'koreasouth' ,
85
- 'southindia' ,
86
- 'westindia' ,
87
- 'canadaeast' ,
88
- 'francesouth' ,
89
- 'germanynorth' ,
90
- 'norwaywest' ,
91
- 'switzerlandwest' ,
92
- 'ukwest' ,
93
- 'uaecentral' ,
94
- 'brazilsoutheast' ,
48
+ // 'francecentral',
49
+ // 'germanywestcentral',
50
+ // 'norwayeast',
51
+ // 'switzerlandnorth',
52
+ // 'uaenorth',
53
+ // 'brazilsouth',
54
+ // 'centralusstage',
55
+ // 'eastusstage',
56
+ // 'eastus2stage',
57
+ // 'northcentralusstage',
58
+ // 'southcentralusstage',
59
+ // 'westusstage',
60
+ // 'westus2stage',
61
+ // 'asia',
62
+ // 'asiapacific',
63
+ // 'australia',
64
+ // 'brazil',
65
+ // 'canada',
66
+ // 'europe',
67
+ // 'global',
68
+ // 'india',
69
+ // 'japan',
70
+ // 'uk',
71
+ // 'unitedstates',
72
+ // 'eastasiastage',
73
+ // 'southeastasiastage',
74
+ // 'centraluseuap',
75
+ // 'eastus2euap',
76
+ // 'westcentralus',
77
+ // 'westus3',
78
+ // 'southafricawest',
79
+ // 'australiacentral',
80
+ // 'australiacentral2',
81
+ // 'australiasoutheast',
82
+ // 'japanwest',
83
+ // 'koreasouth',
84
+ // 'southindia',
85
+ // 'westindia',
86
+ // 'canadaeast',
87
+ // 'francesouth',
88
+ // 'germanynorth',
89
+ // 'norwaywest',
90
+ // 'switzerlandwest',
91
+ // 'ukwest',
92
+ // 'uaecentral',
93
+ // 'brazilsoutheast',
95
94
] ;
96
95
97
- const APPSERVICE_PLANS : Record < string , AppServicePlan > = {
98
- 'Free-F1' : {
99
- tier : 'Free' ,
100
- size : 'F1' ,
101
- } ,
102
- 'Shared-D1' : {
103
- tier : 'Shared' ,
104
- size : 'D1' ,
105
- } ,
106
- 'Basic-B1' : {
107
- tier : 'Basic' ,
108
- size : 'B1' ,
109
- } ,
110
- 'Basic-B2' : {
111
- tier : 'Basic' ,
112
- size : 'B2' ,
113
- } ,
114
- 'Basic-B3' : {
115
- tier : 'Basic' ,
116
- size : 'B3' ,
117
- } ,
118
- 'Standard-S1' : {
119
- tier : 'Standard' ,
120
- size : 'S1' ,
121
- } ,
122
- 'Standard-S2' : {
123
- tier : 'Standard' ,
124
- size : 'S2' ,
125
- } ,
126
- 'Standard-S3' : {
127
- tier : 'Standard' ,
128
- size : 'S3' ,
129
- } ,
130
- } ;
131
-
132
96
/**
133
97
* Deploy a stack to Microsoft Azure
134
98
*
@@ -146,11 +110,6 @@ export default class AzureDeploy extends BaseCommand {
146
110
char : 'r' ,
147
111
description : 'azure region to deploy to' ,
148
112
} ) ,
149
- plan : flags . enum ( {
150
- options : Object . keys ( APPSERVICE_PLANS ) ,
151
- char : 'p' ,
152
- description : 'azure appservice plan tier' ,
153
- } ) ,
154
113
file : flags . string ( {
155
114
char : 'f' ,
156
115
default : 'nitric.yaml' ,
@@ -197,7 +156,7 @@ export default class AzureDeploy extends BaseCommand {
197
156
promptFlags = await inquirer . prompt ( prompts ) ;
198
157
}
199
158
200
- const { file, region, orgName, adminEmail, plan } = { ...flags , ...promptFlags } ;
159
+ const { file, region, orgName, adminEmail } = { ...flags , ...promptFlags } ;
201
160
202
161
if ( ! region ) {
203
162
throw new Error ( 'Region must be provided, for prompts use the --guided flag' ) ;
@@ -222,7 +181,6 @@ export default class AzureDeploy extends BaseCommand {
222
181
region,
223
182
orgName,
224
183
adminEmail,
225
- servicePlan : APPSERVICE_PLANS [ plan ] ,
226
184
} ) ,
227
185
) ,
228
186
] ,
0 commit comments