Uploading artifacts to Azure Storage via TeamCity Server
Hi there,
I'm trying to set up TC with the Server running in Azure and the agents running locally (outside of Azure). I'm using the official Azure Storage plugin (v0.7.1) to store the artifacts in an Azure Storage account which the Server has access to (via a private endpoint), but which the Agents don't have access to (since they're not within Azure).
I'd assumed that artifacts were passed to the server and then published to Azure from there, but it seems like the agents are trying to connect to the Azure Storage themselves. (I've tested this by creating a temporary agent on the same VM as the server, and that is able to upload the artifacts). The error from the local agents is “Failed to publish artifacts: Invalid Account Key”.
Am I right in assuming that the agents are trying to connect to the storage directly? Is there an option to change that? There's nothing I can see in the Azure Storage setup in the project's Artifacts Storage tab.
Thanks,
Rob.
Please sign in to leave a comment.
The TeamCity server only provides the URL for the agent to upload to. So, yes, the agent uploads artifacts directly to the cloud storage. There are no settings to change that.
By the way, the new set of Azure plugins is planned to be released soon: https://youtrack.jetbrains.com/issue/TW-80455/New-Azure-Artifact-Storage-plugin-phase-1
It shouldn't change the core logic regarding artifact upload (i.e., the artifacts are uploaded directly from the agent), but it will use the latest Azure API and may give more flexibility in settings/authentication.
Best regards,
Anton
Sounds great - thanks! Any update on timing for that?
Not as of now. I'd say, Autumn, to be on the safe side.
Best regards,
Anton
Not as of now. I'd say, Autumn, to be on the safe side.
Best regards,
Anton