Tip
Microsoft Fabric Data Warehouse는 데이터 레이크 기반의 엔터프라이즈 규모 관계형 웨어하우스로, 미래 대비 아키텍처, 기본 제공 AI 및 새로운 기능을 제공합니다. 데이터 웨어하우징이 처음이라면, Fabric Data Warehouse부터 시작하세요. 기존
이 Bicep 파일은 투명한 데이터 암호화 사용하도록 설정된 전용 SQL 풀(이전 SQL DW)을 만듭니다. 전용 SQL 풀(이전의 SQL DW)은 Azure Synapse에서 일반적으로 사용할 수 있는 엔터프라이즈 데이터 웨어하우징 기능을 나타냅니다.
Bicep은 선언적 구문을 사용하여 Azure 리소스를 배포하는 DSL(도메인 특정 언어)입니다. 간결한 구문, 신뢰할 수 있는 형식 안전성 및 코드 다시 사용에 대한 지원을 제공합니다. Bicep은 Azure에서 코드형 인프라 솔루션에 대한 최고의 제작 환경을 제공합니다.
필수 조건
Azure 구독이 없는 경우 시작하기 전에 체험 계정을 만듭니다.
Bicep 파일을 검토합니다.
이 빠른 시작에서 사용되는 Bicep 파일은 Azure 빠른 시작 템플릿에서 나온 것입니다.
@description('The SQL Logical Server name.')
param sqlServerName string = 'sql${uniqueString(resourceGroup().id)}'
@description('The administrator username of the SQL Server.')
param sqlAdministratorLogin string
@description('The administrator password of the SQL Server.')
@secure()
param sqlAdministratorPassword string
@description('The name of the Database.')
param databasesName string
@description('Enable/Disable Transparent Data Encryption')
@allowed([
'Enabled'
'Disabled'
])
param transparentDataEncryption string = 'Enabled'
@description('DW Performance Level expressed in DTU (i.e. 900 DTU = DW100c)')
@minValue(900)
@maxValue(54000)
param capacity int
@description('The SQL Database collation.')
param databaseCollation string = 'SQL_Latin1_General_CP1_CI_AS'
@description('Resource location')
param location string = resourceGroup().location
resource sqlServer 'Microsoft.Sql/servers@2023-08-01-preview' = {
name: sqlServerName
location: location
properties: {
administratorLogin: sqlAdministratorLogin
administratorLoginPassword: sqlAdministratorPassword
version: '12.0'
publicNetworkAccess: 'Enabled'
minimalTlsVersion: '1.2'
restrictOutboundNetworkAccess: 'Disabled'
}
}
resource sqlServerDatabase 'Microsoft.Sql/servers/databases@2023-08-01-preview' = {
parent: sqlServer
name: databasesName
location: location
sku: {
name: 'DataWarehouse'
tier: 'DataWarehouse'
capacity: capacity
}
properties: {
collation: databaseCollation
catalogCollation: databaseCollation
readScale: 'Disabled'
requestedBackupStorageRedundancy: 'Geo'
isLedgerOn: false
}
}
resource encryption 'Microsoft.Sql/servers/databases/transparentDataEncryption@2023-08-01-preview' = {
parent: sqlServerDatabase
name: 'current'
properties: {
state: transparentDataEncryption
}
}
resource securityAlertPolicy 'Microsoft.Sql/servers/securityAlertPolicies@2023-08-01-preview' = {
parent: sqlServer
name: 'default'
properties: {
state: 'Enabled'
}
}
resource auditingSetting 'Microsoft.Sql/servers/auditingSettings@2023-08-01-preview' = {
parent: sqlServer
name: 'default'
properties: {
isAzureMonitorTargetEnabled: true
state: 'Enabled'
retentionDays: 7
auditActionsAndGroups: [
'SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP'
'FAILED_DATABASE_AUTHENTICATION_GROUP'
'BATCH_COMPLETED_GROUP'
]
}
}
output location string = location
output name string = sqlServer.name
output resourceGroupName string = resourceGroup().name
output resourceId string = sqlServer.id
Bicep 파일은 다음 하나의 리소스를 정의합니다.
Bicep 파일을 배포하십시오
Bicep 파일을
main.bicep으로 로컬 컴퓨터에 저장합니다.Azure CLI 또는 Azure PowerShell을 사용하여 Bicep 파일을 배포합니다.
az group create --name exampleRG --location eastus az deployment group create --resource-group exampleRG --template-file main.bicep --parameters sqlAdministratorLogin=<admin-login> databasesName=<db-name> capacity=<int>참고
<admin-login>을 SQL Server에 대한 관리자 로그인 사용자 이름으로 바꿉니다. <db-name>을 데이터베이스 이름으로 바꿉니다. <int>를 DW 성능 수준으로 바꿉니다. 최솟값은 900이고 최댓값은 54000입니다. sqlAdministratorLoginPassword를 입력하라는 메시지도 표시됩니다.
배포가 완료되면 배포에 성공했음을 나타내는 메시지가 표시됩니다.
배포된 리소스 검토
Azure Portal, Azure CLI 또는 Azure PowerShell을 사용하여 리소스 그룹에 배포된 리소스를 나열합니다.
az resource list --resource-group exampleRG
리소스 정리
더 이상 필요 없으면 Azure Portal, Azure CLI 또는 Azure PowerShell을 사용하여 리소스 그룹 및 해당 리소스를 삭제합니다.
az group delete --name exampleRG
다음 단계
이 빠른 시작에서는 Bicep을 사용하여 전용 SQL 풀(이전의 SQL DW)을 만들고 배포의 유효성을 검사했습니다. Azure Synapse Analytics 및 Bicep에 대해 자세히 알아보려면 아래 문서를 참조하세요.