|
| 1 | +--- |
| 2 | +title: Data protection in Azure Stream Analytics |
| 3 | +description: This article explains how to encrypt your private data used by an Azure Stream Analytics job. |
| 4 | +author: mamccrea |
| 5 | +ms.author: mamccrea |
| 6 | +ms.service: stream-analytics |
| 7 | +ms.topic: conceptual |
| 8 | +ms.date: 03/05/2020 |
| 9 | +--- |
| 10 | + |
| 11 | +# Data protection in Azure Stream Analytics |
| 12 | + |
| 13 | +Azure Stream Analytics is a fully managed platform-as-a-service that allows you to build real-time analytics pipelines. All of the heavy lifting, such as cluster provisioning, scaling nodes to accommodate your usage, and managing internal checkpoints, is managed behind the scenes. |
| 14 | + |
| 15 | +## Encrypt your data |
| 16 | + |
| 17 | +Stream Analytics automatically employs best-in-class encryption standards across its infrastructure to encrypt and secure your data. You can simply trust Stream Analytics to securely store all your data so that you don't have to worry about managing the infrastructure. |
| 18 | + |
| 19 | +If you want to use customer-managed keys (CMK) to encrypt your data, you can use your own storage account (general purpose V1 or V2) to store any private data assets that are required by the Stream Analytics runtime. Your storage account can be encrypted as needed. None of your private data assets are stored permanently by the Stream Analytics infrastructure. |
| 20 | + |
| 21 | +This setting must be configured at the time of Stream Analytics job creation, and it can't be modified throughout the job's life cycle. Modification or deletion of storage that is being used by your Stream Analytics is not recommended. If you delete your storage account, you will permanently delete all private data assets, which will cause your job to fail. |
| 22 | + |
| 23 | +Updating or rotating keys to your storage account is not possible using the Stream Analytics portal. You can update the keys using the REST APIs. |
| 24 | + |
| 25 | + |
| 26 | +## Configure storage account for private data |
| 27 | + |
| 28 | +Use the following steps to configure your storage account for private data assets. This configuration is made from your Stream Analytics job, not from your storage account. |
| 29 | + |
| 30 | +1. Sign in to the [Azure portal](https://portal.azure.com/). |
| 31 | + |
| 32 | +1. Select **Create a resource** in the upper left-hand corner of the Azure portal. |
| 33 | + |
| 34 | +1. Select **Analytics** > **Stream Analytics job** from the results list. |
| 35 | + |
| 36 | +1. Fill out the Stream Analytics job page with necessary details such as name, region, and scale. |
| 37 | + |
| 38 | +1. Select the check box that says *Secure all private data assets needed by this job in my Storage account*. |
| 39 | + |
| 40 | +1. Select a storage account from your subscription. Note that this setting cannot be modified throughout the life cycle of the job. |
| 41 | + |
| 42 | +  |
| 43 | + |
| 44 | +## Private data assets that are stored |
| 45 | + |
| 46 | +Any private data that is required to be persisted by Stream Analytics is stored in your storage account. Examples of private data assets include: |
| 47 | + |
| 48 | +* Queries that you have authored and their related configurations |
| 49 | + |
| 50 | +* User-defined functions |
| 51 | + |
| 52 | +* Results of sampling data from inputs |
| 53 | + |
| 54 | +* Checkpoints needed by the Stream Analytics runtime |
| 55 | + |
| 56 | +* Snapshots of reference data |
| 57 | + |
| 58 | +Connection details of your resources, which are used by your Stream Analytics job, are also stored. Encrypt your storage account to secure all of your data. |
| 59 | + |
| 60 | +To help you meet your compliance obligations in any regulated industry or environment, you can read more about [Microsoft's compliance offerings](https://gallery.technet.microsoft.com/Overview-of-Azure-c1be3942). |
| 61 | + |
| 62 | +## Next steps |
| 63 | + |
| 64 | +* [Create an Azure Storage account](../storage/common/storage-account-create.md) |
| 65 | +* [Understand inputs for Azure Stream Analytics](stream-analytics-add-inputs.md) |
| 66 | +* [Checkpoint and replay concepts in Azure Stream Analytics jobs](stream-analytics-concepts-checkpoint-replay.md) |
| 67 | +* [Using reference data for lookups in Stream Analytics](stream-analytics-use-reference-data.md) |
0 commit comments