Skip to content

Files

Latest commit

author
Christopher McClister
Mar 15, 2022
220a43e · Mar 15, 2022

History

History
51 lines (39 loc) · 2.35 KB

move-cluster.md

File metadata and controls

51 lines (39 loc) · 2.35 KB
title description author ms.author ms.service ms.topic ms.custom ms.date
Move Azure Stream Analytics cluster - Azure PowerShell
Use Azure PowerShell and Azure Resource Manager to Move Azure Stream Analytics cluster to another region.
sidramadoss
sidram
stream-analytics
overview
mvc
02/20/2022

Move Azure Stream Analytics cluster using Azure PowerShell

Learn how to use Azure Az PowerShell module to move your Azure Stream Analytics cluster to another region. You can move a Stream Analytics cluster by exporting the cluster’s ARM template using Azure portal and from there deploy another cluster with the same ARM template to your alternate region.

Move Azure Stream Analytics cluster to another region

You must have the Azure Az PowerShell module installed on your machine to complete this procedure. Install the latest version of PowerShell available for your operating system.

  1. Open Azure Portal.
  2. Select the resource group that contains the Stream Analytics cluster you want to move.
  3. Select the Azure Stream Analytics resource you want to move and then click Export template.

:::image type="content" source="./media/move-cluster/export-template.png" alt-text="Screenshot of Azure Portal, with Stream Analytics resource selected, and the Export Template button highlighted at upper right" lightbox="./media/move-cluster/export-template.png":::

  1. Decompress the file and save the template to your local drive.
  2. Sign in to Azure PowerShell using your Azure credentials.
Connect-AzAccount
  1. Run the following command, using the value for the subscription of the cluster you want to move.
Set-AZContext: Set-AzContext -Subscription "<subscription id>"
  1. Deploy the Stream Analytics template from your local drive.
New-AzResourceGroupDeployment `
  -Name <Example> `
  -ResourceGroupName <name of your resource group> `
  -TemplateFile <path-to-template>

For more information on how to deploy a template using Azure PowerShell, see Deploy a template.

Next steps