Edit

Share via


Get-AzSubscriptionPolicy

Get the subscription tenant policy for the user's tenant.

Syntax

Default (Default)

Get-AzSubscriptionPolicy
    [-DefaultProfile <PSObject>]
    [<CommonParameters>]

Description

Get the subscription tenant policy for the user's tenant.

Examples

Example 1: Get the subscription tenant policy for the user's tenant.

Get-AzSubscriptionPolicy
Name    PolicyId                             BlockSubscriptionsIntoTenant BlockSubscriptionsLeavingTenant
----    --------                             ---------------------------- -------------------------------
default XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX False                        True

Get the subscription tenant policy for the user's tenant.

Parameters

-DefaultProfile

The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.

Parameter properties

Type:PSObject
Default value:None
Supports wildcards:False
DontShow:False
Aliases:AzureRMContext, AzureCredential

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Outputs

IGetTenantPolicyResponse