nI was trying to configure the TFS build for continuous deployment on Azure Cloud Services by following the steps mentioned in the documentation http://www.windowsazure.com/en-us/develop/net/common-tasks/continuous-delivery/
n
nAfter configuring everything, when I queued my build – I got this error message – The specified module Azure was not loaded because no valid module file was found in any module directory
n
nAs soon as I looked this error I knew that this was coming from the PowerShell file named as – PublishCloudService.ps1 which you can get from the link mentioned above.
nAfter quick search – I got a link which actually resolved the issue.
n
nWhat was the issue?
n
nThe build was trying to launch the process on build server – PowerShell.exe but somehow system was not able to find the AzurePowerShell module path.
n
nSolution:
n
nOpen your PowerShell Script file and find the command Import-Module Azure and add the following line just above it
n$env:PSModulePath=$env:PSModulePath+“;”+“C:\Program Files (x86)\Microsoft SDKs\Windows Azure\PowerShell”
n
nAfter this modification , save the file and try to queue the build again.
n
nI hope this helps someone.
n
n
n
nAfter configuring everything, when I queued my build – I got this error message – The specified module Azure was not loaded because no valid module file was found in any module directory
n
nAs soon as I looked this error I knew that this was coming from the PowerShell file named as – PublishCloudService.ps1 which you can get from the link mentioned above.
nAfter quick search – I got a link which actually resolved the issue.
n
nWhat was the issue?
n
nThe build was trying to launch the process on build server – PowerShell.exe but somehow system was not able to find the AzurePowerShell module path.
n
nSolution:
n
nOpen your PowerShell Script file and find the command Import-Module Azure and add the following line just above it
n$env:PSModulePath=$env:PSModulePath+“;”+“C:\Program Files (x86)\Microsoft SDKs\Windows Azure\PowerShell”
n
nAfter this modification , save the file and try to queue the build again.
n
nI hope this helps someone.
n
n