arm-custom-resource-no-key
@azure-tools/typespec-azure-resource-manager/arm-custom-resource-no-key
Custom Azure resource models must define a key property using the @key
decorator, especially if the custom resource will be used in operations. Without a key, operation paths may be duplicated.
โ Incorrect
Section titled โโ Incorrectโ@Azure.ResourceManager.Legacy.customAzureResourcemodel CustomResource { someId: string;}
โ Correct
Section titled โโ Correctโ@Azure.ResourceManager.Legacy.customAzureResourcemodel CustomResource { @key someId: string;}