-
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
Added Speech Services Kind #2583
Conversation
When trying to provision a resource of `Speech` kind, there are errors. To correct for this, I added kind `SpeechServices` which should be compatible with the kind being used by Azure currently for that resource.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @lqdev,
Thank you for this addition. Looking at the resource & SDK its clear it needs to be updated to use the SDK enum values as I don't see Speech
, but then I also don't see SpeechServices
. Is this a new addition to the service? because the possible values the SDK recognizes are:
// BingSpeech ...
BingSpeech Kind = "Bing.Speech"
// CustomSpeech ...
CustomSpeech Kind = "CustomSpeech"
// SpeakerRecognition ...
SpeakerRecognition Kind = "SpeakerRecognition"
// SpeechTranslation ...
SpeechTranslation Kind = "SpeechTranslation"
The documentation will require updating with any new values.
Hi, I've hit this problem before and raised an issue see -> #2294 which covers the origin of the missing kind. Neil |
Thanks @katbyte and @neilbailie for providing more clarification. At the time of this addition I looked at the output form Azure CLI for the kind of service I wanted to deploy. I was under the impression that this issue was only on the terraform end but was not aware it also extended to the Azure API. I'll sit tight and wait for the changes to be implemented 😃 |
We have updated the SDK so this should be unblocked now 🙂 |
Thanks! @katbyte |
``` $ acctests azurerm TestAccAzureRMCognitiveAccount_speechServices === RUN TestAccAzureRMCognitiveAccount_speechServices === PAUSE TestAccAzureRMCognitiveAccount_speechServices === CONT TestAccAzureRMCognitiveAccount_speechServices --- PASS: TestAccAzureRMCognitiveAccount_speechServices (83.54s) PASS ok github.com/terraform-providers/terraform-provider-azurerm/azurerm 84.821s ```
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM - thanks for this @lqdev! I hope you don't mind but I've pushed a commit adding a test and docs for this new value
dismissing since changes have been pushed
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 👉 hashibot-feedback@hashicorp.com. Thanks! |
When trying to provision a resource of
Speech
kind, there are errors. To correct for this, I added kindSpeechServices
which should be compatible with the kind being used by Azure currently for that resource.