Skip to content

Files

Latest commit

466bcab · Nov 1, 2017

History

History
80 lines (56 loc) · 3.95 KB

analysis-services-create-powershell.md

File metadata and controls

80 lines (56 loc) · 3.95 KB

title: Create an Azure Analysis Services server by using PowerShell | Microsoft Docs description: Learn how to create an Azure Analysis Services server by using PowerShell services: analysis-services documentationcenter: '' author: minewiskan manager: kfile editor: ''

ms.assetid: ms.service: analysis-services ms.workload: na ms.tgt_pltfrm: na ms.devlang: na ms.topic: hero-article ms.date: 11/01/2017 ms.author: owend ms.custom: mvc


Create an Azure Analysis Services server by using PowerShell

This quickstart describes using PowerShell from the command line to create an Azure Analysis Services server in an Azure resource group in your Azure subscription.

This task requires Azure PowerShell module version 4.0 or later. To find the version, run Get-Module -ListAvailable AzureRM. To install or upgrade, see Install Azure PowerShell module.

Note

Creating a server might result in a new billable service. To learn more, see Analysis Services pricing.

Prerequisites

To complete this quickstart, you need:

  • Azure subscription: Visit Azure Free Trial to create an account.
  • Azure Active Directory: Your subscription must be associated with an Azure Active Directory tenant and you must have an account in that directory. To learn more, see Authentication and user permissions.

Import AzureRm.AnalysisServices module

To create a server in your subscription, you use the AzureRM.AnalysisServices component module. Load the AzureRm.AnalysisServices module into your PowerShell session.

Import-Module AzureRM.AnalysisServices

Sign in to Azure

Sign in to your Azure subscription by using the Add-AzureRmAccount command. Follow the on-screen directions.

Add-AzureRmAccount

Create a resource group

An Azure resource group is a logical container where Azure resources are deployed and managed as a group. When you create your server, you must specify a resource group in your subscription. If you do not already have a resource group, you can create a new one by using the New-AzureRmResourceGroup command. The following example creates a resource group named myResourceGroup in the West US region.

New-AzureRmResourceGroup -Name "myResourceGroup" -Location "West US"

Create a server

Create a new server by using the New-AzureRmAnalysisServicesServer command. The following example creates a server named myServer in myResourceGroup, in the West US region, at the D1 tier, and specifies [email protected] as a server administrator.

New-AzureRmAnalysisServicesServer -ResourceGroupName "myResourceGroup" -Name "myServer" -Location West US -Sku D1 -Administrator "[email protected]"

Clean up resources

You can remove the server from your subscription by using the Remove-AzureRmAnalysisServicesServer command. If you continue with other quickstarts and tutorials in this collection, do not remove your server. The following example removes the server created in the previous step.

Remove-AzureRmAnalysisServicesServer -Name "myServer" -ResourceGroupName "myResourceGroup"

Next steps

Manage Azure Analysis Services with PowerShell
Deploy a model from SSDT
Create a model in Azure portal