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.34.0 published on Thursday, Mar 28, 2024 by Pulumi
azure-native.automation.Credential
Explore with Pulumi AI
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.34.0 published on Thursday, Mar 28, 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 (
"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
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:
- 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/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/credentials/{credentialName}
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0
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.34.0 published on Thursday, Mar 28, 2024 by Pulumi