简体   繁体   English

是否还有其他人对 Azure Batch 成功完成 .NET 中试用订阅的示例任务有疑问?

[英]Does anyone else have issues with Azure Batch successfully completing sample tasks on a trial subscription in .NET?

I've been trying to get the Azure batch sample code to run on my machine for some time now, specifically the Hello World example.我一直试图让Azure 批处理示例代码在我的机器上运行一段时间,特别是Hello World示例。 When the code is ran, it successfully creates the pools, jobs, and tasks on my Batch account.运行代码时,它会在我的 Batch 帐户上成功创建池、作业和任务。 However, the tasks never complete, and remain stuck in the "Active" state.但是,这些任务永远不会完成,并且仍然停留在“活动”state 中。 The terminal times out after 10 minutes of waiting, and end the program.终端等待10分钟后超时,结束程序。

I've looked into this a fair amount, and I'm almost positive this has to do with the Virtual Machine sizes.我对此进行了相当多的研究,我几乎可以肯定这与虚拟机大小有关。 When looking at the pools on my account after I try running the code, they almost immediately throw an error saying that I've reached my core quota limit.在我尝试运行代码后查看我帐户上的池时,他们几乎立即抛出一个错误,说我已达到我的核心配额限制。 The VMs that the Hello World example starts you out with are listed in the settings.json file as the "standard_d1_v2" size. Hello World 示例开始使用的 VM 列在settings.json 文件中,大小为“standard_d1_v2”。 However, after looking into the resources available for my trial subscription, that VM size isn't listed as one of the three types I have access to.但是,在查看了可用于我的试用订阅的资源后,该 VM 大小并未列为我可以访问的三种类型之一。

I've tried changing the reference in the settings.json file, but whenever I do that, the program deletes the job before it can fully run and gives the following errors.我尝试更改 settings.json 文件中的引用,但是每当我这样做时,程序会在它完全运行之前删除该作业并给出以下错误。

Is there something I'm missing here?我在这里缺少什么吗? I've watched/followed multiple tutorials on these examples, and none of them mention having to reconfigure their VM sizes.我已经观看/关注了有关这些示例的多个教程,但没有一个提到必须重新配置其 VM 大小。 I've looked all over the place and can't seem to find anyone else that has had a similar issue.我找遍了整个地方,似乎找不到其他有类似问题的人。 The only thing close to a resolution I've found people suggesting is to put in a request to increase your core quota, which I am unable to do with a trial subscription.我发现人们建议的唯一接近解决方案的方法是提出增加核心配额的请求,而我无法通过试用订阅来做到这一点。

I did, however, find out that the Hello World example was using the CloudServiceConfiguration class to build the pools, which I learned is deprecated and no longer supported.但是,我确实发现 Hello World 示例使用 CloudServiceConfiguration class 来构建池,我了解到它已被弃用且不再受支持。 I'm currently working on replacing all instances of the CloudServiceConfiguration with its replacement, the VirtualMachineConfiguration class.我目前正在使用其替代品 VirtualMachineConfiguration class 替换 CloudServiceConfiguration 的所有实例。

Any help or feedback/perspective would be greatly appreciated!任何帮助或反馈/观点将不胜感激!

Please use the Azure Portal or Batch Explorer to view details of each of the objects created by the sample to understand what could have gone wrong.请使用Azure 门户Batch Explorer查看示例创建的每个对象的详细信息,以了解可能出现的问题。

If your account is reaching core quota limits, then that is exactly the problem.如果您的帐户达到核心配额限制,那么这正是问题所在。 You will need to understand core quotas in Batch and how they work if in Batch managed mode vs. User subscription.您将需要了解 Batch 中的核心配额,以及在 Batch 托管模式与用户订阅中它们的工作方式。 Looking at your Batch account in the Azure Portal will tell you not only the mode but core quotas if in Batch managed mode.在 Azure 门户中查看您的 Batch 帐户不仅会告诉您模式,而且如果处于 Batch 托管模式,您会知道核心配额。 You will need to modify the sample to use a VM family that you have core quota.您需要修改示例以使用具有核心配额的 VM 系列。

Completely clean up your Batch account of pools and jobs before rerunning the sample.在重新运行示例之前,彻底清理池和作业的 Batch 帐户。

If it's something that you believe is an error with the sample code, please raise an issue in the respective GitHub repo.如果您认为示例代码有错误,请在相应的 GitHub 存储库中提出问题

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 是否有人使用SubSonic链接到简单的示例网站? - Does anyone have links to a simple sample web site using SubSonic? 有没有人在.NET中成功模拟过Socket类? - Has anyone successfully mocked the Socket class in .NET? 有人有适用于 C# 示例应用程序和教程的 Avaya Telephony Services API (TSAPI) 吗? - Does anyone have an Avaya Telephony Services API (TSAPI) for C# sample application and tutorial? 是否有人拥有.Net Excel IO组件基准测试? - Does anyone have .Net Excel IO component benchmarks? 发布到其他人的Azure订阅? - Publish to someone else's Azure subscription? foreach还有其他吗? - Does foreach have else? 如何在.NET Core中执行多个任务,并检查哪个成功完成 - How to execute multiple tasks in .NET Core, and check which finished successfully 任何人都有WP8中Webclient上传的示例示例? - Anyone have example sample for Webclient upload in WP8? 有没有人有一个.NET程序的好例子,它保持驻留内存并在计时器上运行一个动作? - Does anyone have any good examples of a .NET program that stays memory resident and runs an action on a timer? 有没有人对[Authorize]属性如何处理标准ASP.NET MVC 5应用程序中的路由有一个很好的解释? - Does anyone have a good explanation on how the [Authorize] Attribute handles routes in a standard ASP.NET MVC 5 application?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM