-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[DevOps] Table Storage용 bicep 파일 만들기 #283 #292
[DevOps] Table Storage용 bicep 파일 만들기 #283 #292
Conversation
트러블슈팅 [완료 : 현재는 안됨]확인결과 현재는 아래 증상이 정상이고, 차후에 이런 증상이 있어 트러블슈팅 중인데 실마리를 찾지 못하고 있습니다. 증상을 해결해주는 것들, 하지만 여전히 azd up만으로는 배포되지 않음
시도해도 증상이 해소되지 않았던 것들
# 다음 구문을 azure.yaml에 추가함
infra:
bicep: ./infra/storage-account.bicep # az 버전정보
→ az version
{
"azure-cli": "2.63.0",
"azure-cli-core": "2.63.0",
"azure-cli-telemetry": "1.1.0",
"extensions": {
"containerapp": "0.3.53"
}
} # azd 버전정보
→ azd --version
azure-cli 2.63.0
core 2.63.0
telemetry 1.1.0
Extensions:
containerapp 0.3.53
Dependencies:
msal 1.30.0
azure-mgmt-resource 23.1.1
Python location '/opt/homebrew/Cellar/azure-cli/2.63.0/libexec/bin/python'
Extensions directory '/Users/bachtaeyeong/.azure/cliextensions'
Python (Darwin) 3.11.9 (main, Apr 2 2024, 08:25:04) [Clang 15.0.0 (clang-1500.3.9.4)]
Legal docs and information: aka.ms/AzureCliLegal
Your CLI is up-to-date. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
테이블 배열 넘기는 부분은 aspire.bicep
파일에서 모듈을 불러오는 것으로 하면서 거기서 넘겨주면 됩니다.
해당 테이블 스토리지를 참조해서 의존객체 생성하는 부분은 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
몇가지 추가적으로 고려해 볼 사항을 리뷰 코멘트로 남겨뒀습니다.
…tae0y/azure-openai-sdk-proxy into feature/283-table-storage-bicep
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
현재 컨테이너 앱을 키볼트에 연결시키는 부분이 없는데, 이건 같이 고민을 좀 해 보시죠.
권한 설정하는 부분은 아래와 같이 구문을 추가해두었습니다 // Role Assignment for Key Vault secret : creator admin, apiapp user
resource keyVaultSecretRoleAssignment 'Microsoft.Authorization/roleAssignments@2020-04-01-preview' = {
name: guid(resourceGroup().id, resolvedKeyVaultName, 'secret-role-assignment')
properties: {
principalId: creatorAdminPrincipalId
roleDefinitionId: '00482A5A-887F-4FB3-B363-3B7FE8E74483' // administrator role
}
}
resource keyVaultSecretApiAppRoleAssignment 'Microsoft.Authorization/roleAssignments@2020-04-01-preview' = {
name: guid(resourceGroup().id, resolvedKeyVaultName, 'secret-apiapp-role-assignment')
properties: {
principalId: apiAppUserPrincipalId
roleDefinitionId: '4633458B-17DE-408A-B874-0445C86B69E6' // secret user role
}
} |
커넥션스트링 자체는 잘 저장하고, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
질문을 남겼습니다!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
수고하셨습니다! LGTM
관련이슈 #283 #213
관련PR #281
실행/배포
테스트