[ошибка] Ошибка удаленного сеанса для xxxx со следующим сообщением об ошибке: Доступ запрещен - PullRequest
0 голосов
/ 26 февраля 2019

Весь смысл в том, чтобы опубликовать проект Asp.Net MVC из Git repo на виртуальной машине Azure. Последний этап, который должен использовать «Копирование файла 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

...