1. Packages
  2. Azure Native
  3. API Docs
  4. automation
  5. Credential
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.73.0 published on Wednesday, Nov 20, 2024 by Pulumi

azure-native.automation.Credential

Explore with Pulumi AI

azure-native logo
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.73.0 published on Wednesday, Nov 20, 2024 by Pulumi

    Definition of the credential. Azure REST API version: 2022-08-08. Prior API version in Azure Native 1.x: 2019-06-01.

    Other available API versions: 2023-05-15-preview, 2023-11-01.

    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 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

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Credential(name: string, args: CredentialArgs, opts?: CustomResourceOptions);
    @overload
    def Credential(resource_name: str,
                   args: CredentialArgs,
                   opts: Optional[ResourceOptions] = None)
    
    @overload
    def Credential(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   automation_account_name: Optional[str] = None,
                   name: Optional[str] = None,
                   password: Optional[str] = None,
                   resource_group_name: Optional[str] = None,
                   user_name: Optional[str] = None,
                   credential_name: Optional[str] = None,
                   description: Optional[str] = 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.
    
    

    Parameters

    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.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var credentialResource = new AzureNative.Automation.Credential("credentialResource", new()
    {
        AutomationAccountName = "string",
        Name = "string",
        Password = "string",
        ResourceGroupName = "string",
        UserName = "string",
        CredentialName = "string",
        Description = "string",
    });
    
    example, err := automation.NewCredential(ctx, "credentialResource", &automation.CredentialArgs{
    	AutomationAccountName: pulumi.String("string"),
    	Name:                  pulumi.String("string"),
    	Password:              pulumi.String("string"),
    	ResourceGroupName:     pulumi.String("string"),
    	UserName:              pulumi.String("string"),
    	CredentialName:        pulumi.String("string"),
    	Description:           pulumi.String("string"),
    })
    
    var credentialResource = new Credential("credentialResource", CredentialArgs.builder()
        .automationAccountName("string")
        .name("string")
        .password("string")
        .resourceGroupName("string")
        .userName("string")
        .credentialName("string")
        .description("string")
        .build());
    
    credential_resource = azure_native.automation.Credential("credentialResource",
        automation_account_name="string",
        name="string",
        password="string",
        resource_group_name="string",
        user_name="string",
        credential_name="string",
        description="string")
    
    const credentialResource = new azure_native.automation.Credential("credentialResource", {
        automationAccountName: "string",
        name: "string",
        password: "string",
        resourceGroupName: "string",
        userName: "string",
        credentialName: "string",
        description: "string",
    });
    
    type: azure-native:automation:Credential
    properties:
        automationAccountName: string
        credentialName: string
        description: string
        name: string
        password: string
        resourceGroupName: string
        userName: string
    

    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

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    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/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/credentials/{credentialName} 
    

    To learn more about importing existing cloud resources, see Importing resources.

    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 v1 docs if using the v1 version of this package.
    Azure Native v2.73.0 published on Wednesday, Nov 20, 2024 by Pulumi