@FATOBA, KIMBERLY Welcome to Microsoft Q & A Community Forum. Kindly note that Set-AzDiagnosticSetting has been replaced with New-AzDiagnosticSetting in Az.Monitor 4.2.0. Check Package Details section of this document for more information.
For sample reference of New-AzDiagnosticSetting, refer this document.
If this answers your query, do click "Accept as Answer" and click "Yes" for the same, which might be beneficial to other community members reading this thread. If you have further questions, kindly revert with further information so that we can assist you accordingly.