English 中文(简体)
Axure: 如何将存储证书独立应用
原标题:Azure: How to get StorageCredentials in standalone application
  • 时间:2012-05-24 15:15:23
  •  标签:
  • azure

I would like to create standalone application which I would like to put on my Azure instance. This application should create vhd on the blob. I look through sample code and it seems to me that I need to use var drive = new CloudDrive(driveURI, credentials);

在此独立应用程序下是否有办法自动检索存储证书对象 。

如果需要的话,我可以把它加入我的Azure部署解决方案。

问题回答

I am sure my this sample will help you achieve everything, please let me know if there is something didn t work: http://mountvhdazurevm.codeplex.com/

上面的样本试图挂载已经曝光的 VHD 。 在您的情况中, 您只需要修改代码即可先创建 VHD 然后挂载它。 您可以得到的样本代码是 < a href=" http://blog. maartenballiauw.be/ post/2010/02/02/ / Using- Windows- Azure- Drive-% 28aka- X- Drive% 29. aspx" rel=“ no follow” >这里

您需要同时:

  • Add the appropriate Windows Azure libraries to your standalone app so that it can mount a cloud drive)
  • Mount the cloud drive from your role s OnStart(), get a drive letter, then launch your standalone app, passing in the drive letter as a parameter (or maybe an environment variable).

最好把驱动器外部挂到你的独立应用程序上, 这样你的应用程序就不会依赖Windows Azure。

注意: 任何挂载的驱动器在任何特定时间可能只有一位作家。 所以, 如果您将大小放大到多个实例, 如果每个实例都需要使用自己的 vhd, 则每个实例都需要用它自己的 vhd 。





相关问题
Windows Azure WorkerRole response

I am working on an Azure demo to run Powershell in a worker role. In my web role I add the name of the Powershell script which is to be run to a CloudQueue object. I can print the script output to ...

Windows Azure WebRole stuck in a deployment loop

I ve been struggling with this one for a couple of days now. My current Windows Azure WebRole is stuck in a loop where the status keeps changing between Initializing, Busy, Stopping and Stopped. It ...

Getting a token for Windows Azure

We are looking at Windows Azure, but getting a token appears to be hard now, at least that s what I m seeing in web searches. Anyone tried it or know how to accelerate that process? Any idea how long ...

Developing Azure .Net 4.0 Applications

Presently .Net 4.0 is not supported on Azure. This thread indicates that you will not be able to use .Net 4.0 with VS 2010 until it is supported in the cloud. http://social.msdn.microsoft.com I d ...

.NET 4.0 on Windows Azure?

My google-fu is failing me on this one. As a possible solution to Unit Testing .NET 3.5 projects using MStest in VS2010 (but I ve put this in a seperate question because it s kind of unrelated): Is ...

热门标签