azure-native.automation.Credential

Definition of the credential. API Version: 2019-06-01.

Example Usage

Create a credential

using System.Collections.Generic;
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/go/azure/automation"
	"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 pulumi
import pulumi_azure_native as azure_native

credential = azure_native.automation.Credential("credential",
    automation_account_name="myAutomationAccount18",
    credential_name="myCredential",
    description="my description goes here",
    name="myCredential",
    password="<password>",
    resource_group_name="rg",
    user_name="mylingaiah")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const credential = new azure_native.automation.Credential("credential", {
    automationAccountName: "myAutomationAccount18",
    credentialName: "myCredential",
    description: "my description goes here",
    name: "myCredential",
    password: "<password>",
    resourceGroupName: "rg",
    userName: "mylingaiah",
});
resources:
  credential:
    type: azure-native:automation:Credential
    properties:
      automationAccountName: myAutomationAccount18
      credentialName: myCredential
      description: my description goes here
      name: myCredential
      password: <password>
      resourceGroupName: rg
      userName: mylingaiah

Create Credential Resource

new Credential(name: string, args: CredentialArgs, opts?: CustomResourceOptions);
@overload
def Credential(resource_name: str,
               opts: Optional[ResourceOptions] = None,
               automation_account_name: Optional[str] = None,
               credential_name: Optional[str] = None,
               description: Optional[str] = None,
               name: Optional[str] = None,
               password: Optional[str] = None,
               resource_group_name: Optional[str] = None,
               user_name: Optional[str] = None)
@overload
def Credential(resource_name: str,
               args: CredentialArgs,
               opts: Optional[ResourceOptions] = None)
func NewCredential(ctx *Context, name string, args CredentialArgs, opts ...ResourceOption) (*Credential, error)
public Credential(string name, CredentialArgs args, CustomResourceOptions? opts = null)
public Credential(String name, CredentialArgs args)
public Credential(String name, CredentialArgs args, CustomResourceOptions options)
type: azure-native:automation:Credential
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args CredentialArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args CredentialArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args CredentialArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args CredentialArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args CredentialArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Credential Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The Credential resource accepts the following input properties:

AutomationAccountName string

The name of the automation account.

Name string

Gets or sets the name of the credential.

Password string

Gets or sets the password of the credential.

ResourceGroupName string

Name of an Azure Resource group.

UserName string

Gets or sets the user name of the credential.

CredentialName string

The parameters supplied to the create or update credential operation.

Description string

Gets or sets the description of the credential.

AutomationAccountName string

The name of the automation account.

Name string

Gets or sets the name of the credential.

Password string

Gets or sets the password of the credential.

ResourceGroupName string

Name of an Azure Resource group.

UserName string

Gets or sets the user name of the credential.

CredentialName string

The parameters supplied to the create or update credential operation.

Description string

Gets or sets the description of the credential.

automationAccountName String

The name of the automation account.

name String

Gets or sets the name of the credential.

password String

Gets or sets the password of the credential.

resourceGroupName String

Name of an Azure Resource group.

userName String

Gets or sets the user name of the credential.

credentialName String

The parameters supplied to the create or update credential operation.

description String

Gets or sets the description of the credential.

automationAccountName string

The name of the automation account.

name string

Gets or sets the name of the credential.

password string

Gets or sets the password of the credential.

resourceGroupName string

Name of an Azure Resource group.

userName string

Gets or sets the user name of the credential.

credentialName string

The parameters supplied to the create or update credential operation.

description string

Gets or sets the description of the credential.

automation_account_name str

The name of the automation account.

name str

Gets or sets the name of the credential.

password str

Gets or sets the password of the credential.

resource_group_name str

Name of an Azure Resource group.

user_name str

Gets or sets the user name of the credential.

credential_name str

The parameters supplied to the create or update credential operation.

description str

Gets or sets the description of the credential.

automationAccountName String

The name of the automation account.

name String

Gets or sets the name of the credential.

password String

Gets or sets the password of the credential.

resourceGroupName String

Name of an Azure Resource group.

userName String

Gets or sets the user name of the credential.

credentialName String

The parameters supplied to the create or update credential operation.

description String

Gets or sets the description of the credential.

Outputs

All input properties are implicitly available as output properties. Additionally, the Credential resource produces the following output properties:

CreationTime string

Gets the creation time.

Id string

The provider-assigned unique ID for this managed resource.

LastModifiedTime string

Gets the last modified time.

Type string

The type of the resource.

CreationTime string

Gets the creation time.

Id string

The provider-assigned unique ID for this managed resource.

LastModifiedTime string

Gets the last modified time.

Type string

The type of the resource.

creationTime String

Gets the creation time.

id String

The provider-assigned unique ID for this managed resource.

lastModifiedTime String

Gets the last modified time.

type String

The type of the resource.

creationTime string

Gets the creation time.

id string

The provider-assigned unique ID for this managed resource.

lastModifiedTime string

Gets the last modified time.

type string

The type of the resource.

creation_time str

Gets the creation time.

id str

The provider-assigned unique ID for this managed resource.

last_modified_time str

Gets the last modified time.

type str

The type of the resource.

creationTime String

Gets the creation time.

id String

The provider-assigned unique ID for this managed resource.

lastModifiedTime String

Gets the last modified time.

type String

The type of the resource.

Import

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

$ pulumi import azure-native:automation:Credential myCredential /subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount18/credentials/myCredential 

Package Details

Repository
Azure Native pulumi/pulumi-azure-native
License
Apache-2.0