ArmDeploymentManagerModelFactory.Service Method

Definition

Initializes a new instance of Service.

public static Azure.ResourceManager.DeploymentManager.Models.Service Service (string targetLocation = default, string targetSubscriptionId = default, string name = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.DeploymentManager.Models.ServiceUnit> serviceUnits = default);
static member Service : string * string * string * seq<Azure.ResourceManager.DeploymentManager.Models.ServiceUnit> -> Azure.ResourceManager.DeploymentManager.Models.Service
Public Shared Function Service (Optional targetLocation As String = Nothing, Optional targetSubscriptionId As String = Nothing, Optional name As String = Nothing, Optional serviceUnits As IEnumerable(Of ServiceUnit) = Nothing) As Service

Parameters

targetLocation
String

The Azure location to which the resources in the service belong to or should be deployed to.

targetSubscriptionId
String

The subscription to which the resources in the service belong to or should be deployed to.

name
String

Name of the service.

serviceUnits
IEnumerable<ServiceUnit>

The detailed information about the units that make up the service.

Returns

A new Service instance for mocking.

Exceptions

targetLocation or targetSubscriptionId is null.

Applies to