How to move worker roles to VM?

I've developed an app that has 3 worker roles and a web role.  The client has decided that they want to put this on a VM.  I understand how to handle the web role but I am unclear how I convert the worker roles.  I've searched but I can't
find anything that directly guides me on what's needed.  Does anyone know of a link that would show me how to convert over?

The easiest way to develop a Windows Service in my opinion is using
Topshelf.
You can convert your Worker Role code across pretty easily by
calling the Run code from the WhenStarted event, the OnStop code from the WhenStopped event and the OnStart code from the constructor of your service class.
Alternatively, you can
inherit the ServiceControl interface and implement the Start and Stop methods.
Deploying the service is easy too. Simply get the built files from your console app (a Topshelf service is simply a console app) and
invoke the app (e.g. PowerShell script) with the install parameter, then again with the start parameter.

Similar Messages

  • How is a Worker Role hosted?

    Hi
    How is a worker role hosted in Azure. What process is it in?
    I'm thinking of how to test locally or an on premise version. Is the Azure host process simply a windows service?
    I'm writing a solution that uses the Service Bus for Window Server 1.1 as my customers all use on-premise servers (at the moment). It would be handy if I could create a worker role for on premise solutions :)
    Thanks
    Graham

    Hi Graham,
    Thanks for your posting!
    Base on my understanding, Azure worker role is used for some services would run in the background to collect, transform, and prepare data.  In other words, Azure work role could
    executive function to a background processor .
    In worker role project, we could see  the file named "WorkerRole.cs". The class inherited the "RoleEntryPoint".
    public class WorkerRole : RoleEntryPoint
    public override void Run()
    // This is a sample worker implementation. Replace with your logic.
    Trace.TraceInformation("WorkerRole1 entry point called");
    while (true)
    Thread.Sleep(10000);
    Trace.TraceInformation("Working");
    public override bool OnStart()
    // Set the maximum number of concurrent connections
    ServicePointManager.DefaultConnectionLimit = 12;
    // For information on handling configuration changes
    // see the MSDN topic at http://go.microsoft.com/fwlink/?LinkId=166357.
    return base.OnStart();
    When one worker role instance was starting, it could be executed "OnStart()" method firstly. Then in a worker role’s lifecycle is the "Run" method, typically implemented as an infinite loop, such as "While(true) ".
    In fact, if the Run method terminated, the instance would be restarted or recycled again. Please see this video (http://channel9.msdn.com/Series/Windows-Azure-Cloud-Services-Tutorials/Introduction-to-Windows-Azure-Worker-Roles-Part-1).
    For your question----" Is the Azure host process simply a windows service?", the answer is that one worker role can be one or more than one instance (VM).
    And in your scenarios, Worker role could meet your requirement. In VS, Azure SDK support one project template named "Worker role with service bus queue". Please see this documents:
    http://msdn.microsoft.com/en-us/library/azure/jj149831.aspx
    Regards,
    Will
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to deploy worker role to Azure cloud via portal

    Hi
    I have two worker roles in my VS Project and I need them to be running on Azure cloud. I have created the storage accounts, the worker roles are using Queues, that I created using c# code.
    I looked up some articles and they say I have to create a hosted services from top left corner, but I don't see any hosted service link on my portal. (I am thinking the new version of Azure Portal does not have hosted service link, probably been replaced
    with something else but I don't know what it is)
    Can someone please help me what to do after I create a package and have the config and package files in app.publish folder. How to deploy the  worker roles in cloud using the Portal
    Thanks
    -Sarah

    Hi,
    >>I looked up some articles and they say I have to create a hosted services from top left corner
    As far as I know, cloud service was called hosted service in old azure platform, see below old platform screenshot.
    About deploy your application to cloud service, please refer to
    http://azure.microsoft.com/en-us/documentation/articles/cloud-services-how-to-create-deploy/ for more detail information.
    Best Regards,
    Jambor
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to move last roles to first

    Hi,
    In EP portal one user having 50 roles.
    for accessing 30th(super admin) role need to scroll and click the role. Now I need to move 30 th role to first.
    How to possible this without removing and adding once again.
    Thanks
    Polaka
    Edited by: polaka123 on Nov 20, 2010 10:17 AM

    hi polaka,
    search for Sort priority for roles in SDN, its in between 0 to 100, and default 100,
    the minimum sort priority value object comes first. check this help link for more[ HELP|http://help.sap.com/saphelp_nwce711core/helpdata/en/92/3e703e632c7937e10000000a114084/frameset.htm]
    regards
    Mahesh
    Edited by: maheshchandra.lanco on Nov 22, 2010 11:27 AM

  • I have aperture 3.2.4 on my laptop and have the serial number, but just bought a new MAC and I can't get the Ver 3.0 link to work. Anyone know how to move it from my laptop to our new mac?

    I have aperture 3.2.4 on my laptop and have the serial number, but just bought a new MAC and I can't get the Ver 3.0 link to work. Anyone know how to move it from my laptop to our new mac?

    I am talking about the Ver 3 download link that came with the purchase email.
    That link is no longer available. Use "Migration Assistant" to copy your Applications from your old mac to the new Mac, then immediately run software update. Aperture Version 3.2 will not run on your new mac with Mavericks, you will have to Upgrade to version 3.4.5 at least - you can download this update from the Support page: Aperture 3.4.5
    Then launch Aperture and enter your registration key and try now too update from version 3.4.5 to 3.5 from the AppStore. The AppStore will change your Aperture registration to an AppStore version, so you will able to reinstall by downloading from the AppSTore in future.
    If you want transfer only Aperture and no other applications, do it manually: You will have to copy not only the application but folders from the libraries as well:
    /Applications/Aperture.app
    /Library/Application Support/Aperture/
    ~/Library/Application Support/Aperture/
    Leonie

  • How to move pics from camera role to photo stream?

    How to move pics from camera role to photo stream?

    before you fiddle with it you may want to back up your photos on your PC. This is how to move them from phone to PC.
    How to Transfer photos from HTC memory to PC
    1) From the phone: select: Menu>settings>connect to pc>as disk
    2) Attach phone to pc with usb cable
    3) From pc open: Computer>removable disk F>dcim>100media
    Note: you can also pull the mini sd card out of you phone and plug that directly into your computer. just make sure to unmount the disk through your settings options before you remove it from the phone.

  • Does anyone know how to change .mov to a supported file extension (and what extension would you suggest)? .mov works on Apperture 3.0 so I thought it would work on Final Cut Pro X....

    Does anyone know how to easily change a .mov file extension to one of the accepted Final Cut Pro X extensions?  I thought since .mov worked in Aperture 3.0 it should work on FCP X.  Thanks

    Hi Tom
    Thanks
    I am now doing some 1 minute import tests from various Q/T's
    They are all in the same place on an External 1 TB Western Digital - connected by Firewire 800
    I have just imported some 1 minute tests from  other Q/T 's and they have imported Ok - quickly imported and transcoded etc fine and quickly.
    Using your suggested methd of getting the details using Quicktime 7 Movie Inspector I can see NO DIFFERENCE in the formats!  In fact with four of these files open I can click on each in turn and see the Inspector details for each in turn - and only the name, size etc changes - not the format!
    I am really upset and confused by this as I have been trying for the last four days to get these imported.  I realise that this is small potatoes to those who are having problems with even FCP 7 Files!  But, these are q/t's of 30 hours worth of unique reserahc material I shot in Africa. I have made several programmes from this material before (one even shown on Discovery!)  I WAS hoping that I could use the new and all singing FCPX to make some new programmes for teaching purposes
    But, how can I do that if only some will import?  As I posted elsehwre - i get the message "No importable files"
    I am REALLY grateful for your expertise and advice here
    thanks
    Alan
    PS  I am using Lion

  • How to develop and deploy multiple worker roles in single azure cloud services?

    I am Manikandan, From Myeasydocs.com.
    We have developed our application as web projects.  Now we are going to move to azure cloud services, i have successfully migrated our application in cloud services and it worked fine. I am having difficulties with back ground task. i have nearly 12
    schedule tasks in our applications. I need assist on creating multiple worker role creation and deployment.
    Is there is any site on explaining the worker role process in details?
    Thanks in advance .. !!

    Hi,
    In Worker role, Applications hosted within worker roles can run asynchronous, long-running or perpetual tasks independent of user interaction or input. It is a service component that is useful for generalized development, and may perform background processing
    for a web role. A worker role is frequently used for long-running tasks that are non-interactive, but you can host any type of workload.
    I suggest you to follow the below article which explains about Creating and Deploying of Web Roles and Worker Roles in Azure Cloud Service using Visual Studio.
    https://msdn.microsoft.com/en-us/magazine/jj618299.aspx
    Hope this helps !
    Regards,
    Sowmya

  • How to move workbooks from one role to another role

    Hi experts,
    I need few inputs from your side. I have a few workbooks in different roles, i need to move all workbooks into singel role.
    Let say role 1 has 3 workbooks and role 2 has 4 workbooks. Now i need to move the 7 workbooks in new role3. I have a role3.
    after moving the workbooks into role3, i need to delete the workbooks in role 1 &2.
    Can you please anybody give me the inputs. how to move the workbooks.
    another thing is i dont have authorization for PFCG. It is only for developmetn system.
    Thanks in adance.
    surendra

    Hi Surendra,
    The "Save as" option is the best solution (I guess the only solution) for your requirements. Once you have moved the workbooks new role you can delete the old ones.
    Bye
    Dinesh

  • How Does The security-role Mapping Work?

              I am studying the security part of the deployment descriptor. I am confused about
              how the mapping works.
              Suppose we have
              <security-role>
              <role-name>manager</role-name>
              </security-role>
              and
              <security-role-ref>
              <role-name>FOO</role-name>
              <role-link>manager</role-link>
              </security-role-ref>
              My first question is when a client of the servlet supplies a name for authentication,
              the name supplied should be FOO or can be, say, John Smith?
              Then, according to the Servlet Specification, a security role is a logical grouping
              of users defined by the Application Developer
              or Assembler. When the application is deployed, roles are mapped by a Deployer
              to principals or groups in the runtime environment.
              My second question is how deployer maps the role, say, manager, to principals
              or groups in the runtime environment?
              Thanks in advance.
              

              Thanks a lot, Udit.
              "Udit Singh" <[email protected]> wrote:
              >
              >Hello,
              >The role-name is mapped to principals or gruops based on the security-role-assignment
              >entrires in weblogic.xml. Let us say you have a role-name FOO and you
              >want to
              >assing this role to users John and Mark. You need to make this entry
              >in weblogic.xml-
              ><security_role_assignment>
              > <role-name>FOO</role-name>
              > <principal-name>John</principal-name>
              > <principal-name>Mark</principal-name>
              > </security_role_assignment>
              >
              >so now actually the user need to supply John or Mark as user name at
              >the time
              >of authentication . Hope it helps.
              >
              >Udit
              >
              >
              >"[email protected]" entrance wrote:
              >>
              >>I am studying the security part of the deployment descriptor. I am confused
              >>about
              >>how the mapping works.
              >>Suppose we have
              >><security-role>
              >><role-name>manager</role-name>
              >></security-role>
              >>
              >>and
              >>
              >><security-role-ref>
              >><role-name>FOO</role-name>
              >><role-link>manager</role-link>
              >></security-role-ref>
              >>
              >>My first question is when a client of the servlet supplies a name for
              >>authentication,
              >>the name supplied should be FOO or can be, say, John Smith?
              >>
              >>Then, according to the Servlet Specification, a security role is a logical
              >>grouping
              >>of users defined by the Application Developer
              >>or Assembler. When the application is deployed, roles are mapped by
              >a
              >>Deployer
              >>to principals or groups in the runtime environment.
              >>
              >>My second question is how deployer maps the role, say, manager, to principals
              >>or groups in the runtime environment?
              >>
              >>Thanks in advance.
              >>
              >>
              >>
              >
              

  • My movie I recently downloaded from itunes "Act of Valor" only works for a out 5 chapters, then it stops working. Other movies work on my iPod touch. How do I fix this issue? If I can't, can I get my money back?

    My movie I recently downloaded from itunes "Act of Valor" only works for a out 5 chapters, then it stops working. Other movies work on my iPod touch. How do I fix this issue? If I can't, can I get my money back?

    - Go here and see if you can redownload the movies. If you can then delete the movie and redownlod it.
    Downloading past purchases from the App Store, iBookstore, and iTunes Store
    - Otherwise, contact iTunes and explain your problem. They should allow a free redownload.

  • How to pass input arguments to Worker Role Application using Powershell

    Hi All,
    I have a worker role running in Windows Azure Portal. I need to pass arguments to this Worker role service and get the output by using PowerShell.
    Can someone please specify how this can be achieved using PowerShell?
    Thanks and Regards,
    Vivek

    Hi,
     Please refer to the Following StackOverflow article that talks about how to configure PAAS instances for Powershell remoting.
     http://stackoverflow.com/questions/15787768/accessing-azure-cloud-service-paas-instances-via-powershell-remoting
    Regards,
    Nithin Rathnakar

  • How to know the CPU performance of Worker Role & Web Role

    Hi,
    We found out the CPU percentage for both Worker Role is less than 1% (0.77).
    Any idea why it is very less?
    Please help!
    Thank you!
    Regards,
    Krishna 

    Hi,
    We can collect our CPU utilization information, and the article below give us the detailed steps to do this.
    #http://azure.microsoft.com/en-gb/documentation/articles/cloud-services-dotnet-diagnostics/
    there are many factors that affect CPU, I would suggest you analysis of
    the information we received to find out the detailed information.
    Best Regards,
    Jambor 
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to move worksheet saved on database from one instance to another?

    Hi Every one,
    How to move worksheet or workbook saved on database from Discoverer plus from one instance to other instance?
    Is there any way to save a workbook or work sheet on to local drive from discoverer plus.?
    Thanks
    santhosh

    Hi,
    You have 2 options: use Discoverer Administrator to export/import the workbook; or use Discoverer Desktop to save the workbook to the local drive.
    You cannot save a workbook to the local drive using Discoverer Plus.
    Rod West

  • How to move up within a URL path?

    Recently started using URLs in my programs. Works great. However, all the
    time I have been wondering how to move up in that URL path. For example,
    if my url1=("http://www.something.com/") I normally end up at the index.html.
    But how could one set up a relative url reaching a file or directory at the same
    level as that index.html? I suppose one should go up onel level and then
    specify the name of the required file.
    I tried to use things like url2= new URL(url1,"../myfile") but that doesn't seem
    to work.
    Anybody has an idea? Thanks in advance.
    Dirk

    martin@work wrote:
    Hi,
    you can't, if your web server provides the minimum of security. In the web server configuration you normally map a base url to a physical directory on the server and the web server does its very best to assure that you can only access files in that physical directory and below, and that all other files on the server in any upper or parallel directories are not accessible.
    If you want to access files in a parallel directory then you have to create a further mapping in the web server which maps another base URL to that directory.
    Martin To reinforce what Martin says: if you cannot do this with your web browser, don't expect to do it with Java.
    On the other hand, if you can do it in your web browser, we misunderstood your question and please
    reformulate it using actual URL's (or at least the portion following the host name).
    Edited by: baftos on Apr 25, 2008 9:28 AM

Maybe you are looking for

  • Use SWF to play another SWF

    I've been looking over the net for a while and couldn't find the answer, so I figured I would try here.  I'm designing a website, where there is a swf file on the right, and a swf file on the left. I want the one on the left to be able to communicate

  • Error message when attempting to edit

    When I try to edit a picture, I get the following message, "items on removable volumes". Items are on my hard disk.

  • RoboHelp 8 Crashes on Updating All Files

    Hi there I am using TCS 2.0 wth RoboHelp 8 and FrameMaker 9. I have many issues with this integration but that can wait for later. My current issue is with Robohelp that continuously crashes when I do an Update All. Files are linked between Frame and

  • Problem with creating entities

    Hello, I have problem with Oracle Designer 10.1.2.0.2. I open new ERD and click on button for creating new entity. I put name, short name and plural and click OK, but nothing happens. Simililar situation is for other diagrams too. When I want create

  • My iPad 3 has lost photostream pictures

    my iPad 3 lost contact to photo stream today. it worked before, however, it started with not adding the new pictures and finally it lost all pictures, now showing an empty photo stream. it happened while using iPhoto for iOS in parallel to the photo