1. Packages
  2. Azure Native
  3. API Docs
  4. avs
  5. getScriptExecution
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.3.0 published on Monday, Apr 28, 2025 by Pulumi

azure-native.avs.getScriptExecution

Explore with Pulumi AI

azure-native logo
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.3.0 published on Monday, Apr 28, 2025 by Pulumi

    Get a ScriptExecution

    Uses Azure REST API version 2023-09-01.

    Other available API versions: 2022-05-01, 2023-03-01. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native avs [ApiVersion]. See the version guide for details.

    Using getScriptExecution

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getScriptExecution(args: GetScriptExecutionArgs, opts?: InvokeOptions): Promise<GetScriptExecutionResult>
    function getScriptExecutionOutput(args: GetScriptExecutionOutputArgs, opts?: InvokeOptions): Output<GetScriptExecutionResult>
    def get_script_execution(private_cloud_name: Optional[str] = None,
                             resource_group_name: Optional[str] = None,
                             script_execution_name: Optional[str] = None,
                             opts: Optional[InvokeOptions] = None) -> GetScriptExecutionResult
    def get_script_execution_output(private_cloud_name: Optional[pulumi.Input[str]] = None,
                             resource_group_name: Optional[pulumi.Input[str]] = None,
                             script_execution_name: Optional[pulumi.Input[str]] = None,
                             opts: Optional[InvokeOptions] = None) -> Output[GetScriptExecutionResult]
    func LookupScriptExecution(ctx *Context, args *LookupScriptExecutionArgs, opts ...InvokeOption) (*LookupScriptExecutionResult, error)
    func LookupScriptExecutionOutput(ctx *Context, args *LookupScriptExecutionOutputArgs, opts ...InvokeOption) LookupScriptExecutionResultOutput

    > Note: This function is named LookupScriptExecution in the Go SDK.

    public static class GetScriptExecution 
    {
        public static Task<GetScriptExecutionResult> InvokeAsync(GetScriptExecutionArgs args, InvokeOptions? opts = null)
        public static Output<GetScriptExecutionResult> Invoke(GetScriptExecutionInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetScriptExecutionResult> getScriptExecution(GetScriptExecutionArgs args, InvokeOptions options)
    public static Output<GetScriptExecutionResult> getScriptExecution(GetScriptExecutionArgs args, InvokeOptions options)
    
    fn::invoke:
      function: azure-native:avs:getScriptExecution
      arguments:
        # arguments dictionary

    The following arguments are supported:

    PrivateCloudName string
    Name of the private cloud
    ResourceGroupName string
    The name of the resource group. The name is case insensitive.
    ScriptExecutionName string
    Name of the script cmdlet.
    PrivateCloudName string
    Name of the private cloud
    ResourceGroupName string
    The name of the resource group. The name is case insensitive.
    ScriptExecutionName string
    Name of the script cmdlet.
    privateCloudName String
    Name of the private cloud
    resourceGroupName String
    The name of the resource group. The name is case insensitive.
    scriptExecutionName String
    Name of the script cmdlet.
    privateCloudName string
    Name of the private cloud
    resourceGroupName string
    The name of the resource group. The name is case insensitive.
    scriptExecutionName string
    Name of the script cmdlet.
    private_cloud_name str
    Name of the private cloud
    resource_group_name str
    The name of the resource group. The name is case insensitive.
    script_execution_name str
    Name of the script cmdlet.
    privateCloudName String
    Name of the private cloud
    resourceGroupName String
    The name of the resource group. The name is case insensitive.
    scriptExecutionName String
    Name of the script cmdlet.

    getScriptExecution Result

    The following output properties are available:

    AzureApiVersion string
    The Azure API version of the resource.
    Errors List<string>
    Standard error output stream from the powershell execution
    FinishedAt string
    Time the script execution was finished
    Id string
    Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
    Information List<string>
    Standard information out stream from the powershell execution
    Name string
    The name of the resource
    ProvisioningState string
    The state of the script execution resource
    StartedAt string
    Time the script execution was started
    SubmittedAt string
    Time the script execution was submitted
    SystemData Pulumi.AzureNative.AVS.Outputs.SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    Timeout string
    Time limit for execution
    Type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    Warnings List<string>
    Standard warning out stream from the powershell execution
    FailureReason string
    Error message if the script was able to run, but if the script itself had errors or powershell threw an exception
    HiddenParameters List<object>
    Parameters that will be hidden/not visible to ARM, such as passwords and credentials
    NamedOutputs Dictionary<string, object>
    User-defined dictionary.
    Output List<string>
    Standard output stream from the powershell execution
    Parameters List<object>
    Parameters the script will accept
    Retention string
    Time to live for the resource. If not provided, will be available for 60 days
    ScriptCmdletId string
    A reference to the script cmdlet resource if user is running a AVS script
    AzureApiVersion string
    The Azure API version of the resource.
    Errors []string
    Standard error output stream from the powershell execution
    FinishedAt string
    Time the script execution was finished
    Id string
    Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
    Information []string
    Standard information out stream from the powershell execution
    Name string
    The name of the resource
    ProvisioningState string
    The state of the script execution resource
    StartedAt string
    Time the script execution was started
    SubmittedAt string
    Time the script execution was submitted
    SystemData SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    Timeout string
    Time limit for execution
    Type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    Warnings []string
    Standard warning out stream from the powershell execution
    FailureReason string
    Error message if the script was able to run, but if the script itself had errors or powershell threw an exception
    HiddenParameters []interface{}
    Parameters that will be hidden/not visible to ARM, such as passwords and credentials
    NamedOutputs map[string]interface{}
    User-defined dictionary.
    Output []string
    Standard output stream from the powershell execution
    Parameters []interface{}
    Parameters the script will accept
    Retention string
    Time to live for the resource. If not provided, will be available for 60 days
    ScriptCmdletId string
    A reference to the script cmdlet resource if user is running a AVS script
    azureApiVersion String
    The Azure API version of the resource.
    errors List<String>
    Standard error output stream from the powershell execution
    finishedAt String
    Time the script execution was finished
    id String
    Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
    information List<String>
    Standard information out stream from the powershell execution
    name String
    The name of the resource
    provisioningState String
    The state of the script execution resource
    startedAt String
    Time the script execution was started
    submittedAt String
    Time the script execution was submitted
    systemData SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    timeout String
    Time limit for execution
    type String
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    warnings List<String>
    Standard warning out stream from the powershell execution
    failureReason String
    Error message if the script was able to run, but if the script itself had errors or powershell threw an exception
    hiddenParameters List<Object>
    Parameters that will be hidden/not visible to ARM, such as passwords and credentials
    namedOutputs Map<String,Object>
    User-defined dictionary.
    output List<String>
    Standard output stream from the powershell execution
    parameters List<Object>
    Parameters the script will accept
    retention String
    Time to live for the resource. If not provided, will be available for 60 days
    scriptCmdletId String
    A reference to the script cmdlet resource if user is running a AVS script
    azureApiVersion string
    The Azure API version of the resource.
    errors string[]
    Standard error output stream from the powershell execution
    finishedAt string
    Time the script execution was finished
    id string
    Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
    information string[]
    Standard information out stream from the powershell execution
    name string
    The name of the resource
    provisioningState string
    The state of the script execution resource
    startedAt string
    Time the script execution was started
    submittedAt string
    Time the script execution was submitted
    systemData SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    timeout string
    Time limit for execution
    type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    warnings string[]
    Standard warning out stream from the powershell execution
    failureReason string
    Error message if the script was able to run, but if the script itself had errors or powershell threw an exception
    hiddenParameters (PSCredentialExecutionParameterResponse | ScriptSecureStringExecutionParameterResponse | ScriptStringExecutionParameterResponse)[]
    Parameters that will be hidden/not visible to ARM, such as passwords and credentials
    namedOutputs {[key: string]: any}
    User-defined dictionary.
    output string[]
    Standard output stream from the powershell execution
    parameters (PSCredentialExecutionParameterResponse | ScriptSecureStringExecutionParameterResponse | ScriptStringExecutionParameterResponse)[]
    Parameters the script will accept
    retention string
    Time to live for the resource. If not provided, will be available for 60 days
    scriptCmdletId string
    A reference to the script cmdlet resource if user is running a AVS script
    azure_api_version str
    The Azure API version of the resource.
    errors Sequence[str]
    Standard error output stream from the powershell execution
    finished_at str
    Time the script execution was finished
    id str
    Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
    information Sequence[str]
    Standard information out stream from the powershell execution
    name str
    The name of the resource
    provisioning_state str
    The state of the script execution resource
    started_at str
    Time the script execution was started
    submitted_at str
    Time the script execution was submitted
    system_data SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    timeout str
    Time limit for execution
    type str
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    warnings Sequence[str]
    Standard warning out stream from the powershell execution
    failure_reason str
    Error message if the script was able to run, but if the script itself had errors or powershell threw an exception
    hidden_parameters Sequence[Any]
    Parameters that will be hidden/not visible to ARM, such as passwords and credentials
    named_outputs Mapping[str, Any]
    User-defined dictionary.
    output Sequence[str]
    Standard output stream from the powershell execution
    parameters Sequence[Any]
    Parameters the script will accept
    retention str
    Time to live for the resource. If not provided, will be available for 60 days
    script_cmdlet_id str
    A reference to the script cmdlet resource if user is running a AVS script
    azureApiVersion String
    The Azure API version of the resource.
    errors List<String>
    Standard error output stream from the powershell execution
    finishedAt String
    Time the script execution was finished
    id String
    Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
    information List<String>
    Standard information out stream from the powershell execution
    name String
    The name of the resource
    provisioningState String
    The state of the script execution resource
    startedAt String
    Time the script execution was started
    submittedAt String
    Time the script execution was submitted
    systemData Property Map
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    timeout String
    Time limit for execution
    type String
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    warnings List<String>
    Standard warning out stream from the powershell execution
    failureReason String
    Error message if the script was able to run, but if the script itself had errors or powershell threw an exception
    hiddenParameters List<Property Map | Property Map | Property Map>
    Parameters that will be hidden/not visible to ARM, such as passwords and credentials
    namedOutputs Map<Any>
    User-defined dictionary.
    output List<String>
    Standard output stream from the powershell execution
    parameters List<Property Map | Property Map | Property Map>
    Parameters the script will accept
    retention String
    Time to live for the resource. If not provided, will be available for 60 days
    scriptCmdletId String
    A reference to the script cmdlet resource if user is running a AVS script

    Supporting Types

    PSCredentialExecutionParameterResponse

    Name string
    The parameter name
    Password string
    password for login
    Username string
    username for login
    Name string
    The parameter name
    Password string
    password for login
    Username string
    username for login
    name String
    The parameter name
    password String
    password for login
    username String
    username for login
    name string
    The parameter name
    password string
    password for login
    username string
    username for login
    name str
    The parameter name
    password str
    password for login
    username str
    username for login
    name String
    The parameter name
    password String
    password for login
    username String
    username for login

    ScriptSecureStringExecutionParameterResponse

    Name string
    The parameter name
    SecureValue string
    A secure value for the passed parameter, not to be stored in logs
    Name string
    The parameter name
    SecureValue string
    A secure value for the passed parameter, not to be stored in logs
    name String
    The parameter name
    secureValue String
    A secure value for the passed parameter, not to be stored in logs
    name string
    The parameter name
    secureValue string
    A secure value for the passed parameter, not to be stored in logs
    name str
    The parameter name
    secure_value str
    A secure value for the passed parameter, not to be stored in logs
    name String
    The parameter name
    secureValue String
    A secure value for the passed parameter, not to be stored in logs

    ScriptStringExecutionParameterResponse

    Name string
    The parameter name
    Value string
    The value for the passed parameter
    Name string
    The parameter name
    Value string
    The value for the passed parameter
    name String
    The parameter name
    value String
    The value for the passed parameter
    name string
    The parameter name
    value string
    The value for the passed parameter
    name str
    The parameter name
    value str
    The value for the passed parameter
    name String
    The parameter name
    value String
    The value for the passed parameter

    SystemDataResponse

    CreatedAt string
    The timestamp of resource creation (UTC).
    CreatedBy string
    The identity that created the resource.
    CreatedByType string
    The type of identity that created the resource.
    LastModifiedAt string
    The timestamp of resource last modification (UTC)
    LastModifiedBy string
    The identity that last modified the resource.
    LastModifiedByType string
    The type of identity that last modified the resource.
    CreatedAt string
    The timestamp of resource creation (UTC).
    CreatedBy string
    The identity that created the resource.
    CreatedByType string
    The type of identity that created the resource.
    LastModifiedAt string
    The timestamp of resource last modification (UTC)
    LastModifiedBy string
    The identity that last modified the resource.
    LastModifiedByType string
    The type of identity that last modified the resource.
    createdAt String
    The timestamp of resource creation (UTC).
    createdBy String
    The identity that created the resource.
    createdByType String
    The type of identity that created the resource.
    lastModifiedAt String
    The timestamp of resource last modification (UTC)
    lastModifiedBy String
    The identity that last modified the resource.
    lastModifiedByType String
    The type of identity that last modified the resource.
    createdAt string
    The timestamp of resource creation (UTC).
    createdBy string
    The identity that created the resource.
    createdByType string
    The type of identity that created the resource.
    lastModifiedAt string
    The timestamp of resource last modification (UTC)
    lastModifiedBy string
    The identity that last modified the resource.
    lastModifiedByType string
    The type of identity that last modified the resource.
    created_at str
    The timestamp of resource creation (UTC).
    created_by str
    The identity that created the resource.
    created_by_type str
    The type of identity that created the resource.
    last_modified_at str
    The timestamp of resource last modification (UTC)
    last_modified_by str
    The identity that last modified the resource.
    last_modified_by_type str
    The type of identity that last modified the resource.
    createdAt String
    The timestamp of resource creation (UTC).
    createdBy String
    The identity that created the resource.
    createdByType String
    The type of identity that created the resource.
    lastModifiedAt String
    The timestamp of resource last modification (UTC)
    lastModifiedBy String
    The identity that last modified the resource.
    lastModifiedByType String
    The type of identity that last modified the resource.

    Package Details

    Repository
    Azure Native pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native logo
    This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
    Azure Native v3.3.0 published on Monday, Apr 28, 2025 by Pulumi