FAQ Database Discussion Community


WCF & Azure: Replace Self-Sign Certificate with a Real Certificate

wcf,azure,ssl,azure-web-roles,azure-cloud-services
I've a WCF that runs in Azure as a Cloud Service (with out SSL). I have implemented on the same project SSL, locally. (with self-sign certificate) After I experimented locally and saw that everything works well, I purchased real certificate on Go Daddy, now I need to figure out a...

In-role, co-located caching & CacheService.exe

azure,azure-web-roles,azure-cloud-services,azure-caching,azure-in-role-cache
We utilise Azure's co-located In-Role caching in our web roles. When looking at memory usage in Window's Resource Monitor, I see that a "CacheService.exe" is consuming a large portion of available RAM: Is this the cache cluster used by the in-role cache? And can I roughly assume the total, cumulative...

Azure scaling of roles and pricing

azure,azure-web-roles,azure-worker-roles
I have been digging without being able to wrap my head around this. It seems like once a role is deployed, you are charged for it in full, whether or not you scale it up or down? Why would anyone scale down with this? I don't see the incentive to...

Determine if webapp code is running in Azure webrole or not

.net,azure,azure-web-roles
What is the best way to determine if my web application code is running in a Azure web role (or emulator)? I need to configure a dependency injection container and do not want to take a dependency on any Azure specific assemblies unless I'm running in Azure. Both answers to...

Cannot connect to Azure Cloud Service from my Azure Website with Virtual IP?

azure,networking,ip,azure-web-roles,azure-web-sites
I have a Azure Website with virtual IP (ip based SSL), however, in my cloudservice I have to specify the address of my website to whitelist. Somehow I think I'm missing the obvious here since I cannot connect to my webservice when I deny all BUT my website. If I...

Running vcredist_x64.exe as a startup task for an Azure cloud service, osFamily=“4”

azure,azure-web-roles,vcredist
There are several answers (e.g. this and this) and a blog post pointing out how to install the Visual C++ 2010 redistributable packages as part of the deployment of an Azure cloud service. Firstly you add the vcredist_x64.exe to the web project and set its "Copy to output directory" property...

Adding startup script to Azure web role - “copy to output directory” missing

visual-studio,azure,azure-web-roles,kentico,kentico-azure
I'm following these instructions to add IP restrictions to an Azure web role, but I'm not able to change the build action "copy to output directory" property for the startup.cmd script. It's grayed out not available. Can anyone explain why this is? Visual Studio 2013 with Kentico application. Update 1...

Install custom font in Azure Instance

c#,fonts,azure-web-roles,aurigma
How can i install custom fonts in an azure instance? Using PrivateFontCollection is not an option as i'm using GraphicsMill API to render graphics, and it doesn't seem to support this feature, only fonts installed in system are allowed. Thanks...

Azure communication between Worker Role and Web Role

c#,azure,azure-web-roles,azure-worker-roles
Hi I am building a Cloud Service which has (for the moment) one web and one worker role. My desired workflow would be: the browser calls a webApi controller on the web role, which sends a message to a queue (or service bus) which is then processed by the worker...

How do I permit my Azure Website to access my Azure Cloud Service

wcf,security,azure,azure-web-roles,azure-web-sites
I have a Azure Cloud service that I only want to be accessible to my Azure website (multiple environments) and my local office computer. In my ServiceConfiguration.Cloud.cscfg I have some permit and deny rules, with the last one being : <Rule action="deny" description="denypublic" order="4" remoteSubnet="0.0.0.0/0" /> However, how do I...

Do I need other roles than Worker Role for a web site and service layer in Azure?

azure,azure-web-roles,azure-worker-roles,azure-cloud-services
I've deployed web sites and services to the cloud before but it was a while ago and I wanted to revisit my approach to inventorize my skills. During the research, I've been told to use a worker role but I'm not sure in what constellation to apply it. The image...

Why can't Azure find IISConfigurator.exe in my cspkg?

