azure-native.datashare.Account
Explore with Pulumi AI
An account data transfer object. Azure REST API version: 2021-08-01. Prior API version in Azure Native 1.x: 2020-09-01.
Example Usage
Accounts_Create
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() => 
{
    var account = new AzureNative.DataShare.Account("account", new()
    {
        AccountName = "Account1",
        Identity = new AzureNative.DataShare.Inputs.IdentityArgs
        {
            Type = AzureNative.DataShare.Type.SystemAssigned,
        },
        Location = "West US 2",
        ResourceGroupName = "SampleResourceGroup",
        Tags = 
        {
            { "tag1", "Red" },
            { "tag2", "White" },
        },
    });
});
package main
import (
	datashare "github.com/pulumi/pulumi-azure-native-sdk/datashare/v2"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := datashare.NewAccount(ctx, "account", &datashare.AccountArgs{
			AccountName: pulumi.String("Account1"),
			Identity: &datashare.IdentityArgs{
				Type: pulumi.String(datashare.TypeSystemAssigned),
			},
			Location:          pulumi.String("West US 2"),
			ResourceGroupName: pulumi.String("SampleResourceGroup"),
			Tags: pulumi.StringMap{
				"tag1": pulumi.String("Red"),
				"tag2": pulumi.String("White"),
			},
		})
		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.datashare.Account;
import com.pulumi.azurenative.datashare.AccountArgs;
import com.pulumi.azurenative.datashare.inputs.IdentityArgs;
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("Account1")
            .identity(IdentityArgs.builder()
                .type("SystemAssigned")
                .build())
            .location("West US 2")
            .resourceGroupName("SampleResourceGroup")
            .tags(Map.ofEntries(
                Map.entry("tag1", "Red"),
                Map.entry("tag2", "White")
            ))
            .build());
    }
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const account = new azure_native.datashare.Account("account", {
    accountName: "Account1",
    identity: {
        type: azure_native.datashare.Type.SystemAssigned,
    },
    location: "West US 2",
    resourceGroupName: "SampleResourceGroup",
    tags: {
        tag1: "Red",
        tag2: "White",
    },
});
import pulumi
import pulumi_azure_native as azure_native
account = azure_native.datashare.Account("account",
    account_name="Account1",
    identity={
        "type": azure_native.datashare.Type.SYSTEM_ASSIGNED,
    },
    location="West US 2",
    resource_group_name="SampleResourceGroup",
    tags={
        "tag1": "Red",
        "tag2": "White",
    })
resources:
  account:
    type: azure-native:datashare:Account
    properties:
      accountName: Account1
      identity:
        type: SystemAssigned
      location: West US 2
      resourceGroupName: SampleResourceGroup
      tags:
        tag1: Red
        tag2: White
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,
            identity: Optional[IdentityArgs] = None,
            resource_group_name: Optional[str] = None,
            account_name: Optional[str] = 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:datashare: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 exampleaccountResourceResourceFromDatashare = new AzureNative.DataShare.Account("exampleaccountResourceResourceFromDatashare", new()
{
    Identity = new AzureNative.DataShare.Inputs.IdentityArgs
    {
        Type = "string",
    },
    ResourceGroupName = "string",
    AccountName = "string",
    Location = "string",
    Tags = 
    {
        { "string", "string" },
    },
});
example, err := datashare.NewAccount(ctx, "exampleaccountResourceResourceFromDatashare", &datashare.AccountArgs{
	Identity: &datashare.IdentityArgs{
		Type: pulumi.String("string"),
	},
	ResourceGroupName: pulumi.String("string"),
	AccountName:       pulumi.String("string"),
	Location:          pulumi.String("string"),
	Tags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
})
var exampleaccountResourceResourceFromDatashare = new Account("exampleaccountResourceResourceFromDatashare", AccountArgs.builder()
    .identity(IdentityArgs.builder()
        .type("string")
        .build())
    .resourceGroupName("string")
    .accountName("string")
    .location("string")
    .tags(Map.of("string", "string"))
    .build());
