Script Execution Args
data class ScriptExecutionArgs(val failureReason: Output<String>? = null, val hiddenParameters: Output<List<Any>>? = null, val namedOutputs: Output<Map<String, Any>>? = null, val output: Output<List<String>>? = null, val parameters: Output<List<Any>>? = null, val privateCloudName: Output<String>? = null, val resourceGroupName: Output<String>? = null, val retention: Output<String>? = null, val scriptCmdletId: Output<String>? = null, val scriptExecutionName: Output<String>? = null, val timeout: Output<String>? = null) : ConvertibleToJava<ScriptExecutionArgs>
An instance of a script executed by a user - custom or AVS API Version: 2021-06-01.
Example Usage
ScriptExecutions_CreateOrUpdate
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var scriptExecution = new AzureNative.AVS.ScriptExecution("scriptExecution", new()
{
HiddenParameters = new[]
{
new AzureNative.AVS.Inputs.ScriptSecureStringExecutionParameterArgs
{
Name = "Password",
SecureValue = "PlaceholderPassword",
Type = "SecureValue",
},
},
Parameters = new[]
{
new AzureNative.AVS.Inputs.ScriptStringExecutionParameterArgs
{
Name = "DomainName",
Type = "Value",
Value = "placeholderDomain.local",
},
new AzureNative.AVS.Inputs.ScriptStringExecutionParameterArgs
{
Name = "BaseUserDN",
Type = "Value",
Value = "DC=placeholder, DC=placeholder",
},
},
PrivateCloudName = "cloud1",
ResourceGroupName = "group1",
Retention = "P0Y0M60DT0H60M60S",
ScriptCmdletId = "/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/scriptPackages/AVS.PowerCommands@1.0.0/scriptCmdlets/New-SsoExternalIdentitySource",
ScriptExecutionName = "addSsoServer",
Timeout = "P0Y0M0DT0H60M60S",
});
});
Content copied to clipboard
package main
import (
avs "github.com/pulumi/pulumi-azure-native-sdk/avs"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := avs.NewScriptExecution(ctx, "scriptExecution", &avs.ScriptExecutionArgs{
HiddenParameters: pulumi.AnyArray{
avs.ScriptSecureStringExecutionParameter{
Name: "Password",
SecureValue: "PlaceholderPassword",
Type: "SecureValue",
},
},
Parameters: pulumi.AnyArray{
avs.ScriptStringExecutionParameter{
Name: "DomainName",
Type: "Value",
Value: "placeholderDomain.local",
},
avs.ScriptStringExecutionParameter{
Name: "BaseUserDN",
Type: "Value",
Value: "DC=placeholder, DC=placeholder",
},
},
PrivateCloudName: pulumi.String("cloud1"),
ResourceGroupName: pulumi.String("group1"),
Retention: pulumi.String("P0Y0M60DT0H60M60S"),
ScriptCmdletId: pulumi.String("/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/scriptPackages/AVS.PowerCommands@1.0.0/scriptCmdlets/New-SsoExternalIdentitySource"),
ScriptExecutionName: pulumi.String("addSsoServer"),
Timeout: pulumi.String("P0Y0M0DT0H60M60S"),
})
if err != nil {
return err
}
return nil
})
}
Content copied to clipboard
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.avs.ScriptExecution;
import com.pulumi.azurenative.avs.ScriptExecutionArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var scriptExecution = new ScriptExecution("scriptExecution", ScriptExecutionArgs.builder()
.hiddenParameters(Map.ofEntries(
Map.entry("name", "Password"),
Map.entry("secureValue", "PlaceholderPassword"),
Map.entry("type", "SecureValue")
))
.parameters(
Map.ofEntries(
Map.entry("name", "DomainName"),
Map.entry("type", "Value"),
Map.entry("value", "placeholderDomain.local")
),
Map.ofEntries(
Map.entry("name", "BaseUserDN"),
Map.entry("type", "Value"),
Map.entry("value", "DC=placeholder, DC=placeholder")
))
.privateCloudName("cloud1")
.resourceGroupName("group1")
.retention("P0Y0M60DT0H60M60S")
.scriptCmdletId("/subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/scriptPackages/AVS.PowerCommands@1.0.0/scriptCmdlets/New-SsoExternalIdentitySource")
.scriptExecutionName("addSsoServer")
.timeout("P0Y0M0DT0H60M60S")
.build());
}
}
Content copied to clipboard
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:avs:ScriptExecution addSsoServer /subscriptions/{subscription-id}/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/scriptExecutions/addSsoServer
Content copied to clipboard
Constructors
Link copied to clipboard
constructor(failureReason: Output<String>? = null, hiddenParameters: Output<List<Any>>? = null, namedOutputs: Output<Map<String, Any>>? = null, output: Output<List<String>>? = null, parameters: Output<List<Any>>? = null, privateCloudName: Output<String>? = null, resourceGroupName: Output<String>? = null, retention: Output<String>? = null, scriptCmdletId: Output<String>? = null, scriptExecutionName: Output<String>? = null, timeout: Output<String>? = null)
Properties
Link copied to clipboard
Error message if the script was able to run, but if the script itself had errors or powershell threw an exception
Link copied to clipboard
Parameters that will be hidden/not visible to ARM, such as passwords and credentials
Link copied to clipboard
User-defined dictionary.
Link copied to clipboard
Parameters the script will accept
Link copied to clipboard
The name of the private cloud.
Link copied to clipboard
The name of the resource group. The name is case insensitive.
Link copied to clipboard
A reference to the script cmdlet resource if user is running a AVS script
Link copied to clipboard
Name of the user-invoked script execution resource