Skip to content

Instantly share code, notes, and snippets.

@PrateekKumarSingh
Created December 18, 2019 13:46
Show Gist options
  • Select an option

  • Save PrateekKumarSingh/a9fb3b2906cf959e6fe3afc66bda2eb8 to your computer and use it in GitHub Desktop.

Select an option

Save PrateekKumarSingh/a9fb3b2906cf959e6fe3afc66bda2eb8 to your computer and use it in GitHub Desktop.
# installation
Install-Module PSCognitiveService -Verbose -Force -Confirm:$false -Scope CurrentUser
# import module
Import-Module PSCognitiveService
# create cognitive service accounts in azure
$Params1 = @{
AccountType = 'Bing.Search.v7'
ResourceGroupName = 'demo-resource-group'
SKUName = 'F1'
Location = 'Global'
}
New-CognitiveServiceAccount @Params1 | Out-Null
$Params2 = @{
AccountType = 'TextAnalytics'
ResourceGroupName = 'demo-resource-group'
SKUName = 'F0'
Location = 'CentralIndia'
}
New-CognitiveServiceAccount @Params2 | Out-Null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment