Feat: Deploy SemantiClip to Azure App Service using azd#12
Feat: Deploy SemantiClip to Azure App Service using azd#12
Conversation
Co-authored-by: vicperdana <7114832+vicperdana@users.noreply.github.com>
Co-authored-by: vicperdana <7114832+vicperdana@users.noreply.github.com>
vicperdana
left a comment
There was a problem hiding this comment.
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 <7114832+vicperdana@users.noreply.github.com>
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:
|
vicperdana
left a comment
There was a problem hiding this comment.
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 <7114832+vicperdana@users.noreply.github.com>
Fixed the environment variable mapping issue. Added an Commit: 2b4f26f |
vicperdana
left a comment
There was a problem hiding this comment.
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 <7114832+vicperdana@users.noreply.github.com>
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.