I've currently got a site hosted in the "new" Azure, and I want to restrict access to specific IP addresses. I've found
this resource, which talks about creating a startup.cmd file, and running it from ServiceDefinition.csdef.
Is this still relevant in the new Azure setup? If not, how can I restrict by IP?
You can check out a post that I recently wrote on IP filtering in windows azure in my blog http://shayyannay.wordpress.com/ you can find their step by step on how to implement it (IP restriction in IIS web server is valid for Iaas offering as well).
Blogging on shayyannay.wordpress.com www.codeproject.com/Members/ShayYannay
Proposed As Answer byShay YannayWednesday, August 08, 2012 7:35 AM
Apologies... I'm new to Azure, so I'm not sure of the correct terminology.
I'm not using a VM. I went to the new "Preview" management portal, and added a new website. I then set up Git deployment and pushed my code directly to Azure.
There was no mention of any .csdef file.
since you're using a shared IIS (Azure Web Site) you want be able to configure any IP restrictions for that. If the website software which is running (blog, cms) supports this you may be able to do this at a software level, but you can't configure IP
restrictions on machine or network level.
If you need IP restriction or more control of your software in general you'll need to deploy the software in a web role or in a VM where you're able to control IIS the way mentioned by others in this thread.
Marked As Answer byAqueductDevsWednesday, August 08, 2012 11:11 AM