Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

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

Aperta
#239 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
25/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
azure, powershell

Direzione di ricerca

Inizia esaminando il comportamento di distribuzione delle estensioni Azure VM descritto nell’issue, in particolare l’handler Microsoft.Powershell.DSC e la sequenza di distribuzione del modello ARM. Determina se il supporto per più estensioni DSC con nomi univoci rientra in questo repository; il lavoro sarà completato quando sarà disponibile un’implementazione concordata o una soluzione documentata per distribuire insieme le configurazioni DSC separate.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
PowerShell
Stelle
338
Fork
80
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di dsccommunity/ComputerManagementDsc

Tutte le issue di dsccommunity/ComputerManagementDsc

Issue simili

Altre issue su Cloud

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.