The below mentioned SQL queries we are doing manually using the Query Editor in Azure Portal SQLDB. But, we have to execute these using the PowerShell, and I was went through the couple of articles and unable to find a exact solution to perform this action. If any one have PowerShell script handy, can you guys please.... help!
Login to SQL Database using Admin login.
Execute the following commands.
CREATE USER [App Service Name] FROM EXTERNAL PROVIDER;
ALTER ROLE db_datareader ADD MEMBER [App Service Name];
ALTER ROLE db_datawriter ADD MEMBER [App Service Name];