Hello,
In one of my project, I’m trying to perform a read operation on an iothub using the command in an azure powershell script :
Get-AzureRmIotHubConnectionString
And i get an error because it seems that the iothub module is not available.
In fact, when I check in \Calamari\Azure\3.7.3\PowerShell\ResourceManager\AzureResourceManager, there is moost of Azure powershell modules except AzureRM.IotHub.
I updated Octopus with last version, and updated my tentacles, but still nothing.
Is there a way to manually add this module ? when will it be available by default in Calamari ?
Thanks in advance for your advice on this,
Michael
Hi Michael,
Thanks for getting in touch! Octopus has a version of Azure modules bundled with it, and uses that version by default, which unfortunately does not include IotHub. We’re currently discussing upgrading the bundled version to include modules like this. Especially with Service Fabric support coming, it seems like a good idea to at least bundle this update in with that Release.
However, you can configure Octopus to use a different version of Azure PowerShell modules, by installing the module to your Octopus Server, and creating the following variable in your Project.
Octopus.Action.Azure.UseBundledAzurePowerShellModules
with a value of False
.
Sorry it’s not better news! Please let me know if you have any further questions at all.
Best regards,
Kenny
Hello Kenny,
Thank you for your update on this.
Indeed if i use Octopus.Action.Azure.UseBundledAzurePowerShellModules
with a value of False
, it is working with the Azure powershell modules installed on the server.
But I think it is a bit dirty, and i wanted to know if there was a way to manually updates the modules bundled with Octopus ?
Because in fact, all modules bundled are really outdated, for exemple AzureRM.Resources is in version 2.0.2 (released Tuesday, July 12 2016) where current available version is 3.5.0 !
Hi Michael,
That’s no problem! Using that override option is currently the only way to use a custom module version. We have bundled the modules that we have tested and know work. When we release Service Fabric support, we will likely include an updated module version bundled with it. Though we can’t offer an ETA for this release quite yet.
Let me know if you have any other questions at all!
Kenny