azure-batch

Azure Batch Account Static IP Addresses

一世执手 提交于 2020-02-29 07:46:26
问题 I am needing to set a range of static remote desktop ip addresses for Azure Batch nodes within a pool. Is this even possible given the node will enter and exit the pool on occasion? I have viewed documentation but have not had luck. Is this even possible? How can this be configured? 回答1: Updated answer 2019-09-09: You can now specify static public IPs provisioned via Azure Resource Manager (ARM) as part of a VirtualMachineConfiguration-based pool allocation. Please see the

How to use MSI Authentication instead of providing Client ID and Client Key for getting access token for Batch Service and Management?

余生颓废 提交于 2020-01-16 08:06:41
问题 I am creating a C# Azure Function, and I am getting the access token using Client ID, Client Key and Tenant ID for operation on Batch Service and Management. Can I use MSI authentication to get access token. I am using the following APIs: List Subscription - GET https://management.azure.com/subscriptions?api-version=2019-06-01 (docs) List Batch Accounts from subsciption id: GET https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.Batch/batchAccounts?api-version=2019

Access Azure Batch from an Azure Function

谁说我不能喝 提交于 2020-01-15 09:19:48
问题 I'm trying to use a Service Principle to access a Batch pool from an Azure Function and running into authentication issues that I don't understand. The initial login with the Service Principle works fine, but then using the credentials to access the batch pool returns a 401. Below is a condensed version of my code with comments at the key points module.exports.dispatch = function (context) { MsRest.loginWithServicePrincipalSecret('AppId', 'Secret', 'TennantId', function(err, credentials){ if

Azure Batch Job Scheduling: Task doesn't run recurrently

随声附和 提交于 2019-12-25 12:13:53
问题 My objective is to schedule an Azure Batch Task to run every 5 minutes from the moment it has been added, and I use the Python SDK to create/manage my Azure resources. I tried creating a Job-Schedule and it automatically created a new Job under the specified Pool. job_spec = batch.models.JobSpecification( pool_info=batch.models.PoolInformation(pool_id=pool_id) ) schedule = batch.models.Schedule( start_window=datetime.timedelta(hours=1), recurrence_interval=datetime.timedelta(minutes=5) )

Azure batch NodeFiles to Blob Stotage

陌路散爱 提交于 2019-12-24 16:19:46
问题 I'm running Tasks on Microsoft Azure Batch Services, where each task create a set of files on the node. I have to copy these files to a Blob Storage. The task are created and managed from a vm which is not part of the batch pool I'm able to acces the node files and i can write the content to a blob storage however this means I get the file as a string on my driving vm and upload it to the blobstorage. var container = BlobClient.GetContainerReference(containerName); container.CreateIfNotExists

Add Tasks to a running Azure batch job and manually control termination

馋奶兔 提交于 2019-12-24 14:06:43
问题 We have an Azure-batch job that uses some quite large files which we are uploading to Azure Blob storage asynchronously so that we don't have to wait for all files to upload before starting our batch job made up of a collection of Tasks that will process each file and generate output. All good so far - this is working fine. I'd like to be able to create an Azure Task and Add it to an existing, running Azure Job increasing the length of the Task list but I cant find how to do this. It seems

On-Prem SQL connection throwing SqlException in Datafactory custom activity

自古美人都是妖i 提交于 2019-12-24 09:29:20
问题 I have added code for Azure datafactory custom activity in Azure batch service and pointed the datafactory pipeline to the bacth service. When I execute the code in local environment, it works fine. But when I upload it to run in azure batch service, it throws and sqlexception System.Data.SqlClient.SqlException: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is

How to use Azure Batch in an event based design and terminate/cleanup finished jobs

自古美人都是妖i 提交于 2019-12-23 04:20:06
问题 Using Azure Batch, my project adds jobs to a pool using an event based design with functions and queues. When the job is finished, it is still "active", even though all tasks are completed. A (single using an app service plan) function is triggered on a timer which reads an X amount of messages from the queue. The function: Creates a pool (if it does not exist) Creates a job Adds the tasks to that job That works good. However, once the tasks have finished, the job status remains active, even

Custom Image under AzureBatch ImageReference class not working

人走茶凉 提交于 2019-12-23 03:09:43
问题 I have a custom VHD file with me. I am able to create Pool with my custom image through portal. But i want to try the same with .Net SDK. But it is throwing error "Operation returned an invalid status code 'Forbidden". I am referring this link Azure Batch I am able to create Pool from MarketPlace images from same code Below is my code ImageReference imageReference = new ImageReference("/subscriptions/XXXXXXXXXXXXXXX/resourceGroups/RG-OneGolden/providers/Microsoft.Compute/images/OMGoldenImage"

Application Packages with VM configuration

孤者浪人 提交于 2019-12-14 02:24:01
问题 I'm trying to use application packages in the way they're described in this https://docs.microsoft.com/en-us/azure/batch/batch-application-packages But I keep getting an error saying application path not found. Any ideas what could be wrong? Or How do application packages work in the background, that might help me debug the error? EDIT: I am trying to add an application package specific to my job manager task. I added the package as a zip file through Azure portal under the name