Output from code running on azure cloud

How do I get the log files from an azure cloud service / or the output from an azure cloud service.
I DO NOT mean the azure cloud logs, i.e. the logs produced by the management portal - I mean the actual output of my code.
If I run the code locally it goes to console, so I can see it, but how do I see it when it is running as an azure cloud service?
I am on VS2013 / .NET4.5 / Azure SDK2.4
thx

Hi,
Requests may be load balance to different azure cloud service instance, so azure storage service is a good choice to save the log message, based on your description, you don't want to use azure cloud logs, because it is produced by management portal, I don't
know whether you mentioned is Azure Diagnostics or not, as far as I know, we can log our exception code to azure storage just use Trace.WriteLine(), refer to 
http://blogs.msdn.com/b/sumitm/archive/2009/11/25/windows-azure-walkthrough-simple-logging.aspx for more details,and
azure storage explorer is a good tool to see the error details, below is the article that show us how to Configure Diagnostics for Azure Cloud Services.
#http://msdn.microsoft.com/en-us/library/azure/dn186185.aspx
If I misunderstand, please feel free to let me know.
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.

Similar Messages

  • 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.

  • URGENT-CREATE A HTML FILE WITH AN STRING INPUT FROM THE RUNNING JSP

    I am designing a web page where the user enters a page after entering his/her login and password.The User should now be provided with a display page containing the servers that he has permissions for access.The servers that he has permissions are maintained in a database(a normal text file in UNIX).
    Till now the program has been complete for displaying the servers that are available to him.
    I need to create a HTML form containing these servers names in a check box so that when the user clicks thcheck box against the server name it should go to the server and get the password for the required server.
    THe intention from me is to create a HTML file that dynamically takes values from the running JSP means the server names as a string value to its input and then i can continue
    Please guide me in creating a HTML form based on the string output from the running JSP
    FileInputStream fs = new FileInputStream("/root/Auth_Application/User_Access_List");
    DataInputStream in1 = new DataInputStream(fs);
    int fl=0;
    while (in1.available() !=0)
    String str1=in1.readLine();
    StringTokenizer st1 = new StringTokenizer(str1);
    String usernam=st1.nextToken();
    if (usernam.equals(uname))
    String ip=st1.nextToken();
    String host=st1.nextToken();
    fl=1;
    out.println("<tr><td>                                                                                              "+ host + "</td><td> " + ip +"</td></tr>");
    if (fl == 0)
    out.println("YOU HAVE NO SEVRER IN YOUR PROFILE !");
    in1.close();
    The host string here is the server name
    the ip is the ip address of the server
    Need to input these values to another HTML page that contains the check box list of the servers .
    once these are clicked i think i can pass on this to another JSP and retreive passwords
    Please guide me in this

    FileInputStream fs = new FileInputStream("/root/Auth_Application/User_Access_List");
                                    DataInputStream in1 = new DataInputStream(fs);
                                    int fl=0;
                                    while (in1.available() !=0)
                                    String str1=in1.readLine();
                                    StringTokenizer st1 = new StringTokenizer(str1);
                                    String usernam=st1.nextToken();
                                    if (usernam.equals(uname))
                                    String ip=st1.nextToken();
                                    String host=st1.nextToken();
                                    fl=1;
                                    out.println("<tr><td>                                                                                              "+ host + "</td><td>          " + ip +"</td></tr>");
                                    if (fl == 0)
                                    out.println("YOU HAVE NO SERVER IN YOUR PROFILE !");
                                    in1.close();I feel sorry for the inconvenience that is caused as i am new to using these forums.
    I have here used a simple program to retreive the names of the servers that the users have acess to..
    I have here read the servername and server ip stored from a file in UNIX in the running JSP.Now i need to pass these string variables to HTML file and display it in a Check box format.the strings host and ip have to be passed to the input of the HTML file so that they can further be processed once they are clicked using another JSP.
    Can anybody please help me in Passing these strings from the running JSP and display it in a check box format

  • Run python code in big compute cloud of Azure

    So--
    I have a script in Python that I want to run. However, this script produce a VERY large amount of data that my computer CPU can't handle.
    How can I run a code in python in the big compute section of Azure?
    Step-by-step what do I do?
    Thanks

    Hi,
    Firstly, I recommend you refer to those tutorials to try to deploy your project on azure cloud service, such as Tutorial:
    Tutorial: Running a Python Web Application in Windows Azure
    Python on Windows Azure –  a Match Made in the Clouds!
    And this docs http://azure.microsoft.com/en-us/develop/python/ .
    Secondly, I suggest you could enable your could service autoscale feature (http://azure.microsoft.com/en-us/documentation/articles/cloud-services-how-to-scale/
    ). It could meet your project requirement.
    Hope this helps.
    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.

  • Allow desktop interaction within Azure Cloud Service with third-party desktop app (automated via code)

    Hello,
    I am developing a wrapper service as Worker Role which will take request from Service Bus and automate a third-party desktop app to produce an output file and then upload result back to our web server.  The automation is accomplished with the app's
    built-in .Net remoting based API.  This all works on my local development machine.  I am using code as below to start the desktop app.  In Azure:
    If I am not logged on to RDP and run the app as SYSTEM (or whatever the default WorkerRole account is), it waits forever for the MainWindowHandle.
    if I start the app manually in the RDP and try to get a reference to the running process (again as SYSTEM), I get Access Denied from WaitForInputIdle.
    if I start the app from code as the RDP user (ProcessStartInfo assign user/pass), I get InvalidOperationException - the app might not have a graphical interface from the WaitForInputIdle.
    Could anyone suggest the proper strategy for starting processes in a Worker Role that must create a window?
    For reference, I only care about the window to the extent that I need to make sure it's there.  All other interaction with the process is via the .Net Remoting API.
    private void GetOrStartThirdPartApp()
    _process = Process.GetProcessesByName("ThirdPartApp").FirstOrDefault();
    if (_process == null)
    _process = new Process();
    _process.StartInfo.Arguments = string.Format(@"-I ""{0}""", config.GetSetting("RolePath"));
    _process.StartInfo.WorkingDirectory = config.GetSetting("WorkingFolder");
    _process.StartInfo.FileName = config.GetSetting("ExecutablePath");
    _process.StartInfo.LoadUserProfile = true;
    _process.StartInfo.UseShellExecute = false;
    if (config.GetSettingAsBoolean("StartThirdPartAppWithRunAs", false))
    _process.StartInfo.UserName = "user";
    var password = new SecureString();
    foreach (var c in "thepassword".ToCharArray())
    password.AppendChar(c);
    _process.StartInfo.Password = password;
    _process.Start();
    while (_process.MainWindowHandle == IntPtr.Zero) Thread.Sleep(50);
    _process.WaitForInputIdle();
    _process.Exited += _process_Exited;

    I'd keep the app with the UI and the queue reader in the same process and account - not a worker role.  On start up you launch the desktop application and the queue reader in the same account, one after another.
    From what I've experienced, two users don't have the same
    Window Stations, so you can't pass a window handle in a different logged-in account across that boundary.  Read the Window Station documentation - you may find something that helps.
    You could use other techniques like sockets to communicate cross-process and cross-window station, too.
    Darin R.

  • "Failed to debug the Windows Azure Cloud Service project. The Output directory .... does not exist" - Looking for Solution Config Name Folder?

    Good evening,
    I've been working on and with a VS2013 Update 2 / Azure SDK 2.3 Cloud Service project for a while now and never had a problem debugging it (setting the .ccproj Project as Startup Project) but at the moment I cannot Debug it anymore - I always get the following
    error message:
    Failed to debug the Windows Azure Cloud Service project.  The output directory 'D:\Workspace\Development\Sources\AzureBackend\csx\Backend - Debug' does not exist.
    Now what's odd here, is the last part - the "Backend - Debug" is the Solution configuration name, ALL projects in that particular solution configuration are set to the Debug Configuration. The .ccproj file also only specifies Debug|Any CPU (and
    Release|Any CPU respectively) as its output folder(s). Why is the Solution config appearing up there?
    And more importantly.. why is this happening and what can I do?!
    Thanks,
    -Jörg
    Ps: there seems to be a related
    connect bug and these sorts of issues do appear around the forums but none contains a solution (neither reinstalling the Azure SDK nor cloaking the workspace/re-retrieving & building everything worked).

    Good morning Jambor,
    I already tried de-installing everything Azure-Tooling related including the Azure SDK, Restarting my machine and re-installing the SDK.
    Same result. I can build the .ccproj perfectly fine and the cspack file IS generated perfectly fine, only debugging does not work and there's NO information in the VS output window (again - all projects succeed to build).
    I tried explicitely running VS as Administrator, no change. I removed all IIS Express sites (as the ccproj has one web worker role), remapped my local TFS workspace.. nothing helped.
    As building works, deploying to Azure Cloud Service (manually and via Publish inside VS) all works -perfectly-, I am pretty sure this IS a bug and I'd LOVE to help to get this fixed. As I said, currently I cannot debug and/or run & test my work, hence
    I cannot do ANY work.

  • Can't publish to Azure Cloud Service from Visual Studio 2013

    I have a VS project that I upgraded from VS 2012 to VS 2013. I can run it locally, and had no issues publishing to Azure when I was using VS 2012. When I attempt to publish the upgraded app to an Azure Cloud Service that already exists, I am getting this
    error.  Note that I have checked the Service Config files and did a search on the entire solution and can not find any reference to "LocalStorage1" anywhere in the Project or Solution. I have another VS 20113 Project that publishes just fine
    to Azure Cloud Service. Any ideas on how to fix this?
    PUBLISH ERROR:
    Windows Azure could not find the resource LocalStorage1 in the service package. To upgrade the deployment, you must add the resource. Otherwise, perform a new deployment.

    That's actually what I meant in my first post. When publishing to a new service, it is fine, because the deployment does not have to compare what is already there (it is a new service, so nothing is there) and what is in your package. But while upgrading
    a service, bunch of settings have to match between an existing service and the package you are trying to upload. So the error you got wasn't about you having something extra in your package, but having something extra in your existing service and missing in
    the package you were uploading. Hope that helps.
    Anyway, please move this question to cloud services forums (this one is for web sites only), as there are experts in that area and they might be able to help you better.
    Thanks,
    Petr

  • What is the best way to run two programs simulataneously using the output from one to run the other?

    I just kind of wanted to get an opinion from some people on here. I have two main VIs. The first is a DAQ system that reads 99 different sensors and feeds that data into an array. The second is a real-time processing system that is designed to take the array and do numerous calculations. Both VIs output data to the front panel that I want to see, so I don't want to just use one as a SubVI.
    Is there a simple way to run both VIs, using the output from the DAQ system to feed the processor so that you can easily see the front panels of both VIs? I had considered just copying the real-time processor code into the DAQ VI, but I'm worried the resultant VI will be very large and unsightly.
    On a side note, am I over thinking this? Excuse me if this is a rather dumb question, it's been a long week...aaaand it's Wednesday.
    Solved!
    Go to Solution.

    There are a number of ways that you can go about this, but having both front panels open isn't a problem (assuming there is screen space!). Both could be sub-vi's of another "calling" vi, with their front panels set to open when called. The data from the DAQ side can be sent to the other through a number of ways, "producer-consumer" (many threads about this topic, examples in the LabVIEW examples, etc.) is one of the more robust techniques. If created correctly it allows one to run at a different rate than the other, although if the producer is "producing" much faster than the consumer can "consume" it will end up with problems.
    I guess I type too slowly
    Putnam
    Certified LabVIEW Developer
    Senior Test Engineer
    Currently using LV 6.1-LabVIEW 2012, RT8.5
    LabVIEW Champion

  • Instantaneous Output to MainVI from Currently Running SubVI

    My mainVI calls a subVI which outputs a value based on the given input. I want the output from the subVI to update in my mainVI instantaneously as the subVI is running. Currenlty the output in my mainVI arrives only after the subVI has completed execution. I need to have instantaneous output from subVI in my mainVI so that way I can use that instantaneous value to do other calcuations. 
    I tried using reference as the output, but even with that method the output only arrives at the end of the subVI execution. 
    Attachments:
    mainVI.vi ‏13 KB
    subVI.vi ‏14 KB

    Your VIs are a mess and full of race conditions and beginner mistakes. Many code parts don't make a lot of sense.
    If you read and write to local variables (e.g. the done?" boolean), you need to ensure that it is set to FALSE before the loop starts and the code has a chance to read the potentially stale value. Else you get race conditions. (LabVIEW does not execute left-to-right, execution order is only determined by dataflow).
    Incrementing in a loop is better done with shift registers instead of hordes of local variables.
    Here's a simplified and corrected version. See if it does what you want. Modify as needed. There are many improvements possible.
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    subVI_MOD.vi ‏14 KB
    mainVI_MOD.vi ‏12 KB

  • Reading the output from a object running in the local machine.

    Reading the output from a object running in the local machine.
    By using a signed applet i am lunching a small application that returns an image object, how to read that without storing it in the hard disk.
    Which means i need to read the image object return by the local application using applet or jsp .
    i am using tomacat and an html page with an applet with it to lunch the application.

    You can write that image in a binary format using OutputStream for System.out and then read it in your applet.

  • HT1338 My MacBook Pro is running OSX 10.6.8.  I understand that to change from Mobile me to the Cloud I need to run 7.1.  There are no updates outstanding.  After reading this update page, I do not know what to do next to get to 7.1, or am I ok with curre

    I am trying to move from Mobile me to The Cloud which requires version OSX 7.1.  My version is 10.6.8 and is fully updated using the instructions provided on how to perform the transfer to the Cloud.  What do I do next to get to the 7.1?

    Welcome to Apple Support Communities.
    If your computer meets the minimum requirements, you can purchase and download OS X 10.7 'Lion' from the Mac App Store online. It is also available on a flash drive at about double the price of the download.
    http://www.apple.com/macosx/
    Specs, minimum hardware requirements, and upgrade paths for OS X 10.7 'Lion' are also listed here:
    http://www.apple.com/macosx/specs.html
    Even though Lion runs in 2GB system RAM, 4GB or more is highly recommended.
    Also be aware that Apple recently announced the next version of OS X, 10.8, called 'Mountain Lion', but no firm date for availability, other than 'coming this summer.'
    http://www.apple.com/macosx/mountain-lion/

  • I need Encore CS6 and it is not available on Creative Cloud.  Neither is Premier Pro CS6 which supposedly installs Encore CS6.  I need to burn a DVD from my mpeg4 output from Premier Pro CC2014.  What should I do?

    I need Encore CS6 and it is not available on Creative Cloud.  Neither is Premier Pro CS6 which supposedly installs Encore CS6.  I need to burn a DVD from my mpeg4 output from Premier Pro CC2014.  What should I do?

    You should probably post your question about burning a DVD from Premiere Pro in the Premiere Pro forum
    Here is a link to info regrding getting CS6 applicarions thru the Cloud with a full subscription...
    Get CS6 Apps from Cloud Subscription:
    Download previous versions of Adobe Creative applications -
    http://helpx.adobe.com/creative-cloud/kb/download-previous-versions-creative-applications. html

  • Compiling java code from a running java application

    How does compiling of java code from a running java application work?
    I found a class: com.sun.tools.apt.main.JavaCompiler
    but cannot find any documentation of how this class works.

    How does compiling of java code from a running java
    application work?Probably most reliably using Runtime.exec().
    I found a class:
    com.sun.tools.apt.main.JavaCompiler
    but cannot find any documentation of how this class
    works.For a purpose. You are not supposed to use this class. With the next JRE release or implementation, it might not exist anymore - it's not part of the standard API.

  • I believe I have implemented it correctly but I am not receiving the notifications on my phone. I have an ad hoc provisioning profile set up.  I have the device token from the phone through NSLOG to console. I have the dot net code running without errors.

    I believe I have implemented it correctly but I am not receiving the notifications on my phone. I have an ad hoc provisioning profile set up.  I have the device token from the phone through NSLOG to console. I have the dot net code running without errors.The notifications just don’t appear.
    Any ideas where I am going wrong?

    IMAP account access by itself does not provide for syncing contacts, calendar events, and notes or anything over the air. This is possible with an Exchange account accessed via ActiveSync with the Exchange Server.
    If your company email account is an Exchange Account, your company's IT Dept. has enabled IMAP account access for your Exchange account on the Exchange server?
    If an Exchange account, the IT Dept. must have ActiveSync enabled for your account on the Exchange Server to create and access the account as an Exchange account which provides Push access for received messages, and over the air syncing for contacts and calendar events with the Exchange Server.

  • Connectiong Visual Studio 2010/2013 to SQL Database and Running VS Windows Form App in the Windows Azure Cloud

    Hi, good day
    Im going to have a little presentation before I finished my OJT and the topic that was given to is cloud computing. One of the task I need to do is to set up an application where in it can run and access real time on the "cloud". Now my prob is
    I already have windows azure account, made my database, BUT don't know how to connect it to my Visual Studio 2010/2013 (which is more preferable?), and if I ever connect it when my Windows Form is made can it run on the cloud also, how? Please help. Thank
    you so much.
    PS: I will be discussing this with people who doesn't know much about computing can you send me tips what to discuss? Double Thank You. :)

    Thank you for the help.. Another thing can I run my Windows Form App also on the cloud? Like if I present is it possible that the application that I will be doing can be uploaded and accessed on the cloud by the audience and can be used by many at the
    same time? Can you tell me how? Or give me a source how to do it? I downloaded the azure tools but I don't how to use it. I checked and tried activating and fixing my IIS and enabling support for ASP but still nothing, when I try to do cloudservice it says
    "get azure tools" even though I already have it installed in my laptop, and when I try to right click and upload the project to azure I don't see the usual option 'Upload to Microsoft Azure'. My app is a simple phonebook app with add, edit, delete and search
    function. Thanks again..

Maybe you are looking for

  • I can't open iTunes with the following error page...

    Process:         iTunes [5701] Path:            /Applications/iTunes.app/Contents/MacOS/iTunes Identifier:      com.apple.iTunes Version:         10.5.2 (10.5.2) Build Info:      iTunes-10521101~1 Code Type:       X86-64 (Native) Parent Process:  lau

  • JSP not working on migrated domain

              I migrated my Weblogic 5.1 properties file to Weblogic 6.0           using the console.           I am unable to invoke the HelloWorld.jsp from a browser when I           place it in my \applications\DefaultWebApp-myServer directory.       

  • XSD from PI in Syndicator

    Bonjour I have created a message type in PI and exported the XSD. However when I want to use that XSD in the syndicator no root element is available. Any with similar issues. FV

  • My iPhone 4 is in screen lock

    How do I get my i4 off of screen lock

  • Muse works with fractions of a pixel but does not display decimals.

    I've had a lot of problems with pixel-perfect design in Muse and finally figured out why. Like Illustrator, Photoshop, or anything else, Muse is able to place and size objects to fractions of a pixel; eg. 50.5 pixels. However, the transform panels do