Show / Hide Table of Contents

    Class ServiceResource

    The resource representation of a service in a service topology.

    Inheritance
    Object
    Resource
    TrackedResource
    ServiceResource
    Inherited Members
    Resource.Id
    Resource.Name
    Resource.Type
    TrackedResource.Location
    TrackedResource.Tags
    Namespace: System.Dynamic.ExpandoObject
    Assembly: Microsoft.Azure.Management.DeploymentManager.dll
    Syntax
    [Microsoft.Rest.Serialization.JsonTransformation]
    public class ServiceResource : Microsoft.Azure.Management.DeploymentManager.Models.TrackedResource

    Constructors

    ServiceResource()

    Initializes a new instance of the ServiceResource class.

    Declaration
    public ServiceResource ();

    ServiceResource(String, String, String, String, String, String, IDictionary<String,String>)

    Initializes a new instance of the ServiceResource class.

    Declaration
    public ServiceResource (string location, string targetLocation, string targetSubscriptionId, string id = null, string name = null, string type = null, System.Collections.Generic.IDictionary<string,string> tags = null);
    Parameters
    String location

    The geo-location where the resource lives

    String targetLocation

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

    String targetSubscriptionId

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

    String id

    Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}

    String name

    The name of the resource

    String type

    The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.

    IDictionary<String,String> tags

    Resource tags.

    Properties

    TargetLocation

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

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="properties.targetLocation")]
    public string TargetLocation { get; set; }
    Property Value
    String

    TargetSubscriptionId

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

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="properties.targetSubscriptionId")]
    public string TargetSubscriptionId { get; set; }
    Property Value
    String

    Methods

    Validate()

    Validate the object.

    Declaration
    public override void Validate ();
    Exceptions
    ValidationException

    Thrown if validation fails

    Back to top Azure SDK for Net