Skip to content

Added SetDiskSanPolicy dependency to enable writable JBOD disks on Windows#679

Merged
brdeyo merged 2 commits intomicrosoft:mainfrom
ankitsharma-99:users/ankitshar/setDiskSanPolicyDependency
Apr 9, 2026
Merged

Added SetDiskSanPolicy dependency to enable writable JBOD disks on Windows#679
brdeyo merged 2 commits intomicrosoft:mainfrom
ankitsharma-99:users/ankitshar/setDiskSanPolicyDependency

Conversation

@ankitsharma-99
Copy link
Copy Markdown
Contributor

@ankitsharma-99 ankitsharma-99 commented Apr 9, 2026

Adds a new SetDiskSanPolicy dependency that sets the Windows SAN policy to OnlineAll via DiskPart before disk initialization runs. This ensures all newly discovered disks are brought online and writable.

The implementation is idempotent: it queries the current policy first (san) and only issues san policy=onlineall if the policy is not already OnlineAll. It is a no-op on Linux (SAN policy is Windows-only), so it is safe to include in cross-platform profiles.

This dependency can be added as follows in profile:

{ "Type": "SetDiskSanPolicy", "Parameters": { "Scenario": "SetSanPolicyOnlineAll" } },

@ankitsharma-99
Copy link
Copy Markdown
Contributor Author

@ankitsharma-99 please read the following Contributor License Agreement(CLA). If you agree with the CLA, please reply with the following information.

@microsoft-github-policy-service agree [company="{your company}"]

Options:

  • (default - no company specified) I have sole ownership of intellectual property rights to my Submissions and I am not making Submissions in the course of work for my employer.
@microsoft-github-policy-service agree
  • (when company given) I am making Submissions in the course of work for my employer (or my employer has intellectual property rights in my Submissions by contract or applicable law). I have permission from my employer to make Submissions and enter into this Agreement on behalf of my employer. By signing below, the defined term “You” includes me and my employer.
@microsoft-github-policy-service agree company="Microsoft"

Contributor License Agreement

@microsoft-github-policy-service agree company="Microsoft"

@brdeyo brdeyo merged commit ffb60f3 into microsoft:main Apr 9, 2026
5 checks passed
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.

2 participants