Taking a web role instance offline

We ran into a mission-critical problem when one of the three web role instances became unresponsive while maintaining the appearance of a healthy instance with the Azure Load Balancer, causing traffic getting directed there and creating an outage.
We wanted to investigate the problem but could do it due to time pressure - the service needed to be available. We ended up re-imaging the instance which brought our web role back online. However, we would have preferred to take the offending instance offline
without rebooting or re-imaging it in order to be able to investigate.
Is there any way of taking an instance out of the Load Balancer round-robin? We can connect via RDP and kill processes/run commands. Tried to kill WaIISHost.exe but it didn't appear to make a difference.
Thanks,
David.

Hi,
As far as I know, if we do some manual operations in azure web role instance, such as RDP to it and kill some process or run commands, the changes will be lost, please note that a rollback can be performed by Windows Azure Fabric Controller when
an update or upgrade is in the in progress state on the deployment, Details on Rollbacks can be found here:
http://msdn.microsoft.com/engb/library/windowsazure/hh472157.aspx#RollbackofanUpdate
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

  • Cloud service web role did not get request

    Hi Team,
    we have an application host in web role in a cloud service, 
    sometimes it keeps loading when clicking a button in GUI and got no response till our GUI timeout (30 minutes)
    we use Fiddler to trace the http request and also check IIS logs and found that sometimes the web role didn't get a request,  sometimes the IIS
    got the request and finished to processe the request but didn't return result to GUI.
    it seems the message lost during interaction between UI and web role.
    note that this problems comes out just recently.
    is there some known issues related with this kind of problems. 
    thanks in advance.

    hi Baker,
    Firstly, I need confirm what's meaning is GUI from your description ? The GUI is your cloud service project UI? Or your UI in your client?
    Secondly, base on my experience, we usually could occur timeout error because of the azure load balancer and the long time request.
    For this error, I recommend you refer to those thread:
    Azure Web Role - Long Running Request (Load Balancer Timeout?)
    Windows Azure Load Balancer TimeOut for Cloud Service Roles (PAAS Web/Worker)
    Windows Azure Load Balancer Timeout Details
    http://social.msdn.microsoft.com/Forums/windowsazure/en-US/89b283f0-dfca-49a7-99fe-c3b73d77ff6d/azure-load-balancer-sending-http-request-to-multiple-web-role-instances?forum=windowsazuredevelopment
    If I misunderstood, please let me know.
    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.

  • Azure Worker Role reboots when adding instance of Web Role

    I have a Windows Azure cloud service with a Web Role and a Worker Role. I I have built a website that allows me to perform various management functions against the cloud service (stop/start, reboot instance, add instance, remove instance). All functions are
    performed via the web api. My issue is that when I add an instance of the web role, the worker role reboots. Note that this doesn't happen if I add an instance via the Azure portal. The code functions correctly in all other aspects. Any idea how to do this
    so that only the role being affected recycles instead of all roles recycling?
    My code:
     public void AddInstance()
            XDocument configDoc = this.GetDeploymentConfiguration();
            var ns = configDoc.Root.GetDefaultNamespace();
            configDoc.Root
                .Elements( ns + "Role" )
                .FirstOrDefault( r => r.Attribute( "name" ).Value.ToLower() == this.RoleName.ToLower() )
                .Element( ns + "Instances" )
                .Attribute( "count" )
                .Value = ( int.Parse( configDoc.Root
                               .Elements( ns + "Role" )
                               .FirstOrDefault( r => r.Attribute( "name" ).Value.ToLower() == this.RoleName.ToLower() )
                               .Element( ns + "Instances" )
                               .Attribute( "count" )
                               .Value ) + 1 ).ToString();
            string encodedString = Convert.ToBase64String( Encoding.UTF8.GetBytes( configDoc.ToString() ) );
            this.SetDeploymentConfig( encodedString );
        public XDocument GetDeploymentConfiguration()
            string uri = string.Format( this.servicePropertiesOperationFormat, this.subscriptionID, this.serviceName, "production", "" );
            ServiceManagementOperation operation = new ServiceManagementOperation( this.thumbprint, this.versionID );
            var xdoc= operation.Invoke( uri );
            var myelm = xdoc.Element( wa + "Deployment" ).Element( wa + "Configuration" );
            var mystring=  Encoding.UTF8.GetString( Convert.FromBase64String( myelm.Value ) );
            return XDocument.Parse( mystring );
        public string SetDeploymentConfig( string configurationFile )
            string uri = string.Format( this.servicePropertiesOperationFormat, this.subscriptionID, this.serviceName, "production", "/?comp=config" );
            ServiceManagementOperation operation = new ServiceManagementOperation( this.thumbprint, this.versionID );
            string payloadString = string.Format(
                @"<?xml version=""1.0"" encoding=""utf-8""?>
                <ChangeConfiguration xmlns=""http://schemas.microsoft.com/windowsazure"">
                        <Configuration>{0}</Configuration>
                </ChangeConfiguration>", configurationFile );
            XDocument payload = XDocument.Parse( payloadString );
            return operation.Invoke( uri, payload );

    Hi,
    From my experience, if you add one role instance, the whole cloud service will run in translating state, and this cloud service will stop to working, so maybe this is a future request.
    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.

  • Semantic Logging web api in web role

    Hi Team,
    I have implemented web api with semantic logging to capture logs and hosted in azure.
    I have azure project added the web api project as existing web role project.
    Below are my code snippet.
    In eventsource class:
            [Event(1, Level = EventLevel.Informational, Keywords = Keywords.BRRIHUB, Task = Tasks.Processing, Opcode = Opcodes.Debug, Version=1)]
            public void DebugLogging(string msg)
                if (IsEnabled())
                    this.WriteEvent(1, msg);
    In web api controller:
    using Microsoft.Practices.EnterpriseLibrary.SemanticLogging;
    using Microsoft.Practices.EnterpriseLibrary.SemanticLogging.Formatters;
            [HttpPost]
            public string DebugLogging(HttpRequestMessage Req)
                string Response = null;
                EventListener DebugLogFileListener = null;
                try
                    DebugLogFileListener = FlatFileLog.CreateListener(localResource.RootPath + "DebugLog" + System.DateTime.UtcNow.ToString("MMddyyyy") +
    ".txt", formatter: new XmlEventTextFormatter(EventTextFormatting.Indented), isAsync: true);
                    DebugLogFileListener.EnableEvents(BRRIHubEventSource.Log, EventLevel.Informational, BRRIHubEventSource.Keywords.BRRIHUB);
                    string msg = Req.Content.ReadAsStringAsync().Result;
                    BRRIHubEventSource.Log.DebugLogging(msg);
                    Response = "Message Successfully written in to Debug log File";
                catch (Exception ex)
                    Response = "Error in writting Debug log File" + ex.Message;
                finally
                    DebugLogFileListener.Dispose();
                return Response;
    In webrole onstart to synchronize the log files written in resource folder to azure container:
                LocalResource localpath = RoleEnvironment.GetLocalResource("LogStorage");
                var logFilePath = localpath.RootPath;
                var logDir = new DirectoryConfiguration
                    Container = "slab-logs",
                    DirectoryQuotaInMB = 100,
                    Path = logFilePath
                var diagnostics = DiagnosticMonitor.GetDefaultInitialConfiguration();
                diagnostics.Directories.ScheduledTransferPeriod = TimeSpan.FromMinutes(1);
                diagnostics.Directories.DataSources.Add(logDir);
                var connStr = CloudConfigurationManager.GetSetting("Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString");
                DiagnosticMonitor.StartWithConnectionString(connStr, diagnostics);
    But this code is running fine from my local machine.
    After deploying it to azure this is not running as expected. First time it is creating log files in resource folder. but then later it is keep sending error message like below,
    - The operation has timed out
    - File used by another process
    How can I resolve this? Kindly experts please share your ideas and blogs that available for writing semantic logs file in flat file and then it should move to azure storage blob container.
    Expect azure experts advise.
    Thanks.

    Hi Billgiee,
    Thanks for replying. I have tested by taking RDP of instance deployed.
    Finally I found the issue fix. This was happen due to created file listener in asynchronous mode. After I changed that property to false. Code is working fine. now it is continuously taking the input and writing to log files in semantic logging approach.
    Set property : isAsync: false
    It got fixed!
    Coding snippet:
    DebugLogFileListener = FlatFileLog.CreateListener(localResource.RootPath + "DebugLog" + System.DateTime.UtcNow.ToString("MMddyyyy") + ".txt", formatter: new XmlEventTextFormatter(EventTextFormatting.Indented), isAsync:
    false);
    Thanks
    Thanks, SaravanaBharathi.A

  • Different between Reboot Role Instance and Restart role

    Can anybody tell the different between
    Reboot Role Instance
    http://msdn.microsoft.com/library/azure/gg441298.aspx
    and 
    Restart Role
    http://msdn.microsoft.com/library/azure/jj157197.aspx
    are they redundant?
    Even one is put under virtual machine operations, but virtual machine is also a role instance in a cloud service anyway.

    When you reboot a role instance, the instance is taken offline, the underlying operating system is restarted for that instance, and the instance is brought back online. Any data that is written to the local disk is persisted across reboots. Any data that is
    in-memory is lost.
    Ref - http://msdn.microsoft.com/en-us/library/azure/gg441298.aspx
    In particular to cloud services, - customizations done on the role instances e.g. manually installed software, deployed files (either through RDP or through web deploy) will be lost and the instance will be brought back to the initial state.
    Bhushan | Blog |
    LinkedIn | Twitter

  • How does Azure Compute Emulator (or the Azure one) determine if a role is web project or something else ("The Web Role in question doesn't seem to be a web application type project")?

    I'm not sure if this is F# specific or something else, but what could cause the following error message when trying to debug locally an Azure cloud service:
    The Web Role in question doesn't seem to be a web application type project.
    I added an empty F# web api Project to a solution (which adds Global.asax etc., I added an OWIN startup class Startup etc.) and then from an existing
    cloud service project I picked Roles and
    chose Add
    -> Web Role Project in solution, which finds the F# web project (its project type guids are 349C5851-65DF-11DA-9384-00065B846F21 and F2A71F9B-5D33-465A-A702-920D77279786),
    of which the first one seem to be exactly the GUID that defines a web application type.
    However, when I try to start the cloud project locally, I get the aforementioned error message. I have a C# Web Role project that will start when I remove the F# project. I also have F# worker
    role projects that start with the C# web role project if I remove this F# web role project. If I set the F# web project as a startup project,
    it starts and runs as one would expect, normally.
    Now, it makes me wonder if this is something with F# or could this error message appears in C# too, but I didn't find anything on Google. What kind of checks are there when starting the emulator and which one needs
    failing to prompt the aforementioned message? Can anyone shed light into this?
    Sudet ulvovat -- karavaani kulkee

    Sudet,
    Yeah you are right, the GUID mentioned seems to be correct and the first one i.e. {349C5851-65DF-11DA-9384-00065B846F21} means the web application project which compute emulator uses to determine while spawning up role instances.
    You might want to compare the csproj of your C# and F# web projects which might give some pointers.
    Are you able to run your F# web project locally in IIS? If yes then you will definitely be able to run it on azure so I will recommend to test it in IIS Express first.
    Here are some other tips which you can refer or see If you are yet to do those settings
    1. Turn on the IIS Express - You can do it by navigating to project properties
    2. Install Dependent ASP.NET NuGets / Web Api dependencies (If there are any missing), Reference System.Web assembly
    Also I will suggest to refer this nice article about how to create a F# web Api project
    http://blog.ploeh.dk/2013/08/23/how-to-create-a-pure-f-aspnet-web-api-project/
    Hope this helps you.
    Bhushan | http://www.passionatetechie.blogspot.com | http://twitter.com/BhushanGawale

  • REST API: Create Deployment throwing error BadRequest (The specified configuration settings for Settings are invalid. Verify that the service configuration file is a valid XML file, and that role instance counts are specified as positive integers.)

    Hi All,
    We are trying to access the Create Deployment method stated below
    http://msdn.microsoft.com/en-us/library/windowsazure/ee460813
    We have uploaded the Package in the blob and browsing the configuration file. We have checked trying to upload manually the package and config file in Azure portal and its working
    fine.
    Below is the code we have written for creating deployment where "AzureEcoystemCloudService" is our cloud service name where we want to deploy our package. I have also highlighted the XML creation
    part.
    byte[] bytes =
    new byte[fupldConfig.PostedFile.ContentLength + 1];
                fupldConfig.PostedFile.InputStream.Read(bytes, 0, bytes.Length);
    string a = Encoding.UTF8.GetString(bytes, 0, bytes.Length);
    string base64ConfigurationFile = a.ToBase64();
    X509Certificate2 certificate =
    CertificateUtility.GetStoreCertificate(ConfigurationManager.AppSettings["thumbprint"].ToString());
    HostedService.CreateNewDeployment(certificate,
    ConfigurationManager.AppSettings["SubscriptionId"].ToString(),
    "2012-03-01", "AzureEcoystemCloudService", Infosys.AzureEcosystem.Entities.Enums.DeploymentSlot.staging,
    "AzureEcoystemDeployment",
    "http://shubhendustorage.blob.core.windows.net/shubhendustorage/Infosys.AzureEcoystem.Web.cspkg",
    "AzureEcoystemDeployment", base64ConfigurationFile,
    true, false);   
    <summary>
    /// </summary>
    /// <param name="certificate"></param>
    /// <param name="subscriptionId"></param>
    /// <param name="version"></param>
    /// <param name="serviceName"></param>
    /// <param name="deploymentSlot"></param>
    /// <param name="name"></param>
    /// <param name="packageUrl"></param>
    /// <param name="label"></param>
    /// <param name="base64Configuration"></param>
    /// <param name="startDeployment"></param>
    /// <param name="treatWarningsAsError"></param>
    public static
    void CreateNewDeployment(X509Certificate2 certificate,
    string subscriptionId,
    string version, string serviceName, Infosys.AzureEcosystem.Entities.Enums.DeploymentSlot deploymentSlot,
    string name, string packageUrl,
    string label, string base64Configuration,
    bool startDeployment, bool treatWarningsAsError)
    Uri uri = new
    Uri(String.Format(Constants.CreateDeploymentUrlTemplate, subscriptionId, serviceName, deploymentSlot.ToString()));
    XNamespace wa = Constants.xmlNamespace;
    XDocument requestBody =
    new XDocument();
    String base64ConfigurationFile = base64Configuration;
    String base64Label = label.ToBase64();
    XElement xName = new
    XElement(wa + "Name", name);
    XElement xPackageUrl =
    new XElement(wa +
    "PackageUrl", packageUrl);
    XElement xLabel = new
    XElement(wa + "Label", base64Label);
    XElement xConfiguration =
    new XElement(wa +
    "Configuration", base64ConfigurationFile);
    XElement xStartDeployment =
    new XElement(wa +
    "StartDeployment", startDeployment.ToString().ToLower());
    XElement xTreatWarningsAsError =
    new XElement(wa +
    "TreatWarningsAsError", treatWarningsAsError.ToString().ToLower());
    XElement createDeployment =
    new XElement(wa +
    "CreateDeployment");
                createDeployment.Add(xName);
                createDeployment.Add(xPackageUrl);
                createDeployment.Add(xLabel);
                createDeployment.Add(xConfiguration);
                createDeployment.Add(xStartDeployment);
                createDeployment.Add(xTreatWarningsAsError);
                requestBody.Add(createDeployment);
                requestBody.Declaration =
    new XDeclaration("1.0",
    "UTF-8", "no");
    XDocument responseBody;
    RestApiUtility.InvokeRequest(
                    uri, Infosys.AzureEcosystem.Entities.Enums.RequestMethod.POST.ToString(),
    HttpStatusCode.Accepted, requestBody, certificate, version,
    out responseBody);
    <summary>
    /// A helper function to invoke a Service Management REST API operation.
    /// Throws an ApplicationException on unexpected status code results.
    /// </summary>
    /// <param name="uri">The URI of the operation to invoke using a web request.</param>
    /// <param name="method">The method of the web request, GET, PUT, POST, or DELETE.</param>
    /// <param name="expectedCode">The expected status code.</param>
    /// <param name="requestBody">The XML body to send with the web request. Use null to send no request body.</param>
    /// <param name="responseBody">The XML body returned by the request, if any.</param>
    /// <returns>The requestId returned by the operation.</returns>
    public static
    string InvokeRequest(
    Uri uri,
    string method,
    HttpStatusCode expectedCode,
    XDocument requestBody,
    X509Certificate2 certificate,
    string version,
    out XDocument responseBody)
                responseBody =
    null;
    string requestId = String.Empty;
    HttpWebRequest request = (HttpWebRequest)HttpWebRequest.Create(uri);
                request.Method = method;
                request.Headers.Add("x-ms-Version", version);
                request.ClientCertificates.Add(certificate);
                request.ContentType =
    "application/xml";
    if (requestBody != null)
    using (Stream requestStream = request.GetRequestStream())
    using (StreamWriter streamWriter =
    new StreamWriter(
                            requestStream, System.Text.UTF8Encoding.UTF8))
                            requestBody.Save(streamWriter,
    SaveOptions.DisableFormatting);
    HttpWebResponse response;
    HttpStatusCode statusCode =
    HttpStatusCode.Unused;
    try
    response = (HttpWebResponse)request.GetResponse();
    catch (WebException ex)
    // GetResponse throws a WebException for 4XX and 5XX status codes
                    response = (HttpWebResponse)ex.Response;
    try
                    statusCode = response.StatusCode;
    if (response.ContentLength > 0)
    using (XmlReader reader =
    XmlReader.Create(response.GetResponseStream()))
                            responseBody =
    XDocument.Load(reader);
    if (response.Headers !=
    null)
                        requestId = response.Headers["x-ms-request-id"];
    finally
                    response.Close();
    if (!statusCode.Equals(expectedCode))
    throw new
    ApplicationException(string.Format(
    "Call to {0} returned an error:{1}Status Code: {2} ({3}):{1}{4}",
                        uri.ToString(),
    Environment.NewLine,
                        (int)statusCode,
                        statusCode,
                        responseBody.ToString(SaveOptions.OmitDuplicateNamespaces)));
    return requestId;
    But every time we are getting the below error from the line
     response = (HttpWebResponse)request.GetResponse();
    <Error xmlns="http://schemas.microsoft.com/windowsazure" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
      <Code>BadRequest</Code>
      <Message>The specified configuration settings for Settings are invalid. Verify that the service configuration file is a valid XML file, and that role instance counts are specified as positive integers.</Message>
    </Error>
     Any help is appreciated.
    Thanks,
    Shubhendu

    Please find the request XML I have found it in debug mode
    <CreateDeployment xmlns="http://schemas.microsoft.com/windowsazure">
      <Name>742d0a5e-2a5d-4bd0-b4ac-dc9fa0d69610</Name>
      <PackageUrl>http://shubhendustorage.blob.core.windows.net/shubhendustorage/WindowsAzure1.cspkg</PackageUrl>
      <Label>QXp1cmVFY295c3RlbURlcGxveW1lbnQ=</Label>
      <Configuration>77u/PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0NCiAgKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKg0KDQogIFRoaXMgZmlsZSB3YXMgZ2VuZXJhdGVkIGJ5IGEgdG9vbCBmcm9tIHRoZSBwcm9qZWN0IGZpbGU6IFNlcnZpY2VDb25maWd1cmF0aW9uLkNsb3VkLmNzY2ZnDQoNCiAgQ2hhbmdlcyB0byB0aGlzIGZpbGUgbWF5IGNhdXNlIGluY29ycmVjdCBiZWhhdmlvciBhbmQgd2lsbCBiZSBsb3N0IGlmIHRoZSBmaWxlIGlzIHJlZ2VuZXJhdGVkLg0KDQogICoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioNCi0tPg0KPFNlcnZpY2VDb25maWd1cmF0aW9uIHNlcnZpY2VOYW1lPSJXaW5kb3dzQXp1cmUxIiB4bWxucz0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9TZXJ2aWNlSG9zdGluZy8yMDA4LzEwL1NlcnZpY2VDb25maWd1cmF0aW9uIiBvc0ZhbWlseT0iMSIgb3NWZXJzaW9uPSIqIiBzY2hlbWFWZXJzaW9uPSIyMDEyLTA1LjEuNyI+DQogIDxSb2xlIG5hbWU9IldlYlJvbGUxIj4NCiAgICA8SW5zdGFuY2VzIGNvdW50PSIyIiAvPg0KICAgIDxDb25maWd1cmF0aW9uU2V0dGluZ3M+DQogICAgICA8U2V0dGluZyBuYW1lPSJNaWNyb3NvZnQuV2luZG93c0F6dXJlLlBsdWdpbnMuRGlhZ25vc3RpY3MuQ29ubmVjdGlvblN0cmluZyIgdmFsdWU9IkRlZmF1bHRFbmRwb2ludHNQcm90b2NvbD1odHRwcztBY2NvdW50TmFtZT1zaHViaGVuZHVzdG9yYWdlO0FjY291bnRLZXk9WHIzZ3o2aUxFSkdMRHJBd1dTV3VIaUt3UklXbkFrYWo0MkFEcU5saGRKTTJwUnhnSzl4TWZEcTQ1ZHI3aDJXWUYvYUxObENnZ0FiZnhONWVBZ2lTWGc9PSIgLz4NCiAgICA8L0NvbmZpZ3VyYXRpb25TZXR0aW5ncz4NCiAgPC9Sb2xlPg0KPC9TZXJ2aWNlQ29uZmlndXJhdGlvbj4=</Configuration>
      <StartDeployment>true</StartDeployment>
      <TreatWarningsAsError>false</TreatWarningsAsError>
    </CreateDeployment>
    Shubhendu G

  • How do we prevent uncaught exceptions in our web role from causing 502's across our entire service?

    We've recently migrated our web service to Azure. Part of it is running on an Azure Cloud Service. It serves around 5000 requests per minute, lots of dynamic image generation and various types of data feeds. We're currently running two Standard D4 instances
    backed by a P1 SQL database and B4 Redis cache.
    Our service is dependent on many 3rd party web services; try as we might sometimes bad data slips through the cracks and our service returns a 500 response (we output a short, custom xml response with usually an http 500 status). Occasionally this will happen
    to routes that receive many requests - large networks or devices that aggressively retry - and this appears to cause Azure to return a 502 error page for all routes to our web role. It doesn't even really take that many. A few thousand over a 15 minute period
    caused it today. It was simply an uncaught null reference exception.
    This takes our entire service down and is a huge issue for us. Is an Azure load balancer in front of our services canning our incoming connections when it detects some level of 500 responses from our service? What should we be doing differently?

    We're considering a couple of options. The first was simply to respond with a 503 response instead of a 500, and use the Retry-After header. We cannot guarantee clients will follow that header, however. Our other thought is to more closely monitor the error
    rate (currently we have a job checking every 5 minutes for the total errors per end point over the last 15 minutes) and when some low threshold is passed return a 200 response with a short message or an "empty" response appropriate to the expected
    content type (which might be a solid black image, for example).
    If feels wrong to return a 200 response when our service cannot successfully complete the request, but we're not sure what else to do and what Azure may or may not be doing that is outside of our control here.

  • Warning: This request requires buffering data to succeed (while Publishing using VS 2012 to Cloud Service - Web Role

    While publishing using VS 2012 professional to Azure Web Role getting following warning. After this warning even if i waited for hours, publish process never finish and then I have to manually deploy the package on Azure Cloud Instance.
    Warning: This request requires buffering data to succeed.

    Thank you for reply @Will,
    I do not have access to my work station computer at this moment. will share the screenshot. Basically what happens is -
    1. I start the publish wizard on Windows Azure Project (which as one web role configured)
    2. Proceed the publish wizard with advanced options enabled for remote debugging and remote connection enabled.
    3. The publish wizard finish and it starts uploading the package and configuration on the azure could service.
    4. In the Microsoft Windows Azure activity log pane of the Visual Studio 2012 Professional, after 10-15 minutes it starts showing following warning continously, i even waited for few hours but publish process never completes. Finally i have cancel the publish
    process and upload packages and config manually on the azure portal. 
    Warning: This request requires buffering data to succeed.

  • Sometimes I Can't open Properties page for a Web Role Project

    Occasionally when I attempt to open the properties for a Web Role project in Visual Studio by right clicking on the project name in the Roles folder I get "Object reference not set to an instance of an object". It doesn't happen very
    often and I have yet to figure out what resolves the problem but it is some combination of restarting Visual Studio, forcing VS Server Explorer to reLogin\reConnect to Azure or opening portal in IE.
    I believe it has only occurred during first hit of the day but VS always tells me I'm currently logged in whenever I right click Azure node in Server Explorer and choose 'Connect to Microsoft Azure...'
    I have looked in Event log for errors but cannot find anything there. How can I attempt to troubleshoot this issue?  

    Went away for awhile. Now I can see all Azure resources for a subscription in the Azure Server Explorer. If I attempt to publish a cloud service from an existing publish profile I see a login dialog flash in\out and I have red x's by my Cloud
    Service and Storage Account in the Publish Summary page.
    From Azure Server Explorer I can see and interact with the Cloud Service and Storage accounts that are Red X'd in the Publish Summary mentioned above. Interesting that when going to storage it does thru up dialog telling me I'm not logged in, it stays a
    second or so, goes away then another flashes and I then see the storage resources populate in the tree and can interact.
    Now if I go to Cloud Service project and open the only Role I have, Visual Studio crashes. Repeated this many times.
    Now if I right click Azure Explorer, Connect to Azure...., it tells me I am signed in as who I expect, click 'Remain signed in with this account', I see error
    Server Explorer
    An error occurred during the sign in process: authentication_ui_failed: The browser based authentication dialog failed to complete for an unkown reason
    OK  
    I can still interact with Azure Server explorer nodes in Azure.
    Now if I right click Azure Explorer, Connect to Azure...., again and choose logout and log in with another account, enter account info, it then says I'm already signed in, I choose to remain signed in but this time get a password prompt.
    I can now open my web role projects Role and now the Publish Summary has no Red X's.

  • Deploy different Web roles on different Operating Systems?

    The following roles are deployed to Windows Azure Cloud Services.
    Is it possible to deploy the ARR Role (see image) on Windows 2008 and the Web Role on Windows 2012?
    Or can you choose only one OS (osfamily) for all Roles?
    Best Regards, Simon de Kraa.

    hi,
    Sorry, I have misunderstood your meaning.
    Generally speaking, we could set our cloud service OS version in "ServiceConfiguration" node (http://msdn.microsoft.com/en-us/library/windowsazure/ee758710.aspx ),like
    your tried. I suggest you could try this method. You could create two VHD, one is  win server 2012 image,and another is win server 2008 image. And then when you deployment, you could set your "OsImage
    " in your role (refer to
    http://msdn.microsoft.com/en-us/library/windowsazure/jj156212.aspx). Like this code in ServiceConfiguration node:
    <ServiceConfiguration …>
    <Role name="<role-name>" vmName="<vm-name>">
    <Instances count="<number-of-instances>" />
    <ConfigurationSettings>
    <Setting name="<setting-name>" value="<setting-value>" />
    </ConfigurationSettings>
    <Certificates>
    <Certificate name="<certificate-name>" thumbprint="<certificate-thumbprint>" thumbprintAlgorithm="<algorithm>" />
    </Certificates>
    <OsImage href="<vhd_image_name>" />
    </Role>
    </ServiceConfiguration>
    The method seems like complicated. But I guess it will meet you requirement.
    Please try it.
    Thanks.
    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.

  • [HELP!] Can't access shared folder from Azure Web Role on same Azure Virtual Network

    I have an Azure Virtual Network that has a virtual machine acting like an app server running some legacy applications that is writing some files to a folder that is shared.
    This shared folder is accessible from other virtual machines within that virtual network without issue.
    The problem I am having is that I have an Azure Web Role that is also attached to the above
    Azure Virtual Network that is unable to access the shared folder. I know the web role can see the app server as it is able to ping the IP of the machine.
    There is some code that needs access to the shared folder to process some of the files that is stored there, but the code won't run because it can not access these files. I used Remote Desktop to see if I could ping the machine, and I can, but I cannot navigate
    to the path in file explorer due to access being denied.
    Can anyone offer any advice or tips to point me in the right direction to gain access to this shared folder from my Azure Web Role?

    Hi Robert,
    Thanks for your posting!
    Form your descirpiton, I suggest you can refer to Tom Zhang's solution via this
    link:
    1. Enable Remote Desktop. (You have done this step)
        2. RDP to one instance of your service. Open up IIS Manager and set the application pool identity to use the account that we used for RDP.
        3. On on-premise local machine, right click "My Computer' and select "Manage". Add a new account with the same account name and password as we specified for Remote Desktop.
        4. Give the new account necessary permissions to write file to the shared folder. (I think you have done this step too)
        5. Try running the code again and see if it works.
        6. If it still says "access to path <folder path located on local machine> is denied". Please check the permission of the shared folder again.
        7. If it works, then the next step is to configure the application pool identity using Startup Task instead of using Remote Desktop (See the suggestion inhttp://social.technet.microsoft.com/Forums/en-US/windowsazuresecurity/thread/247ba75e-87d9-497c-9ec6-1fd4e2c7ff90).
    But I still recommend you enable Remote Desktop for your web role to check if the Startup Task has successfully configured the application pool identity or not.
    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.

  • Unable to connect to RDP of Web Role

    Hi everyone,
    I have had a lot of Web Role for my project.
    I have been able to connect to all Web Role via RDP.
    However, I couldn't suddenly connect to several Web Role via RDP from 1/20/2014.
    When I tried to connect RDP port(3389) via some tools, the port didn't be opened.
    This was not firewall problem in my office becasue when I tried to connect RDP port from other Web Role to the Web Role, I saw the same situation.
    Can you tell me how to fix this problem?
    Thank you,
    Hongbum

    Hi Hongbum,
    Thanks for posting!
    Did you input the rightly authenticate information? And what's error message did your get form the azure portal?
    I suggest you could firstly check your Certificates whether is expires.  If it is expires, please refer to this case via (http://stackoverflow.com/questions/19577996/how-to-renew-ssl-certificate-on-an-azure-cloud-service). 
    And secondly, you could try to reboot your instance after your backup and try to connect it again.
    Any question, please let me know.
    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.

  • Error while deploying web role - Invalid application runtime - a runtime component is missing:/base/x64/IISConfigurator.exe

    I have Azure SDK 2.5 installed and when I try and publish my web role from VS 2013, it fails. When I manually upload the package and config through the Azure Portal I get the error:  "Invalid application runtime - a runtime component
    is missing:/base/x64/IISConfigurator.exe".
    I have tried uninstalling and re-installing the Azure SDK with no change in the error.
    Any ideas how I can troubleshoot this?

    I uninstalled the SDK, and tried to create a new cloud servce using the WCF service project template. The new project still gives me the same error:
    The file provided is not a valid service package. Detailed error code: WCFServiceWebRole1 Invalid application runtime - a runtime component is missing:/base/x64/IISConfigurator.exe.

  • Diagnostics not working in web role for Azure SDK 2.5.1

    I am working with Azure SDK 2.5.1, mainly on the new designed diagnostics stuffs. However, I found I cannot get it run for my web role.
    So, I created a cloud service project, added a web role. Then, I appended one Trace message at the end of Application_Start in Global.asax.cs:
    Trace.TraceInformaction("Application_Start end.");
    After that, I right clicked the WebRole and opened the Properties tab.
    In the diagnostics config window:
    General: I choose 'Custom
    plan', also specified the storage account, keep the 'Disk
    Quota in MB' as default '4096'
    Application Logs: 'Log
    level' switch to 'All',
    others kept as default
    Other tabs are in default config settings
    After I deployed the project to cloud, I found some unexpected things:
    There is no WADLogsTable exists
    in Table storage. That's very strange, if I use a Worker Role, it would work as expected. So in web role, I just cannot find the Trace logging?
    For the performance counters, since I am using the default config with 8 counters, I can only see 8 in WADPerformanceCountersTable table
    storage. In my assumption, over time, there would be more and more values of this 8 counters transferred to this table. But it was just not happened, after several hours, it still had that 8 counter values.
    I just thought the diagnostics for Web Role just crashed or not working at all. Meanwhile, I checked the logs located at "C:\Logs\Plugins\Microsoft.Azure.Diagnostics.PaaSDiagnostics\1.4.0.0\DiagnosticsPlugin.log" in
    server, at the end of this file there is an exception said some diagnostics process exit:
    DiagnosticsPlugin.exe Error: 0 : [4/25/2015 5:38:21 AM] System.ArgumentException: An item with the same key has already been added.
    at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
    at Microsoft.Azure.Plugins.Diagnostics.dll.PluginConfigurationSettingsProvider.LoadWadXMLConfig(String fullConfig)
    DiagnosticsPlugin.exe Error: 0 : [4/25/2015 5:38:21 AM] Failed to load configuration file
    DiagnosticsPlugin.exe Information: 0 : [4/25/2015 5:38:21 AM] DiagnosticPlugin.exe exit with code -105
    From MSDN,
    the code -105 means:
    The Diagnostics plugin cannot open the Diagnostics configuration file.
    This is an internal error that should only happen if the Diagnostics plugin is manually invoked, incorrectly, on the VM.
    It doesn't make sense, I did nothing to the VM.
    As I said above, I just did very tiny changes to the scaffold code generated by Visual Studio 2013. Did I do something wrong or it's a bug for Azure SDK 2.5?
    By the way, it seems everything is ok for Worker Role.

    Hi,
      This issue could be an internal issue, I do not have any update on this as of now. There was a similar issue due to a regression last month that has been resolved, however i dont think this issue is related.
      Please follow the below article on how to enable Diagnostics and let us know if it works.
    http://azure.microsoft.com/en-in/documentation/articles/cloud-services-dotnet-diagnostics/
      I will let you know if I have any update on this issue from my side.
    Regards,
    Nithin Rathnakar.

Maybe you are looking for

  • How to write formula for 0calweek from 0calmonth

    Hi Friends, I'm doing weekly report. my infocube, data coming from three sources, two sources are ODS. In ODS doesn't have 0calweek only have 0calmonth. When i see my report i can't view those ODS data in the report. So i want write a formula. How do

  • Pricing error in customer invoice-"Error in converting exchange rate from to RUB"

    Hello Friends, Please help me to solve the below issue . When user created customer invoice, system showed pricing error for last line item . The error was for cost condition type which did not determined any value and had "Red" indicator . The error

  • Has anyone encountered this problem ?

    hi , i have used the tranpose funtion that uses stringaggtype written by either Scott or tom Ktye my data is as follows : ID     OP     RD     IDS     M_SI     Ma_VAL     Mi_VAL     idx     NVALUE 1123r     gfrr     10/10/2006 19:15     1124t     9  

  • BlackBerry plug-in for netbeans

    Perhaps not the right place to look into. I want to develop blackberry apps from the netbeans ide but can't get it to work. I already downloaded and installed the plugin from the [netbeans site|http://plugins.netbeans.org/PluginPortal/faces/PluginDet

  • Facebook and Twitter resolution problems in iOS 7.0.3

    Yesterday i updated my iOS to 7.0.3, since the update both my Twitter and Facebook apps have shrunk to the middle of the screen with all the text overlapping. i have rebooted iPhone several times and reinstalled both apps and still the problem is the