-
Notifications
You must be signed in to change notification settings - Fork 232
/
azure.mgmt.compute.v2023_03_01.models.VirtualMachineRunCommand.yml
291 lines (239 loc) · 10.5 KB
/
azure.mgmt.compute.v2023_03_01.models.VirtualMachineRunCommand.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
### YamlMime:PythonClass
uid: azure.mgmt.compute.v2023_03_01.models.VirtualMachineRunCommand
name: VirtualMachineRunCommand
fullName: azure.mgmt.compute.v2023_03_01.models.VirtualMachineRunCommand
module: azure.mgmt.compute.v2023_03_01.models
inheritances:
- azure.mgmt.compute.v2023_03_01.models._models_py3.Resource
summary: 'Describes a Virtual Machine run command.
Variables are only populated by the server, and will be ignored when sending a request.
All required parameters must be populated in order to send to server.'
constructor:
syntax: 'VirtualMachineRunCommand(*, location: str, tags: Dict[str, str] | None
= None, source: _models.VirtualMachineRunCommandScriptSource | None = None, parameters:
List[_models.RunCommandInputParameter] | None = None, protected_parameters: List[_models.RunCommandInputParameter]
| None = None, async_execution: bool = False, run_as_user: str | None = None,
run_as_password: str | None = None, timeout_in_seconds: int | None = None, output_blob_uri:
str | None = None, error_blob_uri: str | None = None, output_blob_managed_identity:
_models.RunCommandManagedIdentity | None = None, error_blob_managed_identity:
_models.RunCommandManagedIdentity | None = None, treat_failure_as_deployment_failure:
bool = False, **kwargs: Any)'
keywordOnlyParameters:
- name: location
description: Resource location. Required.
types:
- <xref:str>
- name: tags
description: Resource tags.
types:
- <xref:dict>[<xref:str>, <xref:str>]
- name: source
description: The source of the run command script.
types:
- <xref:azure.mgmt.compute.v2023_03_01.models.VirtualMachineRunCommandScriptSource>
- name: parameters
description: The parameters used by the script.
types:
- <xref:list>[<xref:azure.mgmt.compute.v2023_03_01.models.RunCommandInputParameter>]
- name: protected_parameters
description: The parameters used by the script.
types:
- <xref:list>[<xref:azure.mgmt.compute.v2023_03_01.models.RunCommandInputParameter>]
- name: async_execution
description: 'Optional. If set to true, provisioning will complete as soon as
the
script starts and will not wait for script to complete.'
types:
- <xref:bool>
- name: run_as_user
description: Specifies the user account on the VM when executing the run command.
types:
- <xref:str>
- name: run_as_password
description: 'Specifies the user account password on the VM when executing the
run
command.'
types:
- <xref:str>
- name: timeout_in_seconds
description: The timeout in seconds to execute the run command.
types:
- <xref:int>
- name: output_blob_uri
description: 'Specifies the Azure storage blob where script output stream will
be
uploaded. Use a SAS URI with read, append, create, write access OR use managed
identity to
provide the VM access to the blob. Refer outputBlobManagedIdentity parameter.'
types:
- <xref:str>
- name: error_blob_uri
description: 'Specifies the Azure storage blob where script error stream will
be
uploaded. Use a SAS URI with read, append, create, write access OR use managed
identity to
provide the VM access to the blob. Refer errorBlobManagedIdentity parameter.'
types:
- <xref:str>
- name: output_blob_managed_identity
description: 'User-assigned managed identity that has access to
outputBlobUri storage blob. Use an empty object in case of system-assigned identity.
Make sure
managed identity has been given access to blob''s container with ''Storage Blob
Data Contributor''
role assignment. In case of user-assigned identity, make sure you add it under
VM''s identity.
For more info on managed identity and Run Command, refer [https://aka.ms/ManagedIdentity](https://aka.ms/ManagedIdentity)
and
[https://aka.ms/RunCommandManaged](https://aka.ms/RunCommandManaged).'
types:
- <xref:azure.mgmt.compute.v2023_03_01.models.RunCommandManagedIdentity>
- name: error_blob_managed_identity
description: 'User-assigned managed identity that has access to
errorBlobUri storage blob. Use an empty object in case of system-assigned identity.
Make sure
managed identity has been given access to blob''s container with ''Storage Blob
Data Contributor''
role assignment. In case of user-assigned identity, make sure you add it under
VM''s identity.
For more info on managed identity and Run Command, refer [https://aka.ms/ManagedIdentity](https://aka.ms/ManagedIdentity)
and
[https://aka.ms/RunCommandManaged](https://aka.ms/RunCommandManaged).'
types:
- <xref:azure.mgmt.compute.v2023_03_01.models.RunCommandManagedIdentity>
- name: treat_failure_as_deployment_failure
description: 'Optional. If set to true, any failure in the
script will fail the deployment and ProvisioningState will be marked as Failed.
If set to
false, ProvisioningState would only reflect whether the run command was run
or not by the
extensions platform, it would not indicate whether script failed in case of
script failures.
See instance view of run command in case of script failures to see executionMessage,
output,
error: [https://aka.ms/runcommandmanaged#get-execution-status-and-results](https://aka.ms/runcommandmanaged#get-execution-status-and-results).'
types:
- <xref:bool>
variables:
- description: Resource Id.
name: id
types:
- <xref:str>
- description: Resource name.
name: name
types:
- <xref:str>
- description: Resource type.
name: type
types:
- <xref:str>
- description: Resource location. Required.
name: location
types:
- <xref:str>
- description: Resource tags.
name: tags
types:
- <xref:dict>[<xref:str>, <xref:str>]
- description: The source of the run command script.
name: source
types:
- <xref:azure.mgmt.compute.v2023_03_01.models.VirtualMachineRunCommandScriptSource>
- description: The parameters used by the script.
name: parameters
types:
- <xref:list>[<xref:azure.mgmt.compute.v2023_03_01.models.RunCommandInputParameter>]
- description: The parameters used by the script.
name: protected_parameters
types:
- <xref:list>[<xref:azure.mgmt.compute.v2023_03_01.models.RunCommandInputParameter>]
- description: 'Optional. If set to true, provisioning will complete as soon as the
script starts and will not wait for script to complete.'
name: async_execution
types:
- <xref:bool>
- description: Specifies the user account on the VM when executing the run command.
name: run_as_user
types:
- <xref:str>
- description: 'Specifies the user account password on the VM when executing the run
command.'
name: run_as_password
types:
- <xref:str>
- description: The timeout in seconds to execute the run command.
name: timeout_in_seconds
types:
- <xref:int>
- description: 'Specifies the Azure storage blob where script output stream will be
uploaded. Use a SAS URI with read, append, create, write access OR use managed
identity to
provide the VM access to the blob. Refer outputBlobManagedIdentity parameter.'
name: output_blob_uri
types:
- <xref:str>
- description: 'Specifies the Azure storage blob where script error stream will be
uploaded. Use a SAS URI with read, append, create, write access OR use managed
identity to
provide the VM access to the blob. Refer errorBlobManagedIdentity parameter.'
name: error_blob_uri
types:
- <xref:str>
- description: 'User-assigned managed identity that has access to
outputBlobUri storage blob. Use an empty object in case of system-assigned identity.
Make sure
managed identity has been given access to blob''s container with ''Storage Blob
Data Contributor''
role assignment. In case of user-assigned identity, make sure you add it under
VM''s identity.
For more info on managed identity and Run Command, refer [https://aka.ms/ManagedIdentity](https://aka.ms/ManagedIdentity)
and
[https://aka.ms/RunCommandManaged](https://aka.ms/RunCommandManaged).'
name: output_blob_managed_identity
types:
- <xref:azure.mgmt.compute.v2023_03_01.models.RunCommandManagedIdentity>
- description: 'User-assigned managed identity that has access to
errorBlobUri storage blob. Use an empty object in case of system-assigned identity.
Make sure
managed identity has been given access to blob''s container with ''Storage Blob
Data Contributor''
role assignment. In case of user-assigned identity, make sure you add it under
VM''s identity.
For more info on managed identity and Run Command, refer [https://aka.ms/ManagedIdentity](https://aka.ms/ManagedIdentity)
and
[https://aka.ms/RunCommandManaged](https://aka.ms/RunCommandManaged).'
name: error_blob_managed_identity
types:
- <xref:azure.mgmt.compute.v2023_03_01.models.RunCommandManagedIdentity>
- description: 'The provisioning state, which only appears in the response. If
treatFailureAsDeploymentFailure set to true, any failure in the script will fail
the deployment
and ProvisioningState will be marked as Failed. If treatFailureAsDeploymentFailure
set to
false, ProvisioningState would only reflect whether the run command was run or
not by the
extensions platform, it would not indicate whether script failed in case of script
failures.
See instance view of run command in case of script failures to see executionMessage,
output,
error: [https://aka.ms/runcommandmanaged#get-execution-status-and-results](https://aka.ms/runcommandmanaged#get-execution-status-and-results).'
name: provisioning_state
types:
- <xref:str>
- description: The virtual machine run command instance view.
name: instance_view
types:
- <xref:azure.mgmt.compute.v2023_03_01.models.VirtualMachineRunCommandInstanceView>
- description: 'Optional. If set to true, any failure in the script
will fail the deployment and ProvisioningState will be marked as Failed. If set
to false,
ProvisioningState would only reflect whether the run command was run or not by
the extensions
platform, it would not indicate whether script failed in case of script failures.
See instance
view of run command in case of script failures to see executionMessage, output,
error:
[https://aka.ms/runcommandmanaged#get-execution-status-and-results](https://aka.ms/runcommandmanaged#get-execution-status-and-results).'
name: treat_failure_as_deployment_failure
types:
- <xref:bool>