azure-native.automation.Credential
Explore with Pulumi AI
Definition of the credential. API Version: 2019-06-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"
"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: "string",
Name: "string",
Password: "string",
ResourceGroupName: "string",
UserName: "string",
CredentialName: "string",
Description: "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
The Credential resource accepts the following input properties:
- Automation
Account stringName - 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.
- Resource
Group stringName - Name of an Azure Resource group.
- User
Name string - Gets or sets the user name of the credential.
- Credential
Name string - The parameters supplied to the create or update credential operation.
- Description string
- Gets or sets the description of the credential.
- Automation
Account stringName - 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.
- Resource
Group stringName - Name of an Azure Resource group.
- User
Name string - Gets or sets the user name of the credential.
- Credential
Name string - The parameters supplied to the create or update credential operation.
- Description string
- Gets or sets the description of the credential.
- automation
Account StringName - 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.
- resource
Group StringName - Name of an Azure Resource group.
- user
Name String - Gets or sets the user name of the credential.
- credential
Name String - The parameters supplied to the create or update credential operation.
- description String
- Gets or sets the description of the credential.
- automation
Account stringName - 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.
- resource
Group stringName - Name of an Azure Resource group.
- user
Name string - Gets or sets the user name of the credential.
- credential
Name string - The parameters supplied to the create or update credential operation.
- description string
- Gets or sets the description of the credential.
- automation_
account_ strname - 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_ strname - 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.
- automation
Account StringName - 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.
- resource
Group StringName - Name of an Azure Resource group.
- user
Name String - Gets or sets the user name of the credential.
- credential
Name 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:
- Creation
Time string - Gets the creation time.
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Modified stringTime - Gets the last modified time.
- Type string
- The type of the resource.
- Creation
Time string - Gets the creation time.
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Modified stringTime - Gets the last modified time.
- Type string
- The type of the resource.
- creation
Time String - Gets the creation time.
- id String
- The provider-assigned unique ID for this managed resource.
- last
Modified StringTime - Gets the last modified time.
- type String
- The type of the resource.
- creation
Time string - Gets the creation time.
- id string
- The provider-assigned unique ID for this managed resource.
- last
Modified stringTime - 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_ strtime - Gets the last modified time.
- type str
- The type of the resource.
- creation
Time String - Gets the creation time.
- id String
- The provider-assigned unique ID for this managed resource.
- last
Modified StringTime - 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
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- azure-native-v1 pulumi/pulumi-azure-native
- License
- Apache-2.0