Sign in
Log inSign up
Ondrej Sebela

1 like

·

915 reads

6 comments

Ľuboš Nikolíni
Ľuboš Nikolíni
Jan 24, 2024

Hello Ondrej, when trying your New-AzureAutomationModule example, I am getting the following error:

New-PSGetItemInfo : Cannot convert value "2.0.0-rc3" to type "System.Version". Error: "Input string was not in a correct format."

·
·3 replies
Ondrej Sebela
Ondrej Sebela
Author
·Jan 25, 2024

should be fixed in new 1.0.1 module version

·
Ľuboš Nikolíni
Ľuboš Nikolíni
Jan 25, 2024

Ondrej Sebela Ahoj Ondreji, I have just tried after updating to 1.0.1 and updating PowerShellGet module locally and it works nicely! Dekuji!

·
Ondrej Sebela
Ondrej Sebela
Author
·Jan 25, 2024

Ľuboš Nikolíni Super, diky :)

·
Ľuboš Nikolíni
Ľuboš Nikolíni
Jan 25, 2024

Ahoj Ondreji, I noticed the error message when using "-RuntimeVersion 7.1" parameter as you mentioned in the article (personally I do not need v7.1, but reporting in case you would like to have a look at it).

"New-AzAutomationModule : Cannot validate argument on parameter 'RuntimeVersion'. The argument "7.1" does not belong to the set "5.1,7.2" specified by the ValidateSet attribute. Supply an argument that is in the set and then try the command again."

·
·1 reply
Ondrej Sebela
Ondrej Sebela
Author
·Jan 25, 2024

Thats a funny thing. GUI shows it, but official commands (like Get-AzAutomationModule) don't support it :) So I will remove it too. Thanks for pointing this out

·