CredentialArgs

data class CredentialArgs(val automationAccountName: Output<String>? = null, val credentialName: Output<String>? = null, val description: Output<String>? = null, val name: Output<String>? = null, val password: Output<String>? = null, val resourceGroupName: Output<String>? = null, val userName: Output<String>? = null) : ConvertibleToJava<CredentialArgs>

Definition of the credential. Uses Azure REST API version 2023-11-01. In version 2.x of the Azure Native provider, it used API version 2022-08-08. Other available API versions: 2015-10-31, 2019-06-01, 2020-01-13-preview, 2022-08-08, 2023-05-15-preview, 2024-10-23. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native automation [ApiVersion]. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.

Example Usage

Create a credential

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var credential = new AzureNative.Automation.Credential("credential", new()
{
AutomationAccountName = "myAutomationAccount18",
CredentialName = "myCredential",
Description = "my description goes here",
Name = "myCredential",
Password = "<password>",
ResourceGroupName = "rg",
UserName = "mylingaiah",
});
});
package main
import (
automation "github.com/pulumi/pulumi-azure-native-sdk/automation/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := automation.NewCredential(ctx, "credential", &automation.CredentialArgs{
AutomationAccountName: pulumi.String("myAutomationAccount18"),
CredentialName: pulumi.String("myCredential"),
Description: pulumi.String("my description goes here"),
Name: pulumi.String("myCredential"),
Password: pulumi.String("<password>"),
ResourceGroupName: pulumi.String("rg"),
UserName: pulumi.String("mylingaiah"),
})
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.automation.Credential;
import com.pulumi.azurenative.automation.CredentialArgs;
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 credential = new Credential("credential", CredentialArgs.builder()
.automationAccountName("myAutomationAccount18")
.credentialName("myCredential")
.description("my description goes here")
.name("myCredential")
.password("<password>")
.resourceGroupName("rg")
.userName("mylingaiah")
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:automation:Credential myCredential /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/credentials/{credentialName}

Constructors

Link copied to clipboard
constructor(automationAccountName: Output<String>? = null, credentialName: Output<String>? = null, description: Output<String>? = null, name: Output<String>? = null, password: Output<String>? = null, resourceGroupName: Output<String>? = null, userName: Output<String>? = null)

Properties

Link copied to clipboard
val automationAccountName: Output<String>? = null

The name of the automation account.

Link copied to clipboard
val credentialName: Output<String>? = null

The parameters supplied to the create or update credential operation.

Link copied to clipboard
val description: Output<String>? = null

Gets or sets the description of the credential.

Link copied to clipboard
val name: Output<String>? = null

Gets or sets the name of the credential.

Link copied to clipboard
val password: Output<String>? = null

Gets or sets the password of the credential.

Link copied to clipboard
val resourceGroupName: Output<String>? = null

Name of an Azure Resource group.

Link copied to clipboard
val userName: Output<String>? = null

Gets or sets the user name of the credential.

Functions

Link copied to clipboard
open override fun toJava(): CredentialArgs