Get-AzManagedServicesDefinition
Gets the registration definition details.
Syntax
Get-AzManagedServicesDefinition
[-Scope <String>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Get-AzManagedServicesDefinition
-Name <String>
[-Scope <String>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
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.
Type: | PSObject |
Aliases: | AzureRMContext, AzureCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-InputObject
Identity Parameter To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
Type: | IManagedServicesIdentity |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Name
The GUID of the registration definition.
Type: | String |
Aliases: | RegistrationDefinitionId |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Scope
The scope of the resource.
Type: | String |
Position: | Named |
Default value: | "subscriptions/" + (Get-AzContext).Subscription.Id |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Inputs
Outputs
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
Azure PowerShell