Service Azure Bot Args
data class ServiceAzureBotArgs(val developerAppInsightsApiKey: Output<String>? = null, val developerAppInsightsApplicationId: Output<String>? = null, val developerAppInsightsKey: Output<String>? = null, val displayName: Output<String>? = null, val endpoint: Output<String>? = null, val iconUrl: Output<String>? = null, val localAuthenticationEnabled: Output<Boolean>? = null, val location: Output<String>? = null, val luisAppIds: Output<List<String>>? = null, val luisKey: Output<String>? = null, val microsoftAppId: Output<String>? = null, val microsoftAppMsiId: Output<String>? = null, val microsoftAppTenantId: Output<String>? = null, val microsoftAppType: Output<String>? = null, val name: Output<String>? = null, val resourceGroupName: Output<String>? = null, val sku: Output<String>? = null, val streamingEndpointEnabled: Output<Boolean>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<ServiceAzureBotArgs>
Manages an Azure Bot Service.
Example Usage
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.appinsights.Insights;
import com.pulumi.azure.appinsights.InsightsArgs;
import com.pulumi.azure.appinsights.ApiKey;
import com.pulumi.azure.appinsights.ApiKeyArgs;
import com.pulumi.azure.core.CoreFunctions;
import com.pulumi.azure.bot.ServiceAzureBot;
import com.pulumi.azure.bot.ServiceAzureBotArgs;
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 exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()
.location("West Europe")
.build());
var exampleInsights = new Insights("exampleInsights", InsightsArgs.builder()
.location(exampleResourceGroup.location())
.resourceGroupName(exampleResourceGroup.name())
.applicationType("web")
.build());
var exampleApiKey = new ApiKey("exampleApiKey", ApiKeyArgs.builder()
.applicationInsightsId(exampleInsights.id())
.readPermissions(
"aggregate",
"api",
"draft",
"extendqueries",
"search")
.build());
final var current = CoreFunctions.getClientConfig();
var exampleServiceAzureBot = new ServiceAzureBot("exampleServiceAzureBot", ServiceAzureBotArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.location("global")
.microsoftAppId(current.applyValue(getClientConfigResult -> getClientConfigResult.clientId()))
.sku("F0")
.endpoint("https://example.com")
.developerAppInsightsApiKey(exampleApiKey.apiKey())
.developerAppInsightsApplicationId(exampleInsights.appId())
.tags(Map.of("environment", "test"))
.build());
}
}
Content copied to clipboard
Import
Azure Bot Services can be imported using the resource id
, e.g.
$ pulumi import azure:bot/serviceAzureBot:ServiceAzureBot example /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/resGroup1/providers/Microsoft.BotService/botServices/botService1
Content copied to clipboard
Constructors
Link copied to clipboard
fun ServiceAzureBotArgs(developerAppInsightsApiKey: Output<String>? = null, developerAppInsightsApplicationId: Output<String>? = null, developerAppInsightsKey: Output<String>? = null, displayName: Output<String>? = null, endpoint: Output<String>? = null, iconUrl: Output<String>? = null, localAuthenticationEnabled: Output<Boolean>? = null, location: Output<String>? = null, luisAppIds: Output<List<String>>? = null, luisKey: Output<String>? = null, microsoftAppId: Output<String>? = null, microsoftAppMsiId: Output<String>? = null, microsoftAppTenantId: Output<String>? = null, microsoftAppType: Output<String>? = null, name: Output<String>? = null, resourceGroupName: Output<String>? = null, sku: Output<String>? = null, streamingEndpointEnabled: Output<Boolean>? = null, tags: Output<Map<String, String>>? = null)