PremiumSSD functionality.
See original GitHub issueHi. 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.
-
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();
-
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. -
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:
- Created 5 years ago
- Comments:12 (5 by maintainers)
Top GitHub Comments
@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.
Yes, of course. I copied them to the tools\LocalNugetFeed as expected.