Cloud Cover Episode 31 - Startup Tasks, Elevated Privileges, and Classic ASP
- Posted: Nov 05, 2010 at 11:43 AM
- 56,867 Views
- 15 Comments
Loading User Information from Channel 9
Something went wrong getting user information from Channel 9
Loading User Information from MSDN
Something went wrong getting user information from MSDN
Loading Visual Studio Achievements
Something went wrong getting the Visual Studio Achievements
Right click “Save as…”
Join Ryan and Steve each week as they cover the Microsoft cloud. You can follow and interact with the show at @cloudcovershow.
In this episode:
Show links:
Windows Azure - You spoke. We listened, and responded.
Windows Azure - Want to Know More About Windows Azure News from PDC10? Here's How!
Introduction to Windows Azure AppFabric Caching CTP
SQL Azure - PDC 2010 Announcements
Cloud Cover on Channel 9 Live from PDC 2010 (skip to 5:38)
Comments have been closed since this content was published more than 30 days ago, but if you'd like to continue the conversation,
please create a new thread in our Forums,
or
Contact Us and let us know.
Follow the Discussion
Oops, something didn't work.
What does this mean?
Following an item on Channel 9 allows you to watch for new content and comments that you are interested in. You need to be signed in to Channel 9 to use this feature.What does this mean?
Following an item on Channel 9 allows you to watch for new content and comments that you are interested in and view them all on your notifications page.sign up for email notifications?
Good show! I have two questions I would like answered:
Another good show - I have a question around the failed installation issue you mentioned.
If you fail to install some piece of software in your start up task, and then someone else gets your VM after recycling (is this what really happens) - do they see the VM in an inconsistent state? Or does the VM state get reset when it is recycled to another user? Maybe I misunderstand the way recycling works but the comment about checking whether the package has already run suggests that the VM survives recycling.
It would be good to get some clarification how Azure handles this - future cloudcover show maybe?
thanks.
Excellent episode!
Was wondering why a general startup task rather than a 'role first run' task and and 'start up' task.
@hansol: I'm not sure what you mean by "internet connection redundancy." Are you talking about what happens if a Windows Azure data center goes down?
No, Windows Azure Connect doesn't add support for static IP addresses.
@Dom Lawson: Your role can recycle on the same VM (just a VM reboot or just restarting your role's process). No one else will ever be on that VM (because anyone else coming along will get a new VM). That's an important security/isolation feature. All we were talking about is if your code fails to install something and then is restarted. In that case, you'll be on the same VM, and it will be in a weird state.
@PerfectPhase: You're suggesting a task that only runs the first time a role is started on a VM? (In other words, the second time it would be skipped?) I think the reason not to do that is that there's no way for us to tell that the task has succeeded... if something failed, you'll want to rerun the task. Hence the design where we run the task every time the role is started, and it's up to you to detect when you should just return without doing anything.
@smarx: What I mean with "Internet connection redundancy" is: How is connectivity out to the world done in Azure? My cloud-webapp in xxxx.cloudapp.net points to an ip-address at the azure data center. What happens if your ISP goes down? Like the main cable is cut from the azure datacenter my app is hosted on or something like that. Did that clarify my question?
@smarx: Steve - thanks, much clearer now and having done some more research how VM's are provisioned in Azure, differencing disks etc. Something that did occur to me, is there a possibility a new user's VM gets deployed to a machine that used to host another user's VM. In their local storage they are allocated disk space that housed the previous users local storage and they then use low level file API's to read pages from the previous VHD that occupied that storage? This might be tricky with pure .NET but with the new VM role it would be easier.
Guess this is unlikely but is this a potential breach of the VM/storage separation principle?
@hansol: our datacenters are sourced with multiple internet providers for redundancy. It would be a catastrophic disaster in order to lose all connectivity. In that case, you would need to move your services to another datacenter while it was recovered.
Thanks for the excellent and entertaining show.
One item about Startup Tasks to socialize: Where to stash the executable in the SLN / projects?
I have a SLN project 3 projects, an ASP.NET web application, a Web Site and a Cloud project. The Cloud project contains the ASP.NEt web app as a web role. The Web Site is not targeted to the cloud.
My startup-task is a CMD file. I had tried adding that to my SLN in a Solution Folder I'd created. That produced a build time error about approot\bin. Huh?
I ultimately resolve the issue by adding my CMD file to my ASP.NET project, gave it a Build Action of 'None' and a Copy To Output Directory option of 'Copy Always'.
That works for this simple (one role) case.
Haven't found any documentation on this as yet. It'd be helpful to know the rules; specifically what are some of the right "places" for the Startup Tasks to live?. If this was a multi-role project, would any of the role's 'Output Directory' folders have worked? Can you supply a Post-build event to the Cloud Project to copy the Startup Task executables to ... where?
Hopefully, you get the idea.
Thanks much.
@HowardHoffman - I'm working on a Blog Series right now and it relies on Start-up Tasks.
I'm using the cspack command-line tool in order to build my Cloud Service Package and it asks to place the Start-up commands into a bin folder in your deployment. $approot\bin
I am trying to avoid using an IDE for this series, so I can't comment on how to handle this in visual studio yet, but i'll be sure to update you with a new comment here when I get the blog series up and when I have the chance to check out the Story in VS.
Thanks,
Cory "SyntaxC4" Fowler
http://blog.syntaxc4.net
Thank you for sharing your article I would always follow.
very nice pictures is also very lively and attractive you look .every one who wanted to congratulate you You look super. Ankara evden eve nakliyat A wonderful picture, and always such a special and very attractive as well stay beautiful ok
Ankara nakliyat
Evden eve nakliyat
Hi used start up tasks in my asp application while migrating into azure, now i'm facing a issue i used xcopy to copy a folder form package to phsyical location c drive..... when i evr i restart my machine my application is gettng down, i could not see in iis when i remote login to my cloud vm. And i raised a issue with support team, they said it was the issue with xcopy start up command which is not allowing the instance to start, but the thing is will these start up tasks run even on restart?????? and any solution to my prob.. but when i manually run my xcopy command in cloud vm it is running fine, not showing any errors
Remove this comment
Remove this thread
close