An Azure service that is used to implement corporate governance and standards at scale for Azure resources.
For built‑in guest configuration packages such as:
- MinimumPasswordLength
- EnforcePasswordHistory
- MaximumPasswordAge
no contentUri or contentHash is required in the guestConfigurationAssignments resource. Those properties are only needed when assigning a custom guest configuration package that has been uploaded to storage.
The built‑in configurations are referenced only by:
properties: {
guestConfiguration: {
name: 'MinimumPasswordLength' // or EnforcePasswordHistory, MaximumPasswordAge
version: '1.*'
assignmentType: 'ApplyAndAutoCorrect'
configurationParameter: [ ... ]
}
}
This matches the schema for Microsoft.GuestConfiguration/guestConfigurationAssignments where contentUri and contentHash are optional fields used to point to a custom package.
If the assignments remain in Pending state, the cause is not a missing contentUri. Troubleshooting should instead focus on the VM/extension side (for example, ensuring the Guest Configuration extension is healthy and that the VM can reach the guest configuration service), but that information is outside the provided context.
References:
- Microsoft.GuestConfiguration guestConfigurationAssignments 2020-06-25 (deployment-language-bicep)
- Microsoft.GuestConfiguration guestConfigurationAssignments 2021-01-25 (deployment-language-bicep)
- Microsoft.GuestConfiguration guestConfigurationAssignments 2020-06-25 (deployment-language-terraform)
- Microsoft.GuestConfiguration guestConfigurationAssignments 2021-01-25 (deployment-language-terraform)
- Microsoft.GuestConfiguration guestConfigurationAssignments 2022-01-25 (deployment-language-bicep)
- Azure Policy built-in packages for guest configuration