azure-cloud-services

How to get web role input endpoint in worker role?

那年仲夏 提交于 2019-12-10 21:32:27
问题 We have an Azure application, which has a worker role and a web role, and the worker role has to know the web role address exposed to outside. That's because, web role include some Web API that worker role can use, so we need to know the exactly url address of web role. Any way to get that? 回答1: You should look into Role, RoleInstance, RoleInstanceEndpoint classes in Microsoft.WindowsAzure.ServiceRuntime Namespace. Using these you should be able to find the IP address and Port of all the role

Azure cloud service becomes unresponsive when instances are removed?

六眼飞鱼酱① 提交于 2019-12-10 19:24:10
问题 My azure cloud service, when it scales down say from 3 to 2 instances, my site becomes unresponsive for a few minutes? I was under the impression, and I may be wrong that my existing instances would be left intact (except those that are being removed) and my site would continue to function as normal? Is this normal behavior? 回答1: This is expected behavior when you scale down from 2 instances to 1 as you are no longer in the SLA-backed world. This is also expected behavior if the

After migrate .Net framework from 4.6.2 to 4.7.2, Azure Cloud Services is not working

吃可爱长大的小学妹 提交于 2019-12-10 12:00:05
问题 After I migrated .Net framework version from 4.6.2 to 4.7.2, there was no problem with I run locally. However, when I published to Azure Cloud Services, there should be something wrong so the service bus message moved to DeadLetter Queue. What's wrong is it as I chose osFamily to 6 (Windows Server 2019) already? If I chose back Windows Server 2016, below error was out during starting the service: Unhandled Exception: Method not found: ‘Void Microsoft.Azure.KeyVault.KeyVaultClient..ctor

Azure WebRole CloudConfigurationManager.GetSetting returns null

青春壹個敷衍的年華 提交于 2019-12-10 10:07:58
问题 I have an Azure Cloud solution with a WebRole project. Windows Azure Tools version: 2.2 packages.config in the WebRole project contains this: <package id="Microsoft.WindowsAzure.ConfigurationManager" version="2.0.2.0" targetFramework="net45" /> I've "Nuget Enable Package Restore" and therefore assume the right packages are linked and referenced during build. The following line works fine on my dev-box Azure Compute emulator, however, when I deploy (check in to TFS online, which builds the

How to check Azure function is running on local environment? `RoleEnvironment` is not working in Azure Functions

无人久伴 提交于 2019-12-09 02:35:09
问题 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. Same code is Shared in Cloud service also, so solution should work with cloud service and azure functions. how can i check current environment is local not hosted/deployed? 回答1: Based on answer by Fabio Cavalcante, here is a working Azure function that checks the current running environment (local

How to pass Azure credentials to a Release Management deployment script on a secure manner?

倖福魔咒の 提交于 2019-12-08 10:45:07
问题 What I want to accomplish: I want to deploy an Azure Cloud Service via Release Management. I managed to get this working by following the steps outlined in this post. In the post the Azure publishsettings file is added to the project and used in Release Management to deploy the Azure package to a Cloud Service. So far so good. What is the issue: The Azure publishsettings file will also contain information about the production environment. I don't want that information to be available to all

Azure Cloud Service: “Requested registry access is not allowed”. VS2015

依然范特西╮ 提交于 2019-12-08 06:44:51
问题 I've been trying for days to migrate our backend solution running on Azure 2.6 and Azure Cloud Services to Azure 2.7 in VS2015 on Windows 10 workstation, but without any luck. I've tried on multiple computers using a clean install of Windows 10 Pro x64 with Visual Studio 2015 Enterprise (all features installed). All updates available in both Windows Update and Vs2015 are installed. I create a new Cloud Service solution, with one Empty web role. I've set VS2015 to break on "Common Language

Reserved IP for Azure Cloud Service doesn't persist

若如初见. 提交于 2019-12-07 06:28:44
问题 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 have a stable IP address. I set up 2 Reserved IP addresses as described here then assigned my reserved IPs to the Production and Staging deployments with Power Shell: Set-AzureReservedIPAssociation -ReservedIPName MyReservedIP1 -ServiceName mycloudservice -Slot “Production” Set

CloudConfigurationManager missing from Azure SDK v2.4?

♀尐吖头ヾ 提交于 2019-12-06 23:07:01
问题 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 SDK\v2.3\ref\Microsoft.WindowsAzure.Configuration.dll The 2.4 SDK is at C:\Program Files\Microsoft SDKs\Azure.NET SDK\v2.4 And there's no such Microsoft.WindowsAzure.Configuration.dll in that directory.. MSDN still shows CloudConfigurationManager in Microsoft.WindowsAzure.Configuration.dl: http:/

How can I host a TCP Listener in Azure?

倾然丶 夕夏残阳落幕 提交于 2019-12-06 18:19:31
问题 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 communication will be secured with a certificate. I'm considering the following options: Cloud Service Worker Role This definitely looks like it will work. However that means I have to use a Cloud Service, and I miss out on the features and simplicity offered by the App Service. The Cloud Service