Account

Manages a Cognitive Services Account.

Example Usage

using Pulumi;
using Azure = Pulumi.Azure;

class MyStack : Stack
{
    public MyStack()
    {
        var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new Azure.Core.ResourceGroupArgs
        {
            Location = "West Europe",
        });
        var exampleAccount = new Azure.Cognitive.Account("exampleAccount", new Azure.Cognitive.AccountArgs
        {
            Location = exampleResourceGroup.Location,
            ResourceGroupName = exampleResourceGroup.Name,
            Kind = "Face",
            SkuName = "S0",
            Tags = 
            {
                { "Acceptance", "Test" },
            },
        });
    }

}
package main

import (
    "github.com/pulumi/pulumi-azure/sdk/v3/go/azure/cognitive"
    "github.com/pulumi/pulumi-azure/sdk/v3/go/azure/core"
    "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)

func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
        exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{
            Location: pulumi.String("West Europe"),
        })
        if err != nil {
            return err
        }
        _, err = cognitive.NewAccount(ctx, "exampleAccount", &cognitive.AccountArgs{
            Location:          exampleResourceGroup.Location,
            ResourceGroupName: exampleResourceGroup.Name,
            Kind:              pulumi.String("Face"),
            SkuName:           pulumi.String("S0"),
            Tags: pulumi.Map{
                "Acceptance": pulumi.String("Test"),
            },
        })
        if err != nil {
            return err
        }
        return nil
    })
}
import pulumi
import pulumi_azure as azure

example_resource_group = azure.core.ResourceGroup("exampleResourceGroup", location="West Europe")
example_account = azure.cognitive.Account("exampleAccount",
    location=example_resource_group.location,
    resource_group_name=example_resource_group.name,
    kind="Face",
    sku_name="S0",
    tags={
        "Acceptance": "Test",
    })
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";

const exampleResourceGroup = new azure.core.ResourceGroup("exampleResourceGroup", {location: "West Europe"});
const exampleAccount = new azure.cognitive.Account("exampleAccount", {
    location: exampleResourceGroup.location,
    resourceGroupName: exampleResourceGroup.name,
    kind: "Face",
    skuName: "S0",
    tags: {
        Acceptance: "Test",
    },
});

Create a Account Resource

new Account(name: string, args: AccountArgs, opts?: CustomResourceOptions);
def Account(resource_name, opts=None, kind=None, location=None, name=None, qna_runtime_endpoint=None, resource_group_name=None, sku_name=None, tags=None, __props__=None);
func NewAccount(ctx *Context, name string, args AccountArgs, opts ...ResourceOption) (*Account, error)
public Account(string name, AccountArgs args, CustomResourceOptions? opts = null)
name string
The unique name of the resource.
args AccountArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
opts ResourceOptions
A bag of options that control this resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args AccountArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args AccountArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

Account Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.

Inputs

The Account resource accepts the following input properties:

Kind string

Specifies the type of Cognitive Service Account that should be created. Possible values are Academic, Bing.Autosuggest, Bing.Autosuggest.v7, Bing.CustomSearch, Bing.Search, Bing.Search.v7, Bing.Speech, Bing.SpellCheck, Bing.SpellCheck.v7, CognitiveServices, ComputerVision, ContentModerator, CustomSpeech, CustomVision.Prediction, CustomVision.Training, Emotion, Face,FormRecognizer, ImmersiveReader, LUIS, LUIS.Authoring, QnAMaker, Recommendations, SpeakerRecognition, Speech, SpeechServices, SpeechTranslation, TextAnalytics, TextTranslation and WebLM. Changing this forces a new resource to be created.

ResourceGroupName string

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

SkuName string

Specifies the SKU Name for this Cognitive Service Account. Possible values are F0, F1, S0, S1, S2, S3, S4, S5, S6, P0, P1, and P2.

Location string

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

Name string

Specifies the name of the Cognitive Service Account. Changing this forces a new resource to be created.

