azure-cloud-services

Why does New-AzureReservedIP return ResourceNotFound: No deployments were found?

 ̄綄美尐妖づ 提交于 2020-01-13 02:44:10
问题 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-AzureRmContext -SubscriptionId <my subscription id> New-AzureReservedIP -ReservedIPName myname -Location "Central US" -ServiceName mycloudservicename I always get this error: New-AzureReservedIP : ResourceNotFound: No deployments were found. The VMs were created in the new portal but are classic mode. I

Windows Azure Worker Role Process

北城以北 提交于 2020-01-06 15:56:13
问题 I am trying to remote debug a Worker role but I can't seem to find any process to attach to. Apparently the role is in unhealthy state. When I select attach to debugger I get the dialog with a list of available processes. I can't find any of w3wp.exe, WaWorkerHost.exe, or WaIISHost.exe processes as described here Any help would be appreciated. Thanks 回答1: If your role is unhealthy and recycling I would recommend the troubleshooting steps at http://blogs.msdn.com/b/kwill/archive/2013/08/09

How to use Azure's BlobService object to upload a file associated to a Django model

狂风中的少年 提交于 2020-01-06 12:16:07
问题 I have a Django app where users upload photos and descriptions. Here's a typical model which facilitates that user behavior: class Photo(models.Model): description = models.TextField(validators=[MaxLengthValidator(500)]) submitted_on = models.DateTimeField(auto_now_add=True) image_file = models.ImageField(upload_to=upload_to_location, null=True, blank=True ) Notice the image_file attribute has upload_to argument, which is fed the upload directory and file name of the image_file . The upload

How to use NEST/elasticsearch with Azure?

南笙酒味 提交于 2020-01-06 02:15:09
问题 I got a website (Web App) running on Azure (example.azurewebsites.net) and I want to use NEST (http://nest.azurewebsites.net) in my Asp.Net MVC solution. Locally it works fine, but when publishing it to Azure, I can't get a connection to elasticsearch. Because I did not found any useful tutorial, I mixed three together. First I created a virtual network like described here in Step 1: http://www.kerrb.com/ecAzureVms101/day4-creating-point-to-site-vpn-to-azure-virtual-machines I called it

Create and Publish Azure classic Cloud Service project with AzureRM powershell

谁说我不能喝 提交于 2020-01-04 04:29:33
问题 Even after looking at the docs, I couldn't find a way to do this with the AzureRM powershell cmdlets. Does anyone know how to do this? The old Azure Service Management powershell cmdlets have a Publish-AzureServiceProject, but I believe it is deprecated now. EDIT: Supplement Answer to yoape's answer below You can create a new classical cloud service project using something like this: New-AzureRmResource -ResourceType "Microsoft.ClassicCompute/domainNames" -Location "centralus" -ResourceName

Supporting .net version 4.6 or higher in azure cloud service

做~自己de王妃 提交于 2020-01-02 06:32:49
问题 I have my cloud service for which i am using azure sdk 2.9. It contains multiple csproj files. One of the projects, i want to migrate to .net version 4.6 When i upgrade the project and try to deploy the service, i get the error as "Microsoft Azure Cloud Service projects only support roles that run on .NET Framework versions 4.0 and 4.5" I read on on internet that if the service uses Azure sdk 2.9, this error should not come but i am unable to find any help online, hence i am posting this

Securing sensitive information in Azure Cloud Service Configuration

筅森魡賤 提交于 2020-01-01 10:49:10
问题 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? We are reading this configuration from both web and worker role. Hence using aspnet_regiis utility is not an option as this is not available in worker role since iis is not installed in worker role. We also considered using Key vault, but we end up in the same situation of securing the key

Azure app or cloud service, run some code before load balncer

江枫思渺然 提交于 2019-12-25 08:13:14
问题 In case of Cloud Service in Azure (maybe also App Service), how can I run some code before the service become available in swap or in case of new instance. for example, loading data to cache before the first user have access. 回答1: Cloud Services with Roles Place your app init code inside OnStart() . From https://msdn.microsoft.com/library/azure/microsoft.windowsazure.serviceruntime.roleentrypoint.onstart.aspx: public class WorkerRole : RoleEntryPoint { public override bool OnStart() { try { /

How to increase MaxReceivedMessageSize for azure worker role deployment?

好久不见. 提交于 2019-12-25 06:38:53
问题 I have an azure worker role which is medium size and one instance. I encountered an error which says " The maximum message size quota for incoming messages (1048576) has been exceeded. To increase the quota, use the MaxReceivedMessageSize property on the appropriate binding element. " when deploying my azure worker role cloud service to azure using visual studio. I tried to increase maxReceivedMessageSize property in app.config like this but it didn't work: <bindings> <basicHttpBinding>

Does azure prevent that role instances are recycled at the same time?

纵饮孤独 提交于 2019-12-24 16:32:03
问题 I have a web role deployed to two instances with the app pool recycle time-out set to the default of 29 hours, and the app pool idle timeout set to zero. I want to keep this app pool recycle time out to make sure that my application remains healthy over time. However I do not want that my two instances (accidentally) recycle at the same time to make sure that my application remains responsive to users. Does azure take care that the application pools of multiple instances are not recycled at