Articles of Azure

无法scp到Azure的虚拟机

我试图从我的机器上复制一些文件到Azure虚拟机。 我事先说过,我可以ssh Azure的虚拟机,我在创build机器的时候给了我的公钥。 这两台机器都是Linux。 当我尝试: sudo scp /path/ca.crt ubuntu@ip.add.res.s:~/ 我收到输出: Permission denied (publickey). lost connection 我没有指向一个根目录(我的文件是在根目录,这就是为什么sudo); 我不是指向一个错误的用户; 如果我可以通过ssh连接为什么scp应该被拒绝?

从仪表板更改Ubuntu Azure虚拟机上的ssh密钥

我有一个运行在azure色的Ubuntu虚拟机。 我需要SSH连接到它,但我已经失去了我的私人密钥,因为我的home分区已经走了。 于是,我在本地机器上重新安装了操作系统,并重新生成了一对私钥/公钥 – 我已经在使用github,bitbucket,ecc。 有没有办法在Azure门户上的Ubuntu VM上设置我的新公钥?

SonarQube不延长超时

尝试在TFS Online上使用SonarQube时出现错误。 它在处理过程中超时。 我更改了sonar.properties文件并重新启动了服务。 但是我仍然得到一个错误,说它超时,因为它没有在300秒内完成。 我甚至试图扩大服务器,给它更多的权力。 我目前在Azure的D2_V2下。 sonar.properties sonar.jdbc.maxWait=900000 错误 2017-03-11T20:12:34.4141248Z Waiting on the SonarQube server to finish processing in order to determine the quality gate status. 2017-03-11T20:12:34.4141248Z 2017-03-11T20:12:34.4141248Z 2017-03-11T20:17:34.7999965Z ##[error]System.Management.Automation.RuntimeException: The analysis did not complete in the allotted time of 300 seconds. Consider setting the build variable SonarQubeAnalysisTimeoutInSeconds to a higher value. — System.Management.Automation.RuntimeException: […]

在Azure Web应用程序中持续重复Docker重新启动的内容

我试图在Linux Docker容器中的Azure上运行ghost docker镜像。 使用Linux上的Azure Web App自定义Docker镜像,并将其指向正式Docker镜像的ghost,非常容易。 不幸的是, 官方的docker镜像存储了/ var / lib / ghostpath上的所有数据,这些数据在重新启动时没有被持久化,所以无论何时容器重启,我所有的内容都被删除了,我最终回到默认的ghost安装。 Azure不会让我执行任意命令,你基本上将它指向一个泊坞窗图像,并从那里启动,所以我不能使用-v命令行参数映射一个卷。 泊坞窗图像确实有一个入口点configuration,如果这将有所帮助。 任何build议将是伟大的。 谢谢!

Ubuntu上的Azure用户定义的端点不起作用

我在使用Ubuntu的Azure Endpoint时遇到了问题。 症状 联机端口扫描程序报告说端口1194被closures,即使端点被定义为在该虚拟机的Azure Web Interface上打开 设置: UFW,又名Ubuntu防火墙不活动。 在Ubuntu中没有定义IP表 在Azure Webpipe理界面上,端点称为VPN,端口TCP 443和UDP 1194被设置为打开,双向允许直接返回。 公共和私人港口都是1194,都是443 lfor和ubuntu上的netstat报告说一个服务在1194上监听,得到NC听443 诊断 从Ubuntu,我可以看到互联网。 Ping Google,获取更新工作正常。 我可以使用默认端口22远程login到本机,默认端口22是由Azure Ubuntu Image定义的默认开放端点 每当设置改变时重新启动Ubuntu。 尝试删除并重新创build端点规则,失败 尝试closures虚拟机,删除并重新创build端点规则失败 我可以通过443从Ubuntu Telnet到我的本地主机。 故障排除步骤已定义 在我的本地计算机上,无法通过443远程login到Ubuntu服务器。22,由于协议不匹配而终止,但这当然没有问题。 在线端口扫描仪都报告说1194已closures,443也是如此 一些帮助,将不胜感激。

