Teamcity installed on VM created in Azure
Hi
I had created a VM in Azure and instaled Teamcity on this VM. Now i want to deploy my apps thro Teamcity and powershell scripts.
When I run my scripts directly on powershell on VM then they execute with no issues and my app gets deloyed, but the same if i try with the build steps (powershell) then it says
Set-AzureService : ForbiddenError: The server failed to authenticate the
request. Verify that the certificate is valid and is associated with this
subscription.
Is this some kind of certificate issue ? if so what has to be done ?
Does Teamcity requires some kinda certificate to execute the scripts and powershell cmdlets ?
Teamcity and the VM user which i use to access it, both have same set of permission.
What do i need to check and get this up working?
Can any body pls guide me thro' ?
Please sign in to leave a comment.
I finally got the sloution
The error message that I got is
Set-AzureService : ForbiddenError: The server failed to authenticate the request. Verify that the certificate is valid and is associated with this subscription.It’s a bit misleading because as you can see in the code below (esp: last line), I did set the current storage but why did I get this message?
The script was working fine when run in VM Powershell but failed when run with Teamcity.
To resolve this I followed the following Steps :
Hope this helps some one :)