-
Notifications
You must be signed in to change notification settings - Fork 64
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
VM extension - The value of parameter typeHandlerVersion is invalid #125
Comments
I solved the above by using |
Thank you for sharing!!! Bumped into the same error because of version number as well. |
This is still an issue. |
Very interesting behaviour indeed. Bumped into this issue too. Instead of the below: publisher = "Microsoft.Azure.Diagnostics"
type = "IaaSDiagnostics"
type_handler_version = "1.20.0.1" I have to specify it as below: publisher = "Microsoft.Azure.Diagnostics"
type = "IaaSDiagnostics"
type_handler_version = "1.20" |
Also experiencing this issue right now, setting to 1.9 doesnt fix it for me, i've tried several versions but my CSE still fails on Windows |
For anyone still experiencing this issue, we encountered it today. HashiCorp documentation on this provider is wrong and misleading. See here https://learn.microsoft.com/en-us/azure/virtual-machines/extensions/custom-script-windows Look under the Admin Portal for the CustomScriptExtension version you are running. In my case, it is exactly like that link .. 1.10.x For some reason it only wants the two digit version. Additionally you need to fill out the virtual_machine_extension information as if you had sent via ARM: “publisher": "Microsoft.Compute", if you notice, that maps one for one with the terraform provider. If I ever figure out the PS cmdlet to query the Marketplace Management to find this information then I may post it. Point though it can be found in the GUI and you just need the correct publisher name, type and version. Once I did that, the problem went away and I was able to run my script. This part here needs a warning or note to match the publisher and typeVersion for your Azure Stack: resource "azurestack_virtual_machine_extension" "test" { settings = <<SETTINGS tags = { This issue can be closed when HashiCorp terraform azurestack provider documentation is updated so not to confuse people. I believe the azurestack documentation person may have copied the information from azurerm. That likely works in azurerm but definitely the publisher is not right for azurestack. |
I encountered the same issue:
had to change to
before it worked |
Still an issue for myself, ended up having to right a function to |
Hello, I cannot get the azurestack_virtual_machine_extension working on a Windows VM.
The az vm extension image list --location someplace -o table command shows
Name Publisher Version
CustomScriptExtension Microsoft.Compute 1.9.3
CustomScript Microsoft.Azure.Extensions 2.0.6
CustomScriptForLinux Microsoft.OSTCExtensions 1.5.5
I used
publisher = "Microsoft.Compute"
type = "CustomScriptExtension"
type_handler_version = "1.9.3"
but keep getting the error:
Error: compute.VirtualMachineExtensionsClient#CreateOrUpdate: Failure sending request: StatusCode=400 -- Original Error: Code="InvalidParameter" Message="The value of parameter typeHandlerVersion is invalid." Target="typeHandlerVersion"
Can somebody please advise?
Thanks.
The text was updated successfully, but these errors were encountered: