1

I want to run PS scripts in C# exactly along the lines of Sample

This works on a Cloud Service (Web Role), on a standard server (with execution policy disabled), but not in a Azure Web Site.

Anyone know why this is so?

1 Answer 1

1

I don't know of any official documentation on the issue but there are multiple answers on the related forums where Microsoft employees talk about the limitations of not being able/allowed to launch external processes in Windows Azure Web Sites. See

You are probably trying to do that with your powershell script.

You could verify if that is in fact your issue by catching and looking at the exception(s) which should relate to security policies/permissions.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.