Why is listing EC2 Disks so painful on Windows? Announcing the arrival of Valued Associate...
How discoverable are IPv6 addresses and AAAA names by potential attackers?
How come Sam didn't become Lord of Horn Hill?
Sci-Fi book where patients in a coma ward all live in a subconscious world linked together
Why aren't air breathing engines used as small first stages
Coloring maths inside a tcolorbox
Are two submodules (where one is contained in the other) isomorphic if their quotientmodules are isomorphic?
Seeking colloquialism for “just because”
Can a USB port passively 'listen only'?
Selecting the same column from Different rows Based on Different Criteria
What does an IRS interview request entail when called in to verify expenses for a sole proprietor small business?
Overriding an object in memory with placement new
Is pollution the main cause of Notre Dame Cathedral's deterioration?
ListPlot join points by nearest neighbor rather than order
Echoing a tail command produces unexpected output?
Why are there no cargo aircraft with "flying wing" design?
How can I make names more distinctive without making them longer?
Short Story with Cinderella as a Voo-doo Witch
What does the "x" in "x86" represent?
Should I use a zero-interest credit card for a large one-time purchase?
Book where humans were engineered with genes from animal species to survive hostile planets
Identifying polygons that intersect with another layer using QGIS?
What would be the ideal power source for a cybernetic eye?
Is it true that "carbohydrates are of no use for the basal metabolic need"?
Fundamental Solution of the Pell Equation
Why is listing EC2 Disks so painful on Windows?
Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)
Come Celebrate our 10 Year Anniversary!How to get physical partition name from iSCSI details on Windows?Is it easy or even possible yet to manage windows firewall with powershell?Windows 2012 R2 scripted access to freespace of physical disks?How do I identify a volume in WMI from a volume name reported in the event log?Auto-Tagging EC2 Instances in AWS (Windows Servers only)Can I force powershell to ignore mouse input?Why is the subcommand modify-id-format missing in my AWS CLI v1.9.20How to automatically update EC2 Linux instances without downtime by switching between two instances?How do you open a remote powershell session on an EC2 instance in a private subnet on AWS?Match host VHDX disks with guest disks
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}
Awhile ago, I answered a question on StackOverflow: (How to) remotely extend a partition using WMI. On my r5d instances I upgraded to in January, this script stopped working. Recently I tracked down the root cause to the fact the PowerShell Get-Disk cmdlet in the Storage module does not actually return EC2 disks (at least for my r5d instances).
This is BIZARRE, and I have no idea if the vendor to blame is Microsoft for writing awful PowerShell cmdlets, or AWS for writing horrible EC2 device block mapping. For one, if you see the screenshot below, the Windows GUI Disk Management utility recognizes my recently resized EC2 Disk as Disk 1 (D: drive in below photo). However, Get-Disk does not - and never has on my new r5d instance.
In researching this further, Amazon Web Services documentation has some laughably complex script for Mapping Disks to Volumes on Your Windows Instances - Amazon Elastic Compute Cloud. - I can't even run this script without setting up Initialize-AWSDefaults using an AWS account with IAM role for this machine, despite being able to remote into the box and see Disk 1. I haven't even tried this, and frankly don't want to, because it seriously complicated my fairly elegant solution to the aforementioned StackOverflow question: How to remotely extend a partition using WMI.
Separate to all this, it seems like the problem is PROBABLY on the Amazon side, since, despite modifying the volume and it presenting as having 200 GB unallocated, issuing an "Extend Volume" command through the point-and-click Disk Management GUI raises the "There is not enough space available on the disk(s) to complete this operation" non-sense. In reading AWS documentation, I can't find anywhere where I can poll to know when it is safe to actually point-and-click to "Extend Volume".
I'm hoping I'm not the only intrepid soul trying to automate Windows Server deployments on AWS, and if my kindred spirit is out there, please answer - and let me buy you a beer.

