Questions tagged [azure-cloud-services]
PaaS service provided by Microsoft Azure to host stateless Windows Server virtual machines that are automatically provisioned and scaled.
azure-cloud-services
1,057
questions
61
votes
2
answers
7k
views
Azure SDK 2.5.1 fails to Publish cloudService
After successfully upgrading my cloud service to the new "Azure SDK for .NET 2.5.1" I got the following error when trying packaging/publishing.
Could not load file or assembly 'Microsoft....
51
votes
6
answers
28k
views
Staging or Production Instance?
Is there anywhere in the service runtime that would tell me if I'm currently running on 'Staging' or 'Production'? Manually modifying the config to and from production seems a bit cumbersome.
44
votes
1
answer
3k
views
ExecuteRequestHandler spent most of the time
I'm working on some performance related tasks and using new relic to diagnose first.
Here is what I have got
I'm wondering is it possible to improve on the ExecuteRequestHandler part? Any help will ...
33
votes
4
answers
17k
views
How to check Azure function is running on local environment? `RoleEnvironment` is not working in Azure Functions
I have a condition in code where i need to check if current environment is not local.i have used !RoleEnvironment.IsEmulated, now this is not working in Azure functions but works in Cloud service. ...
24
votes
2
answers
14k
views
How can I host a TCP Listener in Azure?
I am looking to build an application in Azure which will act as TCP listener, receive TCP message streams on a specified port, and then add the information to a database. The incoming TCP ...
23
votes
4
answers
10k
views
Web API interface works locally but gets 404 after deployed to Azure Website
I'm working on a ASP.NET MVC 4 website. Together with MVC controllers, I have one API controller which contains an ajax GET API interface. It works perfectly when debugged locally with visual studio.
...
18
votes
3
answers
10k
views
Set the application ConnectionString in the Service Configuration instead of web.config in Azure
I have an application currently in Azure and whenever we push it into the Staging segment, we cannot truly test since the connection string is pointing to the prod database.
Someone mentioned to me ...
18
votes
1
answer
21k
views
how to inspect the content of persistent volume by kubernetes on azure cloud service
I have packed the software to a container. I need to put the container to cluster by Azure Container Service. The software have outputs of an directory /src/data/, I want to access the content of the ...
16
votes
1
answer
2k
views
Error While publishing Azure Cloud service with .net 4.6
Error : "The feature named NetFx46 that is required by the uploaded package is not available in the OS * chosen for the deployment."
13
votes
1
answer
8k
views
What's the alternative to Azure Cloud Service (Classic)? [closed]
Considering Azure Cloud Services are considered 'classic' and MS is steering towards using the Resource Manager.
What is the recommended path for hosting a WCF webservice? I used to do this with a ...
13
votes
3
answers
13k
views
How to run Headless Chrome in Azure Cloud Service or Azure Functions?
I am trying to use Headless Chrome to generate a PDF file from a complex HTML file (contains images, SVGs, etc.). I am able to use wkhtmltopdf.exe on Cloud Service (Windows) to generate simple PDF ...
13
votes
3
answers
1k
views
Azure Cloud Service role instances - auto-scaling - Changing event not firing
I got a Cloud Service deployment with 4 worker roles, one of which got auto-scaling enabled. As soon as auto-scaling occurs, all instances of all roles are recycling.
Ideally, I'd like to stop the ...
11
votes
2
answers
4k
views
Azure Cloud Services and Git continuous deployment?
Is there a way by which I can use Git not only as a code repository but also for a build and continuous deployment to Azure (Cloud service, NOT web site)? I suspect not given the missing build ...
11
votes
0
answers
2k
views
ExecuteRequestHandler of a Cloud service taking too long time (almost 80% of total response time)
I have a Application (Web API , .NET 4.5) hosted as Azure cloud Service.
Vm size large and 4 instances.
When I am monitoring the application with new relic,I am seeing that ExecuteRequestHandler ...
10
votes
3
answers
8k
views
TargetProfile gives No default service configuration error
I am building an Azure Cloud service application in a TFS 2012 build definition. Everything is working properly with the default Cloud configuration. However when I set the TargetProfile property in ...
9
votes
2
answers
1k
views
Azure Cloud Service Classic with .NET Standard target
Is there a way how to run Azure Cloud Service Classic project with worker role that targets .netstandard2.0?
I have such project, but any time I try to build it I receive this error:
Severity ...
8
votes
4
answers
12k
views
CloudConfigurationManager missing from Azure SDK v2.4?
Can someone help me figure out where CloudConfigurationManager exists in Azure SDK v2.4?
CloudConfigurationManager, in the v2.3 SDK, is located in:
C:\Program Files\Microsoft SDKs\Windows Azure.NET ...
8
votes
3
answers
4k
views
Azure cloud service deployment issue with pay as you go subscription - cloud services are not available in this subscription
I am having an issue while deploying an Azure web role to a cloud service. It shows me the error
Cloud services are not available in this subscription.
I am using a pay as you go subscription on ...
8
votes
2
answers
10k
views
How to remote desktop to Azure App?
I have created an Azure API App. Then I need to run some command line for testing on that environment. In Azure classic I can do remote desktop to Cloud services to run some command line but now in ...
8
votes
2
answers
918
views
DocumentDB client 1.14 kills running process
After upgrading DocumentDB client to version 1.14.0 (CosmosDB changes) my application terminates unexpectedly when running in Azure as cloud service.
I have no problems running it locally against the ...
8
votes
1
answer
6k
views
Missing assembly binding redirect from StackExchange.Redis 2.0.513 package
I am getting the following exception when trying to use the latest Nuget package StackExchange.Redis in Cloud Service for .Net 4.7
System.InvalidOperationException: The assembly for System.Buffers ...
8
votes
1
answer
187
views
Debugging ASP.NET cloud project over LAN
I've been trying to debug this ASP.NET cloud project over LAN, because we need it for testing at work. I have done plenty of research on the subject, but I simply cannot get it to work as expected. I ...
7
votes
2
answers
8k
views
Advantages of Service Fabric Microservices vs Collection of Azure Cloud services/web apps
I have a application that can be broken down into multiple communicating services. My current implementation is monolithic and I want to reorganize it so that individual components can be deployed,...
7
votes
3
answers
59k
views
How to download files from Azure Blob Storage with a Download Link
I made an Azure Cloud Service, where you can upload and delete files to the cloud storage using Blobs. I wrote sucessfully a method where you can delete the uploaded blobs from the cloud service:
...
7
votes
1
answer
5k
views
Determine the Guest OS version of an Azure Cloud Service
How does one determine the Guest OS version running on a Cloud Service? I cannot find this info exposed in either the Old (https://manage.windowsazure.com) or New (https://portal.azure.com) Azure ...
7
votes
1
answer
1k
views
Deployment of ASP.NET vNext Application to Azure Cloud Services
Is it possible to deploy an ASP.NET vNext web application to Azure Cloud Services? And if yes, does it matter if it's build on the aspnet50 or the aspnetcore50 framework?
The Azure Cloud Service ...
7
votes
0
answers
715
views
Windows Azure Tools Encryption Certificate for Extensions has not been installed properly
I've just deployed my cloud service with the usual configuration, but now a worker role has been getting busy and recycling over and over again.
I am getting the below message from the diagnostics:
...
6
votes
1
answer
4k
views
Could not load file or assembly '' or one of its dependencies. The process cannot access the file because it is being used by another process
I have just bought a new development machine and have taken the latest version of the source code of a project we are working on but when I try to debug it I get the following error:
Could not load ...
6
votes
4
answers
4k
views
Azure - Virtual Network does not exist when deploy to Cloud Service
I tried to add Cloud Service (classic) to Virtual Network (classic), but an error appears when I deploy (new portal - Update your deployment):
The update deployment operation failed for the domain
...
6
votes
1
answer
1k
views
Securing sensitive information in Azure Cloud Service Configuration
We are using Cloud Service configuration to store app settings. But we would like to secure few appsettings like User Credentials,database connection string etc. What is the recommended way to do that?...
6
votes
1
answer
5k
views
HostingEnviornment.QueueBackgroundWorkItem is not working in azure worker role
I am trying to use HostingEnviornment.QueueBackgroundWorkItem on azure worker role for some task execution on background but I am getting exception in the code "operation is not valid due to the ...
6
votes
1
answer
2k
views
Azure Web Role with Transient Fault Handling Block exception: The path is too long after being fully qualified
We applied Transient Fault Handling Block for our web role of cloud service, we even didn't write one single line code. When we try to debug our cloud service locally, the exception would show on ...
6
votes
1
answer
2k
views
Updating aspnet.config on Azure Web Role
I have a SignalR solution that is deployed to an Azure Web Role (cloud service, not Azure Web Site) and in order to ensure we can maximise the number of connections to each instance I need to make ...
6
votes
2
answers
4k
views
Cannot load imported module named 'Diagnostics.'
The build from VS 2013 breaks with the following error:
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\Windows
Azure Tools\2.5\Microsoft.WindowsAzure.targets(684,5): error :
...
6
votes
1
answer
614
views
BindingRedirect not being honored within cloud service
I'm receiving an exception when initializing a cloud service:
System.IO.FileLoadException: Could not load file or assembly 'Microsoft.WindowsAzure.Storage, Version=2.1.0.0, Culture=neutral, ...
6
votes
4
answers
324
views
Azure-Deployment to stage ignores service configuration
I created a cloud service and tested it successfully locally. I added service configurations for stage and production. Here is a snippet of my staging-configuration:
and here my configuration-...
6
votes
1
answer
94
views
Can I host WebRole and WorkerRole in same CloudService?
I have a blank Solution in .Net and add two Azure Cloud Services project in solution. One with WebRole and other with WorkerRole. Can I host the both project in one cloudservice instance or need ...
6
votes
1
answer
772
views
Internal endpoint for WCF service dont work on Azure Web role
I have two web roles and one of them runs the service layer consisting of 3 WCF services connected with net.tcp, each deployed as a website on port 808, 810, and 811.
Now I want the service layer to ...
5
votes
4
answers
4k
views
invalid service definition or service configuration
I have a standard Azure build -- one web role, one worker role. After the latest merge, it has decided that the roles are invalid. When I double click on the web role or worker role, or when I right ...
5
votes
3
answers
26k
views
Move a Microsoft Azure VM to a Different Subnet Within a vNet
Can't we Move a Microsoft Azure VM to a Different Subnet Within a vNet using the azure new portal or the azure classic portal ? if not possible through portal then how to do so ?then how to edit the ...
5
votes
4
answers
2k
views
Avoid deleting files on Azure Cloud Service publish
I'm hosting my ASP.NET MVC applications as Azure Cloud Service.
I encountered a problem deleting pictures, which uploaded by user, after new deployment.
Uploaded pictures are saving into the custom ...
5
votes
1
answer
4k
views
Does running multiple Azure Cloud Service (Web Role) instances need a Load Balancer?
If a web application is deployed as an Azure Cloud Service (Web Role) with multiple instances, should I still put a load balancer in front of its endpoints (HTTP and HTTPS)?
On Azure's product page ...
5
votes
2
answers
3k
views
Why does New-AzureReservedIP return ResourceNotFound: No deployments were found?
I have a cloud service that has two VMs in it. I'm trying to follow the steps listed in this article to reserve my cloud service's IP address.
Login-AzureRmAccount -TenantId <my tenant id>
Set-...
5
votes
1
answer
5k
views
How to catch "A potentially dangerous Request.Path value was detected from the client (:)" to avoid web role crash?
My MVC 5 web application running on Azure Cloud Service crashed with an unhandled exception "A potentially dangerous Request.Path value was detected from the client (:)".
The cause for this crash was ...
5
votes
3
answers
7k
views
'pvk2pfx.exe' is not recognized as an internal or external command in command promt
for creating certificate run this command
pvk2pfx.exe -pvk C:\myCerts\ELServer.pvk -spc C:\myCerts\ELServer.cer -pfx C:\myCerts\ELServer.pfx
following error occurred in command prompt
'pvk2pfx.exe' ...
5
votes
1
answer
2k
views
MVC5 published to Azure as cloud service redirects to localhost:44300 after AD sign-in
We have developed an MVC5 application with Azure Active Directory authentication. When deployed to Azure as a Web App everything works perfectly. However we have been requested to deploy as a cloud ...
5
votes
1
answer
1k
views
Azure Cloud Service CPU max after upgrade from SDK 2.8 to 2.9
Just recently converted our 2.8 Azure Project to 2.9 and suddenly this started happening.
We're using a classic cloud service to host a web application. Don't understand why it suddenly starts to go ...
5
votes
1
answer
2k
views
Reserved IP for Azure Cloud Service doesn't persist
I'm struggling to get to grips with Reserved IP addresses in an Azure Cloud Service.
I have a Cloud Service with Staging and Productions deployments and I need at least the Production deployment to ...
5
votes
3
answers
2k
views
Updated to VS 2015, Azure 2.7, publish fails 'Access to path ... denied'
I have a cloud service project with three worker roles. Previously (VS 2013, Azure 2.5) everything published fine. When VS 2015 was available, I installed it on a clean VM and then installed Azure 2.7....
5
votes
1
answer
967
views
Umbraco 7.0.2 on Azure Cloud Service - Access to the path 'E:\sitesroot\1\config\applications.config' is denied
I have a Cloud Service running on Azure and i'm trying to add Umbraco as a VirtualApplication to the WebRole:
ServiceDefinition.csdef:
...
<Site name="Web">
<VirtualApplication ...