Code Monkey home page Code Monkey logo

fluent-management's People

Contributors

andycross avatar azurecoder avatar blanham1 avatar isaacabraham avatar krist00fer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

fluent-management's Issues

Proper exception handling

How can I handle exceptions properly?
I have created an eventHandler to get notified of messages:

((IAzureManager)deploymentManager).AzureTaskComplete += TaskComplete;

But this gives too less information if a WebException is thrown. This is the information I get if a WebException occurs during deployment:

System.Net.WebException: The remote server returned an error: (404) Not Found.

Is there a way to get more information from the exception?

Change Cloud Service location (region)

Is it possible to change location (region) of already deployed cloud service? Looking to move cloud service from West US to West Europe. Is it possible with Azure Fluent?

Thanks for help

Restart Virtual Machine Bug

When RESTARTING virtual machine using an existing cloud service i get this error.
The operation is not allowed on a role that is deallocated
Stopping the VM is ok.

AppSettings has wrong type (<string, IAppSetting> should be <string, string>)

Currently when retrieving the AppSettings from a WebApp, the object that is returned is:

IReadOnlyDictionary<string, IAppSetting> AppSettings

This seems to be incorrect; I would expect AppSettings to contain a dictionary of key/value pairs. Instead, it contains a dictionary of key/[value.key, value.value] pairs.

Notice how one has to access the desired key/value pair:

var webApp = azure.WebApps.GetById(resourceId);
var settings = webApp.AppSettings;
foreach (var setting in settings)
{
    var key = setting.Value.Key;  // this is strange.  Should be "setting.Key"
    var value = setting.Value.Value; // this is strange.  Should be "setting.Value"
}

D-Series Support

When i attempt to create a vm/cluster using STANDARD_D1 vmSize i get the following error

A first chance exception of type 'Elastacloud.AzureManagement.Fluent.Types.Exceptions.FluentManagementWebException' occurred in Elastacloud.AzureManagement.Fluent.dll
iisexpress.exe Information: 0 : ClusterId 11073: Operational Message: (100, "Failed to create VM from gallery.") (Persistant)
iisexpress.exe Error: 0 : ClusterId 11073: The 'Create Cluster' process failed to complete with error (4, "Failed to create VM from gallery.") and exception Some
Elastacloud.AzureManagement.Fluent.Types.Exceptions.FluentManagementWebException: BadRequestValue 'STANDARD_D1' specified for parameter 'RoleSize' is invalid. Allowed values are 'ExtraSmall,Small,Medium,Large,ExtraLarge,A5,A6,A7,A8,A9,A10,A11,Basic_A0,Basic_A1,Basic_A2,Basic_A3,Basic_A4,Standard_D1,Standard_D2,Standard_D3,Standard_D4,Standard_D11,Standard_D12,Standard_D13,Standard_D14,Standard_DS1,Standard_DS2,Standard_DS3,Standard_DS4,Standard_DS11,Standard_DS12,Standard_DS13,Standard_DS14,Standard_G1,Standard_G2,Standard_G3,Standard_G4,Standard_G5'.
at Elastacloud.AzureManagement.Fluent.Commands.Services.ServiceCommand.Execute()
at Elastacloud.AzureManagement.Fluent.Clients.LinuxVirtualMachineClient.CreateNewVirtualMachineDeploymentFromTemplateGallery(List1 properties, String cloudServiceName, ServiceCertificateModel serviceCertificate, String location, String affinityGroup) at Elastacloud.Brisk.ClusterManager.Provisioning.ClusterCommands.createIaasCluster@195-14.Invoke(Unit unitVar0) in C:\Users\david\Work\elastacloud\brisk\clustermanager-v2\src\ClusterManager\Provisioning\ClusterCommands.fs:line 195 at Elastacloud.Brisk.ResultHelper.guardWith[a](Int32 error_0, String error_1, FSharpFunc2 code) in C:\Users\david\Work\elastacloud\brisk\clustermanager-v2\src\DataAccess\SharedTypes.fs:line 94.
iisexpress.exe Information: 0 : ClusterId 11073: State is now Failed (Persistant).

PublishSettingsExtractor depends on CurrentCulture when parsing SchemaVersion

PublishSettingsExtractor depends on CurrentCulture when parsing SchemaVersion.

Elastacloud.AzureManagement.Fluent/Helpers/PublishSettings/PublishSettingsExtractor.cs line 84:

SchemaVersion = containsSchema ? (int)double.Parse(schemaAttrs.FirstOrDefault().Value) : 1D;

should probably read something like

SchemaVersion = containsSchema ? (int)double.Parse(schemaAttrs.FirstOrDefault().Value, CultureInfo.InvariantCulture) : 1D;

Now it throws an FormatException if the CurrentCulture is one where the decimal point is a comma.


Testcase for console project:

// works
Thread.CurrentThread.CurrentCulture = CultureInfo.CreateSpecificCulture("en-us");
PublishSettingsExtractor.GetFromXml(publishsettingsXML);

// does not work
Thread.CurrentThread.CurrentCulture = CultureInfo.CreateSpecificCulture("fi-fi");
PublishSettingsExtractor.GetFromXml(publishsettingsXML);

When Mobile Service returns in an UnHealthy state delete

When creating a new mobile service it can return in an unhealthy state - the most likely cause is that the database has not been created as part of the deployment workflow. If this occurs then check the state of the deployment and call delete.

Deployment always tries to create a blobContainer

When deploying with the DeploymentManager, I always get the following error:
BlobCommand: container or blob already exists!

Problem is, that always a blob container with the name “elastadeploy” will be created. If the container already exists, the deployment will fail with the above error.

Get host details full of argument exceptions

unable to get endpoints so fluent fails but absorbs argument exceptions. For example, this has a single endpoint but fails to retrieve SSH details. Blows up in the background until the endpoint is consumed lazily and then blows up in the foreground.

let attack = vmClient.GetHostDetails("isaacsample2")

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.