Run Command in Azure VMware Solution
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.
View the status of an execution
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.
Note
If you need access to the Azure US Gov portal, go to https://portal.azure.us/
Select Run command > Run execution status.
You can sort by the various columns by selecting the column.
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.
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 can include progress or the result of the operation. Not all cmdlets have output.
Error - Error messages generated in the execution of the cmdlet in addition to the terminating error message on the details pane.
Warning - Warning messages generated during the execution.
Information - Progress and diagnostic generated messages during the execution of a cmdlet.
Cancel or delete a job
Method 1
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.
Select Yes to cancel and remove the job for all users.
Method 2
Select Run command > Packages > Run execution status.
Select More (...) for the job you want to cancel and delete.
Select Yes to cancel and remove the job for all users.
Next steps
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 Server (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 vSphere datastore can be VMFS, vSAN, vVol, or any supported HCI platform.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for