QnaRuntimeEndpoint string

A URL to link a QnAMaker cognitive account to a QnA runtime.

Tags Dictionary<string, string>

A mapping of tags to assign to the resource.

Kind string

Specifies the type of Cognitive Service Account that should be created. Possible values are Academic, Bing.Autosuggest, Bing.Autosuggest.v7, Bing.CustomSearch, Bing.Search, Bing.Search.v7, Bing.Speech, Bing.SpellCheck, Bing.SpellCheck.v7, CognitiveServices, ComputerVision, ContentModerator, CustomSpeech, CustomVision.Prediction, CustomVision.Training, Emotion, Face,FormRecognizer, ImmersiveReader, LUIS, LUIS.Authoring, QnAMaker, Recommendations, SpeakerRecognition, Speech, SpeechServices, SpeechTranslation, TextAnalytics, TextTranslation and WebLM. Changing this forces a new resource to be created.

ResourceGroupName string

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

SkuName string

Specifies the SKU Name for this Cognitive Service Account. Possible values are F0, F1, S0, S1, S2, S3, S4, S5, S6, P0, P1, and P2.

Location string

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

Name string

Specifies the name of the Cognitive Service Account. Changing this forces a new resource to be created.

QnaRuntimeEndpoint string

A URL to link a QnAMaker cognitive account to a QnA runtime.

Tags map[string]string

A mapping of tags to assign to the resource.

kind string

Specifies the type of Cognitive Service Account that should be created. Possible values are Academic, Bing.Autosuggest, Bing.Autosuggest.v7, Bing.CustomSearch, Bing.Search, Bing.Search.v7, Bing.Speech, Bing.SpellCheck, Bing.SpellCheck.v7, CognitiveServices, ComputerVision, ContentModerator, CustomSpeech, CustomVision.Prediction, CustomVision.Training, Emotion, Face,FormRecognizer, ImmersiveReader, LUIS, LUIS.Authoring, QnAMaker, Recommendations, SpeakerRecognition, Speech, SpeechServices, SpeechTranslation, TextAnalytics, TextTranslation and WebLM. Changing this forces a new resource to be created.

resourceGroupName string

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

skuName string

Specifies the SKU Name for this Cognitive Service Account. Possible values are F0, F1, S0, S1, S2, S3, S4, S5, S6, P0, P1, and P2.

location string

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

name string

Specifies the name of the Cognitive Service Account. Changing this forces a new resource to be created.

qnaRuntimeEndpoint string

A URL to link a QnAMaker cognitive account to a QnA runtime.

tags {[key: string]: string}

A mapping of tags to assign to the resource.

kind str

Specifies the type of Cognitive Service Account that should be created. Possible values are Academic, Bing.Autosuggest, Bing.Autosuggest.v7, Bing.CustomSearch, Bing.Search, Bing.Search.v7, Bing.Speech, Bing.SpellCheck, Bing.SpellCheck.v7, CognitiveServices, ComputerVision, ContentModerator, CustomSpeech, CustomVision.Prediction, CustomVision.Training, Emotion, Face,FormRecognizer, ImmersiveReader, LUIS, LUIS.Authoring, QnAMaker, Recommendations, SpeakerRecognition, Speech, SpeechServices, SpeechTranslation, TextAnalytics, TextTranslation and WebLM. Changing this forces a new resource to be created.

resource_group_name str

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

sku_name str

Specifies the SKU Name for this Cognitive Service Account. Possible values are F0, F1, S0, S1, S2, S3, S4, S5, S6, P0, P1, and P2.

location str

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

name str

Specifies the name of the Cognitive Service Account. Changing this forces a new resource to be created.

qna_runtime_endpoint str

A URL to link a QnAMaker cognitive account to a QnA runtime.

tags Dict[str, str]

A mapping of tags to assign to the resource.

Outputs

All input properties are implicitly available as output properties. Additionally, the Account resource produces the following output properties:

Endpoint string