Azure Linux VM的SSH超时

调整我的VM后,我无法SSH到我的Linux Azure虚拟机(Ubuntu 14.10)。 我已经试过 – Resizing the VM Resetting the password using new azure portal Basically all the steps that are mentioned here : https://azure.microsoft.com/en-in/documentation/articles/virtual-machines-troubleshoot-ssh-connections/ 仍然我正在“ssh:连接到主机bookmarks.cloudapp.net端口22:连接超时”

Linux的Azure自定义脚本扩展

我尝试使用以下命令在Windows Azure上configuration和configurationLinux VM: $PublicConfiguration = '{"fileUris":["http://path/deployment/ubuntu-elasticsearch-installation.sh"], "commandToExecute": "sh ./ubuntu-elasticsearch-installation.sh -n Node1 -n Node2 -c cluster"}' 当我在任何Linux VM上以相同的格式执行脚本时,该脚本就可以工作。 但是当我这样做时,只有-c参数在configuration期间被传递给脚本。 另一方面,当我这样做只是为了testing(脚本获取参数并安装它们): $PublicConfiguration ='{"fileUris":["http://path/deployment/test.sh"], "commandToExecute": "sh test.sh apache2 unzip"}' 它安装两个。 然后我做了以下两个: $ExtensionName = 'CustomScriptForLinux' $Publisher = 'Microsoft.OSTCExtensions' $Version = '1.2' $vm = Set-AzureVMExtension -ExtensionName $ExtensionName -VM $vm -Publisher $Publisher -Version $Version -PublicConfiguration $PublicConfiguration New-AzureVM -ServiceName $servicename -Location $location […]

将域名映射到Azure Linux VM App

我遵循将我的域名映射到Azure Linux服务器应用程序所需的典型步骤。 我从本地服务提供商处购买域名,现在我的问题是将该域名映射到我的云应用。 我遵循以下链接上的步骤,但仍然没有结果。 http://www.windowsazure.com/en-us/develop/net/common-tasks/custom-dns/#access-app 我得到了我的DNS的名称服务器,并将其应用到域的详细信息,仍然没有结果。 * 我的应用程序正处于testing阶段,并未转移到临时或生产环境。 *这是由什么机会的问题? 我是否错过任何步骤,如添加一个终点或创build一个DNS服务器列表? 等等? 请帮助,因为我现在挣扎了5天以上。 在此先感谢赛克里希纳

C#Azure MediaServices上传文件会引发错误

我正在使用MVC4testing项目来尝试将文件上载到Azure媒体服务。 我可以创build我的CloudMediaContext罚款。 我也可以创build一个IAsset,并在其中创build一个IAssetFile。 但是,当我尝试上传一个新的文件,我得到以下exception: Server Error in '/' Application. Could not load file or assembly 'Microsoft.WindowsAzure.Storage, Version=3.0.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) 我不确定这个错误是否在MVC4中,不能从自己的directoy上传文件? 根据错误,我有一些缺less的引用或程序集,但我唯一添加的是Azure.MediaServices,它安装了Azure MediaServices .NET SDK的NuGet包… 这是上传的HomeController代码: [HttpPost] public ActionResult Upload(HttpPostedFileBase file) { string localStorage = Server.MapPath("~/UploadedMedia"); […]

HDInsight错误

我正在按照下面显示的链接中的步骤使用HDInsight的Hadoop 2.2集群。 http://azure.microsoft.com/en-us/documentation/articles/hdinsight-get-started-30/ 在“运行字数映射减less作业”部分,我很难得到步骤4的消息。在PowerShell中我input以下命令: 提交工作 Select-AzureSubscription $ subscriptionName $ wordCountJob = Start-AzureHDInsightJob -Cluster $ clusterName -JobDefinition $ wordCountJobDefinition 我不断收到一个错误,指出有一个ParameterArgumentValidationError。 我可以使用什么命令来避免这些错误? 我是使用Azure的新手,真的可以使用一些帮助:)