AIServicesArgs

data class AIServicesArgs(val customSubdomainName: Output<String>? = null, val customerManagedKey: Output<AIServicesCustomerManagedKeyArgs>? = null, val fqdns: Output<List<String>>? = null, val identity: Output<AIServicesIdentityArgs>? = null, val localAuthenticationEnabled: Output<Boolean>? = null, val location: Output<String>? = null, val name: Output<String>? = null, val networkAcls: Output<AIServicesNetworkAclsArgs>? = null, val outboundNetworkAccessRestricted: Output<Boolean>? = null, val publicNetworkAccess: Output<String>? = null, val resourceGroupName: Output<String>? = null, val skuName: Output<String>? = null, val storages: Output<List<AIServicesStorageArgs>>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<AIServicesArgs>

Manages an AI Services Account.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = new azure.core.ResourceGroup("example", {
name: "example-resources",
location: "West Europe",
});
const exampleAIServices = new azure.cognitive.AIServices("example", {
name: "example-account",
location: example.location,
resourceGroupName: example.name,
skuName: "S0",
tags: {
Acceptance: "Test",
},
});
import pulumi
import pulumi_azure as azure
example = azure.core.ResourceGroup("example",
name="example-resources",
location="West Europe")
example_ai_services = azure.cognitive.AIServices("example",
name="example-account",
location=example.location,
resource_group_name=example.name,
sku_name="S0",
tags={
"Acceptance": "Test",
})
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-resources",
Location = "West Europe",
});
var exampleAIServices = new Azure.Cognitive.AIServices("example", new()
{
Name = "example-account",
Location = example.Location,
ResourceGroupName = example.Name,
SkuName = "S0",
Tags =
{
{ "Acceptance", "Test" },
},
});
});
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/cognitive"
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
"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-resources"),
Location: pulumi.String("West Europe"),
})
if err != nil {
return err
}
_, err = cognitive.NewAIServices(ctx, "example", &cognitive.AIServicesArgs{
Name: pulumi.String("example-account"),
Location: example.Location,
ResourceGroupName: example.Name,
SkuName: pulumi.String("S0"),
Tags: pulumi.StringMap{
"Acceptance": pulumi.String("Test"),
},
})
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.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.cognitive.AIServices;
import com.pulumi.azure.cognitive.AIServicesArgs;
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-resources")
.location("West Europe")
.build());
var exampleAIServices = new AIServices("exampleAIServices", AIServicesArgs.builder()
.name("example-account")
.location(example.location())
.resourceGroupName(example.name())
.skuName("S0")
.tags(Map.of("Acceptance", "Test"))
.build());
}
}
resources:
example:
type: azure:core:ResourceGroup
properties:
name: example-resources
location: West Europe
exampleAIServices:
type: azure:cognitive:AIServices
name: example
properties:
name: example-account
location: ${example.location}
resourceGroupName: ${example.name}
skuName: S0
tags:
Acceptance: Test

API Providers

This resource uses the following Azure API Providers:

  • Microsoft.CognitiveServices: 2024-10-01

Import

AI Services Account can be imported using the resource id, e.g.

$ pulumi import azure:cognitive/aIServices:AIServices account1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.CognitiveServices/accounts/account1

Constructors

Link copied to clipboard
constructor(customSubdomainName: Output<String>? = null, customerManagedKey: Output<AIServicesCustomerManagedKeyArgs>? = null, fqdns: Output<List<String>>? = null, identity: Output<AIServicesIdentityArgs>? = null, localAuthenticationEnabled: Output<Boolean>? = null, location: Output<String>? = null, name: Output<String>? = null, networkAcls: Output<AIServicesNetworkAclsArgs>? = null, outboundNetworkAccessRestricted: Output<Boolean>? = null, publicNetworkAccess: Output<String>? = null, resourceGroupName: Output<String>? = null, skuName: Output<String>? = null, storages: Output<List<AIServicesStorageArgs>>? = null, tags: Output<Map<String, String>>? = null)

Properties

Link copied to clipboard

A customer_managed_key block as documented below.

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

The subdomain name used for token-based authentication. This property is required when network_acls is specified. Changing this forces a new resource to be created.

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

List of FQDNs allowed for the AI Services Account.

Link copied to clipboard
val identity: Output<AIServicesIdentityArgs>? = null

An identity block as defined below.

Link copied to clipboard
val localAuthenticationEnabled: Output<Boolean>? = null

Whether local authentication is enabled for the AI Services Account. Defaults to true.

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

Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.

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

Specifies the name of the AI Services Account. Changing this forces a new resource to be created.

Link copied to clipboard

A network_acls block as defined below. When this property is specified, custom_subdomain_name is also required to be set.

Link copied to clipboard

Whether outbound network access is restricted for the AI Services Account. Defaults to false.

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

Whether public network access is allowed for the AI Services Account. Possible values are Enabled and Disabled. Defaults to Enabled.

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

The name of the resource group in which the AI Services Account is created. Changing this forces a new resource to be created.

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

Specifies the SKU Name for this AI Services Account. Possible values are F0, F1, S0, S, S1, S2, S3, S4, S5, S6, P0, P1, P2, E0 and DC0.

Link copied to clipboard
val storages: Output<List<AIServicesStorageArgs>>? = null

A storage block as defined below.

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

A mapping of tags to assign to the resource.

Functions

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