Explore Courses Blog Tutorials Interview Questions
0 votes
in Azure by (13.1k points)
I want to run a PowerShell script using an Function app. So, can anyone help me how to change this Login-AzureRmAccount?

1 Answer

0 votes
by (26.7k points)

For using an function app you need to login through Service principal because Login-AzureRmAccount will not work for Azure function.

Login-AzureRmAccount -ServicePrincipal -ApplicationId  "http://my-app" -Credential $pscredential -TenantId $tenantid

I hope this will work.

Want to become an azure expert? join azure architect certification now!!

Related questions

Browse Categories