-
Notifications
You must be signed in to change notification settings - Fork 492
/
ssl.yml
406 lines (405 loc) · 16.1 KB
/
ssl.yml
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
### YamlMime:AzureCLIGroup
uid: az_webapp_config_ssl
name: az webapp config ssl
importantNote: >-
> [!NOTE]
> This command group has commands that are defined in both Azure CLI and at least one extension. Install each extension to benefit from its extended capabilities. [Learn more](https://learn.microsoft.com/cli/azure/azure-cli-extensions-overview) about extensions.
summary: |-
Configure SSL certificates for web apps.
status: GA
sourceType: Core and Extension
directCommands:
- uid: az_webapp_config_ssl_bind
name: az webapp config ssl bind
summary: |-
Bind an SSL certificate to a web app.
status: GA
sourceType: Core
syntax: >-
az webapp config ssl bind --certificate-thumbprint
--ssl-type {IP, SNI}
[--hostname]
[--ids]
[--name]
[--resource-group]
[--slot]
[--subscription]
examples:
- summary: |-
Bind an SSL certificate to a web app. (autogenerated)
syntax: az webapp config ssl bind --certificate-thumbprint {certificate-thumbprint} --name MyWebapp --resource-group MyResourceGroup --ssl-type SNI
requiredParameters:
- isRequired: true
name: --certificate-thumbprint
summary: |-
The ssl cert thumbprint.
- isRequired: true
name: --ssl-type
parameterValueGroup: "IP, SNI"
summary: |-
The ssl cert type.
optionalParameters:
- name: --hostname
summary: |-
The custom domain name. If empty, hostnames will be selected automatically.
- name: --ids
summary: |-
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
- name: --name -n
summary: |-
Name of the web app. If left unspecified, a name will be randomly generated. You can configure the default using `az configure --defaults web=<name>`.
- name: --resource-group -g
summary: |-
Name of resource group. You can configure the default group using `az configure --defaults group=<name>`.
- name: --slot -s
summary: |-
The name of the slot. Default to the productions slot if not specified.
- name: --subscription
summary: |-
Name or ID of subscription. You can configure the default subscription using `az account set -s NAME_OR_ID`.
- uid: az_webapp_config_ssl_bind(appservice-kube)
name: az webapp config ssl bind
extensionSuffix: appservice-kube
summary: |-
Bind an SSL certificate to a web app.
status: GA
sourceType: Extension
syntax: >-
az webapp config ssl bind --certificate-thumbprint
--ssl-type {IP, SNI}
[--ids]
[--name]
[--resource-group]
[--slot]
[--subscription]
examples:
- summary: |-
Bind an SSL certificate to a web app. (autogenerated)
syntax: az webapp config ssl bind --certificate-thumbprint {certificate-thumbprint} --name MyWebapp --resource-group MyResourceGroup --ssl-type SNI
requiredParameters:
- isRequired: true
name: --certificate-thumbprint
summary: |-
The ssl cert thumbprint.
- isRequired: true
name: --ssl-type
parameterValueGroup: "IP, SNI"
summary: |-
The ssl cert type.
optionalParameters:
- name: --ids
summary: |-
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
- name: --name -n
summary: |-
Name of the web app. You can configure the default using `az configure --defaults web=<name>`.
- name: --resource-group -g
summary: |-
Name of resource group. You can configure the default group using `az configure --defaults group=<name>`.
- name: --slot -s
summary: |-
The name of the slot. Default to the productions slot if not specified.
- name: --subscription
summary: |-
Name or ID of subscription. You can configure the default subscription using `az account set -s NAME_OR_ID`.
- uid: az_webapp_config_ssl_create
name: az webapp config ssl create
summary: |-
Create a Managed Certificate for a hostname in a webapp app.
status: Preview
isPreview: true
previewOrExperimentalInfo: 'This command is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus'
sourceType: Core
syntax: >-
az webapp config ssl create --hostname
--name
--resource-group
[--certificate-name]
[--slot]
examples:
- summary: |-
Create a Managed Certificate for cname.mycustomdomain.com.
syntax: az webapp config ssl create --resource-group MyResourceGroup --name MyWebapp --hostname cname.mycustomdomain.com
requiredParameters:
- isRequired: true
name: --hostname
summary: |-
The custom domain name.
- isRequired: true
name: --name -n
summary: |-
Name of the web app.
- isRequired: true
name: --resource-group -g
summary: |-
Name of resource group. You can configure the default group using `az configure --defaults group=<name>`.
optionalParameters:
- name: --certificate-name
summary: |-
The name of the certificate.
- name: --slot -s
summary: |-
The name of the slot. Default to the productions slot if not specified.
- uid: az_webapp_config_ssl_delete
name: az webapp config ssl delete
summary: |-
Delete an SSL certificate from a web app.
status: GA
sourceType: Core
syntax: >-
az webapp config ssl delete --certificate-thumbprint
--resource-group
examples:
- summary: |-
Delete an SSL certificate from a web app. (autogenerated)
syntax: az webapp config ssl delete --certificate-thumbprint {certificate-thumbprint} --resource-group MyResourceGroup
requiredParameters:
- isRequired: true
name: --certificate-thumbprint
summary: |-
The ssl cert thumbprint.
- isRequired: true
name: --resource-group -g
summary: |-
Name of resource group. You can configure the default group using `az configure --defaults group=<name>`.
- uid: az_webapp_config_ssl_import
name: az webapp config ssl import
summary: |-
Import an SSL or App Service Certificate to a web app from Key Vault.
status: GA
sourceType: Core
syntax: >-
az webapp config ssl import --key-vault
--key-vault-certificate-name
[--certificate-name]
[--ids]
[--name]
[--resource-group]
[--subscription]
examples:
- summary: |-
Import an SSL or App Service Certificate certificate to a web app from Key Vault.
syntax: az webapp config ssl import --resource-group MyResourceGroup --name MyWebapp --key-vault MyKeyVault --key-vault-certificate-name MyCertificateName
- summary: |-
Import an SSL or App Service Certificate to a web app from Key Vault using resource id (typically if Key Vault is in another subscription).
syntax: az webapp config ssl import --resource-group MyResourceGroup --name MyWebapp --key-vault '/subscriptions/[sub id]/resourceGroups/[rg]/providers/Microsoft.KeyVault/vaults/[vault name]' --key-vault-certificate-name MyCertificateName
requiredParameters:
- isRequired: true
name: --key-vault
summary: |-
The name or resource ID of the Key Vault.
- isRequired: true
name: --key-vault-certificate-name
summary: |-
The name of the certificate in Key Vault.
optionalParameters:
- name: --certificate-name
summary: |-
The name of the certificate.
- name: --ids
summary: |-
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
- name: --name -n
summary: |-
Name of the web app. If left unspecified, a name will be randomly generated. You can configure the default using `az configure --defaults web=<name>`.
- name: --resource-group -g
summary: |-
Name of resource group. You can configure the default group using `az configure --defaults group=<name>`.
- name: --subscription
summary: |-
Name or ID of subscription. You can configure the default subscription using `az account set -s NAME_OR_ID`.
- uid: az_webapp_config_ssl_list
name: az webapp config ssl list
summary: |-
List SSL certificates for a web app.
status: GA
sourceType: Core
syntax: az webapp config ssl list --resource-group
examples:
- summary: |-
List SSL certificates for a web app. (autogenerated)
syntax: az webapp config ssl list --resource-group MyResourceGroup
requiredParameters:
- isRequired: true
name: --resource-group -g
summary: |-
Name of resource group. You can configure the default group using `az configure --defaults group=<name>`.
- uid: az_webapp_config_ssl_show
name: az webapp config ssl show
summary: |-
Show the details of an SSL certificate for a web app.
status: GA
sourceType: Core
syntax: >-
az webapp config ssl show --certificate-name
--resource-group
examples:
- summary: |-
Show the details of an SSL certificate for a web app. (autogenerated)
syntax: az webapp config ssl show --resource-group MyResourceGroup --certificate-name cname.mycustomdomain.com
requiredParameters:
- isRequired: true
name: --certificate-name
summary: |-
The name of the certificate.
- isRequired: true
name: --resource-group -g
summary: |-
Name of resource group. You can configure the default group using `az configure --defaults group=<name>`.
- uid: az_webapp_config_ssl_unbind
name: az webapp config ssl unbind
summary: |-
Unbind an SSL certificate from a web app.
status: GA
sourceType: Core
syntax: >-
az webapp config ssl unbind --certificate-thumbprint
[--hostname]
[--ids]
[--name]
[--resource-group]
[--slot]
[--subscription]
requiredParameters:
- isRequired: true
name: --certificate-thumbprint
summary: |-
The ssl cert thumbprint.
optionalParameters:
- name: --hostname
summary: |-
The custom domain name. If empty, hostnames will be selected automatically.
- name: --ids
summary: |-
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
- name: --name -n
summary: |-
Name of the web app. If left unspecified, a name will be randomly generated. You can configure the default using `az configure --defaults web=<name>`.
- name: --resource-group -g
summary: |-
Name of resource group. You can configure the default group using `az configure --defaults group=<name>`.
- name: --slot -s
summary: |-
The name of the slot. Default to the productions slot if not specified.
- name: --subscription
summary: |-
Name or ID of subscription. You can configure the default subscription using `az account set -s NAME_OR_ID`.
- uid: az_webapp_config_ssl_unbind(appservice-kube)
name: az webapp config ssl unbind
extensionSuffix: appservice-kube
summary: |-
Unbind an SSL certificate from a web app.
status: GA
sourceType: Extension
syntax: >-
az webapp config ssl unbind --certificate-thumbprint
[--ids]
[--name]
[--resource-group]
[--slot]
[--subscription]
requiredParameters:
- isRequired: true
name: --certificate-thumbprint
summary: |-
The ssl cert thumbprint.
optionalParameters:
- name: --ids
summary: |-
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
- name: --name -n
summary: |-
Name of the web app. You can configure the default using `az configure --defaults web=<name>`.
- name: --resource-group -g
summary: |-
Name of resource group. You can configure the default group using `az configure --defaults group=<name>`.
- name: --slot -s
summary: |-
The name of the slot. Default to the productions slot if not specified.
- name: --subscription
summary: |-
Name or ID of subscription. You can configure the default subscription using `az account set -s NAME_OR_ID`.
- uid: az_webapp_config_ssl_upload
name: az webapp config ssl upload
summary: |-
Upload an SSL certificate to a web app.
status: GA
sourceType: Core
syntax: >-
az webapp config ssl upload --certificate-file
--certificate-password
[--certificate-name]
[--ids]
[--name]
[--resource-group]
[--slot]
[--subscription]
examples:
- summary: |-
Upload an SSL certificate to a web app. (autogenerated)
syntax: az webapp config ssl upload --certificate-file {certificate-file} --certificate-password {certificate-password} --name MyWebapp --resource-group MyResourceGroup
requiredParameters:
- isRequired: true
name: --certificate-file
summary: |-
The filepath for the .pfx file.
- isRequired: true
name: --certificate-password
summary: |-
The ssl cert password.
optionalParameters:
- name: --certificate-name
summary: |-
The name of the certificate.
- name: --ids
summary: |-
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
- name: --name -n
summary: |-
Name of the web app. If left unspecified, a name will be randomly generated. You can configure the default using `az configure --defaults web=<name>`.
- name: --resource-group -g
summary: |-
Name of resource group. You can configure the default group using `az configure --defaults group=<name>`.
- name: --slot -s
summary: |-
The name of the slot. Default to the productions slot if not specified.
- name: --subscription
summary: |-
Name or ID of subscription. You can configure the default subscription using `az account set -s NAME_OR_ID`.
commands:
- az_webapp_config_ssl_bind
- az_webapp_config_ssl_bind(appservice-kube)
- az_webapp_config_ssl_create
- az_webapp_config_ssl_delete
- az_webapp_config_ssl_import
- az_webapp_config_ssl_list
- az_webapp_config_ssl_show
- az_webapp_config_ssl_unbind
- az_webapp_config_ssl_unbind(appservice-kube)
- az_webapp_config_ssl_upload
globalParameters:
- name: --debug
summary: |-
Increase logging verbosity to show all debug logs.
- name: --help -h
summary: |-
Show this help message and exit.
- name: --only-show-errors
summary: |-
Only show errors, suppressing warnings.
- name: --output -o
defaultValue: "json"
parameterValueGroup: "json, jsonc, none, table, tsv, yaml, yamlc"
summary: |-
Output format.
- name: --query
summary: |-
JMESPath query string. See <a href="http://jmespath.org/">http://jmespath.org/</a> for more information and examples.
- name: --subscription
summary: |-
Name or ID of subscription. You can configure the default subscription using `az account set -s NAME_OR_ID`.
- name: --verbose
summary: |-
Increase logging verbosity. Use --debug for full debug logs.
metadata:
description: Configure SSL certificates for web apps.