exampleaccount_resource_resource_from_datashare = azure_native.datashare.Account("exampleaccountResourceResourceFromDatashare",
    identity={
        "type": "string",
    },
    resource_group_name="string",
    account_name="string",
    location="string",
    tags={
        "string": "string",
    })
const exampleaccountResourceResourceFromDatashare = new azure_native.datashare.Account("exampleaccountResourceResourceFromDatashare", {
    identity: {
        type: "string",
    },
    resourceGroupName: "string",
    accountName: "string",
    location: "string",
    tags: {
        string: "string",
    },
});
type: azure-native:datashare:Account
properties:
    accountName: string
    identity:
        type: string
    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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Account resource accepts the following input properties:
- Identity
Pulumi.Azure Native. Data Share. Inputs. Identity 
- Identity Info on the Account
- ResourceGroup stringName 
- The resource group name.
- AccountName string
- The name of the share account.
- Location string
- Location of the azure resource.
- Dictionary<string, string>
- Tags on the azure resource.
- Identity
IdentityArgs 
- Identity Info on the Account
- ResourceGroup stringName 
- The resource group name.
- AccountName string
- The name of the share account.
- Location string
- Location of the azure resource.
- map[string]string
- Tags on the azure resource.
- identity Identity
- Identity Info on the Account
- resourceGroup StringName 
- The resource group name.
- accountName String
- The name of the share account.
- location String
- Location of the azure resource.
- Map<String,String>
- Tags on the azure resource.
- identity Identity
- Identity Info on the Account
- resourceGroup stringName 
- The resource group name.
- accountName string
- The name of the share account.
- location string
- Location of the azure resource.
- {[key: string]: string}
- Tags on the azure resource.
- identity
IdentityArgs 
- Identity Info on the Account
- resource_group_ strname 
- The resource group name.
- account_name str
- The name of the share account.
- location str
- Location of the azure resource.
- Mapping[str, str]
- Tags on the azure resource.
- identity Property Map
- Identity Info on the Account
- resourceGroup StringName 
- The resource group name.
- accountName String
- The name of the share account.
- location String
- Location of the azure resource.
- Map<String>
- Tags on the azure resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the Account resource produces the following output properties:
- CreatedAt string
- Time at which the account was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Name of the azure resource
- ProvisioningState string
- Provisioning state of the Account
- SystemData Pulumi.Azure Native. Data Share. Outputs. System Data Response 
- System Data of the Azure resource.
- Type string
- Type of the azure resource
- UserEmail string
- Email of the user who created the resource
- UserName string
- Name of the user who created the resource
- CreatedAt string
- Time at which the account was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Name of the azure resource
- ProvisioningState string
- Provisioning state of the Account
- SystemData SystemData Response 
- System Data of the Azure resource.
- Type string
- Type of the azure resource
- UserEmail string
- Email of the user who created the resource
- UserName string
- Name of the user who created the resource
- createdAt String
- Time at which the account was created.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Name of the azure resource
- provisioningState String
- Provisioning state of the Account
- systemData SystemData Response 
- System Data of the Azure resource.
- type String
- Type of the azure resource
- userEmail String
- Email of the user who created the resource
- userName String
- Name of the user who created the resource
- createdAt string
- Time at which the account was created.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- Name of the azure resource
- provisioningState string
- Provisioning state of the Account
- systemData SystemData Response 
- System Data of the Azure resource.
- type string
- Type of the azure resource
- userEmail string
- Email of the user who created the resource
- userName string
- Name of the user who created the resource
- created_at str
- Time at which the account was created.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- Name of the azure resource
- provisioning_state str
- Provisioning state of the Account
- system_data SystemData Response 
- System Data of the Azure resource.
- type str
- Type of the azure resource
- user_email str
- Email of the user who created the resource
- user_name str
- Name of the user who created the resource
- createdAt String
- Time at which the account was created.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- Name of the azure resource
- provisioningState String
- Provisioning state of the Account
- systemData Property Map
- System Data of the Azure resource.
- type String
- Type of the azure resource
- userEmail String
- Email of the user who created the resource
- userName String
- Name of the user who created the resource
Supporting Types
Identity, IdentityArgs  
- Type
string | Pulumi.Azure Native. Data Share. Type 
- Identity Type
- type
String | "SystemAssigned" 
- Identity Type
IdentityResponse, IdentityResponseArgs    
- PrincipalId string
- service principal Id
- TenantId string
- Tenant Id
- Type string
- Identity Type
- PrincipalId string
- service principal Id
- TenantId string
- Tenant Id
- Type string
- Identity Type
- principalId String
- service principal Id
- tenantId String
- Tenant Id
- type String
- Identity Type
- principalId string
- service principal Id
- tenantId string
- Tenant Id
- type string
- Identity Type
- principal_id str
- service principal Id
- tenant_id str
- Tenant Id
- type str
- Identity Type
- principalId String
- service principal Id
- tenantId String
- Tenant Id
- type String
- Identity Type
SystemDataResponse, SystemDataResponseArgs      
- CreatedAt string
- The timestamp of resource creation (UTC).
- CreatedBy string
- The identity that created the resource.
- CreatedBy stringType 
- The type of identity that created the resource.
- LastModified stringAt 
- The type of identity that last modified the resource.
- LastModified stringBy 
- The identity that last modified the resource.
- LastModified stringBy Type 
- The type of identity that last modified the resource.
- CreatedAt string
- The timestamp of resource creation (UTC).
- CreatedBy string
- The identity that created the resource.
- CreatedBy stringType 
- The type of identity that created the resource.
- LastModified stringAt 
- The type of identity that last modified the resource.
- LastModified stringBy 
- The identity that last modified the resource.
- LastModified stringBy Type 
- The type of identity that last modified the resource.
- createdAt String
- The timestamp of resource creation (UTC).
- createdBy String
- The identity that created the resource.
- createdBy StringType 
- The type of identity that created the resource.
- lastModified StringAt 
- The type of identity that last modified the resource.
- lastModified StringBy 
- The identity that last modified the resource.
- lastModified StringBy Type 
- The type of identity that last modified the resource.
- createdAt string
- The timestamp of resource creation (UTC).
- createdBy string
- The identity that created the resource.
- createdBy stringType 
- The type of identity that created the resource.
- lastModified stringAt 
- The type of identity that last modified the resource.
- lastModified stringBy 
- The identity that last modified the resource.
- lastModified stringBy Type 
- The type of identity that last modified the resource.
- created_at str
- The timestamp of resource creation (UTC).
- created_by str
- The identity that created the resource.
- created_by_ strtype 
- The type of identity that created the resource.
- last_modified_ strat 
- The type of identity that last modified the resource.
- last_modified_ strby 
- The identity that last modified the resource.
- last_modified_ strby_ type 
- The type of identity that last modified the resource.
- createdAt String
- The timestamp of resource creation (UTC).
- createdBy String
- The identity that created the resource.
- createdBy StringType 
- The type of identity that created the resource.
- lastModified StringAt 
- The type of identity that last modified the resource.
- lastModified StringBy 
- The identity that last modified the resource.
- lastModified StringBy Type 
- The type of identity that last modified the resource.
Type, TypeArgs  
- SystemAssigned 
- SystemAssigned
- TypeSystem Assigned 
- SystemAssigned
- SystemAssigned 
- SystemAssigned
- SystemAssigned 
- SystemAssigned
- SYSTEM_ASSIGNED
- SystemAssigned
- "SystemAssigned" 
- SystemAssigned
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:datashare:Account Account1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName} 
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0