Could you please follow the steps:
- Go to Azure Portal -> Microsoft Entra ID -> App registrations -> Select your app (e.g., the one used in the service connection) -> Navigate to Certificates & secrets -> Click + New client secret
- Add a description and choose an expiration (e.g., 12 or 24 months)
- Copy the secret value immediately.
- Now In Azure DevOps -> go to your project -> Project Settings -> Service connections -> Select the service connection used for deployment (likely of type Azure Resource Manager) -> Choose Service principal (manual) authentication -> Paste the new client secret value into the appropriate field and also fill all the required details -> Save.
Ensure the app registration (service principal) has Contributor access to the target App Service.
Additional References:
https://learn.microsoft.com/en-us/azure/devops/pipelines/library/service-endpoints?view=azure-devops
Hope this helps!
Please Let me know if you have any queries.