Video Analyzer
A Video Analyzer account. API Version: 2021-05-01-preview.
Example Usage
Create a Video Analyzer account
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var videoAnalyzer = new AzureNative.VideoAnalyzer.VideoAnalyzer("videoAnalyzer", new()
{
AccountName = "contosotv",
Encryption = new AzureNative.VideoAnalyzer.Inputs.AccountEncryptionArgs
{
Type = "SystemKey",
},
Identity = new AzureNative.VideoAnalyzer.Inputs.VideoAnalyzerIdentityArgs
{
Type = "UserAssigned",
UserAssignedIdentities =
{
{ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1", null },
{ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2", null },
{ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id3", null },
},
},
Location = "South Central US",
ResourceGroupName = "contoso",
StorageAccounts = new[]
{
new AzureNative.VideoAnalyzer.Inputs.StorageAccountArgs
{
Id = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.Storage/storageAccounts/storage1",
Identity = new AzureNative.VideoAnalyzer.Inputs.ResourceIdentityArgs
{
UserAssignedIdentity = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2",
},
},
},
Tags =
{
{ "tag1", "value1" },
{ "tag2", "value2" },
},
});
});
Content copied to clipboard
package main
import (
videoanalyzer "github.com/pulumi/pulumi-azure-native-sdk/videoanalyzer"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := videoanalyzer.NewVideoAnalyzer(ctx, "videoAnalyzer", &videoanalyzer.VideoAnalyzerArgs{
AccountName: pulumi.String("contosotv"),
Encryption: &videoanalyzer.AccountEncryptionArgs{
Type: pulumi.String("SystemKey"),
},
Identity: &videoanalyzer.VideoAnalyzerIdentityArgs{
Type: pulumi.String("UserAssigned"),
UserAssignedIdentities: pulumi.AnyMap{
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": nil,
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2": nil,
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id3": nil,
},
},
Location: pulumi.String("South Central US"),
ResourceGroupName: pulumi.String("contoso"),
StorageAccounts: []videoanalyzer.StorageAccountArgs{
{
Id: pulumi.String("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.Storage/storageAccounts/storage1"),
Identity: {
UserAssignedIdentity: pulumi.String("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2"),
},
},
},
Tags: pulumi.StringMap{
"tag1": pulumi.String("value1"),
"tag2": pulumi.String("value2"),
},
})
if err != nil {
return err
}
return nil
})
}
Content copied to clipboard
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.videoanalyzer.VideoAnalyzer;
import com.pulumi.azurenative.videoanalyzer.VideoAnalyzerArgs;
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 videoAnalyzer = new VideoAnalyzer("videoAnalyzer", VideoAnalyzerArgs.builder()
.accountName("contosotv")
.encryption(Map.of("type", "SystemKey"))
.identity(Map.ofEntries(
Map.entry("type", "UserAssigned"),
Map.entry("userAssignedIdentities", Map.ofEntries(
Map.entry("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1", ),
Map.entry("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2", ),
Map.entry("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id3", )
))
))
.location("South Central US")
.resourceGroupName("contoso")
.storageAccounts(Map.ofEntries(
Map.entry("id", "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.Storage/storageAccounts/storage1"),
Map.entry("identity", Map.of("userAssignedIdentity", "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2"))
))
.tags(Map.ofEntries(
Map.entry("tag1", "value1"),
Map.entry("tag2", "value2")
))
.build());
}
}
Content copied to clipboard
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:videoanalyzer:VideoAnalyzer contosomovies /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/videoAnalyzers/contosomovies
Content copied to clipboard
Properties
Link copied to clipboard
The account encryption properties.
Link copied to clipboard
The list of endpoints associated with this resource.
Link copied to clipboard
The set of managed identities associated with the Video Analyzer resource.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
The storage accounts for this resource.
Link copied to clipboard
The system data of the Video Analyzer account.