Làm thế nào để định nghĩa một Biến Môi trường trên Azure sử dụng Azure CLI?
Làm thế nào để định nghĩa một Biến Môi trường trên Azure sử dụng Azure CLI?
Biến môi trường (app settings) trên Azure được đặt qua application settings:
# Web App
az webapp config appsettings set -g rg -n myapp \
--settings ENVIRONMENT=Production API_URL=https://api.example.com
# Function App
az functionapp config appsettings set -g rg -n myfunc --settings KEY=VALUE
# Container Apps
az containerapp update -g rg -n myapp --set-env-vars KEY=VALUE SECRET=secretref:my-secret
# Xem / xoá
az webapp config appsettings list -g rg -n myapp
Đăng nhập để tham gia thảo luận cùng mọi người.
Chưa có bình luận nào
Hãy là người đầu tiên chia sẻ suy nghĩ của bạn.