[错误] xxxx的远程会话查询失败,并显示以下错误消息:访问被拒绝

时间:2019-02-26 16:45:14

标签: asp.net-mvc azure continuous-integration azure-devops

重点是在Azure VM上从Git存储库发布Asp.Net MVC项目,最后一个阶段是使用“ AzureVMs文件复制”给出拒绝访问错误,我们将不胜感激。完整日志:

##[section]Starting: AzureVMs File Copy
==============================================================================
Task         : Azure File Copy
Description  : Copy files to Azure blob or VM(s)
Version      : 2.1.3
Author       : Microsoft Corporation
Help         : [More Information](https://aka.ms/azurefilecopyreadme)
==============================================================================
Added TLS 1.2 in session.
##[command]Import-Module -Name C:\Program Files\WindowsPowerShell\Modules\AzureRM\6.13.1\AzureRM.psd1 -Global
##[command]Clear-AzureRmContext -Scope Process
##[command]Disable-AzureRmContextAutosave -ErrorAction SilentlyContinue
##[command]Add-AzureRMAccount -ServicePrincipal -Tenant *** -Credential System.Management.Automation.PSCredential -Environment AzureCloud @processScope
##[command] Select-AzureRMSubscription -SubscriptionId 8e77a353-e621-493f-9a9c-6c9883947306 -TenantId ***
Uploading files from source path: 'C:\azagent\A1\_work\r2\a\_MvcProject1\drop' to storage account: '***********' in container: 'e08d49e8-3bf2-42af-817f-eb5fd1c52ca2' with blob prefix: ''
##[command] & "AzCopy\AzCopy.exe" /Source:"C:\azagent\A1\_work\r2\a\_MvcProject1\drop" /Dest:"https://accomodationconfigurator.blob.core.windows.net/e08d49e8-3bf2-42af-817f-eb5fd1c52ca2" /@:"C:\azagent\A1\_work\_temp\pdox2pwq5iw69hbm7yix80k9" /XO /Y /SetContentType /Z:"AzCopy" /V:"AzCopy\AzCopyVerbose_e43e9076-6165-42b9-a3a1-af757aafb112.log" /S
[2019/02/25 18:24:43] Transfer summary:
-----------------
Total files transferred: 5
Transfer successfully:   5
Transfer skipped:        0
Transfer failed:         0
Elapsed time:            00.00:00:02
Uploaded files successfully from source path: 'C:\azagent\A1\_work\r2\a\_MvcProject1\drop' to storage account: '*************' in container: 'e08d49e8-3bf2-42af-817f-eb5fd1c52ca2' with blob prefix: ''
[Azure Call]Getting the custom script extension 'WinRMCustomScriptExtension' for vm '**********'
[Azure Call]Got the custom script extension 'WinRMCustomScriptExtension' for vm '**************'
[Azure Call]Getting the status for vm 'Transformer'
[Azure Call]Got the status for vm 'Transformer'
##[command]Disconnect-AzureRmAccount -Scope Process
##[command]Clear-AzureRmContext -Scope Process
##[error]The remote session query failed for **********.cloudapp.azure.com with the following error message: Access is denied. 
##[section]Finishing: AzureVMs File Copy

enter image description here

0 个答案:

没有答案
相关问题