azure-native.automanage.Account
Explore with Pulumi AI
Definition of the Automanage account. API Version: 2020-06-30-preview.
Example Usage
Create or update Automanage account
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var account = new AzureNative.Automanage.Account("account", new()
{
AccountName = "account",
Identity = new AzureNative.Automanage.Inputs.AccountIdentityArgs
{
Type = AzureNative.Automanage.ResourceIdentityType.SystemAssigned,
},
Location = "East US",
ResourceGroupName = "resourceGroup",
Tags =
{
{ "Organization", "Administration" },
},
});
});
package main
import (
automanage "github.com/pulumi/pulumi-azure-native-sdk/automanage"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := automanage.NewAccount(ctx, "account", &automanage.AccountArgs{
AccountName: pulumi.String("account"),
Identity: &automanage.AccountIdentityArgs{
Type: automanage.ResourceIdentityTypeSystemAssigned,
},
Location: pulumi.String("East US"),
ResourceGroupName: pulumi.String("resourceGroup"),
Tags: pulumi.StringMap{
"Organization": pulumi.String("Administration"),
},
})
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.automanage.Account;
import com.pulumi.azurenative.automanage.AccountArgs;
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 account = new Account("account", AccountArgs.builder()
.accountName("account")
.identity(Map.of("type", "SystemAssigned"))
.location("East US")
.resourceGroupName("resourceGroup")
.tags(Map.of("Organization", "Administration"))
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
account = azure_native.automanage.Account("account",
account_name="account",
identity=azure_native.automanage.AccountIdentityArgs(
type=azure_native.automanage.ResourceIdentityType.SYSTEM_ASSIGNED,
),
location="East US",
resource_group_name="resourceGroup",
tags={
"Organization": "Administration",
})
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const account = new azure_native.automanage.Account("account", {
accountName: "account",
identity: {
type: azure_native.automanage.ResourceIdentityType.SystemAssigned,
},
location: "East US",
resourceGroupName: "resourceGroup",
tags: {
Organization: "Administration",
},
});
resources:
account:
type: azure-native:automanage:Account
properties:
accountName: account
identity:
type: SystemAssigned
location: East US
resourceGroupName: resourceGroup
tags:
Organization: Administration
Create Account Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Account(name: string, args: AccountArgs, opts?: CustomResourceOptions);
@overload
def Account(resource_name: str,
args: AccountArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Account(resource_name: str,
opts: Optional[ResourceOptions] = None,
resource_group_name: Optional[str] = None,
account_name: Optional[str] = None,
identity: Optional[AccountIdentityArgs] = None,
location: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None)
func NewAccount(ctx *Context, name string, args AccountArgs, opts ...ResourceOption) (*Account, error)
public Account(string name, AccountArgs args, CustomResourceOptions? opts = null)
public Account(String name, AccountArgs args)
public Account(String name, AccountArgs args, CustomResourceOptions options)
type: azure-native:automanage:Account
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 AccountArgs
- 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 AccountArgs
- 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 AccountArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AccountArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AccountArgs
- 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 accountResource = new AzureNative.Automanage.Account("accountResource", new()
{
ResourceGroupName = "string",
AccountName = "string",
Identity =
{
{ "type", "SystemAssigned" },
},
Location = "string",
Tags =
{
{ "string", "string" },
},
});
example, err := automanage.NewAccount(ctx, "accountResource", &automanage.AccountArgs{
ResourceGroupName: "string",
AccountName: "string",
Identity: map[string]interface{}{
"type": "SystemAssigned",
},
Location: "string",
Tags: map[string]interface{}{
"string": "string",
},
})
var accountResource = new Account("accountResource", AccountArgs.builder()
.resourceGroupName("string")
.accountName("string")
.identity(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.location("string")
.tags(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.build());
account_resource = azure_native.automanage.Account("accountResource",
resource_group_name=string,
account_name=string,
identity={
type: SystemAssigned,
},
location=string,
tags={
string: string,
})
const accountResource = new azure_native.automanage.Account("accountResource", {
resourceGroupName: "string",
accountName: "string",
identity: {
type: "SystemAssigned",
},
location: "string",
tags: {
string: "string",
},
});
type: azure-native:automanage:Account
properties:
accountName: string
identity:
type: SystemAssigned
location: string
resourceGroupName: string
tags:
string: string
Account 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 Account resource accepts the following input properties:
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Account
Name string - Name of the Automanage account.
- Identity
Pulumi.
Azure Native. Automanage. Inputs. Account Identity - The identity of the Automanage account.
- Location string
- The geo-location where the resource lives
- Dictionary<string, string>
- Resource tags.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Account
Name string - Name of the Automanage account.
- Identity
Account
Identity Args - The identity of the Automanage account.
- Location string
- The geo-location where the resource lives
- map[string]string
- Resource tags.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- account
Name String - Name of the Automanage account.
- identity
Account
Identity - The identity of the Automanage account.
- location String
- The geo-location where the resource lives
- Map<String,String>
- Resource tags.
- resource
Group stringName - The name of the resource group. The name is case insensitive.
- account
Name string - Name of the Automanage account.
- identity
Account
Identity - The identity of the Automanage account.
- location string
- The geo-location where the resource lives
- {[key: string]: string}
- Resource tags.
- resource_
group_ strname - The name of the resource group. The name is case insensitive.
- account_
name str - Name of the Automanage account.
- identity
Account
Identity Args - The identity of the Automanage account.
- location str
- The geo-location where the resource lives
- Mapping[str, str]
- Resource tags.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- account
Name String - Name of the Automanage account.
- identity Property Map
- The identity of the Automanage account.
- location String
- The geo-location where the resource lives
- Map<String>
- Resource tags.
Outputs
All input properties are implicitly available as output properties. Additionally, the Account resource produces the following output properties:
Supporting Types
AccountIdentity, AccountIdentityArgs
- Type
Pulumi.
Azure Native. Automanage. Resource Identity Type - The type of identity used for the Automanage account. Currently, the only supported type is 'SystemAssigned', which implicitly creates an identity.
- Type
Resource
Identity Type - The type of identity used for the Automanage account. Currently, the only supported type is 'SystemAssigned', which implicitly creates an identity.
- type
Resource
Identity Type - The type of identity used for the Automanage account. Currently, the only supported type is 'SystemAssigned', which implicitly creates an identity.
- type
Resource
Identity Type - The type of identity used for the Automanage account. Currently, the only supported type is 'SystemAssigned', which implicitly creates an identity.
- type
Resource
Identity Type - The type of identity used for the Automanage account. Currently, the only supported type is 'SystemAssigned', which implicitly creates an identity.
- type
"System
Assigned" | "None" - The type of identity used for the Automanage account. Currently, the only supported type is 'SystemAssigned', which implicitly creates an identity.
AccountIdentityResponse, AccountIdentityResponseArgs
- Principal
Id string - The principal id of Automanage account identity.
- Tenant
Id string - The tenant id associated with the Automanage account.
- Type string
- The type of identity used for the Automanage account. Currently, the only supported type is 'SystemAssigned', which implicitly creates an identity.
- Principal
Id string - The principal id of Automanage account identity.
- Tenant
Id string - The tenant id associated with the Automanage account.
- Type string
- The type of identity used for the Automanage account. Currently, the only supported type is 'SystemAssigned', which implicitly creates an identity.
- principal
Id String - The principal id of Automanage account identity.
- tenant
Id String - The tenant id associated with the Automanage account.
- type String
- The type of identity used for the Automanage account. Currently, the only supported type is 'SystemAssigned', which implicitly creates an identity.
- principal
Id string - The principal id of Automanage account identity.
- tenant
Id string - The tenant id associated with the Automanage account.
- type string
- The type of identity used for the Automanage account. Currently, the only supported type is 'SystemAssigned', which implicitly creates an identity.
- principal_
id str - The principal id of Automanage account identity.
- tenant_
id str - The tenant id associated with the Automanage account.
- type str
- The type of identity used for the Automanage account. Currently, the only supported type is 'SystemAssigned', which implicitly creates an identity.
- principal
Id String - The principal id of Automanage account identity.
- tenant
Id String - The tenant id associated with the Automanage account.
- type String
- The type of identity used for the Automanage account. Currently, the only supported type is 'SystemAssigned', which implicitly creates an identity.
ResourceIdentityType, ResourceIdentityTypeArgs
- System
Assigned - SystemAssigned
- None
- None
- Resource
Identity Type System Assigned - SystemAssigned
- Resource
Identity Type None - None
- System
Assigned - SystemAssigned
- None
- None
- System
Assigned - SystemAssigned
- None
- None
- SYSTEM_ASSIGNED
- SystemAssigned
- NONE
- None
- "System
Assigned" - SystemAssigned
- "None"
- None
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:automanage:Account account /subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automanage/accounts/account
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