Logo
Lose Weight
Windows XP
Windows Vista
Windows 7
Windows Azure
Windows Server
Windows Phone
 
 
Windows Azure

The basics of BLOBs - Configuring your application to work against the live service

3/4/2011 11:40:22 AM
To switch your application from the development storage to the live storage account, you need to create a live storage account and switch your configuration to it. In this section, we won’t go through the process of creating a storage account; it’s pretty simple and the information you require is available in this chapter. We’re going to focus on configuring your application to work against your live storage account.

1. Switching to the live storage account

To make your application work against the live system, all you need to do is modify the value of your configuration setting in the service configuration file. That’s it, the end, nothing else to do. If you remember earlier, you set your storage account configuration setting to the following:

<Setting name="DataConnectionString"
value="UseDevelopmentStorage=true" />

Although this is great for the development storage, it doesn’t give you a clue to the structure of the setting for when you want to use the live system. The following setting shows how the string should be structured.

<Setting name="DataConnectionString"
value="DefaultEndpointsProtocol=protocol;
AccountName=storageaccountname;
AccountKey=storageaccountkey" />

To make this run against the live system, plug in the appropriate values:

<Setting name="DataConnectionString"
value="DefaultEndpointsProtocol=http;
AccountName=silverlightukstorage;
AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==
" />


Now that you’ve configured the live settings, you can use the live BLOB storage system either from the development fabric or from the live production fabric. The only thing left to do is to configure the access key.

2. Configuring the access key

If you’re unsure where you get the account key for the storage account, you can always refer to the Azure portal. When a new storage account is created in Windows Azure, a primary and secondary access key is generated for you to secure your API requests. The access key for your live account is used by all storage services and is available from the storage account section of the portal. Figure 1 shows the window in which you can retrieve your access key. When you retrieve this key, it replaces the development key held in the service configuration file.

Figure 1. Access key in the Azure portal


If your access key is compromised at any point, you can generate a new key by clicking the Regenerate button shown in figure 8.12. After a new key has been generated, you’ll need to update the key in the service configuration for your application. You also have two keys that are valid at one point in time. Both keys are identical in what they allow the user to do with them. Having two keys is a great way to provide rolling key updates without any downtime in your system.

Other -----------------
- The basics of BLOBs : Developing against containers (part 3) - Listing containers & Deleting a container
- The basics of BLOBs : Developing against containers (part 2) - Creating a container
- The basics of BLOBs : Developing against containers (part 1) - Accessing the StorageClient library & Accessing development storage
- The basics of BLOBs : Getting started with development storage
- A closer look at the BLOB storage service
- Storing files in a scaled-out fashion is a pain in the NAS (part 2) - The BLOB service approach to file management
- Storing files in a scaled-out fashion is a pain in the NAS (part 1) - Traditional approaches to BLOB management
 
 
Most view of day
- Microsoft Visio 2010 : Modifying a Graphic (part 5) - Adjusting Brightness and Contrast
- SQL Server 2012 : XML and the Relational Database - Querying XML Data Using XQuery (part 2) - SQL Server XQuery in Action, XML DML
- Extending Dynamics AX 2009 (part 1)
- Migrating to Exchange Server 2007 : Migrating from Exchange 2000 Server or Exchange Server 2003 to Exchange Server 2007 (part 5) - Moving Mailboxes
- Windows Phone 8 : Designing for the Phone - Microsoft Expression Blend
- Microsoft OneNore 2010 : Housecleaning in OneNote - Backing Up Notebooks Manually, Choosing How to Back Up Notebooks
- Designing and Configuring Unified Messaging in Exchange Server 2007 : Monitoring and Troubleshooting Unified Messaging (part 1) - Active Calls , Connectivity
- Microsoft Project 2010 : Comparing Costs to Your Budget (part 1) - Create and Designate Budget Resources, Assign Budget Resources to the Project Summary Task
- Microsoft Access 2010 : Building Reports Based on More Than One Table (part 3) - Working with Subreports
- Integrating SharePoint 2013 with the Office Applications (part 6) - Microsoft Access
Top 10
- MDT's Client Wizard : Package Properties
- MDT's Client Wizard : Driver Properties
- MDT's Client Wizard : Application Properties
- MDT's Client Wizard : Operating System Properties
- MDT's Client Wizard : Customizing the Deployment Share
- Windows Server 2012 : Software and User Account Control Administration (part 5) - Maintaining application integrity - Configuring run levels
- Windows Server 2012 : Software and User Account Control Administration (part 4) - Maintaining application integrity - Application access tokens
- Windows Server 2012 : Software and User Account Control Administration (part 3) - Mastering User Account Control - Configuring UAC and Admin Approval Mode
- Windows Server 2012 : Software and User Account Control Administration (part 2) - Mastering User Account Control - Elevation, prompts, and the secure desktop
- Windows Server 2012 : Software and User Account Control Administration (part 1) - Software installation essentials
 
Windows XP
Windows Vista
Windows 7
Windows Azure
Windows Server
Windows Phone
2015 Camaro