azure,azure-web-roles,cspkg
I am using the Azure 2.5 SDK to upload a cspkg + cscfg to create a new web role deployment in Azure. When I do, I see the following error with status BadRequest. {"BadRequest : The file provided is not a valid service package. Detailed error code: {0} Invalid application...

Is it possible to have an https endpoint in a web and worker role in the same cloud service?

azure,https,azure-web-roles,azure-worker-roles,endpoint
I am trying to expose separate Web API endpoints in both a web role and a worker role in the same cloud service in Azure. Is that possible?

AzureContinuousDeployment.11.xaml vs TfvcContinuousDeploymentTemplate.12.xaml

azure,msbuild,tfsbuild,azure-web-roles,visual-studio-online
I can't seem to find any information regarding the difference between these two build definition templates: AzureContinuousDeployment.11.xaml TfvcContinuousDeploymentTemplate.12.xaml My guess is that AzureContinuousDeployment has been replaced by TfvcContinuousDeploymentTemplate. Does this mean I should not use AzureContinuousDeployment? I want to use it because here I am able to set the storage...

Continuous integration AND NuGet restore in VSO and Azure

azure,msbuild,nuget,azure-web-roles,build-definition
We are using VSO and Azure Cloud Services (web roles). Previously, we have used the following build.proj file for our VSO build definitions: <?xml version="1.0" encoding="utf-8"?> <Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <PropertyGroup> <OutDir>$(MSBuildThisFileDirectory)bin</OutDir> <Configuration>Release</Configuration>...

What is the difference between an Azure Cloud Service Staging Slot and an Azure Web App Staging Slot?

azure,azure-web-sites,azure-web-roles
This question is also to do with why one gets charged double for Cloud Service instances, and I believe that the answer in my case is due to the fact that I have a Cloud Service Staging Slot which is actually a seperate VM whereas a WebSite Staging slot is...

Azure role instances horizontal replication via internal endpoints

c#,azure,azure-web-roles
How do I sync the in-memory cache among multiple web role instances? My current approach is adding internal endpoints and notify the rest of instances through that port foreach (RoleInstance roleInst in RoleEnvironment.CurrentRoleInstance.Role.Instances) { foreach (RoleInstanceEndpoint roleInstEndpoint in roleInst.InstanceEndpoints.Values) { // send payload to roleInstEndpoint.IPEndpoint } } Is this the...

My IP blocked after uploading data from WinSCP

azure,azure-web-roles
I am trying to import and upload the data in Azure VM using Azure portal and WinSCp. After few hours my IP is blocked and I am unable access a Azure portal using below URL portal.azure.com and manager.windowsazure.com Any help is appreciated...

PHP Application on Azure

azure,azure-web-roles,paas,azure-cloud-services
I'm trying to move my PHP web application to Azure (PaaS) as a Cloud service (Webrole) using Azure SDK for PHP. Does azure cloud services have support for "COM interop". My application interacts with a third party software for results processing. How do I install this software in the cloud...

Windows Azure Cloud service Auto Scale works if any specific .dll installed on first instance?

c#,azure,azure-web-roles
I have created one Cloud service which I need to auto scale based on traffic. In this I registered one specific .dll on server and also did some specific changes in IIS via enable Remote for Cloud service. Now I am not sure when I set my Cloud service as...

Azure Cloud Services, deny access to subfolder using web.config

azure,web-config,windows-server-2008,azure-web-roles
I have PHP application that I develop on my local Server 2008 dev server, I then push this to my live site on Azure Cloud Services. This all works fine. In one of my sub folders I have a web.config file with the following in it: <configuration> <system.webServer> <security> <authorization>...

Azure Web Sites multiple instances using Http Runtime Cache

caching,azure,azure-web-roles,azure-web-sites
Our plan is to migrate Azure Web Roles to Azure Web Sites. So far the Azure Web Roles were using Azure Caching that was shared across instances. Our first thought was to switch to Redis Cache. But after a few other discussions we started discussing using just Http Runtime Cache...

Build error after upgrade Azure SDK from 2.4 to 2.6

c#,visual-studio,azure,azure-web-roles
I just upgraded my web role project (and solution) from Azure SDK 2.4 to Azure SDK 2.6 using the upgrade functionality under project properties > application. When I am building my application, everything works well but when I try to run it (and start up the Azure emulator and such)...

How do I store my Log into Azure table storage I used Semantic Logging

azure,windows-azure-storage,azure-web-roles,azure-storage-blobs,semantic-logging
For application logging i have used Semantic Logging but I want to save logging into Azure table storage , now I just displayed it on Console. static void Main(string[] args) { //create a listner and subscribe to event source var listener1 = ConsoleLog.CreateListener(); MyEventSource Log = new MyEventSource(); listener1.EnableEvents(Log ,...

Azure Cloud Service continuous integration with existing ccproj profile

azure,msbuild,continuous-integration,azure-web-roles,azure-cloud-services
How do I get continuous integration to work using publish settings from a profile in our Cloud Project? When using the default TfvcContinuousDeploymentTemplate.12.xaml, the publish ignores some of my profile settings. It doesn't use the correct storage account and always publishes to the Staging environment. Here are the settings for...

Azure websites RoleEnvironment.IsAvailable equivalent [duplicate]

azure,azure-web-roles,azure-web-sites
This question already has an answer here: How to check if code is running on Azure Websites 2 answers I'm migrating an web app from an Azure Cloud Services Web Role to Azure Websites. Websites can't find Microsoft.WindowsAzure.ServiceRuntime and doesn't seem to like the Cloud Service helpers in general....