no-deprecated-common-types
@azure-tools/typespec-azure-resource-manager/no-deprecated-common-typesVerify that deprecated common types are not referenced directly in user service specs. Use the replacement type suggested in the diagnostic message.
โ Incorrect
Section titled โโ Incorrectโ@armProviderNamespace@servicenamespace Microsoft.Contoso;
model EncryptionConfig { customerManagedKey: Azure.ResourceManager.CommonTypes.CustomerManagedKeyEncryption;}โ Correct
Section titled โโ CorrectโUse the Encryption wrapper type which is the recommended approach:
@armProviderNamespace@servicenamespace Microsoft.Contoso;
model ResourceProperties { encryption?: Azure.ResourceManager.CommonTypes.Encryption;}Or use the equivalent type from Azure.ResourceManager.Foundations:
@armProviderNamespace@servicenamespace Microsoft.Contoso;
model EncryptionConfig { customerManagedKey: Azure.ResourceManager.Foundations.CustomerManagedKeyEncryptionV4;}