question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

PremiumSSD functionality.

See original GitHub issue

Hi. I was able to write some code that generalizes and captures a VM to a managed image on Azure using this fluent library! I’m so excited! This is pretty awesome!

However, I have three small challenges I’d like some help with.

  1. I can’t figure out how to specify a PremiumSSD storageProfile when I create my managed image in any way. The way I’m using is FromVirtualMachine(). Here’s my current code block. var newManagedImage = azure.VirtualMachineCustomImages.Define(newManagedImageName) .WithRegion(sourceVm.Region) .WithNewResourceGroup(managedImageResourceGroup) .FromVirtualMachine(vmToCapture) .Create();

  2. I can’t figure out how to deploy with a PremiumSSD disk from classic storage.
    a) I’d like to have this option to keep infrequently used images around at lowest cost. b) This works with ARM without issue. So, I can create an ARM template to do this, but I’d like to use the fluent API to do this.

  3. When I checked out the 1.16.0 hash (fb77cce3dae11ba4ca562d358c74193a7064021c) to try and see if I can add this functionality and submit a PR, I get 21 CS0579 errors building this with VS 2017 15.8.7: Error CS0579: Duplicate ‘System.Reflection.AssemblyCompanyAttribute’ attribute (1, 1) Error CS0579: Duplicate ‘System.Reflection.AssemblyProductAttribute’ attribute (1, 1) Error CS0579: Duplicate ‘System.Reflection.AssemblyFileVersionAttribute’ attribute (1, 1) Error CS0579: Duplicate ‘System.Reflection.AssemblyDescriptionAttribute’ attribute (1, 1) Error CS0579: Duplicate ‘System.Reflection.AssemblyConfigurationAttribute’ attribute (1, 1) Error CS0579: Duplicate ‘System.Reflection.AssemblyCompanyAttribute’ attribute (1, 1) Error CS0579: Duplicate ‘System.Reflection.AssemblyVersionAttribute’ attribute (1, 1) Error CS0579: Duplicate ‘System.Reflection.AssemblyTitleAttribute’ attribute (1, 1) Error CS0579: Duplicate ‘System.Reflection.AssemblyProductAttribute’ attribute (1, 1) Error CS0579: Duplicate ‘System.Reflection.AssemblyTitleAttribute’ attribute (1, 1) Error CS0579: Duplicate ‘System.Reflection.AssemblyFileVersionAttribute’ attribute (1, 1) Error CS0579: Duplicate ‘System.Reflection.AssemblyConfigurationAttribute’ attribute (1, 1) Error CS0579: Duplicate ‘System.Reflection.AssemblyCompanyAttribute’ attribute (1, 1) Error CS0579: Duplicate ‘System.Reflection.AssemblyVersionAttribute’ attribute (1, 1) Error CS0579: Duplicate ‘System.Reflection.AssemblyTitleAttribute’ attribute (1, 1) Error CS0579: Duplicate ‘System.Reflection.AssemblyProductAttribute’ attribute (1, 1) Error CS0579: Duplicate ‘System.Reflection.AssemblyFileVersionAttribute’ attribute (1, 1) Error CS0579: Duplicate ‘System.Reflection.AssemblyDescriptionAttribute’ attribute (1, 1) Error CS0579: Duplicate ‘System.Reflection.AssemblyConfigurationAttribute’ attribute (1, 1) Error CS0579: Duplicate ‘System.Reflection.AssemblyDescriptionAttribute’ attribute (1, 1) Error CS0579: Duplicate ‘System.Reflection.AssemblyVersionAttribute’ attribute (1, 1)

I understand this is probably unrelated but if I can get this to build I’d love to contribute.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:12 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
hovsepmcommented, Oct 12, 2018

@robwafle we have a special section on configuring your devbox for development and contribution here https://github.com/Azure/azure-libraries-for-net#prerequisites

for PremiumSSD I’ll let @anuchandy guide you through VM world.

1reaction
robwaflecommented, Oct 19, 2018

Yes, of course. I copied them to the tools\LocalNugetFeed as expected.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Azure managed disk types - Virtual Machines
Disk type comparison; Ultra disks; Premium SSD v2; Premium SSDs ... be used with some features and functionality, including disk export, ...
Read more >
Premium SSD v2 Quick Peek - YouTube
An early look at the Premium SSD V2. Looking for content on a particular topic? Search the channel. If I have something it...
Read more >
Microsoft Previews Azure Premium SSD V2 Disk Storage - InfoQ
The Premium SSD v2 is well-suited to a broad range of production workloads such as – SQL Server, Oracle, MariaDB, SAP, Cassandra, Mongo...
Read more >
Azure Disk Storage Cheat Sheet
Features. Different types of storage options: Standard HDD, Standard SSD, Premium SSD, and Ultra Disk volumes up to 64 TiB.
Read more >
disk-storage-premium-ssd-sizes.md
Premium SSD sizes P1 P2 P3 P4 P6 P10 P15 P20 P30 P40 Disk size in GiB 4 8 16 32 64 128 256...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found