arm-resource-provisioning-state
@azure-tools/typespec-azure-resource-manager/arm-resource-provisioning-stateProvisioningState property of ARM resource must be:
- optional
- readonly
- must at least contain
Succeeded,Canceled, andFailed
❌ Incorrect
Section titled “❌ Incorrect”model ResourceProperties { provisioningState: ResourceProvisioningState;}✅ Correct
Section titled “✅ Correct”model ResourceProperties { @visibility(Lifecycle.Read) provisioningState?: ResourceProvisioningState;}Reviewer advice
Section titled “Reviewer advice”Impacts the API and RPaaS: this corresponds to the LintDiff rules ProvisioningStateValidation, ProvisioningStateSpecifiedForLROPut, ProvisioningStateSpecifiedForLROPatch, and RpaaS_ResourceProvisioningState and causes RPC or RPaaS violations. Ask the author to define a ProvisioningState property with Succeeded, Failed, and Cancelled states. Accept a suppression only when allowed by RPC guidelines.