Account

class Account : KotlinCustomResource

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}

Properties

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

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>

The account's name

Link copied to clipboard
val azureApiVersion: Output<String>

The Azure API version of the resource.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard

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

Link copied to clipboard
val location: Output<String>

The geo-location where the resource lives

Link copied to clipboard
val name: Output<String>

The name of the resource

Link copied to clipboard

Gets the status of the account at the time the operation was called.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The storage services details

Link copied to clipboard

The system meta data relating to this resource.

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

Resource tags.

Link copied to clipboard
val tenantId: Output<String>

The account's tenant id

Link copied to clipboard

An integer representing the total seconds that have been indexed on the account

Link copied to clipboard
val type: Output<String>

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Link copied to clipboard
val urn: Output<String>