在VSTS模板中使用SAS令牌 [英] Using SAS Token in VSTS Template

查看:98
本文介绍了在VSTS模板中使用SAS令牌的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试为Data Lake Gen 2构建CI / CD管道,但我遇到了一些问题。我尝试了很多选项,但似乎都没有。基本上,我试图使用链接模板从模板创建数据湖,然后尝试使用PowerShell脚本创建
a文件系统。

I am trying to build a CI/CD pipeline for Data Lake Gen 2 and I have run into a bit of a problem. I have tried many options but none seem to work. Basically, I am trying to create the data lake from a template using a link template and then trying to create a FileSystem using a PowerShell script.

现在,Data Lake被创建了这一切都很好。问题出在PowerShell脚本中,我试图通过使用REST API创建文件系统并传递在发布管道中的早期步骤中生成的SAS令牌。

Now, the Data Lake gets created which is all fine. The problem is in the PowerShell script where I am trying to create a FileSystem by using the REST API and passing the SAS token, generated in earlier steps in the Release pipeline.

我可以运行本地PowerShell脚本没有错误,但它在VSTS PowerShell脚本任务中不起作用。问题是传递和解析SAS令牌的值

I can run the PowerShell script locally without errors but it just does not work in the VSTS PowerShell script task. The problem is passing and parsing the value of the SAS token

因此,我的PowerShell脚本看起来像(我已尝试过多个版本):

So, my PowerShell Script looks like (and I have tried multiple versions of this):


param

推荐答案

Hi SaugatMukherjee,

Hi SaugatMukherjee,

我正在与产品团队合作,并在收到更多信息后再回复您。

I’m working with the product team and get back to you when I have more information.


这篇关于在VSTS模板中使用SAS令牌的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