getAccount

Use this data source to access information about an existing Cognitive Services Account.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.cognitive.CognitiveFunctions;
import com.pulumi.azure.cognitive.inputs.GetAccountArgs;
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) {
final var test = CognitiveFunctions.getAccount(GetAccountArgs.builder()
.name("example-account")
.resourceGroupName("cognitive_account_rg")
.build());
ctx.export("primaryAccessKey", test.applyValue(getAccountResult -> getAccountResult.primaryAccessKey()));
}
}

Return

A collection of values returned by getAccount.

Parameters

argument

A collection of arguments for invoking getAccount.


suspend fun getAccount(name: String, resourceGroupName: String, tags: Map<String, String>? = null): GetAccountResult

Return

A collection of values returned by getAccount.

See also

Parameters

name

Specifies the name of the Cognitive Services Account.

resourceGroupName

Specifies the name of the resource group where the Cognitive Services Account resides.

tags

A mapping of tags to assigned to the resource.


suspend fun getAccount(argument: suspend GetAccountPlainArgsBuilder.() -> Unit): GetAccountResult

Return

A collection of values returned by getAccount.

See also

Parameters

argument

Builder for com.pulumi.azure.cognitive.kotlin.inputs.GetAccountPlainArgs.