Skip to content

arm-resource-provisioning-state

-
@azure-tools/typespec-azure-resource-manager/arm-resource-provisioning-state

ProvisioningState property of ARM resource must be:

  • optional
  • readonly
  • must at least contain Succeeded, Canceled, and Canceled

❌ Incorrect

model ResourceProperties {
provisioningState: ResourceProvisioningState;
}

✅ Correct

model ResourceProperties {
@visibility("read")
provisioningState?: ResourceProvisioningState;
}