title | description | ms.topic | ms.service | ms.date |
---|---|---|---|---|
Concepts - Run command in Azure VMware Solution (Preview) |
Learn about using run commands in Azure VMware Solution. |
conceptual |
azure-vmware |
09/17/2021 |
In Azure VMware Solution, vCenter Server has a built-in local user called cloudadmin assigned to the CloudAdmin role. The CloudAdmin role has vCenter Server privileges that differ from other VMware cloud solutions and on-premises deployments. The Run command feature lets you perform operations that would normally require elevated privileges through a collection of PowerShell cmdlets.
Azure VMware Solution supports the following operations:
Note
Run commands are executed one at a time in the order submitted.
You can view the status of any executed run command, including the output, errors, warnings, and information logs of the cmdlets.
-
Sign in to the Azure portal.
-
Select Run command > Run execution status.
You can sort by the various columns by selecting the column.
:::image type="content" source="media/run-command/run-execution-status.png" alt-text="Screenshot showing Run execution status tab." lightbox="media/run-command/run-execution-status.png":::
-
Select the execution you want to view. A pane opens with details about the execution, and other tabs for the various types of output generated by the cmdlet.
:::image type="content" source="media/run-command/run-execution-status-example.png" alt-text="Screenshot showing an example of a run execution.":::
You can view more details about the execution including the output, errors, warnings, and information.
-
Details - Summary of the execution details, such as the name, status, package, cmdlet name, and error if the command failed.
-
Output - Messages output by the cmdlet. May include progress or the result of the operation. Not all cmdlets have output.
:::image type="content" source="media/run-command/run-execution-status-example-output.png" alt-text="Screenshot showing the output of a run execution.":::
-
Error - Error messages generated in the execution of the cmdlet. This is in addition to the terminating error message on the details pane.
:::image type="content" source="media/run-command/run-execution-status-example-error.png" alt-text="Screenshot showing the errors detected during the execution of an execution.":::
-
Warning - Warning messages generated during the execution.
:::image type="content" source="media/run-command/run-execution-status-example-warning.png" alt-text="Screenshot showing the warnings detected during the execution of an execution.":::
-
Information - Progress and diagnostic generated messages during the execution of a cmdlet.
:::image type="content" source="media/run-command/run-execution-status-example-information.png" alt-text="Screenshot showing the overall real-time progress of the cmdlet as it runs.":::
-
This method attempts to cancel the execution, and then deletes it upon completion.
Important
Method 1 is irreversible.
-
Select Run command > Run execution status and then select the job you want to cancel.
:::image type="content" source="media/run-command/run-execution-cancel-delete-job-method-1.png" alt-text="Screenshot showing how to cancel and delete a run command.":::
-
Select Yes to cancel and remove the job for all users.
-
Select Run command > Packages > Run execution status.
-
Select More (...) for the job you want to cancel and delete.
:::image type="content" source="media/run-command/run-execution-cancel-delete-job-method-2.png" alt-text="Screenshot showing how to cancel and delete a run command using the ellipsis.":::
-
Select Yes to cancel and remove the job for all users.
Now that you've learned about the Run command concepts, you can use the Run command feature to:
-
Configure storage policy - Each VM deployed to a vSAN datastore is assigned a vSAN storage policy. You can assign a vSAN storage policy in an initial deployment of a VM or when you do other VM operations, such as cloning or migrating.
-
Configure external identity source for vCenter (Run command) - Configure Active Directory over LDAP or LDAPS for vCenter Server, which enables the use of an external identity source as an Active Directory. Then, you can add groups from the external identity source to the CloudAdmin role.
-
Deploy disaster recovery using JetStream - Store data directly to a recovery cluster in vSAN. The data gets captured through I/O filters that run within vSphere. The underlying data store can be VMFS, VSAN, vVol, or any HCI platform.