Script Execution Args
An instance of a script executed by a user - custom or AVS Uses Azure REST API version 2022-05-01. In version 1.x of the Azure Native provider, it used API version 2021-06-01. Other available API versions: 2023-03-01, 2023-09-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/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/scriptPackages/AVS.PowerCommands@1.0.0/scriptCmdlets/New-SsoExternalIdentitySource",
ScriptExecutionName = "addSsoServer",
Timeout = "P0Y0M0DT0H60M60S",
});
});
package main
import (
avs "github.com/pulumi/pulumi-azure-native-sdk/avs/v2"
"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.Array{
avs.ScriptSecureStringExecutionParameter{
Name: "Password",
SecureValue: "PlaceholderPassword",
Type: "SecureValue",
},
},
Parameters: pulumi.Array{
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/00000000-0000-0000-0000-000000000000/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
})
}
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(PSCredentialExecutionParameterArgs.builder()
.name("Password")
.secureValue("PlaceholderPassword")
.type("SecureValue")
.build())
.parameters(
PSCredentialExecutionParameterArgs.builder()
.name("DomainName")
.type("Value")
.value("placeholderDomain.local")
.build(),
PSCredentialExecutionParameterArgs.builder()
.name("BaseUserDN")
.type("Value")
.value("DC=placeholder, DC=placeholder")
.build())
.privateCloudName("cloud1")
.resourceGroupName("group1")
.retention("P0Y0M60DT0H60M60S")
.scriptCmdletId("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/scriptPackages/AVS.PowerCommands@1.0.0/scriptCmdlets/New-SsoExternalIdentitySource")
.scriptExecutionName("addSsoServer")
.timeout("P0Y0M0DT0H60M60S")
.build());
}
}
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:avs:ScriptExecution addSsoServer /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/scriptExecutions/{scriptExecutionName}
Constructors
Properties
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.
Parameters the script will accept
The name of the private cloud.
The name of the resource group. The name is case insensitive.
A reference to the script cmdlet resource if user is running a AVS script
Name of the user-invoked script execution resource