title: Adding key vault scopes for azure databricks having issues
body: <p>I am trying to automate adding Keyvault scope for Azure DataBricks service.</p>
  
  <p>Tried to use example from <a href="https://github.com/DataThirstLtd/azure.databricks.cicd.tools/blob/master/Tests/Add-DatabricksSecretScope.tests.ps1" rel="nofollow noreferrer">here</a></p>
  
  <p><strong>Code</strong></p>
  
  <pre><code>$Region = "southindia"
  $ResID = "/subscriptions/*******/resourceGroups/******/providers/Microsoft.KeyVault/vaults/testkv123d"
  $databricsOrgId = **********
  
  
  Connect-Databricks -Region $Region -DatabricksOrgId $databricsOrgId `
      -ApplicationId ************ `
      -Secret ************ -TenantId ************  -Verbose
  
  Connect-Databricks -Region $Region -ApplicationId ************** `
              -Secret ****************** `
              -ResourceGroupName ******* `
              -SubscriptionId ****************************** `
              -WorkspaceName *********** `
              -TenantId ********** -Verbose
  
  Add-DatabricksSecretScope -ScopeName "kvscope" -Verbose -KeyVaultResourceId $ResID
  </code></pre>
  
  <p><strong>Issue Details</strong></p>
  
  <pre><code>VERBOSE: POST https://southindia.azuredatabricks.net/api/2.0/secrets/scopes/create with -1-byte payload
  Invoke-RestMethod : {"error_code":"INTERNAL_ERROR","message":"There was an internal error handling request POST to /api/2.0/secrets/scopes/create. Please try again later."}
  At C:\Program Files\WindowsPowerShell\Modules\azure.databricks.cicd.tools\2.0.55\Public\Add-DatabricksSecretScope.ps1:73 char:9
  +         Invoke-RestMethod -Method Post -Body $BodyText -Uri "$global: ...
  +         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      + CategoryInfo          : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebException
      + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand
  </code></pre>