This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.IO; | |
using System.IO.Compression; | |
using System.Formats.Tar; | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
string sourceTarGzFilePath = @"C:\_Temp\test.tar.gz"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.IO; | |
using System.Threading.Tasks; | |
using Microsoft.Azure.Storage; | |
using Microsoft.Azure.Storage.Blob; | |
using Microsoft.Azure.WebJobs; | |
using Microsoft.Extensions.Logging; | |
using System.Diagnostics; | |
using System.IO.Compression; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$tfsUrl = "http://your-tfs-server:8080/tfs" # Replace with your TFS server URL | |
$collection = "DefaultCollection" # Replace with your TFS collection name | |
$accessToken = "Basic " + [Convert]::ToBase64String([Text.Encoding]::ASCII.GetBytes(":your-personal-access-token")) #Replace with your Personal Access Token (NB : the colon is required at the beginning of the token before the pat itself) | |
$Headers = @{ | |
"Authorization" = $accessToken | |
"Content-Type" = "application/json" | |
} | |
# Get all projects |