Microsoft Azure Attestation 은 TEE(신뢰할 수 있는 실행 환경)를 증명하기 위한 솔루션입니다. 이 빠른 시작에서는 Bicep 파일을 배포하여 Microsoft Azure 증명 정책을 만드는 프로세스에 중점을 둡니다.
Bicep은 선언적 구문을 사용하여 Azure 리소스를 배포하는 DSL(도메인 특정 언어)입니다. 간결한 구문, 신뢰할 수 있는 형식 안전성 및 코드 재사용 지원을 제공합니다. Bicep은 Azure에서 코드형 인프라 솔루션에 대한 최고의 제작 환경을 제공합니다.
필수 조건
Azure 구독이 없는 경우, 시작하기 전에 무료 계정을 만드십시오.
Bicep 파일을 검토하십시오
이 빠른 시작에서 사용되는 Bicep 파일은 Azure 빠른 시작 템플릿에서 나온 것입니다.
@description('Name of the Attestation provider. Must be between 3 and 24 characters in length and use numbers and lower-case letters only.')
param attestationProviderName string = uniqueString(resourceGroup().name)
@description('Location for all resources.')
param location string = resourceGroup().location
param policySigningCertificates string = ''
var PolicySigningCertificates = {
PolicySigningCertificates: {
keys: [
{
kty: 'RSA'
use: 'sig'
x5c: [
policySigningCertificates
]
}
]
}
}
resource attestationProvider 'Microsoft.Attestation/attestationProviders@2021-06-01' = {
name: attestationProviderName
location: location
properties: (empty(policySigningCertificates) ? json('{}') : PolicySigningCertificates)
}
output attestationName string = attestationProvider.id
output location string = location
output resourceGroupName string = resourceGroup().name
output resourceId string = attestationProvider.id
Bicep 파일에 정의된 Azure 리소스:
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배포가 완료되면 배포가 성공했음을 나타내는 메시지가 표시됩니다.
배포 유효성 검사
Azure Portal, Azure CLI 또는 Azure PowerShell을 사용하여 리소스 그룹 및 서버 리소스가 생성되었는지 확인합니다.
az resource list --resource-group exampleRG
자원을 정리하세요
다른 Azure Attestation은 이 빠른 시작을 기반으로 빌드됩니다. 이후의 빠른 시작 및 자습서를 계속 진행하려는 경우 이러한 리소스를 유지하는 것이 좋습니다.
더 이상 필요하지 않은 경우 리소스 그룹을 삭제하여 증명 리소스를 삭제합니다. Azure CLI 또는 Azure PowerShell을 사용하여 리소스 그룹을 삭제하려면 다음을 수행합니다.
az group delete --name exampleRG
다음 단계
이 빠른 시작에서는 Bicep 파일을 사용하여 증명 리소스를 만들고 배포의 유효성을 검사했습니다. Azure Attestation에 대한 자세한 내용은 Azure Attestation 개요를 참조하세요.