AccountArgs

data class AccountArgs(val accountId: Output<String>? = null, val accountName: Output<String>? = null, val identity: Output<ManagedServiceIdentityArgs>? = null, val location: Output<String>? = null, val resourceGroupName: Output<String>? = null, val storageServices: Output<StorageServicesForPutRequestArgs>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<AccountArgs>

An Azure Video Indexer account. Uses Azure REST API version 2024-01-01. In version 2.x of the Azure Native provider, it used API version 2022-08-01. Other available API versions: 2022-08-01, 2024-04-01-preview, 2024-06-01-preview, 2024-09-23-preview, 2025-01-01, 2025-03-01. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native videoindexer [ApiVersion]. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.

Example Usage

Connect classic account to arm account using system assigned Mi

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var account = new AzureNative.VideoIndexer.Account("account", new()
{
AccountId = "462af7c5-d1f6-4b91-86e3-8bc5e8a61574",
AccountName = "contosto-videoanalyzer",
Identity = new AzureNative.VideoIndexer.Inputs.ManagedServiceIdentityArgs
{
Type = AzureNative.VideoIndexer.ManagedServiceIdentityType.SystemAssigned,
},
Location = "NorthEurope",
ResourceGroupName = "contosto-videoanalyzer-rg",
StorageServices = new AzureNative.VideoIndexer.Inputs.StorageServicesForPutRequestArgs
{
ResourceId = "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.Storage/storageAccounts/contoso-videoanalyzer-ms",
},
});
});
package main
import (
videoindexer "github.com/pulumi/pulumi-azure-native-sdk/videoindexer/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := videoindexer.NewAccount(ctx, "account", &videoindexer.AccountArgs{
AccountId: pulumi.String("462af7c5-d1f6-4b91-86e3-8bc5e8a61574"),
AccountName: pulumi.String("contosto-videoanalyzer"),
Identity: &videoindexer.ManagedServiceIdentityArgs{
Type: pulumi.String(videoindexer.ManagedServiceIdentityTypeSystemAssigned),
},
Location: pulumi.String("NorthEurope"),
ResourceGroupName: pulumi.String("contosto-videoanalyzer-rg"),
StorageServices: &videoindexer.StorageServicesForPutRequestArgs{
ResourceId: pulumi.String("/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.Storage/storageAccounts/contoso-videoanalyzer-ms"),
},
})
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.videoindexer.Account;
import com.pulumi.azurenative.videoindexer.AccountArgs;
import com.pulumi.azurenative.videoindexer.inputs.ManagedServiceIdentityArgs;
import com.pulumi.azurenative.videoindexer.inputs.StorageServicesForPutRequestArgs;
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()
.accountId("462af7c5-d1f6-4b91-86e3-8bc5e8a61574")
.accountName("contosto-videoanalyzer")
.identity(ManagedServiceIdentityArgs.builder()
.type("SystemAssigned")
.build())
.location("NorthEurope")
.resourceGroupName("contosto-videoanalyzer-rg")
.storageServices(StorageServicesForPutRequestArgs.builder()
.resourceId("/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.Storage/storageAccounts/contoso-videoanalyzer-ms")
.build())
.build());
}
}

Create or update account with system assigned Mi

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var account = new AzureNative.VideoIndexer.Account("account", new()
{
AccountName = "contosto-videoanalyzer",
Identity = new AzureNative.VideoIndexer.Inputs.ManagedServiceIdentityArgs
{
Type = AzureNative.VideoIndexer.ManagedServiceIdentityType.SystemAssigned,
},
Location = "NorthEurope",
ResourceGroupName = "contosto-videoanalyzer-rg",
StorageServices = new AzureNative.VideoIndexer.Inputs.StorageServicesForPutRequestArgs
{
ResourceId = "/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.Storage/storageAccounts/contoso-videoanalyzer-ms",
},
});
});
package main
import (
videoindexer "github.com/pulumi/pulumi-azure-native-sdk/videoindexer/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := videoindexer.NewAccount(ctx, "account", &videoindexer.AccountArgs{
AccountName: pulumi.String("contosto-videoanalyzer"),
Identity: &videoindexer.ManagedServiceIdentityArgs{
Type: pulumi.String(videoindexer.ManagedServiceIdentityTypeSystemAssigned),
},
Location: pulumi.String("NorthEurope"),
ResourceGroupName: pulumi.String("contosto-videoanalyzer-rg"),
StorageServices: &videoindexer.StorageServicesForPutRequestArgs{
ResourceId: pulumi.String("/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.Storage/storageAccounts/contoso-videoanalyzer-ms"),
},
})
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.videoindexer.Account;
import com.pulumi.azurenative.videoindexer.AccountArgs;
import com.pulumi.azurenative.videoindexer.inputs.ManagedServiceIdentityArgs;
import com.pulumi.azurenative.videoindexer.inputs.StorageServicesForPutRequestArgs;
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("contosto-videoanalyzer")
.identity(ManagedServiceIdentityArgs.builder()
.type("SystemAssigned")
.build())
.location("NorthEurope")
.resourceGroupName("contosto-videoanalyzer-rg")
.storageServices(StorageServicesForPutRequestArgs.builder()
.resourceId("/subscriptions/xxx/resourceGroups/contoso-videoanalyzer-rg/providers/Microsoft.Storage/storageAccounts/contoso-videoanalyzer-ms")
.build())
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:videoindexer:Account contosto-videoanalyzer /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VideoIndexer/accounts/{accountName}

Constructors

Link copied to clipboard
constructor(accountId: Output<String>? = null, accountName: Output<String>? = null, identity: Output<ManagedServiceIdentityArgs>? = null, location: Output<String>? = null, resourceGroupName: Output<String>? = null, storageServices: Output<StorageServicesForPutRequestArgs>? = null, tags: Output<Map<String, String>>? = null)

Properties

Link copied to clipboard
val accountId: Output<String>? = null

The account's data-plane ID. This can be set only when connecting an existing classic account

Link copied to clipboard
val accountName: Output<String>? = null

The name of the Azure Video Indexer account.

Link copied to clipboard

Managed service identity (system assigned and/or user assigned identities)

Link copied to clipboard
val location: Output<String>? = null

The geo-location where the resource lives

Link copied to clipboard
val resourceGroupName: Output<String>? = null

The name of the resource group. The name is case insensitive.

Link copied to clipboard

The storage services details

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

Resource tags.

Functions

Link copied to clipboard
open override fun toJava(): AccountArgs