-
Notifications
You must be signed in to change notification settings - Fork 496
/
Copy pathextension.yml
292 lines (291 loc) · 11.9 KB
/
extension.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
### YamlMime:AzureCLIGroup
uid: az_scvmm_vm_extension
name: az scvmm vm extension
extensionInformation: >-
> [!NOTE]
> This reference is part of the **scvmm** extension for the Azure CLI (version 2.15.0 or higher). The extension will automatically install the first time you run an **az scvmm vm extension** command. [Learn more](https://learn.microsoft.com/cli/azure/azure-cli-extensions-overview) about extensions.
summary: |-
Manage vm extension with scvmm.
status: GA
sourceType: Extension
directCommands:
- uid: az_scvmm_vm_extension_create
name: az scvmm vm extension create
summary: |-
The operation to create the extension.
status: GA
sourceType: Extension
syntax: >-
az scvmm vm extension create --location
--name
--resource-group
--vm-name
[--auto-upgrade-minor {false, true}]
[--enable-auto-upgrade {false, true}]
[--force-update-tag]
[--no-wait]
[--protected-settings]
[--publisher]
[--settings]
[--tags]
[--type]
[--type-handler-version]
examples:
- summary: |-
Create a VM Extension
syntax: az scvmm vm extension create --name contoso-extension --location eastus2euap --type CustomScriptExtension --publisher Microsoft.Compute --settings "{\"commandToExecute\":\"powershell.exe -c \\\"Get-Process | Where-Object { $_.CPU -gt 10000 }\\\"\"}" --type-handler-version 1.10 --vm-name contoso-vm --resource-group contoso-rg
requiredParameters:
- isRequired: true
name: --location -l
summary: |-
Location. Values from: `az account list-locations`. You can configure the default location using `az configure --defaults location=<location>`.
- isRequired: true
name: --name
summary: |-
The name of the vm extension.
- isRequired: true
name: --resource-group -g
summary: |-
Name of resource group. You can configure the default group using `az configure --defaults group=<name>`.
- isRequired: true
name: --vm-name
summary: |-
The name of the vm where the extension should be created or updated.
optionalParameters:
- name: --auto-upgrade-minor
parameterValueGroup: "false, true"
summary: |-
Indicate whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true.
- name: --enable-auto-upgrade
parameterValueGroup: "false, true"
summary: |-
Indicates whether the extension should be automatically upgraded by the platform if there is a newer version available.
- name: --force-update-tag
summary: |-
How the extension handler should be forced to update even if the extension configuration has not changed.
- name: --no-wait
defaultValue: "False"
summary: |-
Do not wait for the long-running operation to finish.
- name: --protected-settings
summary: |-
The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. Expected value: json-string/json-file/@json-file.
- name: --publisher
summary: |-
The name of the extension handler publisher.
- name: --settings
summary: |-
Json formatted public settings for the extension. Expected value: json-string/json-file/@json-file.
- name: --tags
summary: |-
Space-separated tags: key[=value] [key[=value] ...]. Use "" to clear existing tags.
- name: --type
summary: |-
Specify the type of the extension; an example is "CustomScriptExtension".
- name: --type-handler-version
summary: |-
Specifies the version of the script handler.
- uid: az_scvmm_vm_extension_delete
name: az scvmm vm extension delete
summary: |-
The operation to delete the extension.
status: GA
sourceType: Extension
syntax: >-
az scvmm vm extension delete [--ids]
[--name]
[--no-wait]
[--resource-group]
[--subscription]
[--vm-name]
[--yes]
examples:
- summary: |-
Delete a VM Extension
syntax: az scvmm vm extension delete --name contoso-extension --vm-name contoso-vm --resource-group contoso-rg
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
summary: |-
The name of the vm extension.
- name: --no-wait
defaultValue: "False"
summary: |-
Do not wait for the long-running operation to finish.
- 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`.
- name: --vm-name
summary: |-
The name of the vm where the extension should be deleted.
- name: --yes -y
defaultValue: "False"
summary: |-
Do not prompt for confirmation.
- uid: az_scvmm_vm_extension_list
name: az scvmm vm extension list
summary: |-
The operation to get all extensions of a non-Azure vm.
status: GA
sourceType: Extension
syntax: >-
az scvmm vm extension list --resource-group
--vm-name
[--expand]
examples:
- summary: |-
Get all VM Extensions
syntax: az scvmm vm extension list --vm-name contoso-vm --resource-group contoso-rg
requiredParameters:
- isRequired: true
name: --resource-group -g
summary: |-
Name of resource group. You can configure the default group using `az configure --defaults group=<name>`.
- isRequired: true
name: --vm-name
summary: |-
The name of the vm containing the extension.
optionalParameters:
- name: --expand
summary: |-
The expand expression to apply on the operation.
- uid: az_scvmm_vm_extension_show
name: az scvmm vm extension show
summary: |-
The operation to get the extension.
status: GA
sourceType: Extension
syntax: >-
az scvmm vm extension show [--ids]
[--name]
[--resource-group]
[--subscription]
[--vm-name]
examples:
- summary: |-
Get VM Extension
syntax: az scvmm vm extension show --name contoso-extension --vm-name contoso-vm --resource-group contoso-rg
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
summary: |-
The name of the vm extension.
- 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`.
- name: --vm-name
summary: |-
The name of the vm containing the extension.
- uid: az_scvmm_vm_extension_update
name: az scvmm vm extension update
summary: |-
The operation to update the extension.
status: GA
sourceType: Extension
syntax: >-
az scvmm vm extension update --name
--resource-group
--vm-name
[--auto-upgrade-minor {false, true}]
[--enable-auto-upgrade {false, true}]
[--force-update-tag]
[--no-wait]
[--protected-settings]
[--publisher]
[--settings]
[--tags]
[--type]
[--type-handler-version]
examples:
- summary: |-
Update a VM Extension
syntax: az scvmm vm extension update --name contoso-extension --type CustomScriptExtension --publisher Microsoft.Compute --settings "{\"commandToExecute\":\"powershell.exe -c \\\"Get-Process | Where-Object { $_.CPU -lt 100 }\\\"\"}" --type-handler-version 1.10 --vm-name contoso-vm --resource-group contoso-rg
requiredParameters:
- isRequired: true
name: --name
summary: |-
The name of the vm extension.
- isRequired: true
name: --resource-group -g
summary: |-
Name of resource group. You can configure the default group using `az configure --defaults group=<name>`.
- isRequired: true
name: --vm-name
summary: |-
The name of the vm where the extension should be created or updated.
optionalParameters:
- name: --auto-upgrade-minor
parameterValueGroup: "false, true"
summary: |-
Indicate whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true.
- name: --enable-auto-upgrade
parameterValueGroup: "false, true"
summary: |-
Indicates whether the extension should be automatically upgraded by the platform if there is a newer version available.
- name: --force-update-tag
summary: |-
How the extension handler should be forced to update even if the extension configuration has not changed.
- name: --no-wait
defaultValue: "False"
summary: |-
Do not wait for the long-running operation to finish.
- name: --protected-settings
summary: |-
The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. Expected value: json-string/json-file/@json-file.
- name: --publisher
summary: |-
The name of the extension handler publisher.
- name: --settings
summary: |-
Json formatted public settings for the extension. Expected value: json-string/json-file/@json-file.
- name: --tags
summary: |-
Space-separated tags: key[=value] [key[=value] ...]. Use "" to clear existing tags.
- name: --type
summary: |-
Specify the type of the extension; an example is "CustomScriptExtension".
- name: --type-handler-version
summary: |-
Specifies the version of the script handler.
commands:
- az_scvmm_vm_extension_create
- az_scvmm_vm_extension_delete
- az_scvmm_vm_extension_list
- az_scvmm_vm_extension_show
- az_scvmm_vm_extension_update
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: Manage vm extension with scvmm.