New-AzBotService

Returns a BotService specified by the parameters.

Syntax

New-AzBotService
   -ApplicationId <String>
   -Location <String>
   [-BotTemplateType <String>]
   [-Description <String>]
   [-DisplayName <String>]
   [-Endpoint <String>]
   [-Language <String>]
   [-Name <String>]
   [-Registration]
   [-ResourceGroupName <String>]
   [-SubscriptionId <String[]>]
   [-Sku <String>]
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]
New-AzBotService
   -ApplicationId <String>
   -ApplicationSecret <SecureString>
   -Location <String>
   [-BotTemplateType <String>]
   [-Description <String>]
   [-ExistingServerFarmId <String>]
   [-Language <String>]
   [-Name <String>]
   [-ResourceGroupName <String>]
   [-SubscriptionId <String[]>]
   [-Webapp]
   [-Sku <String>]
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]

Description

Returns a BotService specified by the parameters.

Examples

Example 1: Create a new bot

PS C:\> New-AzBotService -resourcegroupname youriBotTest -name youri-bot1 -ApplicationId "af5fce4d-ee68-4b25-be09-f3222582e133"-Location eastus -Sku F0 -Description "123134" -Registration

Etag                                   Kind Location Name       SkuName SkuTier Type
----                                   ---- -------- ----       ------- ------- ----
"060085fb-0000-1800-0000-5fd71d7c0000" bot  global   youri-bot1 F0              Microsoft.BotService/botServices

Create a new Bot by ResourceGroupName and ApplicationId

Example 2: Create a new Web App

PS C:\> New-AzBotService -resourcegroupname youriBotTest -name youri-apptest14 -ApplicationId "b1ab1727-0465-4255-a1bb-976210af972c" -Location eastus -Sku F0 -Description "123134" -Webapp

Etag                                   Kind Location Name            SkuName SkuTier Type
----                                   ---- -------- ----            ------- ------- ----
"06008351-0000-0200-0000-5fd732870000" sdk  global   youri-apptest14 F0              Microsoft.BotService/botServices

Create a new Web App by ResourceGroupName and ApplicationId

Parameters

-ApplicationId
Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ApplicationSecret
Type:SecureString
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-BotTemplateType
Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-DefaultProfile

The credentials, account, tenant, and subscription used for communication with Azure.

Type:PSObject
Aliases:AzureRMContext, AzureCredential
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Description
Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-DisplayName
Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Endpoint
Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ExistingServerFarmId
Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Language
Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Location
Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Name

The name of the Bot resource.

Type:String
Aliases:BotName
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Registration
Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ResourceGroupName

The name of the Bot resource group in the user subscription.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Sku

The sku name

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-SubscriptionId

Azure Subscription ID.

Type:String[]
Position:Named
Default value:(Get-AzContext).Subscription.Id
Accept pipeline input:False
Accept wildcard characters:False
-Webapp
Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Outputs

Microsoft.Azure.PowerShell.Cmdlets.BotService.Models.Api20180712.IBot

Notes

ALIASES