本文介绍了使用VSTS Powershell任务的Azure U-SQL连续部署的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为我的Azure Data Lake Analytics-USQL代码构建CI/CD,并在使用VSTS Power Shell任务部署发布时遇到以下错误.

I'm building CI/CD for my Azure Data lake Analytics - USQL code and facing below error while deploying my release using VSTS Power Shell task.

来自'example-app1'的访问被拒绝.请向用户授予Azure门户上的必要角色.跟踪:03e7229d-e7ca-43d5-a7be-6e0a3a3b9317"

"Access from 'example-app1' is denied. Please grant the user with necessary roles on Azure portal. Trace: 03e7229d-e7ca-43d5-a7be-6e0a3a3b9317"

我已通过以下链接创建了Azure AAD- https://docs.microsoft.com/zh-cn/azure/azure-resource-manager/resource-group-create-service-principal-portal 并创建了一个服务End观点.我还通过Azure Data Lake Analytics存储路径访问了此AAD(example-app1).下面是我的ADLA-USQL代码-

I have created Azure AAD following this link - https://docs.microsoft.com/en-us/azure/azure-resource-manager/resource-group-create-service-principal-portal and created a service End point. I also gave access to this AAD (example-app1) in my Azure Data lake analytics store path. Below is my ADLA - USQL code -

@searchlog =
EXTRACT UserId          int,
        Start           DateTime,
        Region          string,
        Query           string,
        Duration        int?,
        Urls            string,
        ClickedUrls     string
FROM "adl://adlacicd.azuredatalakestore.net/Samples/data/SearchLog.tsv"
USING Extractors.Tsv();

OUTPUT @searchlog
TO "adl://adlacicd.azuredatalakestore.net/Samples/data/output/SearchLog-first-u-sql.csv"
USING Outputters.Csv();

解决这个问题的任何帮助都是很好的.

any help in resolving this issue would be great.

推荐答案

改为使用相对路径:/Samples/data/SearchLog.tsv.

这篇关于使用VSTS Powershell任务的Azure U-SQL连续部署的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-19 20:43