The endpoint used to connect to the Cognitive Service Account.

Id string
The provider-assigned unique ID for this managed resource.
PrimaryAccessKey string

A primary access key which can be used to connect to the Cognitive Service Account.

SecondaryAccessKey string

The secondary access key which can be used to connect to the Cognitive Service Account.

Endpoint string

The endpoint used to connect to the Cognitive Service Account.

Id string
The provider-assigned unique ID for this managed resource.
PrimaryAccessKey string

A primary access key which can be used to connect to the Cognitive Service Account.

SecondaryAccessKey string

The secondary access key which can be used to connect to the Cognitive Service Account.

endpoint string

The endpoint used to connect to the Cognitive Service Account.

id string
The provider-assigned unique ID for this managed resource.
primaryAccessKey string

A primary access key which can be used to connect to the Cognitive Service Account.

secondaryAccessKey string

The secondary access key which can be used to connect to the Cognitive Service Account.

endpoint str

The endpoint used to connect to the Cognitive Service Account.

id str
The provider-assigned unique ID for this managed resource.
primary_access_key str

A primary access key which can be used to connect to the Cognitive Service Account.

secondary_access_key str

The secondary access key which can be used to connect to the Cognitive Service Account.

Look up an Existing Account Resource

Get an existing Account resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: AccountState, opts?: CustomResourceOptions): Account
static get(resource_name, id, opts=None, endpoint=None, kind=None, location=None, name=None, primary_access_key=None, qna_runtime_endpoint=None, resource_group_name=None, secondary_access_key=None, sku_name=None, tags=None, __props__=None);
func GetAccount(ctx *Context, name string, id IDInput, state *AccountState, opts ...ResourceOption) (*Account, error)
public static Account Get(string name, Input<string> id, AccountState? state, CustomResourceOptions? opts = null)
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.

The following state arguments are supported:

Endpoint string

The endpoint used to connect to the Cognitive Service Account.

Kind string

Specifies the type of Cognitive Service Account that should be created. Possible values are Academic, Bing.Autosuggest, Bing.Autosuggest.v7, Bing.CustomSearch, Bing.Search, Bing.Search.v7, Bing.Speech, Bing.SpellCheck, Bing.SpellCheck.v7, CognitiveServices, ComputerVision, ContentModerator, CustomSpeech, CustomVision.Prediction, CustomVision.Training, Emotion, Face,FormRecognizer, ImmersiveReader, LUIS, LUIS.Authoring, QnAMaker, Recommendations, SpeakerRecognition, Speech, SpeechServices, SpeechTranslation, TextAnalytics, TextTranslation and WebLM. Changing this forces a new resource to be created.

Location string

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

Name string

Specifies the name of the Cognitive Service Account. Changing this forces a new resource to be created.

PrimaryAccessKey string

A primary access key which can be used to connect to the Cognitive Service Account.

QnaRuntimeEndpoint string

A URL to link a QnAMaker cognitive account to a QnA runtime.

ResourceGroupName string

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

SecondaryAccessKey string

The secondary access key which can be used to connect to the Cognitive Service Account.

SkuName string

Specifies the SKU Name for this Cognitive Service Account. Possible values are F0, F1, S0, S1, S2, S3, S4, S5, S6, P0, P1, and P2.

Tags Dictionary<string, string>

A mapping of tags to assign to the resource.

Endpoint string

The endpoint used to connect to the Cognitive Service Account.

Kind string

Specifies the type of Cognitive Service Account that should be created. Possible values are Academic, Bing.Autosuggest, Bing.Autosuggest.v7, Bing.CustomSearch, Bing.Search, Bing.Search.v7, Bing.Speech, Bing.SpellCheck, Bing.SpellCheck.v7, CognitiveServices, ComputerVision, ContentModerator, CustomSpeech, CustomVision.Prediction, CustomVision.Training, Emotion, Face,FormRecognizer, ImmersiveReader, LUIS, LUIS.Authoring, QnAMaker, Recommendations, SpeakerRecognition, Speech, SpeechServices, SpeechTranslation, TextAnalytics, TextTranslation and WebLM. Changing this forces a new resource to be created.

