Adding custom script extension when DSC extension already exists

Joshua Rosen 21 Reputation points
2021-02-05T04:28:45.243+00:00

Hello,

I have a use case where I'd like to use a Custom Script extension on VMs that already have the DSC extension installed.

I've tested this, and found that the Custom script extension works as desired, but when I active the custom script extension via powershell, the DSC extension also goes to transitioning then successful. Is this expected behavior?
Are there any adverse effects from this?

I've run both DSC and custom script quite a bit, but not together so this is a bit foreign.

Thank you in advance!

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,586 questions
Windows Server Management
Windows Server Management
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.Management: The act or process of organizing, handling, directing or controlling something.
428 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,462 questions
0 comments No comments
{count} votes

Accepted answer
  1. Stanislav Zhelyazkov 22,251 Reputation points MVP
    2021-02-05T07:16:23.077+00:00

    Hi,
    The two extensions are independent from each other. If you see that the DSC extension is changing states, I would suggest to check the activity log and see who has performed action on the extension of that time. May be there is some behavior in your script that is causing that or some coincidence that someone has executed the extension at the same time.

    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

    0 comments No comments

0 additional answers

Sort by: Most helpful