Get-AzManagedServicesAssignment
Gets a specific registration assignment or a list of the registration assignments.
Note
This is the previous version of our documentation. Please consult the most recent version for up-to-date information.
Syntax
Get-AzManagedServicesAssignment
[-Scope <String>]
[-ExpandRegistrationDefinition]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzManagedServicesAssignment
[-Scope <String>]
[-Name <String>]
[-ExpandRegistrationDefinition]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
Gets a specific registration assignment or a list of the registration assignments.
Examples
Example 1
PS C:\> Get-AzManagedServicesAssignment
Name Id ProvisioningState
---- -- -----------------
0413e647-6915-45e3-944d-79a587e57f80 /subscriptions/24ab6047-da91-48c0-66e5-20a8c6daefc8/providers/Microsoft.ManagedServices/registrationAssignments/0413e647-6915-45e3-944d-79a587e57f80 Succeeded
PS C:\>
Gets all registration assignments under the default scope.
Example 2
PS C:\> $assignments = Get-AzManagedServicesAssignment -ExpandRegistrationDefinition
PS C:\> $assignments[0].Properties.RegistrationDefinition
Properties : Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.PSRegistrationAssignmentPropertiesRegistrationDefinitionProperties
Plan :
Id : /subscriptions/24ab6047-da91-48c0-66e5-20a8c6daefc8/providers/Microsoft.ManagedServices/registrationDefinitions/0c146106-c927-4098-a7ca-30bbcf44a502
Type : Microsoft.ManagedServices/registrationDefinitions
Name : 0c146106-c927-4098-a7ca-30bbcf44a502
PS C:\>
Gets all registration assignments with the registration definition details.
Example 3
PS C:\> Get-AzManagedServicesAssignment -Name 0413e647-6915-45e3-944d-79a587e57f80
Name Id ProvisioningState
---- -- -----------------
0413e647-6915-45e3-944d-79a587e57f80 /subscriptions/24ab6047-da91-48c0-66e5-20a8c6daefc8/providers/Microsoft.ManagedServices/registrationAssignments/0413e647-6915-45e3-944d-79a587e57f80 Succeeded
PS C:\>
Gets a registration assignment by name without registration definition details.
Example 4
PS C:\> $assignment = Get-AzManagedServicesAssignment -Name 0413e647-6915-45e3-944d-79a587e57f80 -ExpandRegistrationDefinition
PS C:\> $assignment.Properties.RegistrationDefinition
Properties : Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models.PSRegistrationAssignmentPropertiesRegistrationDefinitionProperties
Plan :
Id : /subscriptions/24ab6047-da91-48c0-66e5-20a8c6daefc8/providers/Microsoft.ManagedServices/registrationDefinitions/0c146106-c927-4098-a7ca-30bbcf44a502
Type : Microsoft.ManagedServices/registrationDefinitions
Name : 0c146106-c927-4098-a7ca-30bbcf44a502
PS C:\>
Gets a registration assignment by name with registration definition details.
Example 5
PS C:\> Get-AzManagedServicesAssignment -Scope /subscriptions/24ab6047-da91-48c0-66e5-20a8c6daefc8
Name Id ProvisioningState
---- -- -----------------
0413e647-6915-45e3-944d-79a587e57f80 /subscriptions/24ab6047-da91-48c0-66e5-20a8c6daefc8/providers/Microsoft.ManagedServices/registrationAssignments/0413e647-6915-45e3-944d-79a587e57f80 Succeeded
PS C:\>
Gets all the registration assignments at given scope.
Parameters
The credentials, account, tenant, and subscription used for communication with Azure.
| Type: | IAzureContextContainer |
| Aliases: | AzContext, AzureRmContext, AzureCredential |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Whether to include registration definition details.
| Type: | SwitchParameter |
| Position: | Named |
| Default value: | False |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
The unique name of the Registration Assignment.
| Type: | String |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
The scope where the registration assignment created.
| Type: | String |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Inputs
None