Skip to main content

virtual_machine_scale_set_vm_run_commands

Creates, updates, deletes, gets or lists a virtual_machine_scale_set_vm_run_commands resource.

Overview

Namevirtual_machine_scale_set_vm_run_commands
TypeResource
Idazure.compute.virtual_machine_scale_set_vm_run_commands

Fields

NameDatatypeDescription
idtextResource Id
nametextResource name
async_executiontextfield from the properties object
error_blob_managed_identitytextfield from the properties object
error_blob_uritextfield from the properties object
instanceIdtextfield from the properties object
instance_viewtextfield from the properties object
locationtextResource location
output_blob_managed_identitytextfield from the properties object
output_blob_uritextfield from the properties object
parameterstextfield from the properties object
protected_parameterstextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
runCommandNametextfield from the properties object
run_as_passwordtextfield from the properties object
run_as_usertextfield from the properties object
sourcetextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags
timeout_in_secondstextfield from the properties object
treat_failure_as_deployment_failuretextfield from the properties object
typetextResource type
vmScaleSetNametextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTinstanceId, resourceGroupName, runCommandName, subscriptionId, vmScaleSetNameThe operation to get the VMSS VM run command.
listSELECTinstanceId, resourceGroupName, subscriptionId, vmScaleSetNameThe operation to get all run commands of an instance in Virtual Machine Scaleset.
create_or_updateINSERTinstanceId, resourceGroupName, runCommandName, subscriptionId, vmScaleSetNameThe operation to create or update the VMSS VM run command.
deleteDELETEinstanceId, resourceGroupName, runCommandName, subscriptionId, vmScaleSetNameThe operation to delete the VMSS VM run command.
updateUPDATEinstanceId, resourceGroupName, runCommandName, subscriptionId, vmScaleSetNameThe operation to update the VMSS VM run command.

SELECT examples

The operation to get all run commands of an instance in Virtual Machine Scaleset.

SELECT
id,
name,
async_execution,
error_blob_managed_identity,
error_blob_uri,
instanceId,
instance_view,
location,
output_blob_managed_identity,
output_blob_uri,
parameters,
protected_parameters,
provisioning_state,
resourceGroupName,
runCommandName,
run_as_password,
run_as_user,
source,
subscriptionId,
tags,
timeout_in_seconds,
treat_failure_as_deployment_failure,
type,
vmScaleSetName
FROM azure.compute.vw_virtual_machine_scale_set_vm_run_commands
WHERE instanceId = '{{ instanceId }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND vmScaleSetName = '{{ vmScaleSetName }}';

INSERT example

Use the following StackQL query and manifest file to create a new virtual_machine_scale_set_vm_run_commands resource.

/*+ create */
INSERT INTO azure.compute.virtual_machine_scale_set_vm_run_commands (
instanceId,
resourceGroupName,
runCommandName,
subscriptionId,
vmScaleSetName,
properties,
location,
tags
)
SELECT
'{{ instanceId }}',
'{{ resourceGroupName }}',
'{{ runCommandName }}',
'{{ subscriptionId }}',
'{{ vmScaleSetName }}',
'{{ properties }}',
'{{ location }}',
'{{ tags }}'
;

UPDATE example

Updates a virtual_machine_scale_set_vm_run_commands resource.

/*+ update */
UPDATE azure.compute.virtual_machine_scale_set_vm_run_commands
SET
properties = '{{ properties }}',
tags = '{{ tags }}'
WHERE
instanceId = '{{ instanceId }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND runCommandName = '{{ runCommandName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND vmScaleSetName = '{{ vmScaleSetName }}';

DELETE example

Deletes the specified virtual_machine_scale_set_vm_run_commands resource.

/*+ delete */
DELETE FROM azure.compute.virtual_machine_scale_set_vm_run_commands
WHERE instanceId = '{{ instanceId }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND runCommandName = '{{ runCommandName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND vmScaleSetName = '{{ vmScaleSetName }}';