Coder Social home page Coder Social logo

batch-dotnet-quickstart's Introduction

page_type languages products description urlFragment
sample
csharp
azure
A basic .NET application that introduces Batch features such as pools, nodes, jobs, tasks, and interaction with Storage. Each task writes a small text file to standard output.
batch-dotnet-quickstart

Azure Batch .NET Quickstart

A basic .NET application that introduces Batch features such as pools, nodes, jobs, tasks, and interaction with Storage. Each task writes a small text file to standard output.

For details and explanation, see the accompanying article Quickstart: Use .NET to create a pool and run a job.

Prerequisites

  • Azure Batch account and linked general-purpose Azure Storage account
  • Visual Studio 2019 or higher, or .NET 6.0 or higher for Linux or Windows

Resources

Project code of conduct

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.

batch-dotnet-quickstart's People

Contributors

dlepow avatar laurenhughes avatar mhopkins-msft avatar microsoftopensource avatar msftgits avatar v-thepet avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

batch-dotnet-quickstart's Issues

Project is not compatible with OSX

Please provide us with the following information:

This issue is for a: (mark with an x)

- [X] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

Run dotnet run on a Mac

Any log messages given by the failure

โœ— dotnet run
It was not possible to find any compatible framework version
The framework 'Microsoft.NETCore.App', version '2.1.0' was not found.
  - The following frameworks were found:
      3.1.6 at [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
      5.0.0 at [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]

You can resolve the problem by installing the specified framework and/or SDK.

The specified framework can be found at:
  - https://aka.ms/dotnet-core-applaunch?framework=Microsoft.NETCore.App&framework_version=2.1.0&arch=x64&rid=osx.10.15-x64                                               

However, .NET core 2.1 Runtime is not available on OSX

Expected/desired behavior

OS and Version?

OSX 10.15.7

Versions

Mention any other details that might be useful


Thanks! We'll be in touch soon.

This sample is completely useless

It does not show how to actually write code that runs on the remote batch servers - which is the whole / only point of batch! For a sample to be useful I need:

  • To see how does my C# code get onto the batch nodes
  • How do I invoke it
  • How do I coordinate between the nodes
  • How do I fuse the output back together

This sample is a toy and has no value. Please replace it with something actually useful.

times out with a AccountCoreQuotaReached with a new azure acct visual studio subscription

I created activated my Azure subscription that came bundled with My.Visualstudio.com.

I followed the steps exactly.

When I ran it, it timed out after 30 minutes.

On the server it says AccountCoreQuotaReached .

When I look at the quotas for the batch account, I see 0 Total dedicated vCPUs.

I'm new to Azure Batch, and am unclear if I really need to "Request quota increase".

It seems like this "quick start" should check to see if the account quota is reached and fail gracefully with a meaningful exception, instead of a cryptic timeout message after 30 minutes. 30 minutes is not quick!

Example cannot handle space character in path

Please provide us with the following information:

This issue is for a: (mark with an x)

- [X] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

Download repository as ZIP file into a folder on your local PC which has space character(s) in its path name. Open .sln in Visual Studio, modify Program.cs as explained in tutorial, and run.

Any log messages given by the failure

stderr.txt contains failure message about specified path cannot be found.

Expected/desired behavior

path is escaped when creating the Azure task Command Line so it works with spaces.

OS and Version?

Windows 10 and Visual Studio 2017, but expected to occur in any version

Versions

Mention any other details that might be useful


Thanks! We'll be in touch soon.

Running the quickstart with default settings doesn't work

Please provide us with the following information:

This issue is for a: (mark with an x)

- [x ] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

clones, fills in the keys for account and storage, run

Any log messages given by the failure "The resource directory path could not be created" on the portal

"Microsoft.Azure.Batch.Common.BatchException: 'Operation returned an invalid status code 'NotFound''" at line 168 on the C#

Expected/desired behavior

OS and Version?

Win 10 enterprise v1809

Versions

VS2017 with .NET core v2.1.
The storage account is LRS and hot with standard.
The batch account has enough available CPU (it creates the pool without error)

filepath is not compatible with mac os

Please provide us with the following information:

Function:
private static ResourceFile UploadFileToContainer
returns a ResourceFile created by
ResourceFile.FromUrl(blobSasUri, filePath)

The filePath is in macOS style, but is used in the azure task as a windows path:
cmd /c type /Users/xyz/Dokumente/Azure/Lab_BatchJob/batch-dotnet-quickstart-master/BatchDotnetQuickstart/bin/Debug/netcoreapp2.1/taskdata0.txt

This command does not work on the windows virtual machine in azure...

This issue is for a: (mark with an x)

- [x] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

compile and run with visual studio for mac

Any log messages given by the failure

Task ends with error:
The syntax of the command is incorrect.

Expected/desired behavior

OS and Version?

macOS Catalina

Versions

newest

Mention any other details that might be useful


Thanks! We'll be in touch soon.

Azure Batch nodes never start

Please provide us with the following information:

This issue is for a: (mark with an x)

- [x] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

Download sample, add configuration, run.

Any log messages given by the failure

none

Expected/desired behavior

Successful run as described in the associated guide.

OS and Version?

Windows 10 - November 2019 update

Versions

Visual Studio 2019 (16.3.7)

Mention any other details that might be useful

When I start the program, the pool, nodes and tasks are all created as expected and the code enters the WaitAll state. However, when looking in the Azure portal, both nodes just keep sitting in the "Starting" state and nothing happens. The tasks are created and are "active" but are never assigned a pool/node.

Batch running VM STANDARD_A1_v2 in North Europe.


Thanks! We'll be in touch soon.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.