@Aranca, Farimah To add further although doc refers to Azure Portal or REST API.
You can try to invoke the API using Powershell command Invoke-RestMethod.
References:
Invoke-RestMethod (Microsoft.PowerShell.Utility) - PowerShell | Microsoft Learn
Web Apps - Create Or Update - REST API (Azure App Service) | Microsoft Learn
Couldn’t find any with existing powershell appservice module: Set-AzWebApp (Az.Websites) | Microsoft Learn
Let me know, if this helps.