title | description | author | ms.author | ms.reviewer | ms.date | ms.topic | ms.service | ms.custom |
---|---|---|---|---|---|---|---|---|
Quickstart - Create Azure Analysis Services using PowerShell Azure Analysis Services | Microsoft Docs |
This quickstart describes how to create an Azure Analysis Services server by using PowerShell |
minewiskan |
owend |
minewiskan |
10/12/2021 |
quickstart |
azure-analysis-services |
references_regions, devx-track-azurepowershell, mode-api |
This quickstart describes using PowerShell from the command line to create an Azure Analysis Services server in your Azure subscription.
[!INCLUDE updated-for-az]
- 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.
- Azure PowerShell. To find the installed version, run
Get-Module -ListAvailable Az
. To install or upgrade, see Install Azure PowerShell module.
To create a server in your subscription, you use the Az.AnalysisServices module. Load the Az.AnalysisServices module into your PowerShell session.
Import-Module Az.AnalysisServices
Sign in to your Azure subscription by using the Connect-AzAccount command. Follow the on-screen directions.
Connect-AzAccount
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-AzResourceGroup command. The following example creates a resource group named myResourceGroup
in the West US region.
New-AzResourceGroup -Name "myResourceGroup" -Location "WestUS"
Create a new server by using the New-AzAnalysisServicesServer command. The following example creates a server named myServer in myResourceGroup, in the WestUS region, at the D1 (free) tier, and specifies [email protected] as a server administrator.
New-AzAnalysisServicesServer -ResourceGroupName "myResourceGroup" -Name "myserver" -Location WestUS -Sku D1 -Administrator "[email protected]"
You can remove the server from your subscription by using the Remove-AzAnalysisServicesServer 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-AzAnalysisServicesServer -Name "myserver" -ResourceGroupName "myResourceGroup"
In this quickstart, you learned how to create a server in your Azure subscription by using PowerShell. Now that you have server, you can help secure it by configuring an (optional) server firewall. You can also add a basic sample data model to your server right from the portal. Having a sample model is helpful when learning about configuring model database roles and testing client connections. To learn more, continue to the tutorial for adding a sample model.
[!div class="nextstepaction"] Quickstart: Configure server firewall - Portal