Sign in
Avkash Chauhan's Blog
Windows Azure, Windows 8, Cloud Computing, Big Data and Hadoop: All together at one place.. One problem, One solution at One time...
Translate This Page
Translate this page
Powered by
Microsoft® Translator
Common Tasks
Blog Home
Email Blog Author
About
Share this
RSS for comments
RSS for posts
Atom
Search Form
Tag Cloud
ACS
Announcement
Architecture
ASP.NET
Azure
Code Sample
CSUPLOAD
Error
Exception
Exception ERROR UNSUPPORTED OS
Exceptions
Hadoop
How to Do.
How to Do..
Linux
Node.js
PowerShell
SDK
Storage
VHD
Virtual Machine
VM Role
VMRole
WebSites
Windows Azure
Monthly Archives
Archives
April 2013
(1)
March 2013
(1)
February 2013
(3)
January 2013
(3)
November 2012
(6)
October 2012
(4)
September 2012
(1)
August 2012
(1)
July 2012
(1)
June 2012
(7)
May 2012
(8)
April 2012
(9)
March 2012
(5)
February 2012
(11)
January 2012
(25)
December 2011
(28)
November 2011
(30)
October 2011
(31)
September 2011
(27)
August 2011
(18)
July 2011
(16)
June 2011
(16)
May 2011
(18)
April 2011
(20)
March 2011
(15)
February 2011
(21)
January 2011
(10)
December 2010
(16)
November 2010
(8)
October 2010
(8)
How to Modify Registry keys in Windows Azure Virtual Machine from a web or worker role?
MSDN Blogs
>
Avkash Chauhan's Blog
>
How to Modify Registry keys in Windows Azure Virtual Machine from a web or worker role?
How to Modify Registry keys in Windows Azure Virtual Machine from a web or worker role?
Rate This
Avkash Chauhan - MSFT
23 Dec 2011 1:51 PM
Comments
0
If you have a requirement and decided to modify VM registry keys, you have two options:
Do it from a Standalone Startup task
This modification will be completed even before your role start
Be sure to run the startup task as in elevated mode.
You just need to use standard Windows API to access the VM Registry and make modification
You can update the registry the same way you do in any Windows command line application
You can also write a small code to update the Azure Storage with registry update status to be sure your update went well.
Sometime, you may needs to modify the registry and then reboot the machine to make it accessible to role, which can be done here
Do it in your Role OnStart() function
This will be done the same way
Most of the registry changes will be available after the role start
One advantage I see here is that you can generate a role environment change event, and perform specific task if needed
Restart role can be done here or if you would need to reboot the VM , you can do it
Code will be same as any standard Windows API to change the registry
0 Comments
Windows Azure
Leave a Comment
Name
Comment
Please add 8 and 4 and type the answer here:
Post