powershell aws-cli
add a comment |
Awhile ago, I answered a question on StackOverflow: (How to) remotely extend a partition using WMI. On my r5d instances I upgraded to in January, this script stopped working. Recently I tracked down the root cause to the fact the PowerShell Get-Disk cmdlet in the Storage module does not actually return EC2 disks (at least for my r5d instances).
This is BIZARRE, and I have no idea if the vendor to blame is Microsoft for writing awful PowerShell cmdlets, or AWS for writing horrible EC2 device block mapping. For one, if you see the screenshot below, the Windows GUI Disk Management utility recognizes my recently resized EC2 Disk as Disk 1 (D: drive in below photo). However, Get-Disk does not - and never has on my new r5d instance.
In researching this further, Amazon Web Services documentation has some laughably complex script for Mapping Disks to Volumes on Your Windows Instances - Amazon Elastic Compute Cloud. - I can't even run this script without setting up Initialize-AWSDefaults using an AWS account with IAM role for this machine, despite being able to remote into the box and see Disk 1. I haven't even tried this, and frankly don't want to, because it seriously complicated my fairly elegant solution to the aforementioned StackOverflow question: How to remotely extend a partition using WMI.
Separate to all this, it seems like the problem is PROBABLY on the Amazon side, since, despite modifying the volume and it presenting as having 200 GB unallocated, issuing an "Extend Volume" command through the point-and-click Disk Management GUI raises the "There is not enough space available on the disk(s) to complete this operation" non-sense. In reading AWS documentation, I can't find anywhere where I can poll to know when it is safe to actually point-and-click to "Extend Volume".
I'm hoping I'm not the only intrepid soul trying to automate Windows Server deployments on AWS, and if my kindred spirit is out there, please answer - and let me buy you a beer.

powershell aws-cli
add a comment |
Awhile ago, I answered a question on StackOverflow: (How to) remotely extend a partition using WMI. On my r5d instances I upgraded to in January, this script stopped working. Recently I tracked down the root cause to the fact the PowerShell Get-Disk cmdlet in the Storage module does not actually return EC2 disks (at least for my r5d instances).
This is BIZARRE, and I have no idea if the vendor to blame is Microsoft for writing awful PowerShell cmdlets, or AWS for writing horrible EC2 device block mapping. For one, if you see the screenshot below, the Windows GUI Disk Management utility recognizes my recently resized EC2 Disk as Disk 1 (D: drive in below photo). However, Get-Disk does not - and never has on my new r5d instance.
In researching this further, Amazon Web Services documentation has some laughably complex script for Mapping Disks to Volumes on Your Windows Instances - Amazon Elastic Compute Cloud. - I can't even run this script without setting up Initialize-AWSDefaults using an AWS account with IAM role for this machine, despite being able to remote into the box and see Disk 1. I haven't even tried this, and frankly don't want to, because it seriously complicated my fairly elegant solution to the aforementioned StackOverflow question: How to remotely extend a partition using WMI.
Separate to all this, it seems like the problem is PROBABLY on the Amazon side, since, despite modifying the volume and it presenting as having 200 GB unallocated, issuing an "Extend Volume" command through the point-and-click Disk Management GUI raises the "There is not enough space available on the disk(s) to complete this operation" non-sense. In reading AWS documentation, I can't find anywhere where I can poll to know when it is safe to actually point-and-click to "Extend Volume".
I'm hoping I'm not the only intrepid soul trying to automate Windows Server deployments on AWS, and if my kindred spirit is out there, please answer - and let me buy you a beer.

powershell aws-cli
Awhile ago, I answered a question on StackOverflow: (How to) remotely extend a partition using WMI. On my r5d instances I upgraded to in January, this script stopped working. Recently I tracked down the root cause to the fact the PowerShell Get-Disk cmdlet in the Storage module does not actually return EC2 disks (at least for my r5d instances).
This is BIZARRE, and I have no idea if the vendor to blame is Microsoft for writing awful PowerShell cmdlets, or AWS for writing horrible EC2 device block mapping. For one, if you see the screenshot below, the Windows GUI Disk Management utility recognizes my recently resized EC2 Disk as Disk 1 (D: drive in below photo). However, Get-Disk does not - and never has on my new r5d instance.
In researching this further, Amazon Web Services documentation has some laughably complex script for Mapping Disks to Volumes on Your Windows Instances - Amazon Elastic Compute Cloud. - I can't even run this script without setting up Initialize-AWSDefaults using an AWS account with IAM role for this machine, despite being able to remote into the box and see Disk 1. I haven't even tried this, and frankly don't want to, because it seriously complicated my fairly elegant solution to the aforementioned StackOverflow question: How to remotely extend a partition using WMI.
Separate to all this, it seems like the problem is PROBABLY on the Amazon side, since, despite modifying the volume and it presenting as having 200 GB unallocated, issuing an "Extend Volume" command through the point-and-click Disk Management GUI raises the "There is not enough space available on the disk(s) to complete this operation" non-sense. In reading AWS documentation, I can't find anywhere where I can poll to know when it is safe to actually point-and-click to "Extend Volume".
I'm hoping I'm not the only intrepid soul trying to automate Windows Server deployments on AWS, and if my kindred spirit is out there, please answer - and let me buy you a beer.

powershell aws-cli
powershell aws-cli
asked 2 mins ago
John ZabroskiJohn Zabroski
1257
1257
add a comment |
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "2"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f963392%2fwhy-is-listing-ec2-disks-so-painful-on-windows%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Server Fault!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f963392%2fwhy-is-listing-ec2-disks-so-painful-on-windows%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown