Add azd provision workflow to automate Azure infrastructure provisioning
Maintainer thường phản hồi trong vòng 4 ngày
Chưa có ai nhận issue này.
- #8 của @copilot-swe-agent — đã đóng, không merge
Đánh giá
Issue này chưa được đánh giá.
Mô tả
This repository lacks a GitHub Actions workflow within .github/workflows/ that runs azd provision.
Adding a CI workflow that provisions (and later deploys) infrastructure via the Azure Developer CLI improves reliability and makes onboarding smoother.
Required Action
Add a workflow similar to the standard azure-dev.yaml used in Azure Samples. A minimal example:
name: Deploy to Azure with azd
on:
workflow_dispatch:
push:
branches: [ main ]
permissions:
id-token: write
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Install azd
uses: Azure/setup-azd@v2
- name: Azure login (federated)
run: |
azd auth login --client-id "$AZURE_CLIENT_ID" \
--tenant-id "$AZURE_TENANT_ID" --federated-credential-provider github
env:
AZURE_CLIENT_ID: ${{ vars.AZURE_CLIENT_ID }}
AZURE_TENANT_ID: ${{ vars.AZURE_TENANT_ID }}
- name: Provision Infrastructure
run: |
azd provision --no-prompt
env:
AZURE_SUBSCRIPTION_ID: ${{ vars.AZURE_SUBSCRIPTION_ID }}
AZURE_ENV_NAME: ${{ vars.AZURE_ENV_NAME }}
AZURE_LOCATION: ${{ vars.AZURE_LOCATION }}
- name: Deploy Application
run: |
azd deploy --no-prompt
env:
AZURE_SUBSCRIPTION_ID: ${{ vars.AZURE_SUBSCRIPTION_ID }}
AZURE_ENV_NAME: ${{ vars.AZURE_ENV_NAME }}
AZURE_LOCATION: ${{ vars.AZURE_LOCATION }}
For a more complete example (including environment variables based off main.parameters.json),
see https://github.com/Azure-Samples/azure-search-openai-demo/blob/main/.github/workflows/azure-dev.yml
Rationale
- Ensures infra is provisioned consistently by automation
- Enables repeatable environments via azd
- Aligns with current Azure Developer CLI best practices
After adding the workflow, ensure required org/repo variables and federated credentials are configured (run azd pipeline config locally if needed).
- Ngôn ngữ chính
- Python
- Star
- 383
- Fork
- 296
- Merge trung bình
- 3 ngày 13 giờ
- Pull request đã merge (30 ngày)
- 1
Chuẩn bị môi trường
Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của Azure-Samples/python-openai-demos
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 48/100
Azure-Samples/python-openai-demos#27 ·
Maintainer thường phản hồi trong vòng 4 ngày
Tất cả issue của Azure-Samples/python-openai-demos
Issue tương tự
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
lugassawan/swe-workbench#799 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug]: CPU without Triton: slot-mapping fallback has a stale signature after #57169, V1 inference fails on the first forward stepCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
vllm-project/vllm#61131 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Non-string form field names raise AttributeError when files are attachedCó thể đã có người làm @nightcityblade đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
kubernetes-client/python#2735 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
desktop help wanted test
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày