Get-AzManagedServicesDefinition
Gets the registration definition details.
Syntax
List (Default)
Get-AzManagedServicesDefinition
[-Scope <String>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Get
Get-AzManagedServicesDefinition
-Name <String>
[-Scope <String>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
GetViaIdentity
Get-AzManagedServicesDefinition
-InputObject <IManagedServicesIdentity>
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Description
Gets the registration definition details.
Examples
Example 1: List all Azure Lighthouse registration definitions in a subscription
Get-AzManagedServicesDefinition
Name Type
---- ----
xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx Microsoft.ManagedServices/registrationDefinitions
xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx Microsoft.ManagedServices/registrationDefinitions
Lists all the Azure Lighthouse registration definitions in a given subscription in context.
Example 2: Get Azure Lighthouse registration definition by name with selected properties
Get-AzManagedServicesDefinition -Name xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx |Format-List -Property Id, Name, Type, ManagedByTenantId, Authorization, EligibleAuthorization
Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/providers/Microsoft.ManagedServices/registrationDefinitions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
Name : xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
Type : Microsoft.ManagedServices/registrationDefinitions
ManagedByTenantId : xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
Authorization : {Test user}
EligibleAuthorization : {Test user}
Gets Azure Lighthouse registration definition by name with selected properties.
Example 3: List all Azure Lighthouse registration definitions by scope
Get-AzManagedServicesDefinition -Scope /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx | Format-List -Property Id, Name, Type, ManagedByTenantId, Authorization, EligibleAuthorization
Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/providers/Microsoft.ManagedServices/registrationDefinitions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
Name : xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
Type : Microsoft.ManagedServices/registrationDefinitions
ManagedByTenantId : xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
Authorization : {Test user}
EligibleAuthorization : {Test user}
Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/providers/Microsoft.ManagedServices/registrationDefinitions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
Name : xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
Type : Microsoft.ManagedServices/registrationDefinitions
ManagedByTenantId : xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
Authorization : {}
EligibleAuthorization :
Lists all Azure Lighthouse registration definitions by given subscription scope.
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 |
-InputObject
Identity Parameter To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
Parameter properties
Type: | IManagedServicesIdentity |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
GetViaIdentity
Position: | Named |
Mandatory: | True |
Value from pipeline: | True |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-Name
The GUID of the registration definition.
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Aliases: | RegistrationDefinitionId |
Parameter sets
Get
Position: | Named |
Mandatory: | True |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-Scope
The scope of the resource.
Parameter properties
Type: | String |
Default value: | "subscriptions/" + (Get-AzContext).Subscription.Id |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
List
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
Get
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.