Resource type cant be null

sns 9,236 Reputation points
2023-11-24T07:16:21.7966667+00:00

I executed following 2 commands:

1.

$mc=Get-AZMaintenanceConfiguration -ResourceGroupName Ue2PrD01ResourceGroup -Name Dr01MainteanceConfig

2.

New-AzConfigurationAssignment -ConfigurationAssignmentName $mc.Name -MaintenanceConfigurationId $mc.Id -FilterLocation eastus2 -FilterOsType Windows -FilterTag '{"EnvironmentCode" : ["Dev01"] }' '{"EnvironmentType" : ["Development"] }' '{"Team" : ["DCloud Raiders test@gmail.com"] }'

Error: I see after debug

User's image

Azure Update Manager
Azure Update Manager
An Azure service to centrally manages updates and compliance at scale.
319 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Monalla-MSFT 13,031 Reputation points
    2023-12-06T12:31:04.8966667+00:00

    @sns - Thanks for reaching out to us.

    ResourceType is optional since 1.3.1 release, before this version it was mandatory. Please ensure to use only 1 PS module version.

    Hope this helps. and please feel free to reach out if you have any further questions.


    Please don't forget to "Accept as Answer" and click "Yes" if the above response is helpful, so it can be beneficial to the community.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.