We recommend using Azure Native.
azure.videoindexer.Account
Explore with Pulumi AI
Manages a Video Indexer Account
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = new azure.core.ResourceGroup("example", {
name: "example",
location: "West Europe",
});
const exampleAccount = new azure.storage.Account("example", {
name: "example",
resourceGroupName: example.name,
location: example.location,
accountTier: "Standard",
accountReplicationType: "LRS",
});
const exampleAccount2 = new azure.videoindexer.Account("example", {
name: "example",
resourceGroupName: example.name,
location: "West Europe",
storage: {
storageAccountId: exampleAccount.id,
},
identity: {
type: "SystemAssigned",
},
});
import pulumi
import pulumi_azure as azure
example = azure.core.ResourceGroup("example",
name="example",
location="West Europe")
example_account = azure.storage.Account("example",
name="example",
resource_group_name=example.name,
location=example.location,
account_tier="Standard",
account_replication_type="LRS")
example_account2 = azure.videoindexer.Account("example",
name="example",
resource_group_name=example.name,
location="West Europe",
storage={
"storage_account_id": example_account.id,
},
identity={
"type": "SystemAssigned",
})
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/storage"
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/videoindexer"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
Name: pulumi.String("example"),
Location: pulumi.String("West Europe"),
})
if err != nil {
return err
}
exampleAccount, err := storage.NewAccount(ctx, "example", &storage.AccountArgs{
Name: pulumi.String("example"),
ResourceGroupName: example.Name,
Location: example.Location,
AccountTier: pulumi.String("Standard"),
AccountReplicationType: pulumi.String("LRS"),
})
if err != nil {
return err
}
_, err = videoindexer.NewAccount(ctx, "example", &videoindexer.AccountArgs{
Name: pulumi.String("example"),
ResourceGroupName: example.Name,
Location: pulumi.String("West Europe"),
Storage: &videoindexer.AccountStorageArgs{
StorageAccountId: exampleAccount.ID(),
},
Identity: &videoindexer.AccountIdentityArgs{
Type: pulumi.String("SystemAssigned"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var example = new Azure.Core.ResourceGroup("example", new()
{
Name = "example",
Location = "West Europe",
});
var exampleAccount = new Azure.Storage.Account("example", new()
{
Name = "example",
ResourceGroupName = example.Name,
Location = example.Location,
AccountTier = "Standard",
AccountReplicationType = "LRS",
});
var exampleAccount2 = new Azure.VideoIndexer.Account("example", new()
{
Name = "example",
ResourceGroupName = example.Name,
Location = "West Europe",
Storage = new Azure.VideoIndexer.Inputs.AccountStorageArgs
{
StorageAccountId = exampleAccount.Id,
},
Identity = new Azure.VideoIndexer.Inputs.AccountIdentityArgs
{
Type = "SystemAssigned",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.storage.Account;
import com.pulumi.azure.storage.AccountArgs;
import com.pulumi.azure.videoindexer.Account;
import com.pulumi.azure.videoindexer.AccountArgs;
import com.pulumi.azure.videoindexer.inputs.AccountStorageArgs;
import com.pulumi.azure.videoindexer.inputs.AccountIdentityArgs;
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 example = new ResourceGroup("example", ResourceGroupArgs.builder()
.name("example")
.location("West Europe")
.build());
var exampleAccount = new Account("exampleAccount", AccountArgs.builder()
.name("example")
.resourceGroupName(example.name())
.location(example.location())
.accountTier("Standard")
.accountReplicationType("LRS")
.build());
var exampleAccount2 = new Account("exampleAccount2", AccountArgs.builder()
.name("example")
.resourceGroupName(example.name())
.location("West Europe")
.storage(AccountStorageArgs.builder()
.storageAccountId(exampleAccount.id())
.build())
.identity(AccountIdentityArgs.builder()
.type("SystemAssigned")
.build())
.build());
}
}
resources:
example:
type: azure:core:ResourceGroup
properties:
name: example
location: West Europe
exampleAccount:
type: azure:storage:Account
name: example
properties:
name: example
resourceGroupName: ${example.name}
location: ${example.location}
accountTier: Standard
accountReplicationType: LRS
exampleAccount2:
type: azure:videoindexer:Account
name: example
properties:
name: example
resourceGroupName: ${example.name}
location: West Europe
storage:
storageAccountId: ${exampleAccount.id}
identity:
type: SystemAssigned
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[AccountIdentityArgs] = None,
resource_group_name: Optional[str] = None,
storage: Optional[AccountStorageArgs] = None,
location: Optional[str] = None,
name: 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:videoindexer: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 exampleaccountResourceResourceFromVideoindexeraccount = new Azure.VideoIndexer.Account("exampleaccountResourceResourceFromVideoindexeraccount", new()
{
Identity = new Azure.VideoIndexer.Inputs.AccountIdentityArgs
{
Type = "string",
IdentityIds = new[]
{
"string",
},
PrincipalId = "string",
TenantId = "string",
},
ResourceGroupName = "string",
Storage = new Azure.VideoIndexer.Inputs.AccountStorageArgs
{
StorageAccountId = "string",
UserAssignedIdentityId = "string",
},
Location = "string",
Name = "string",
Tags =
{
{ "string", "string" },
},
});
example, err := videoindexer.NewAccount(ctx, "exampleaccountResourceResourceFromVideoindexeraccount", &videoindexer.AccountArgs{
Identity: &videoindexer.AccountIdentityArgs{
Type: pulumi.String("string"),
IdentityIds: pulumi.StringArray{
pulumi.String("string"),
},
PrincipalId: pulumi.String("string"),
TenantId: pulumi.String("string"),
},
ResourceGroupName: pulumi.String("string"),
Storage: &videoindexer.AccountStorageArgs{
StorageAccountId: pulumi.String("string"),
UserAssignedIdentityId: pulumi.String("string"),
},
Location: pulumi.String("string"),
Name: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var exampleaccountResourceResourceFromVideoindexeraccount = new Account("exampleaccountResourceResourceFromVideoindexeraccount", AccountArgs.builder()
.identity(AccountIdentityArgs.builder()
.type("string")
.identityIds("string")
.principalId("string")
.tenantId("string")
.build())
.resourceGroupName("string")
.storage(AccountStorageArgs.builder()
.storageAccountId("string")
.userAssignedIdentityId("string")
.build())
.location("string")
.name("string")
.tags(Map.of("string", "string"))
.build());
exampleaccount_resource_resource_from_videoindexeraccount = azure.videoindexer.Account("exampleaccountResourceResourceFromVideoindexeraccount",
identity={
"type": "string",
"identity_ids": ["string"],
"principal_id": "string",
"tenant_id": "string",
},
resource_group_name="string",
storage={
"storage_account_id": "string",
"user_assigned_identity_id": "string",
},
location="string",
name="string",
tags={
"string": "string",
})
const exampleaccountResourceResourceFromVideoindexeraccount = new azure.videoindexer.Account("exampleaccountResourceResourceFromVideoindexeraccount", {
identity: {
type: "string",
identityIds: ["string"],
principalId: "string",
tenantId: "string",
},
resourceGroupName: "string",
storage: {
storageAccountId: "string",
userAssignedIdentityId: "string",
},
location: "string",
name: "string",
tags: {
string: "string",
},
});
type: azure:videoindexer:Account
properties:
identity:
identityIds:
- string
principalId: string
tenantId: string
type: string
location: string
name: string
resourceGroupName: string
storage:
storageAccountId: string
userAssignedIdentityId: 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
Account
Identity - An
identity
block as defined below. - Resource
Group stringName - The name of the Resource Group that the Video Indexer Account will be associated with. Changing the name forces a new resource to be created.
- Storage
Account
Storage - A
storage
block as defined below. - Location string
- The Azure location where the Video Indexer Account exists. Changing this forces a new resource to be created.
- Name string
- The name of the Video Indexer Account. Changing the name forces a new resource to be created.
- Dictionary<string, string>
- A mapping of tags to assign to the resource.
- Identity
Account
Identity Args - An
identity
block as defined below. - Resource
Group stringName - The name of the Resource Group that the Video Indexer Account will be associated with. Changing the name forces a new resource to be created.
- Storage
Account
Storage Args - A
storage
block as defined below. - Location string
- The Azure location where the Video Indexer Account exists. Changing this forces a new resource to be created.
- Name string
- The name of the Video Indexer Account. Changing the name forces a new resource to be created.
- map[string]string
- A mapping of tags to assign to the resource.
- identity
Account
Identity - An
identity
block as defined below. - resource
Group StringName - The name of the Resource Group that the Video Indexer Account will be associated with. Changing the name forces a new resource to be created.
- storage
Account
Storage - A
storage
block as defined below. - location String
- The Azure location where the Video Indexer Account exists. Changing this forces a new resource to be created.
- name String
- The name of the Video Indexer Account. Changing the name forces a new resource to be created.
- Map<String,String>
- A mapping of tags to assign to the resource.
- identity
Account
Identity - An
identity
block as defined below. - resource
Group stringName - The name of the Resource Group that the Video Indexer Account will be associated with. Changing the name forces a new resource to be created.
- storage
Account
Storage - A
storage
block as defined below. - location string
- The Azure location where the Video Indexer Account exists. Changing this forces a new resource to be created.
- name string
- The name of the Video Indexer Account. Changing the name forces a new resource to be created.
- {[key: string]: string}
- A mapping of tags to assign to the resource.
- identity
Account
Identity Args - An
identity
block as defined below. - resource_
group_ strname - The name of the Resource Group that the Video Indexer Account will be associated with. Changing the name forces a new resource to be created.
- storage
Account
Storage Args - A
storage
block as defined below. - location str
- The Azure location where the Video Indexer Account exists. Changing this forces a new resource to be created.
- name str
- The name of the Video Indexer Account. Changing the name forces a new resource to be created.
- Mapping[str, str]
- A mapping of tags to assign to the resource.
- identity Property Map
- An
identity
block as defined below. - resource
Group StringName - The name of the Resource Group that the Video Indexer Account will be associated with. Changing the name forces a new resource to be created.
- storage Property Map
- A
storage
block as defined below. - location String
- The Azure location where the Video Indexer Account exists. Changing this forces a new resource to be created.
- name String
- The name of the Video Indexer Account. Changing the name forces a new resource to be created.
- Map<String>
- A mapping of tags to assign to the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the Account resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing Account Resource
Get an existing Account resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: AccountState, opts?: CustomResourceOptions): Account
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
identity: Optional[AccountIdentityArgs] = None,
location: Optional[str] = None,
name: Optional[str] = None,
resource_group_name: Optional[str] = None,
storage: Optional[AccountStorageArgs] = None,
tags: Optional[Mapping[str, str]] = None) -> Account
func GetAccount(ctx *Context, name string, id IDInput, state *AccountState, opts ...ResourceOption) (*Account, error)
public static Account Get(string name, Input<string> id, AccountState? state, CustomResourceOptions? opts = null)
public static Account get(String name, Output<String> id, AccountState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Identity
Account
Identity - An
identity
block as defined below. - Location string
- The Azure location where the Video Indexer Account exists. Changing this forces a new resource to be created.
- Name string
- The name of the Video Indexer Account. Changing the name forces a new resource to be created.
- Resource
Group stringName - The name of the Resource Group that the Video Indexer Account will be associated with. Changing the name forces a new resource to be created.
- Storage
Account
Storage - A
storage
block as defined below. - Dictionary<string, string>
- A mapping of tags to assign to the resource.
- Identity
Account
Identity Args - An
identity
block as defined below. - Location string
- The Azure location where the Video Indexer Account exists. Changing this forces a new resource to be created.
- Name string
- The name of the Video Indexer Account. Changing the name forces a new resource to be created.
- Resource
Group stringName - The name of the Resource Group that the Video Indexer Account will be associated with. Changing the name forces a new resource to be created.
- Storage
Account
Storage Args - A
storage
block as defined below. - map[string]string
- A mapping of tags to assign to the resource.
- identity
Account
Identity - An
identity
block as defined below. - location String
- The Azure location where the Video Indexer Account exists. Changing this forces a new resource to be created.
- name String
- The name of the Video Indexer Account. Changing the name forces a new resource to be created.
- resource
Group StringName - The name of the Resource Group that the Video Indexer Account will be associated with. Changing the name forces a new resource to be created.
- storage
Account
Storage - A
storage
block as defined below. - Map<String,String>
- A mapping of tags to assign to the resource.
- identity
Account
Identity - An
identity
block as defined below. - location string
- The Azure location where the Video Indexer Account exists. Changing this forces a new resource to be created.
- name string
- The name of the Video Indexer Account. Changing the name forces a new resource to be created.
- resource
Group stringName - The name of the Resource Group that the Video Indexer Account will be associated with. Changing the name forces a new resource to be created.
- storage
Account
Storage - A
storage
block as defined below. - {[key: string]: string}
- A mapping of tags to assign to the resource.
- identity
Account
Identity Args - An
identity
block as defined below. - location str
- The Azure location where the Video Indexer Account exists. Changing this forces a new resource to be created.
- name str
- The name of the Video Indexer Account. Changing the name forces a new resource to be created.
- resource_
group_ strname - The name of the Resource Group that the Video Indexer Account will be associated with. Changing the name forces a new resource to be created.
- storage
Account
Storage Args - A
storage
block as defined below. - Mapping[str, str]
- A mapping of tags to assign to the resource.
- identity Property Map
- An
identity
block as defined below. - location String
- The Azure location where the Video Indexer Account exists. Changing this forces a new resource to be created.
- name String
- The name of the Video Indexer Account. Changing the name forces a new resource to be created.
- resource
Group StringName - The name of the Resource Group that the Video Indexer Account will be associated with. Changing the name forces a new resource to be created.
- storage Property Map
- A
storage
block as defined below. - Map<String>
- A mapping of tags to assign to the resource.
Supporting Types
AccountIdentity, AccountIdentityArgs
- Type string
- Specifies the identity type of the Video Indexer Account. Possible values are
SystemAssigned
(where Azure will generate a Service Principal for you),UserAssigned
where you can specify the Service Principal IDs in theidentity_ids
field, andSystemAssigned, UserAssigned
which assigns both a system managed identity as well as the specified user assigned identities. - Identity
Ids List<string> - Specifies a list of user managed identity ids to be assigned. Required if
type
isUserAssigned
. - Principal
Id string - Tenant
Id string
- Type string
- Specifies the identity type of the Video Indexer Account. Possible values are
SystemAssigned
(where Azure will generate a Service Principal for you),UserAssigned
where you can specify the Service Principal IDs in theidentity_ids
field, andSystemAssigned, UserAssigned
which assigns both a system managed identity as well as the specified user assigned identities. - Identity
Ids []string - Specifies a list of user managed identity ids to be assigned. Required if
type
isUserAssigned
. - Principal
Id string - Tenant
Id string
- type String
- Specifies the identity type of the Video Indexer Account. Possible values are
SystemAssigned
(where Azure will generate a Service Principal for you),UserAssigned
where you can specify the Service Principal IDs in theidentity_ids
field, andSystemAssigned, UserAssigned
which assigns both a system managed identity as well as the specified user assigned identities. - identity
Ids List<String> - Specifies a list of user managed identity ids to be assigned. Required if
type
isUserAssigned
. - principal
Id String - tenant
Id String
- type string
- Specifies the identity type of the Video Indexer Account. Possible values are
SystemAssigned
(where Azure will generate a Service Principal for you),UserAssigned
where you can specify the Service Principal IDs in theidentity_ids
field, andSystemAssigned, UserAssigned
which assigns both a system managed identity as well as the specified user assigned identities. - identity
Ids string[] - Specifies a list of user managed identity ids to be assigned. Required if
type
isUserAssigned
. - principal
Id string - tenant
Id string
- type str
- Specifies the identity type of the Video Indexer Account. Possible values are
SystemAssigned
(where Azure will generate a Service Principal for you),UserAssigned
where you can specify the Service Principal IDs in theidentity_ids
field, andSystemAssigned, UserAssigned
which assigns both a system managed identity as well as the specified user assigned identities. - identity_
ids Sequence[str] - Specifies a list of user managed identity ids to be assigned. Required if
type
isUserAssigned
. - principal_
id str - tenant_
id str
- type String
- Specifies the identity type of the Video Indexer Account. Possible values are
SystemAssigned
(where Azure will generate a Service Principal for you),UserAssigned
where you can specify the Service Principal IDs in theidentity_ids
field, andSystemAssigned, UserAssigned
which assigns both a system managed identity as well as the specified user assigned identities. - identity
Ids List<String> - Specifies a list of user managed identity ids to be assigned. Required if
type
isUserAssigned
. - principal
Id String - tenant
Id String
AccountStorage, AccountStorageArgs
- Storage
Account stringId - The ID of the storage account to be associated with the Video Indexer Account. Changing this forces a new Video Indexer Account to be created.
- User
Assigned stringIdentity Id - The reference to the user assigned identity to use to access the Storage Account.
- Storage
Account stringId - The ID of the storage account to be associated with the Video Indexer Account. Changing this forces a new Video Indexer Account to be created.
- User
Assigned stringIdentity Id - The reference to the user assigned identity to use to access the Storage Account.
- storage
Account StringId - The ID of the storage account to be associated with the Video Indexer Account. Changing this forces a new Video Indexer Account to be created.
- user
Assigned StringIdentity Id - The reference to the user assigned identity to use to access the Storage Account.
- storage
Account stringId - The ID of the storage account to be associated with the Video Indexer Account. Changing this forces a new Video Indexer Account to be created.
- user
Assigned stringIdentity Id - The reference to the user assigned identity to use to access the Storage Account.
- storage_
account_ strid - The ID of the storage account to be associated with the Video Indexer Account. Changing this forces a new Video Indexer Account to be created.
- user_
assigned_ stridentity_ id - The reference to the user assigned identity to use to access the Storage Account.
- storage
Account StringId - The ID of the storage account to be associated with the Video Indexer Account. Changing this forces a new Video Indexer Account to be created.
- user
Assigned StringIdentity Id - The reference to the user assigned identity to use to access the Storage Account.
Import
Video Indexer Accounts can be imported using the resource id
, e.g.
$ pulumi import azure:videoindexer/account:Account example /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/example-resource-group/providers/Microsoft.VideoIndexer/accounts/example-account-name
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurerm
Terraform Provider.