Get-AzManagedServicesDefinition
Hämtar information om registreringsdefinitionen.
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
Hämtar information om registreringsdefinitionen.
Exempel
Exempel 1: Lista alla Azure Lighthouse-registreringsdefinitioner i en prenumeration
Get-AzManagedServicesDefinition
Name Type
---- ----
xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx Microsoft.ManagedServices/registrationDefinitions
xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx Microsoft.ManagedServices/registrationDefinitions
Visar en lista över alla Azure Lighthouse-registreringsdefinitioner i en viss prenumeration i kontexten.
Exempel 2: Hämta Azure Lighthouse-registreringsdefinition efter namn med valda egenskaper
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}
Hämtar Azure Lighthouse-registreringsdefinition efter namn med valda egenskaper.
Exempel 3: Lista alla Azure Lighthouse-registreringsdefinitioner efter omfång
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 :
Visar en lista över alla Azure Lighthouse-registreringsdefinitioner efter angivet prenumerationsomfång.
Parametrar
-DefaultProfile
Parametern DefaultProfile fungerar inte. Använd parametern SubscriptionId när den är tillgänglig om du kör cmdleten mot en annan prenumeration.
Typ: | PSObject |
Alias: | AzureRMContext, AzureCredential |
Position: | Named |
Standardvärde: | None |
Obligatorisk: | False |
Godkänn pipeline-indata: | False |
Godkänn jokertecken: | False |
-InputObject
Identitetsparameter För att skapa, se AVSNITTET ANTECKNINGAR för INPUTOBJECT-egenskaper och skapa en hash-tabell.
Typ: | IManagedServicesIdentity |
Position: | Named |
Standardvärde: | None |
Obligatorisk: | True |
Godkänn pipeline-indata: | True |
Godkänn jokertecken: | False |
-Name
GUID för registreringsdefinitionen.
Typ: | String |
Alias: | RegistrationDefinitionId |
Position: | Named |
Standardvärde: | None |
Obligatorisk: | True |
Godkänn pipeline-indata: | False |
Godkänn jokertecken: | False |
-Scope
Resursens omfång.
Typ: | String |
Position: | Named |
Standardvärde: | "subscriptions/" + (Get-AzContext).Subscription.Id |
Obligatorisk: | False |
Godkänn pipeline-indata: | False |
Godkänn jokertecken: | False |
Indata
Utdata
Azure PowerShell