ArmComputeScheduleModelFactory.ResourceProvisionPayload Method

Definition

Resource creation data model.

public static Azure.ResourceManager.ComputeSchedule.Models.ResourceProvisionPayload ResourceProvisionPayload(System.Collections.Generic.IDictionary<string,BinaryData> baseProfile = default, System.Collections.Generic.IEnumerable<System.Collections.Generic.IDictionary<string,BinaryData>> resourceOverrides = default, int resourceCount = 0, string resourcePrefix = default);
static member ResourceProvisionPayload : System.Collections.Generic.IDictionary<string, BinaryData> * seq<System.Collections.Generic.IDictionary<string, BinaryData>> * int * string -> Azure.ResourceManager.ComputeSchedule.Models.ResourceProvisionPayload
Public Shared Function ResourceProvisionPayload (Optional baseProfile As IDictionary(Of String, BinaryData) = Nothing, Optional resourceOverrides As IEnumerable(Of IDictionary(Of String, BinaryData)) = Nothing, Optional resourceCount As Integer = 0, Optional resourcePrefix As String = Nothing) As ResourceProvisionPayload

Parameters

baseProfile
IDictionary<String,BinaryData>

JSON object that contains VM properties that are common across all VMs in this batch (if you want to create 100 VMs in this request, and they all have same vmSize, then include vmSize in baseProfile).

resourceOverrides
IEnumerable<IDictionary<String,BinaryData>>

JSON array, that contains VM properties that should to be overridden for each VM in the batch (if you want to create 100 VMs, they all need a distinct computerName property, you pass computerNames for each VM in batch in this array), service will merge baseProfile with VM specific overrides and create a merged VMProfile.

resourceCount
Int32

Number of VMs to be created.

resourcePrefix
String

if resourceOverrides doesn't contain "name", service will create name based of prefix and ResourceCount e.g. resourceprefix-0,resourceprefix-1..

Returns

A new ResourceProvisionPayload instance for mocking.

Applies to