Within Azure Resources, specific resources contain a Diagnostic settings page. This can be interacted with using the Set-AzDiagnosticSetting
You can refer to this for more information about which properties you can to the logs property in the request body.