Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Anomaly Detector Cognitive Service not supported #7662

Closed
djmcalister opened this issue Jul 9, 2020 · 2 comments · Fixed by #8357
Closed

Anomaly Detector Cognitive Service not supported #7662

djmcalister opened this issue Jul 9, 2020 · 2 comments · Fixed by #8357

Comments

@djmcalister
Copy link

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Terraform (and AzureRM Provider) Version

provider "azurerm" {

  | version = "=2.0.0"
  | features {}

Affected Resource(s)

azurerm_cognitive_account

Terraform Configuration Files

resource "azurerm_cognitive_account" "anomaly_detector" {

  | name = var.service_name
  | location = var.location
  | resource_group_name = var.rg_name
  | kind = "AnomalyDetector"
  |  
  | sku_name = var.sku_name

}

Debug Output

N/A

Panic Output

N/A

Expected Behavior

Anomaly Detector should have been created

Actual Behavior

Error: expected kind to be one of [Academic Bing.Autosuggest Bing.Autosuggest.v7 Bing.CustomSearch Bing.Search Bing.Search.v7 Bing.Speech Bing.SpellCheck Bing.SpellCheck.v7 CognitiveServices ComputerVision ContentModerator CustomSpeech CustomVision.Prediction CustomVision.Training Emotion Face FormRecognizer ImmersiveReader LUIS LUIS.Authoring QnAMaker Recommendations SpeakerRecognition Speech SpeechServices SpeechTranslation TextAnalytics TextTranslation WebLM], got AnomalyDetector

Steps to Reproduce

Using Terraform Enterprise

Important Factoids

We logged a support call with Microsoft who confirmed the following: -

"Go Azure management SDK doesn’t validate “kind” on the SDK side - https://github.com/Azure/azure-sdk-for-go/tree/master/services/cognitiveservices/mgmt/2017-04-18/cognitiveservices

Can you please check on the terraform-provider SDK specifically if the newer version of it is still checking the “kind” or not?"

We checked and can see that Terraform does check for 'kind' - so we are requesting that this be removed inline with Microsoft SDK

https://github.com/terraform-providers/terraform-provider-azurerm/blob/master/azurerm/internal/services/cognitive/cognitive_account_resource.go

@ghost
Copy link

ghost commented Sep 10, 2020

This has been released in version 2.27.0 of the provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. As an example:

provider "azurerm" {
    version = "~> 2.27.0"
}
# ... other configuration ...

@ghost
Copy link

ghost commented Oct 10, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks!

@ghost ghost locked as resolved and limited conversation to collaborators Oct 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
3 participants