AZ-400 M05L12 Lab Deployment Failures: Outdated Bicep/ARM Templates (Public IP and Storage Account v1)

Đang mở Phù hợp với người mới
#466 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
73/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
azure
Lĩnh vực
cloud, infrastructure

Hướng nghiên cứu

Bắt đầu với infra/simple-windows-vm.bicep và lần theo template được liên kết đến tài nguyên tài khoản lưu trữ. Kiểm tra cài đặt phân bổ Public IP và loại tài khoản lưu trữ dựa trên các lỗi trong issue, sau đó chạy triển khai lab và Bicep linter. Hoàn tất khi triển khai thành công và cảnh báo về tham số không được sử dụng đã được xóa.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Description

The infrastructure deployment step in lab m05l12-ah fails on the hosted Azure DevOps agents due to breaking changes in current Azure resource deployment policies. The template code needs to be updated to match modern Azure requirements.

Defects Found

  1. Standard Public IP SKU Allocation Method Failure

• Error Code: StandardAndStandardV2SkuPublicIPAddressesMustBeStatic
• Error Message: Standard sku publicIp [...] must have AllocationMethod set to Static.
• Root Cause: The template attempts to provision a Standard SKU Public IP address with a Dynamic allocation method. Azure now strictly requires Static allocation for all Standard SKU Public IPs.

  1. Deprecated Storage Account Kind Failure

• Error Code: AccountKindNotSupported
• Error Message: Account Kind Storage is not supported.
• Root Cause: The linkedTemplate deployed by simple-windows-vm.bicep defines a legacy General Purpose v1 storage account (kind: 'Storage'). New creations of this legacy tier are blocked in the lab's deployment region.

  1. Bicep Linter Warning

• Warning: no-unused-params at infra/simple-windows-vm.bicep(20,7)
• Message: Parameter "publicIPAllocationMethod" is declared but never used.

Suggested Fixes

  1. In the Public IP resource definition block, enforce publicIPAllocationMethod: 'Static'.
  2. In the storage account resource definition block (within the nested/linked template), update the kind property from 'Storage' to 'StorageV2'.
  3. Clean up the unused parameter publicIPAllocationMethod from the parameter block of simple-windows-vm.bicep to clear the linter warning.
Ngôn ngữ chính
C#
Star
248
Fork
4k
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Mở trong Codespaces

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.

  • Có Dockerfile hoặc tệp Docker Compose
  • Không có mẫu pull request
  • Không có hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của MicrosoftLearning/eShopOnWeb

Tất cả issue của MicrosoftLearning/eShopOnWeb

Issue tương tự

Thêm issue về C#

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.