none
Unable to create azure bot service using powershell RRS feed

  • Question

  • I am trying to create a bot service using command New-AzureRmResource

    i have a resourcegroup create - testRG

    properties:

     @{
    >>     Location          = "global"
    >>     Properties        = @{
    >>     MsaAppId = <<appid>>}
    >>     ResourceName      = "test"
    >>     ResourceType      = "Microsoft.BotService/botServices/"
    >>     ResourceGroupName = "testRG"
    >>     Force             = $true
    >> }

    but i keep getting the following error: 

    InvalidBotData : Name: Name is required.

    i tried adding 'Name' field to properties but that fails with the same error

    i also tried using New-AzureRmResourceGroupDeployment with same details in my template file but i get the same error:

    New-AzureRmResourceGroupDeployment : 1:33:48 PM - Resource Microsoft.BotService/botServices '...' failed with message '{

      "error": {
        "code": "InvalidBotData",
        "message": "Name: Name is required. "
      }
    }'

    how can i directly create a bot service using powershell/any other scripting language without having to go to azure portal



    Saturday, July 21, 2018 8:06 AM

Answers