Show / Hide Table of Contents

    Class TrackedResource

    The resource model definition for a ARM tracked top level resource

    Inheritance
    Object
    Resource
    TrackedResource
    ArtifactSource
    Rollout
    RolloutRequest
    ServiceResource
    ServiceTopologyResource
    ServiceUnitResource
    StepResource
    Inherited Members
    Resource.Id
    Resource.Name
    Resource.Type
    Namespace: System.Dynamic.ExpandoObject
    Assembly: Microsoft.Azure.Management.DeploymentManager.dll
    Syntax
    public class TrackedResource : Microsoft.Azure.Management.DeploymentManager.Models.Resource

    Constructors

    TrackedResource()

    Initializes a new instance of the TrackedResource class.

    Declaration
    public TrackedResource ();

    TrackedResource(String, String, String, String, IDictionary<String,String>)

    Initializes a new instance of the TrackedResource class.

    Declaration
    public TrackedResource (string location, 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 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

    Location

    Gets or sets the geo-location where the resource lives

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

    Tags

    Gets or sets resource tags.

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="tags")]
    public System.Collections.Generic.IDictionary<string,string> Tags { get; set; }
    Property Value
    IDictionary<String,String>

    Methods

    Validate()

    Validate the object.

    Declaration
    public virtual void Validate ();
    Exceptions
    ValidationException

    Thrown if validation fails

    Back to top Azure SDK for Net