azure-cloud-services

Add private key file to Pageant from Azure local storage resource

无人久伴 提交于 2019-12-13 02:57:00
问题 I'm implementing a Cloud Service (worker role) application in Azure which can add private key files to Pageant from an Azure Local Storage. The p variable is a Process which starts cmd.exe as well. var filename = "pageant.exe"; var workerRoleStorageName = "PrivateKeys"; var privatekeyfilename = "ThePrivateKey.ppk"; var localResource = RoleEnvironment.GetLocalResource(workerRoleStorageName); var path = Path.Combine(localResource.RootPath, privatekeyfilename); p.StandardInput.WriteLine(filename

Azure Emulator appears to hang on Web Role startup

孤街浪徒 提交于 2019-12-13 02:06:27
问题 I am trying to use the Azure emulator to debug a .net solution for VS2013, I am using IIS Express and Emulator Express. The project contains several worker roles, which start just fine, and one web roles that seems to hang intermittently. The weird thing is that if I reboot the computer and restart the debugger, it seems to work. I see the following lines if I click on the "Show Compute Emulator UI" option, Web Role: [fabric] Role Instance: deployment28(2907).MyApp.Cloud.MyApp.Web.0 [fabric]

Cannot emulate F# worker role

白昼怎懂夜的黑 提交于 2019-12-13 01:08:51
问题 I use VisualStudio 2013.4 with Azure .NET SDK 2.5 : File / New Project : Azure Cloud Service Add F# WorkerRole F5 The cloud service cannot start in emulator : [fabric] Role Instance: deployment25(22).AzureCloudService2.WorkerRole1.0 [fabric] Role state Unhealthy [runtime] Role entrypoint . CALLING OnStart(): Microsoft.WindowsAzure.ServiceRuntime.DefaultEntryPoint [runtime] Role entrypoint . COMPLETED OnStart(): Microsoft.WindowsAzure.ServiceRuntime.DefaultEntryPoint [runtime] Role entrypoint

Migrate Azure classic VM to ARM. error in Virtual Network validation

旧巷老猫 提交于 2019-12-12 21:30:13
问题 I tried to migrate Azure classic ASM virtual machine to ARM by following the instruction. At the beginning of Step 5 , the validation command in Option 1; $validate = Move-AzureService -Validate -ServiceName $serviceName ` -DeploymentName $deploymentName -CreateNewVirtualNetwork $validate.ValidationMessages gives following error. ResourceType : Deployment ResourceName : database-vm Category : Error Message: Deployment database-vm in HostedService database-vm belongs to Virtual Network Group

WebApp in AppServices vs CloudService

旧街凉风 提交于 2019-12-12 21:25:34
问题 Is WebApp (formerly Azure Website) in the newly announced "Azure AppService" the preferred approach to building highly scalable web applications as opposed to using "Azure CloudServices"? My original understanding was that web applications hosted as "Azure CloudServices" would scale better and "Azure Websites" were for simpler web sites/applications. I'm building a web application and scalability is a big concern. Which is the "better" approach? 回答1: Your exact answer might depend on what you

How to download files from Azure Blob Storage with a Download Link

你说的曾经没有我的故事 提交于 2019-12-12 20:42:33
问题 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: public string DeleteImage(string Name) { Uri uri = new Uri(Name); string filename = System.IO.Path.GetFileName(uri.LocalPath); CloudBlobContainer blobContainer = _blobStorageService.GetCloudBlobContainer(); CloudBlockBlob blob = blobContainer.GetBlockBlobReference(filename); blob.Delete(); return

Azure VM, Cloud service or Web job?

若如初见. 提交于 2019-12-12 16:22:48
问题 I am quite new to Azure and not quite sure what service I need to achieve this: What I want to do is developing an application/service to do some computing tasks. I have created a web API for sending data to my database. I will use the data from my database to perform some computing and store results back in the database. This app/service will be run continuously. I am not sure if I should use a web job or a cloud service or a virtual machine. They all seem to be able to achieve what I want..

Move a Microsoft Azure VM to a Different Subnet Within a vNet

限于喜欢 提交于 2019-12-12 14:56:10
问题 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 properties of a VM after creation, like moving to a different subnet,, etc.,? 回答1: It is possible through the new portal. First I want to ask you if you're using a Classic VM or a Resource manager VM. If you're using the last one you can easily switch between subnets by changing the configuration

Azure continuous deployment error Could not load file or assembly Microsoft.WindowsAzure.Packaging

安稳与你 提交于 2019-12-12 11:27:06
问题 Out of nowhere I started getting this error when I try to deploy my project to cloud service (using continuous deployment and hosted build controller. C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\Windows Azure Tools\2.5\Microsoft.WindowsAzure.targets (2917): Could not load file or assembly 'Microsoft.WindowsAzure.Packaging, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified. I found this SO

Provision classic cloud service via ARM template

≯℡__Kan透↙ 提交于 2019-12-12 09:47:54
问题 In one of our project, we are trying to automate deployment of cloud components on Azure. For majority of components (basically all ARM components like Redis, Service bus, App Service etc.) we were able to achieve it using ARM templates and Powershell script. However, we are stuck at Cloud Service (classic) component. Cloud service component contains only WebRole in it and no VM needs to be provisioned. We can go via classic deployment model i.e. using ASM commands in power shell. But since,