-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OpticalDiskDriveLetter - Exception when testing ODD can be managed in some Azure VMs #289
Comments
Results of running: PS C:\Users\nfvrpuser> Get-CimInstance -ClassName Win32_Volume | fl *
Caption : \\?\Volume{228e25db-0000-0000-0000-100000000000}\
Description :
InstallDate :
Name : \\?\Volume{228e25db-0000-0000-0000-100000000000}\
Status :
Availability :
ConfigManagerErrorCode :
ConfigManagerUserConfig :
CreationClassName :
DeviceID : \\?\Volume{228e25db-0000-0000-0000-100000000000}\
ErrorCleared :
ErrorDescription :
LastErrorCode :
PNPDeviceID :
PowerManagementCapabilities :
PowerManagementSupported :
StatusInfo :
SystemCreationClassName :
SystemName : NFVRPAA000001
Access :
BlockSize : 512
ErrorMethodology :
NumberOfBlocks :
Purpose :
Automount : True
BootVolume : False
Capacity : 524287488
Compressed : False
DirtyBitSet : False
DriveLetter :
DriveType : 3
FileSystem : NTFS
FreeSpace : 487582208
IndexingEnabled : True
Label : System Reserved
MaximumFileNameLength : 255
PageFilePresent : False
QuotasEnabled : False
QuotasIncomplete : False
QuotasRebuilding : False
SerialNumber : 3533452987
SupportsDiskQuotas : True
SupportsFileBasedCompression : True
SystemVolume : True
PSComputerName :
CimClass : root/cimv2:Win32_Volume
CimInstanceProperties : {Caption, Description, InstallDate, Name...}
CimSystemProperties : Microsoft.Management.Infrastructure.CimSystemProperties
Caption : D:\
Description :
InstallDate :
Name : D:\
Status :
Availability :
ConfigManagerErrorCode :
ConfigManagerUserConfig :
CreationClassName :
DeviceID : \\?\Volume{53a87756-0000-0000-0000-100000000000}\
ErrorCleared :
ErrorDescription :
LastErrorCode :
PNPDeviceID :
PowerManagementCapabilities :
PowerManagementSupported :
StatusInfo :
SystemCreationClassName :
SystemName : NFVRPAA000001
Access :
BlockSize : 4096
ErrorMethodology :
NumberOfBlocks :
Purpose :
Automount : True
BootVolume : False
Capacity : 107372081152
Compressed : False
DirtyBitSet : False
DriveLetter : D:
DriveType : 3
FileSystem : NTFS
FreeSpace : 105385205760
IndexingEnabled : True
Label : Temporary Storage
MaximumFileNameLength : 255
PageFilePresent : True
QuotasEnabled : False
QuotasIncomplete : False
QuotasRebuilding : False
SerialNumber : 4142108717
SupportsDiskQuotas : True
SupportsFileBasedCompression : True
SystemVolume : False
PSComputerName :
CimClass : root/cimv2:Win32_Volume
CimInstanceProperties : {Caption, Description, InstallDate, Name...}
CimSystemProperties : Microsoft.Management.Infrastructure.CimSystemProperties
Caption : E:\
Description :
InstallDate :
Name : E:\
Status :
Availability :
ConfigManagerErrorCode :
ConfigManagerUserConfig :
CreationClassName :
DeviceID : \\?\Volume{a54000d8-d5cf-4065-97a7-81045fedad3f}\
ErrorCleared :
ErrorDescription :
LastErrorCode :
PNPDeviceID :
PowerManagementCapabilities :
PowerManagementSupported :
StatusInfo :
SystemCreationClassName :
SystemName : NFVRPAA000001
Access :
BlockSize : 4096
ErrorMethodology :
NumberOfBlocks :
Purpose :
Automount : True
BootVolume : False
Capacity : 68701646848
Compressed : False
DirtyBitSet : False
DriveLetter : E:
DriveType : 3
FileSystem : NTFS
FreeSpace : 66612121600
IndexingEnabled : True
Label : NFVRP
MaximumFileNameLength : 255
PageFilePresent : False
QuotasEnabled : False
QuotasIncomplete : False
QuotasRebuilding : False
SerialNumber : 1788644264
SupportsDiskQuotas : True
SupportsFileBasedCompression : True
SystemVolume : False
PSComputerName :
CimClass : root/cimv2:Win32_Volume
CimInstanceProperties : {Caption, Description, InstallDate, Name...}
CimSystemProperties : Microsoft.Management.Infrastructure.CimSystemProperties
Caption : C:\
Description :
InstallDate :
Name : C:\
Status :
Availability :
ConfigManagerErrorCode :
ConfigManagerUserConfig :
CreationClassName :
DeviceID : \\?\Volume{228e25db-0000-0000-0000-501f00000000}\
ErrorCleared :
ErrorDescription :
LastErrorCode :
PNPDeviceID :
PowerManagementCapabilities :
PowerManagementSupported :
StatusInfo :
SystemCreationClassName :
SystemName : NFVRPAA000001
Access :
BlockSize : 4096
ErrorMethodology :
NumberOfBlocks :
Purpose :
Automount : True
BootVolume : True
Capacity : 135839870976
Compressed : False
DirtyBitSet : False
DriveLetter : C:
DriveType : 3
FileSystem : NTFS
FreeSpace : 120349122560
IndexingEnabled : True
Label : Windows
MaximumFileNameLength : 255
PageFilePresent : False
QuotasEnabled : False
QuotasIncomplete : False
QuotasRebuilding : False
SerialNumber : 3902560915
SupportsDiskQuotas : True
SupportsFileBasedCompression : True
SystemVolume : False
PSComputerName :
CimClass : root/cimv2:Win32_Volume
CimInstanceProperties : {Caption, Description, InstallDate, Name...}
CimSystemProperties : Microsoft.Management.Infrastructure.CimSystemProperties
Caption : \\?\Volume{52a193f8-18db-11ef-8403-806e6f6e6963}\
Description :
InstallDate :
Name : \\?\Volume{52a193f8-18db-11ef-8403-806e6f6e6963}\
Status :
Availability :
ConfigManagerErrorCode :
ConfigManagerUserConfig :
CreationClassName :
DeviceID : \\?\Volume{52a193f8-18db-11ef-8403-806e6f6e6963}\
ErrorCleared :
ErrorDescription :
LastErrorCode :
PNPDeviceID :
PowerManagementCapabilities :
PowerManagementSupported :
StatusInfo :
SystemCreationClassName :
SystemName : NFVRPAA000001
Access :
BlockSize :
ErrorMethodology :
NumberOfBlocks :
Purpose :
Automount : True
BootVolume :
Capacity :
Compressed :
DirtyBitSet :
DriveLetter :
DriveType : 5
FileSystem :
FreeSpace :
IndexingEnabled :
Label :
MaximumFileNameLength :
PageFilePresent :
QuotasEnabled :
QuotasIncomplete :
QuotasRebuilding :
SerialNumber :
SupportsDiskQuotas :
SupportsFileBasedCompression :
SystemVolume :
PSComputerName :
CimClass : root/cimv2:Win32_Volume
CimInstanceProperties : {Caption, Description, InstallDate, Name...}
CimSystemProperties : Microsoft.Management.Infrastructure.CimSystemProperties Indicates that there isn't a clear way to link the Disk to the Volume and therefore can only use the drive letter. Preventing the exception and marking the drive as not manageable is all we can do for this condition. This is fine in the case where the state should be So, for the fix, I'll just prevent the exception and write a verbose log that the condition has been found and that device is not manageable. |
Problem description
Error occurring here:
StorageDsc/source/DSCResources/DSC_OpticalDiskDriveLetter/DSC_OpticalDiskDriveLetter.psm1
Line 86 in 173d684
Problem cause is here:
StorageDsc/source/DSCResources/DSC_OpticalDiskDriveLetter/DSC_OpticalDiskDriveLetter.psm1
Line 68 in 173d684
This seems to occur because the
Drive
value isCdRom0
and not a volume label, so not able to look up the volume properly (assumption to be checked).Verbose logs
DSC configuration
Suggested solution
N/A
Operating system the target node is running
PowerShell version and build the target node is running
StorageDsc version
The text was updated successfully, but these errors were encountered: