Get-AzConfigurationAssignment
列出資源的組態指派。
語法
Get-AzConfigurationAssignment
[[-ResourceGroupName] <String>]
[[-ProviderName] <String>]
[-ResourceParentType <String>]
[-ResourceParentName <String>]
[[-ResourceType] <String>]
[[-ResourceName] <String>]
[-ConfigurationAssignmentName <String>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
列出資源的組態指派。
範例
範例 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
列出專用主機的組態指派。
範例 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
列出客體範圍中 Azure VM 的組態指派。
範例 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
列出客體範圍內Arc VM的組態指派。
參數
-ConfigurationAssignmentName
組態指派名稱。
類型: | String |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | True |
接受萬用字元: | False |
-DefaultProfile
用於與 Azure 通訊的認證、帳戶、租用戶和訂用帳戶。
類型: | IAzureContextContainer |
別名: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-ProviderName
資源提供者名稱。
類型: | String |
Position: | 1 |
預設值: | None |
必要: | False |
接受管線輸入: | True |
接受萬用字元: | False |
-ResourceGroupName
資源組名。
類型: | String |
Position: | 0 |
預設值: | None |
必要: | False |
接受管線輸入: | True |
接受萬用字元: | False |
-ResourceName
資源名稱。
類型: | String |
Position: | 3 |
預設值: | None |
必要: | False |
接受管線輸入: | True |
接受萬用字元: | False |
-ResourceParentName
父資源名稱。
類型: | String |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | True |
接受萬用字元: | False |
-ResourceParentType
父資源類型。
類型: | String |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | True |
接受萬用字元: | False |
-ResourceType
資源類型。
類型: | String |
Position: | 2 |
預設值: | None |
必要: | False |
接受管線輸入: | True |
接受萬用字元: | False |