From b2cca0a75b877524675c60286f687f2a92936f94 Mon Sep 17 00:00:00 2001 From: Microsoft Graph DevX Tooling Date: Thu, 1 Aug 2024 15:33:44 +0300 Subject: [PATCH 1/2] Remove invalid paths that exceed Windows file name limit. --- src/DeviceManagement.Actions/DeviceManagement.Actions.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DeviceManagement.Actions/DeviceManagement.Actions.md b/src/DeviceManagement.Actions/DeviceManagement.Actions.md index 71c0ee1790..610c1384f9 100644 --- a/src/DeviceManagement.Actions/DeviceManagement.Actions.md +++ b/src/DeviceManagement.Actions/DeviceManagement.Actions.md @@ -18,7 +18,7 @@ require: ``` yaml directive: # Remove invalid paths that exceed Windows file name limit. - - remove-path-by-operation: ^deviceManagement.(userExperienceAnalyticsDeviceScope_.*|reusablePolicySetting.referencingConfigurationPolicy_(assign|createCopy)|deviceShellScript.userRunState.deviceRunState.managedDevice_.*|windowsAutopilotDeploymentProfile.(assignedDevice_updateDeviceProperty|assignedDevice.deploymentProfile_assign|assignedDevice.intendedDeploymentProfile_assign|assignedDevice_assignResourceAccountToDevice|assignedDevice_unassignResourceAccountFromDevice)|deviceComplianceScript.deviceRunState.managedDevice_.*|deviceCustomAttributeShellScript.(deviceRunState.managedDevice_.*|userRunState.deviceRunState.managedDevice_.*)|deviceManagementScript.deviceRunState.managedDevice(_updateWindowsDeviceAccount|_logoutSharedAppleDeviceActiveUser|_deleteUserFromSharedAppleDevice|_createDeviceLogCollectionRequest|_sendCustomNotificationToCompanyPortal|_triggerConfigurationManagerAction|_windowsDefenderUpdateSignature)|deviceManagementScript.userRunState.deviceRunState.managedDevice_.*|deviceConfiguration.groupAssignment.deviceConfiguration(_assignedAccessMultiModeProfile|_windowsPrivacyAccessControl)|deviceHealthScript.deviceRunState.managedDevice(_sendCustomNotificationToCompanyPortal|_createDeviceLogCollectionRequest)|deviceShellScript.deviceRunState.managedDevice_sendCustomNotificationToCompanyPortal)|deviceManagement.microsoftTunnelSite.microsoftTunnelServer_generateServerLogCollectionRequest$|deviceManagement.reusablePolicySetting.referencingConfigurationPolicy_clearEnrollmentTimeDeviceMembershipTarget$|deviceManagement.reusablePolicySetting.referencingConfigurationPolicy_retrieveEnrollmentTimeDeviceMembershipTarget$ + - remove-path-by-operation: ^deviceManagement.(userExperienceAnalyticsDeviceScope_.*|reusablePolicySetting.referencingConfigurationPolicy_(assign|createCopy)|deviceShellScript.userRunState.deviceRunState.managedDevice_.*|windowsAutopilotDeploymentProfile.(assignedDevice_updateDeviceProperty|assignedDevice.deploymentProfile_assign|assignedDevice.intendedDeploymentProfile_assign|assignedDevice_assignResourceAccountToDevice|assignedDevice_unassignResourceAccountFromDevice)|deviceComplianceScript.deviceRunState.managedDevice_.*|deviceCustomAttributeShellScript.(deviceRunState.managedDevice_.*|userRunState.deviceRunState.managedDevice_.*)|deviceManagementScript.deviceRunState.managedDevice(_updateWindowsDeviceAccount|_logoutSharedAppleDeviceActiveUser|_deleteUserFromSharedAppleDevice|_createDeviceLogCollectionRequest|_sendCustomNotificationToCompanyPortal|_triggerConfigurationManagerAction|_windowsDefenderUpdateSignature)|deviceManagementScript.userRunState.deviceRunState.managedDevice_.*|deviceConfiguration.groupAssignment.deviceConfiguration(_assignedAccessMultiModeProfile|_windowsPrivacyAccessControl)|deviceHealthScript.deviceRunState.managedDevice(_sendCustomNotificationToCompanyPortal|_createDeviceLogCollectionRequest)|deviceShellScript.deviceRunState.managedDevice_sendCustomNotificationToCompanyPortal)|deviceManagement.microsoftTunnelSite.microsoftTunnelServer_generateServerLogCollectionRequest$|deviceManagement.reusablePolicySetting.referencingConfigurationPolicy_clearEnrollmentTimeDeviceMembershipTarget$|deviceManagement.reusablePolicySetting.referencingConfigurationPolicy_retrieveEnrollmentTimeDeviceMembershipTarget$|deviceManagement.reusablePolicySetting.referencingConfigurationPolicy_setEnrollmentTimeDeviceMembershipTarget # Remove cmdlets. - where: From 9c489b72629aa3cb960f20658a155c2d1bdc73fa Mon Sep 17 00:00:00 2001 From: Microsoft Graph DevX Tooling Date: Thu, 1 Aug 2024 15:39:29 +0300 Subject: [PATCH 2/2] Updated regex --- src/DeviceManagement.Actions/DeviceManagement.Actions.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DeviceManagement.Actions/DeviceManagement.Actions.md b/src/DeviceManagement.Actions/DeviceManagement.Actions.md index 610c1384f9..7191c2a1ea 100644 --- a/src/DeviceManagement.Actions/DeviceManagement.Actions.md +++ b/src/DeviceManagement.Actions/DeviceManagement.Actions.md @@ -18,7 +18,7 @@ require: ``` yaml directive: # Remove invalid paths that exceed Windows file name limit. - - remove-path-by-operation: ^deviceManagement.(userExperienceAnalyticsDeviceScope_.*|reusablePolicySetting.referencingConfigurationPolicy_(assign|createCopy)|deviceShellScript.userRunState.deviceRunState.managedDevice_.*|windowsAutopilotDeploymentProfile.(assignedDevice_updateDeviceProperty|assignedDevice.deploymentProfile_assign|assignedDevice.intendedDeploymentProfile_assign|assignedDevice_assignResourceAccountToDevice|assignedDevice_unassignResourceAccountFromDevice)|deviceComplianceScript.deviceRunState.managedDevice_.*|deviceCustomAttributeShellScript.(deviceRunState.managedDevice_.*|userRunState.deviceRunState.managedDevice_.*)|deviceManagementScript.deviceRunState.managedDevice(_updateWindowsDeviceAccount|_logoutSharedAppleDeviceActiveUser|_deleteUserFromSharedAppleDevice|_createDeviceLogCollectionRequest|_sendCustomNotificationToCompanyPortal|_triggerConfigurationManagerAction|_windowsDefenderUpdateSignature)|deviceManagementScript.userRunState.deviceRunState.managedDevice_.*|deviceConfiguration.groupAssignment.deviceConfiguration(_assignedAccessMultiModeProfile|_windowsPrivacyAccessControl)|deviceHealthScript.deviceRunState.managedDevice(_sendCustomNotificationToCompanyPortal|_createDeviceLogCollectionRequest)|deviceShellScript.deviceRunState.managedDevice_sendCustomNotificationToCompanyPortal)|deviceManagement.microsoftTunnelSite.microsoftTunnelServer_generateServerLogCollectionRequest$|deviceManagement.reusablePolicySetting.referencingConfigurationPolicy_clearEnrollmentTimeDeviceMembershipTarget$|deviceManagement.reusablePolicySetting.referencingConfigurationPolicy_retrieveEnrollmentTimeDeviceMembershipTarget$|deviceManagement.reusablePolicySetting.referencingConfigurationPolicy_setEnrollmentTimeDeviceMembershipTarget + - remove-path-by-operation: ^deviceManagement.(userExperienceAnalyticsDeviceScope_.*|reusablePolicySetting.referencingConfigurationPolicy_(assign|createCopy)|deviceShellScript.userRunState.deviceRunState.managedDevice_.*|windowsAutopilotDeploymentProfile.(assignedDevice_updateDeviceProperty|assignedDevice.deploymentProfile_assign|assignedDevice.intendedDeploymentProfile_assign|assignedDevice_assignResourceAccountToDevice|assignedDevice_unassignResourceAccountFromDevice)|deviceComplianceScript.deviceRunState.managedDevice_.*|deviceCustomAttributeShellScript.(deviceRunState.managedDevice_.*|userRunState.deviceRunState.managedDevice_.*)|deviceManagementScript.deviceRunState.managedDevice(_updateWindowsDeviceAccount|_logoutSharedAppleDeviceActiveUser|_deleteUserFromSharedAppleDevice|_createDeviceLogCollectionRequest|_sendCustomNotificationToCompanyPortal|_triggerConfigurationManagerAction|_windowsDefenderUpdateSignature)|deviceManagementScript.userRunState.deviceRunState.managedDevice_.*|deviceConfiguration.groupAssignment.deviceConfiguration(_assignedAccessMultiModeProfile|_windowsPrivacyAccessControl)|deviceHealthScript.deviceRunState.managedDevice(_sendCustomNotificationToCompanyPortal|_createDeviceLogCollectionRequest)|deviceShellScript.deviceRunState.managedDevice_sendCustomNotificationToCompanyPortal)|deviceManagement.microsoftTunnelSite.microsoftTunnelServer_generateServerLogCollectionRequest$|deviceManagement.reusablePolicySetting.referencingConfigurationPolicy_clearEnrollmentTimeDeviceMembershipTarget$|deviceManagement.reusablePolicySetting.referencingConfigurationPolicy_retrieveEnrollmentTimeDeviceMembershipTarget$|deviceManagement.reusablePolicySetting.referencingConfigurationPolicy_setEnrollmentTimeDeviceMembershipTarget$ # Remove cmdlets. - where: