The first time you run the storage emulator, the local storage environment is initialized for you. To bring up the command line again, follow the steps above as if starting the storage emulator. When the command line window is closed, the storage emulator continues to run. For more information, see Storage Emulator Command-Line Tool Reference. You can use this command-line window to start and stop the storage emulator as well as clear data, get current status, and initialize the emulator. When the storage emulator starts, a command-line window will appear.
When the emulator is running, you'll see an icon in the Windows taskbar notification area.
Begin typing Azure Storage Emulator, and select the emulator from the list of applications. To start the Azure storage emulator, select the Start button or press the Windows key. Start and initialize the storage emulator read, write, delete, list) to blobs within the container.įor more information on shared access signatures, see Shared Access Signatures: Understanding the SAS Model. The shared access signature created with this example is valid for one day. Replace CONTAINER_NAME with a name of your choosing. Remember to replace ACCOUNT_NAME and ACCOUNT_KEY= with your own credentials. Open Azure PowerShell and run the following commands.
See How to install and configure Azure PowerShell for installation instructions. Using the latest version of the Azure PowerShell cmdlets is recommended. Install Azure PowerShell if you haven't already. An easy way to generate the SAS token is via Azure PowerShell: You will need to create this SAS token using a tool or application that supports Shared Key authentication. Some Azure storage client libraries, such as the Xamarin library, only support authentication with a shared access signature (SAS) token. Authentication with a shared access signature Authentication with Shared Key credentialsįor more details on connection strings, see Configure Azure Storage Connection Strings. You can authenticate requests against the storage emulator using Shared Key authentication or with a shared access signature (SAS). Just as with Azure Storage in the cloud, every request that you make against the storage emulator must be authenticated, unless it is an anonymous request. Authenticating requests against the storage emulator For more information about these differences, see Differences between the storage emulator and Azure Storage. Some differences in functionality exist between the storage emulator and Azure storage services. The storage emulator connects to SQL Server or LocalDB using Windows authentication. You can install SQL Server Management Studio Express to manage your LocalDB installation. See Start and initialize the storage emulator below for more information. You can choose to configure the storage emulator to access a local instance of SQL Server instead of the LocalDB instance. By default, the storage emulator uses a database in Microsoft SQL Server 2012 Express LocalDB. The storage emulator uses a local Microsoft SQL Server instance and the local file system to emulate the Azure storage services. If you need to persist your data for the long term, it's recommended that you store that data in an Azure storage account, rather than in the storage emulator. Note that data created in one version of the storage emulator is not guaranteed to be accessible when using a different version. To configure the storage emulator, you must have administrative privileges on the computer. You can also install the storage emulator using the standalone installer. The storage emulator is available as part of the Microsoft Azure SDK. When you're satisfied with how your application is working in the emulator, you can switch to using an Azure storage account in the cloud. Using the storage emulator, you can test your application against the storage services locally, without creating an Azure subscription or incurring any costs. The Microsoft Azure storage emulator provides a local environment that emulates the Azure Blob, Queue, and Table services for development purposes. Use the Azure Storage Emulator for Development and Testing Overview