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,TextTranslationandWebLM. Changing this forces a new resource to be created.- Resource
Group stringName 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 string Specifies the SKU Name for this Cognitive Service Account. Possible values are
F0,F1,S0,S1,S2,S3,S4,S5,S6,P0,P1, andP2.- 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.
- Qna
Runtime stringEndpoint A URL to link a QnAMaker cognitive account to a QnA runtime.
- 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,TextTranslationandWebLM. Changing this forces a new resource to be created.- Resource
Group stringName 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 string Specifies the SKU Name for this Cognitive Service Account. Possible values are
F0,F1,S0,S1,S2,S3,S4,S5,S6,P0,P1, andP2.- 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.
- Qna
Runtime stringEndpoint A URL to link a QnAMaker cognitive account to a QnA runtime.
- 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,TextTranslationandWebLM. Changing this forces a new resource to be created.- resource
Group stringName 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 string Specifies the SKU Name for this Cognitive Service Account. Possible values are
F0,F1,S0,S1,S2,S3,S4,S5,S6,P0,P1, andP2.- 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.
- qna
Runtime stringEndpoint A URL to link a QnAMaker cognitive account to a QnA runtime.
- {[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,TextTranslationandWebLM. Changing this forces a new resource to be created.- resource_
group_ strname 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, andP2.- 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_ strendpoint A URL to link a QnAMaker cognitive account to a QnA runtime.
- 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.
- Primary
Access stringKey A primary access key which can be used to connect to the Cognitive Service Account.
- Secondary
Access stringKey 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.
- Primary
Access stringKey A primary access key which can be used to connect to the Cognitive Service Account.
- Secondary
Access stringKey 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.
- primary
Access stringKey A primary access key which can be used to connect to the Cognitive Service Account.
- secondary
Access stringKey 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_ strkey A primary access key which can be used to connect to the Cognitive Service Account.
- secondary_
access_ strkey 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): Accountstatic 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,TextTranslationandWebLM. 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.
- Primary
Access stringKey A primary access key which can be used to connect to the Cognitive Service Account.
- Qna
Runtime stringEndpoint A URL to link a QnAMaker cognitive account to a QnA runtime.
- Resource
Group stringName 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 stringKey The secondary access key which can be used to connect to the Cognitive Service Account.
- Sku
Name string Specifies the SKU Name for this Cognitive Service Account. Possible values are
F0,F1,S0,S1,S2,S3,S4,S5,S6,P0,P1, andP2.- 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,TextTranslationandWebLM. 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.
- Primary
Access stringKey A primary access key which can be used to connect to the Cognitive Service Account.
- Qna
Runtime stringEndpoint A URL to link a QnAMaker cognitive account to a QnA runtime.
- Resource
Group stringName 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 stringKey The secondary access key which can be used to connect to the Cognitive Service Account.
- Sku
Name string Specifies the SKU Name for this Cognitive Service Account. Possible values are
F0,F1,S0,S1,S2,S3,S4,S5,S6,P0,P1, andP2.- 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,TextTranslationandWebLM. 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.
- primary
Access stringKey A primary access key which can be used to connect to the Cognitive Service Account.
- qna
Runtime stringEndpoint A URL to link a QnAMaker cognitive account to a QnA runtime.
- resource
Group stringName 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 stringKey The secondary access key which can be used to connect to the Cognitive Service Account.
- sku
Name string Specifies the SKU Name for this Cognitive Service Account. Possible values are
F0,F1,S0,S1,S2,S3,S4,S5,S6,P0,P1, andP2.- {[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,TextTranslationandWebLM. 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_ strkey A primary access key which can be used to connect to the Cognitive Service Account.
- qna_
runtime_ strendpoint A URL to link a QnAMaker cognitive account to a QnA runtime.
- resource_
group_ strname 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_ strkey 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, andP2.- 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
azurermTerraform Provider.