-
Notifications
You must be signed in to change notification settings - Fork 17
Feat: Deploy SemantiClip to Azure App Service using azd #12
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
base: main
Are you sure you want to change the base?
Conversation
Co-authored-by: vicperdana <[email protected]>
Co-authored-by: vicperdana <[email protected]>
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's missing environment set with azd env set, this must be set by the end users before running azd up
AzureOpenAIEndpoint
AzureOpenAIApiKey
AzureAIAgentConnectionString
GitHubPersonalAccessToken
…zure deployment Co-authored-by: vicperdana <[email protected]>
I've added the missing environment variables validation and configuration. The changes include:
Users now must set these variables before deployment: azd env set AZURE_OPENAI_ENDPOINT "https://your-service.openai.azure.com/"
azd env set AZURE_OPENAI_API_KEY "your-api-key"
azd env set AZURE_AI_AGENT_CONNECTION_STRING "your-connection-string"
azd env set GITHUB_PERSONAL_ACCESS_TOKEN "your-token"The deployment will fail early with clear error messages if any required variables are missing. Commit: 7aeb2e2 Warning Firewall rules blocked me from connecting to one or more addressesI tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
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.
After setting up azd env for these AZURE_OPENAI_ENDPOINT AZURE_OPENAI_API_KEY AZURE_AI_AGENT_CONNECTION_STRING GITHUB_PERSONAL_ACCESS_TOKEN
I still get asked after running azd up
Enter a value for the 'azureAiAgentConnectionString' infrastructure secured parameter:
Enter a value for the 'azureOpenAiApiKey' infrastructure secured parameter:
? Enter a value for the 'azureOpenAiEndpoint' infrastructure parameter:
? Enter a value for the 'gitHubPersonalAccessToken' infrastructure secured parameter:
This should not be re-asked since we have already set them up via azd env above
Co-authored-by: vicperdana <[email protected]>
Fixed the environment variable mapping issue. Added an Commit: 2b4f26f |
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.
I am still getting this request even after setting the azd env set AZURE_AI_AGENT_CONNECTION_STRING
? Enter a value for the 'azureAiAgentConnectionString' infrastructure secured parameter: [? for help]
Enter a value for the 'azureOpenAiApiKey' infrastructure secured parameter:
Enter a value for the 'azureOpenAiEndpoint' infrastructure parameter:
Enter a value for the 'gitHubPersonalAccessToken' infrastructure secured parameter:
Co-authored-by: vicperdana <[email protected]>
Fixed the issue. The problem was that the required environment variables were missing from Commit: 200868c |
This PR implements Azure App Service deployment using Azure Developer CLI (azd) to enable one-command deployment and provisioning of Azure resources for the SemantiClip project.
Implementation Summary
Azure Infrastructure Components
azure.yaml- azd configuration defining API and web services with default environment variablesinfra/main.bicep- Main infrastructure template provisioning all Azure resourcesinfra/core/- Modular Bicep templates for App Services, App Service Plan, and monitoringinfra/abbreviations.json- Azure resource naming conventions following best practicesKey Features
azureAiAgentMaxEvaluations: 3azureAiAgentChatModelId: gpt-4oazureOpenAiContentDeploymentName: gpt-4oazureOpenAiWhisperDeploymentName: whisperfileUploadMaxRequestBodySizeInBytes: 30000000fileUploadAllowedExtensions: .mp4,.avi,.mov,.wmv,.mkvDeployment Usage
This command provisions:
Documentation Updates
Infrastructure Validation
The implementation enables developers to deploy SemantiClip to Azure with a single command while automatically configuring all necessary resources and environment variables.
Fixes #8.
Warning
Firewall rules blocked me from connecting to one or more addresses
I tried to connect to the following addresses, but was blocked by firewall rules:
aka.mscurl -I -sSL --retry 5 --retry-delay 2 --connect-timeout 15 REDACTED(dns block)bicep build main.bicep(dns block)curl -fsSL REDACTED(dns block)If you need me to access, download, or install something from one of these locations, you can either:
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.