ArmSubscriptionModelFactory.TenantPolicyProperties Method

Definition

Initializes a new instance of TenantPolicyProperties.

public static Azure.ResourceManager.Subscription.Models.TenantPolicyProperties TenantPolicyProperties (string policyId = default, bool? blockSubscriptionsLeavingTenant = default, bool? blockSubscriptionsIntoTenant = default, System.Collections.Generic.IEnumerable<Guid> exemptedPrincipals = default);
static member TenantPolicyProperties : string * Nullable<bool> * Nullable<bool> * seq<Guid> -> Azure.ResourceManager.Subscription.Models.TenantPolicyProperties
Public Shared Function TenantPolicyProperties (Optional policyId As String = Nothing, Optional blockSubscriptionsLeavingTenant As Nullable(Of Boolean) = Nothing, Optional blockSubscriptionsIntoTenant As Nullable(Of Boolean) = Nothing, Optional exemptedPrincipals As IEnumerable(Of Guid) = Nothing) As TenantPolicyProperties

Parameters

policyId
String

Policy Id.

blockSubscriptionsLeavingTenant
Nullable<Boolean>

Blocks the leaving of subscriptions from user's tenant.

blockSubscriptionsIntoTenant
Nullable<Boolean>

Blocks the entering of subscriptions into user's tenant.

exemptedPrincipals
IEnumerable<Guid>

List of user objectIds that are exempted from the set subscription tenant policies for the user's tenant.

Returns

A new TenantPolicyProperties instance for mocking.

Applies to