Subscription Constructors

Definition

Overloads

Subscription()

Initializes a new instance of the Subscription class.

Subscription(String, String, String, String, Nullable<SubscriptionState>, SubscriptionPolicies, String, IList<ManagedByTenant>, IDictionary<String, String>)

Initializes a new instance of the Subscription class.

Subscription()

Initializes a new instance of the Subscription class.

public Subscription ();
Public Sub New ()

Applies to

Subscription(String, String, String, String, Nullable<SubscriptionState>, SubscriptionPolicies, String, IList<ManagedByTenant>, IDictionary<String, String>)

Initializes a new instance of the Subscription class.

public Subscription (string id = default, string subscriptionId = default, string displayName = default, string tenantId = default, Microsoft.Azure.Management.ResourceManager.Models.SubscriptionState? state = default, Microsoft.Azure.Management.ResourceManager.Models.SubscriptionPolicies subscriptionPolicies = default, string authorizationSource = default, System.Collections.Generic.IList<Microsoft.Azure.Management.ResourceManager.Models.ManagedByTenant> managedByTenants = default, System.Collections.Generic.IDictionary<string,string> tags = default);
new Microsoft.Azure.Management.ResourceManager.Models.Subscription : string * string * string * string * Nullable<Microsoft.Azure.Management.ResourceManager.Models.SubscriptionState> * Microsoft.Azure.Management.ResourceManager.Models.SubscriptionPolicies * string * System.Collections.Generic.IList<Microsoft.Azure.Management.ResourceManager.Models.ManagedByTenant> * System.Collections.Generic.IDictionary<string, string> -> Microsoft.Azure.Management.ResourceManager.Models.Subscription
Public Sub New (Optional id As String = Nothing, Optional subscriptionId As String = Nothing, Optional displayName As String = Nothing, Optional tenantId As String = Nothing, Optional state As Nullable(Of SubscriptionState) = Nothing, Optional subscriptionPolicies As SubscriptionPolicies = Nothing, Optional authorizationSource As String = Nothing, Optional managedByTenants As IList(Of ManagedByTenant) = Nothing, Optional tags As IDictionary(Of String, String) = Nothing)

Parameters

id
String

The fully qualified ID for the subscription. For example, /subscriptions/00000000-0000-0000-0000-000000000000.

subscriptionId
String

The subscription ID.

displayName
String

The subscription display name.

tenantId
String

The subscription tenant ID.

state
Nullable<SubscriptionState>

The subscription state. Possible values are Enabled, Warned, PastDue, Disabled, and Deleted. Possible values include: 'Enabled', 'Warned', 'PastDue', 'Disabled', 'Deleted'

subscriptionPolicies
SubscriptionPolicies

The subscription policies.

authorizationSource
String

The authorization source of the request. Valid values are one or more combinations of Legacy, RoleBased, Bypassed, Direct and Management. For example, 'Legacy, RoleBased'.

managedByTenants
IList<ManagedByTenant>

An array containing the tenants managing the subscription.

tags
IDictionary<String,String>

The tags attached to the subscription.

Applies to