Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Multiple VMExtensions per (type) handler not supported for OS type...

Đang mở
#239 1 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ó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
25/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
azure, powershell
Lĩnh vực
cloud, infrastructure

Hướng nghiên cứu

Bắt đầu bằng cách xem xét hành vi triển khai extension của Azure VM được mô tả trong issue, đặc biệt là handler Microsoft.Powershell.DSC và trình tự triển khai ARM template. Xác định xem việc hỗ trợ nhiều DSC extension có tên duy nhất có thuộc repository này hay không; công việc được xem là hoàn tất khi có một triển khai đã được thống nhất hoặc một phương án giải quyết được ghi lại cho việc triển khai các cấu hình DSC riêng biệt cùng nhau.

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

Mô tả

discussion question
ISSUE TITLE:
Multiple VMExtensions per (type) handler not supported for OS type...

ISSUE DESCRIPTION :

An advertised benefit of DSC in Azure is the ability to Audit VM's to ensure certain actions have been performed, ie JoinDomain, BGInfo, Anti-Malware, etc. This was the main reason I went with the added effort of DSC, instead of Custom Script Extension or Remote Powershell.

In my configurations, I need to Join a Domain, Install a gMSA, add Initialize and Format Disks, Copy Service Files, install and start Services, etc... in addition to whatever the ISO wants has as fundamental requirements.

Many of these tasks need to be performed in different combinations on different machines. The volume and combinations of parameters required also add complexity. Further combining all of this into an ARM template, which presents it's own difficulties.

This led me to an approach of creating various DSC's, each with it's own set of parameters and simple ARM template. This approach allows me to see if DomainJoin succeeded, before attempting to install gMSA

Imagine my dismay, to find out I can perform "Disk Operations" OR "Join Domain", but I can only perform both actions if I create a monolithic DSC. You can only use Microsoft.Powershell.DSC extension once per VM !!!???

 _Multiple VMExtensions per handler not supported for OS type 'Windows'. VMExtension 'DSC.xxxxx' with handler 'Microsoft.Powershell.DSC' already added or specified in input._

Why not allow multiple Microsoft.Powershell.DSC extensions, provided the names are Unique ?

Details of the scenario you tried and the problem that is occurring

I have created several DSC's that work independently when deployed via ARM templates. When attempting to deploy these DSC's in sequence, I get:

 _Multiple VMExtensions per handler not supported for OS type 'Windows'. VMExtension 'DSC.xxxxx' with handler 'Microsoft.Powershell.DSC' already added or specified in input._
Suggested solution to the issue

Allow multiple deployments of Microsoft.Powershell.DSC provided the names are unique.

The DSC configuration that is used to reproduce the issue (as detailed as possible)
# insert configuration here
The operating system the target node is running

Windows 2016 image based on default Azure image.

OsName : Microsoft Windows Server 2016 Datacenter
OsOperatingSystemSKU : DatacenterServerEdition
OsArchitecture : 64-bit
OsLanguage : en-US
OsMuiLanguages : {en-US}

Version and build of PowerShell the target node is running

Name Value


PSVersion 5.1.14393.2969
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.14393.2969
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1

Version of the DSC module that was used ('dev' if using current dev branch)

Custom combination of current modules.

Ngôn ngữ chính
PowerShell
Star
338
Fork
80
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Hướng dẫn đóng góp

Mở 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 dsccommunity/ComputerManagementDsc

Tất cả issue của dsccommunity/ComputerManagementDsc

Issue tương tự

Thêm issue về Cloud

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.