Media Service Args
data class MediaServiceArgs(val accountName: Output<String>? = null, val encryption: Output<AccountEncryptionArgs>? = null, val identity: Output<MediaServiceIdentityArgs>? = null, val location: Output<String>? = null, val resourceGroupName: Output<String>? = null, val storageAccounts: Output<List<StorageAccountArgs>>? = null, val storageAuthentication: Output<Either<String, StorageAuthentication>>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<MediaServiceArgs>
A Media Services account. API Version: 2020-05-01.
Example Usage
Create a Media Services account
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var mediaService = new AzureNative.Media.MediaService("mediaService", new()
{
AccountName = "contososports",
Location = "South Central US",
ResourceGroupName = "contoso",
StorageAccounts = new[]
{
new AzureNative.Media.Inputs.StorageAccountArgs
{
Id = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Storage/storageAccounts/contososportsstore",
Type = "Primary",
},
},
Tags =
{
{ "key1", "value1" },
{ "key2", "value2" },
},
});
});
Content copied to clipboard
package main
import (
media "github.com/pulumi/pulumi-azure-native-sdk/media"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := media.NewMediaService(ctx, "mediaService", &media.MediaServiceArgs{
AccountName: pulumi.String("contososports"),
Location: pulumi.String("South Central US"),
ResourceGroupName: pulumi.String("contoso"),
StorageAccounts: []media.StorageAccountArgs{
{
Id: pulumi.String("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Storage/storageAccounts/contososportsstore"),
Type: pulumi.String("Primary"),
},
},
Tags: pulumi.StringMap{
"key1": pulumi.String("value1"),
"key2": 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.media.MediaService;
import com.pulumi.azurenative.media.MediaServiceArgs;
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 mediaService = new MediaService("mediaService", MediaServiceArgs.builder()
.accountName("contososports")
.location("South Central US")
.resourceGroupName("contoso")
.storageAccounts(Map.ofEntries(
Map.entry("id", "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Storage/storageAccounts/contososportsstore"),
Map.entry("type", "Primary")
))
.tags(Map.ofEntries(
Map.entry("key1", "value1"),
Map.entry("key2", "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:media:MediaService contososports /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contososports
Content copied to clipboard
Constructors
Link copied to clipboard
constructor(accountName: Output<String>? = null, encryption: Output<AccountEncryptionArgs>? = null, identity: Output<MediaServiceIdentityArgs>? = null, location: Output<String>? = null, resourceGroupName: Output<String>? = null, storageAccounts: Output<List<StorageAccountArgs>>? = null, storageAuthentication: Output<Either<String, StorageAuthentication>>? = null, tags: Output<Map<String, String>>? = null)
Properties
Link copied to clipboard
The Media Services account name.
Link copied to clipboard
The account encryption properties.
Link copied to clipboard
The Managed Identity for the Media Services account.
Link copied to clipboard
The name of the resource group within the Azure subscription.
Link copied to clipboard
The storage accounts for this resource.
Link copied to clipboard