Location string

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

Name string

Specifies the name of the Cognitive Service Account. Changing this forces a new resource to be created.

PrimaryAccessKey string

A primary access key which can be used to connect to the Cognitive Service Account.

QnaRuntimeEndpoint string

A URL to link a QnAMaker cognitive account to a QnA runtime.

ResourceGroupName string

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

SecondaryAccessKey string

The secondary access key which can be used to connect to the Cognitive Service Account.

SkuName string

Specifies the SKU Name for this Cognitive Service Account. Possible values are F0, F1, S0, S1, S2, S3, S4, S5, S6, P0, P1, and P2.

Tags map[string]string

A mapping of tags to assign to the resource.

endpoint string

The endpoint used to connect to the Cognitive Service Account.

kind string

Specifies the type of Cognitive Service Account that should be created. Possible values are Academic, Bing.Autosuggest, Bing.Autosuggest.v7, Bing.CustomSearch, Bing.Search, Bing.Search.v7, Bing.Speech, Bing.SpellCheck, Bing.SpellCheck.v7, CognitiveServices, ComputerVision, ContentModerator, CustomSpeech, CustomVision.Prediction, CustomVision.Training, Emotion, Face,FormRecognizer, ImmersiveReader, LUIS, LUIS.Authoring, QnAMaker, Recommendations, SpeakerRecognition, Speech, SpeechServices, SpeechTranslation, TextAnalytics, TextTranslation and WebLM. Changing this forces a new resource to be created.

location string

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

name string

Specifies the name of the Cognitive Service Account. Changing this forces a new resource to be created.

primaryAccessKey string

A primary access key which can be used to connect to the Cognitive Service Account.

qnaRuntimeEndpoint string

A URL to link a QnAMaker cognitive account to a QnA runtime.

resourceGroupName string

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

secondaryAccessKey string

The secondary access key which can be used to connect to the Cognitive Service Account.

skuName string

Specifies the SKU Name for this Cognitive Service Account. Possible values are F0, F1, S0, S1, S2, S3, S4, S5, S6, P0, P1, and P2.

tags {[key: string]: string}

A mapping of tags to assign to the resource.

endpoint str

The endpoint used to connect to the Cognitive Service Account.

kind str

Specifies the type of Cognitive Service Account that should be created. Possible values are Academic, Bing.Autosuggest, Bing.Autosuggest.v7, Bing.CustomSearch, Bing.Search, Bing.Search.v7, Bing.Speech, Bing.SpellCheck, Bing.SpellCheck.v7, CognitiveServices, ComputerVision, ContentModerator, CustomSpeech, CustomVision.Prediction, CustomVision.Training, Emotion, Face,FormRecognizer, ImmersiveReader, LUIS, LUIS.Authoring, QnAMaker, Recommendations, SpeakerRecognition, Speech, SpeechServices, SpeechTranslation, TextAnalytics, TextTranslation and WebLM. Changing this forces a new resource to be created.

location str

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

name str

Specifies the name of the Cognitive Service Account. Changing this forces a new resource to be created.

primary_access_key str

A primary access key which can be used to connect to the Cognitive Service Account.

qna_runtime_endpoint str

A URL to link a QnAMaker cognitive account to a QnA runtime.

resource_group_name str

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

secondary_access_key str

The secondary access key which can be used to connect to the Cognitive Service Account.

sku_name str

Specifies the SKU Name for this Cognitive Service Account. Possible values are F0, F1, S0, S1, S2, S3, S4, S5, S6, P0, P1, and P2.

tags Dict[str, str]

A mapping of tags to assign to the resource.

Package Details

Repository
https://github.com/pulumi/pulumi-azure
License
Apache-2.0
Notes
This Pulumi package is based on the azurerm Terraform Provider.