-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
azurerm_cognitive_account services specified in Kind validation function need updated #2294
Comments
I'd be interested in working on this issue. |
hey @neilbailie Thanks for opening this issue :) Taking a quick look into this it appears this value is missing from the possible values for the 'kind' field. Whilst we can look to add this value to the validation function - I have a feeling it might be worth opening an issue/PR on the Rest API Specs Repository to get these added to the Swagger file which the SDK is generated from. Whilst we could add this to the validation function outlined above, it'd be parsed incorrectly since it's not part of the Enum/Constant outlined above - as such I believe adding this to the Swagger (and thus the Go SDK) would be the best place to start here. Hope that helps :) Thanks! |
@neilbailie we were having the same issue with Bing.Search.v7 and the same error about location. Upon reverse engineering the ARM Templates we actually found for location we needed to specify "global" and not "eastus2" as it's considered a global service from MS. It applied in TF and appeared in the portal so maybe worth a go? |
@mb290 changing to "global" doesn't help. Opening a cognitive service in the portal clearly lists "West Europe", not "Global". I'm not sure how you found that MS considers it a global service but it's definitely not reflected in the UI.
Other suggestions for workarounds? |
I requested Microsoft make the changes suggested by you and I believe the Swagger and Go SDK (version 24.0.0) have now been updated to use a string instead of a enum for the kind and SKU. |
Thank you for the update, I can confirm that We will still need to find a list of all possible values (probably from the portal) so we can continue doing validation on plan. |
Now works as expected under the v24 SDK. |
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. |
Community Note
Terraform (and AzureRM Provider) Version
Terraform v0.11.8
Affected Resource(s)
I think Microsoft has combined a number of Speech services under a new Kind which can't be consumed in Terraform as the function to validate Kind doesn't include the new type.
At the same time if I try to consume one of the older Kind services Azure complains that the service isn't available.
I can consume a Kind of LUIS without issue as this is still available in Azure.
Terraform Configuration Files
Or
Debug Output
Panic Output
Expected Behavior
SpeechServices API service created
Actual Behavior
h Bing.Search Bing.Search.v7 Bing.Speech Bing.SpellCheck Bing.SpellCheck.v7 ComputerVision ContentModerator CustomSpeech Emotion Face LUIS Recommendations SpeakerRecognition Speech SpeechTranslation TextAnalytics TextTranslation WebLM], got SpeechServices
OR
eservices.AccountsClient#Create: Failure responding to request: StatusCode=400 -- Original Error: autorest/azure: Service returned an error. Status=400 Code="InvalidApiSetId" Message="The ac
count type 'Bing.Speech' is either invalid or unavailable in given region."
Steps to Reproduce
terraform apply
Important Factoids
References
The text was updated successfully, but these errors were encountered: