Skip to content

Conversation

@codykonior
Copy link
Contributor

@codykonior codykonior commented Jul 17, 2024

I'm sometimes getting mof warnings, and the existing warning is too vague. By adding the file and the line information, it helps a lot (when not using -Verbose).

But one warning can't be avoided, and it's using the ServerPermission class which is in the SqlServerDsc module. These look like:

WARNING: [10:04:51 PM] Path [C:\Git\OftenOn\oftenon\MOF\DAC1N1.mof] Line [instance of ServerPermission as
$ServerPermission2ref]
WARNING: [10:04:51 PM] Cannot resolve MOF module name and/or version of the instance defined at line 1038.
WARNING: [10:04:51 PM] Path [C:\Git\OftenOn\oftenon\MOF\DAC1N1.mof] Line [instance of ServerPermission as
$ServerPermission3ref]
WARNING: [10:04:51 PM] Cannot resolve MOF module name and/or version of the instance defined at line 1046.
WARNING: [10:04:51 PM] Path [C:\Git\OftenOn\oftenon\MOF\DAC1N1.mof] Line [instance of SqlPermission as
$SqlPermission1ref]

(The last one is just caused by the other warnings).

I could not find any way around this except adding the exclusion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant