Get-AzConfigurationAssignment
List configurationAssignments for resource.
Syntax
Get-AzConfigurationAssignment
[[-ResourceGroupName] <String>]
[[-ProviderName] <String>]
[-ResourceParentType <String>]
[-ResourceParentName <String>]
[[-ResourceType] <String>]
[[-ResourceName] <String>]
[-ConfigurationAssignmentName <String>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
List configurationAssignments for resource.
Examples
Example 1
Get-AzConfigurationAssignment -ResourceGroupName smdtestwestus2 -ResourceParentType hostGroups -ResourceParentName smddhgwestus2 -ResourceType hosts -ResourceName smddhwestus2 -ProviderName Microsoft.Compute
MaintenanceConfigurationId : /subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/ps1/providers/Microsoft.Maintenance/maintenanceConfigurations/ps2
Id :
/subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/smdtestwestus2/providers/Microsoft.Compute/hostGroups/smddhgwestus2/hosts/smddhwestus2/providers/Microsoft.Maintenance/configurationAssignments/ps2
Name : ps2
Type : Microsoft.Maintenance/configurationAssignments
List configurationAssignments for dedicated host.
Example 2
Get-AzConfigurationAssignment -ResourceGroupName 'rgtestwestus2' -ProviderName Microsoft.Compute -ResourceType virtualmachines -ResourceName 'LAPTOP-ABCDEFG'
MaintenanceConfigurationId : /subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/maintenanceconfigurations/providers/microsoft.maintenance/maintenanceconfigurations/dynamicfiltertag
ResourceId : /subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/rgtestwestus2/providers/microsoft.hybridcompute/machines/laptop-abcdefg
Id : /subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa747/resourcegroups/rgtestwestus2/providers/Microsoft.HybridCompute/machines/LAPTOP-ABCDEFG/providers/Microsoft.Maintenance/configurationAssignments/pphsfbx2qur7k-azpolicy
Name : pphsfbx2qur7k-azpolicy
Type : Microsoft.Maintenance/configurationAssignments
List configurationAssignments for Azure VMs in Guest scope.
Example 3
Get-AzConfigurationAssignment -ResourceGroupName 'ArcMachines' -ProviderName Microsoft.HybridCompute -ResourceType machines -ResourceName 'LAPTOP-IVMI31G2'
MaintenanceConfigurationId : /subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/maintenanceconfigurations/providers/microsoft.maintenance/maintenanceconfigurations/dynamicfiltertag
ResourceId : /subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa74/resourcegroups/arcmachines/providers/microsoft.hybridcompute/machines/laptop-ivmi31g2
Id : /subscriptions/42c974dd-2c03-4f1b-96ad-b07f050aaa747/resourcegroups/arcmachines/providers/Microsoft.HybridCompute/machines/LAPTOP-IVMI31G2/providers/Microsoft.Maintenance/configurationAssignments/pphsfbx2qur7k-azpolicy
Name : pphsfbx2qur7k-azpolicy
Type : Microsoft.Maintenance/configurationAssignments
List configurationAssignments for Arc VMs in Guest scope.
Parameters
-ConfigurationAssignmentName
The configuration assignment name.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-DefaultProfile
The credentials, account, tenant, and subscription used for communication with Azure.
Type: | IAzureContextContainer |
Aliases: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ProviderName
The resource provider Name.
Type: | String |
Position: | 1 |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-ResourceGroupName
The resource Group Name.
Type: | String |
Position: | 0 |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-ResourceName
The resource name.
Type: | String |
Position: | 3 |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-ResourceParentName
The parent resource name.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-ResourceParentType
The parent resource type.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-ResourceType
The resource type.
Type: | String |
Position: | 2 |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Inputs
Outputs
Met ons samenwerken op GitHub
De bron voor deze inhoud vindt u op GitHub, waar u ook problemen en pull-aanvragen kunt maken en controleren. Bekijk onze gids voor inzenders voor meer informatie.
Azure PowerShell