az vmware script-execution
Note
This reference is part of the vmware extension for the Azure CLI (version 2.54.0 or higher). The extension will automatically install the first time you run an az vmware script-execution command. Learn more about extensions.
Commands to manage script executions in a private cloud.
Commands
Name | Description | Type | Status |
---|---|---|---|
az vmware script-execution create |
Create or update a script execution in a private cloud. |
Extension | GA |
az vmware script-execution delete |
Delete a ScriptExecution in a private cloud. |
Extension | GA |
az vmware script-execution list |
List script executions in a private cloud. |
Extension | GA |
az vmware script-execution show |
Get an script execution by name in a private cloud. |
Extension | GA |
az vmware script-execution wait |
Place the CLI in a waiting state until a condition is met. |
Extension | GA |
az vmware script-execution create
Create or update a script execution in a private cloud.
az vmware script-execution create --name
--private-cloud
--resource-group
--timeout
[--failure-reason]
[--hidden-parameter]
[--named-outputs]
[--out]
[--parameter]
[--retention]
[--script-cmdlet-id]
[--yes]
Examples
Create a script execution.
az vmware script-execution create --resource-group group1 --private-cloud cloud1 --name addSsoServer --script-cmdlet-id "/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/scriptPackages/AVS.PowerCommands@1.0.0/scriptCmdlets/New-SsoExternalIdentitySource" --timeout P0Y0M0DT0H60M60S --retention P0Y0M60DT0H60M60S --parameter name=DomainName type=Value value=placeholderDomain.local --parameter name=BaseUserDN type=Value "value=DC=placeholder, DC=placeholder" --hidden-parameter name=Password type=SecureValue secureValue=PlaceholderPassword
Required Parameters
Name of the script execution.
Name of the private cloud.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Time limit for execution.
Optional Parameters
Error message if the script was able to run, but if the script itself had errors or powershell threw an exception.
Parameters that will be hidden/not visible to ARM, such as passwords and credentials.
User-defined dictionary.
Standard output stream from the powershell execution.
Parameters the script will accept.
Time to live for the resource. If not provided, will be available for 60 days.
A reference to the script cmdlet resource if user is running a AVS script.
Create without confirmation.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az vmware script-execution delete
Delete a ScriptExecution in a private cloud.
az vmware script-execution delete [--ids]
[--name]
[--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
[--private-cloud]
[--resource-group]
[--subscription]
[--yes]
Examples
Delete a script execution.
az vmware script-execution delete --resource-group group1 --private-cloud cloud1 --name addSsoServer
Optional Parameters
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 of the user-invoked script execution resource.
Do not wait for the long-running operation to finish.
Name of the private cloud.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Do not prompt for confirmation.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az vmware script-execution list
List script executions in a private cloud.
az vmware script-execution list --private-cloud
--resource-group
[--max-items]
[--next-token]
Examples
List script executions.
az vmware script-execution list --resource-group group1 --private-cloud cloud1
Required Parameters
Name of the private cloud.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Optional Parameters
Total number of items to return in the command's output. If the total number of items available is more than the value specified, a token is provided in the command's output. To resume pagination, provide the token value in --next-token
argument of a subsequent command.
Token to specify where to start paginating. This is the token value from a previously truncated response.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az vmware script-execution show
Get an script execution by name in a private cloud.
az vmware script-execution show [--ids]
[--name]
[--private-cloud]
[--resource-group]
[--subscription]
Examples
Show a script execution.
az vmware script-execution show --resource-group group1 --private-cloud cloud1 --name addSsoServer
Optional Parameters
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 of the user-invoked script execution resource.
Name of the private cloud.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az vmware script-execution wait
Place the CLI in a waiting state until a condition is met.
az vmware script-execution wait [--created]
[--custom]
[--deleted]
[--exists]
[--ids]
[--interval]
[--name]
[--private-cloud]
[--resource-group]
[--subscription]
[--timeout]
[--updated]
Optional Parameters
Wait until created with 'provisioningState' at 'Succeeded'.
Wait until the condition satisfies a custom JMESPath query. E.g. provisioningState!='InProgress', instanceView.statuses[?code=='PowerState/running'].
Wait until deleted.
Wait until the resource exists.
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.
Polling interval in seconds.
Name of the user-invoked script execution resource.
Name of the private cloud.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Maximum wait in seconds.
Wait until updated with provisioningState at 'Succeeded'.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.