azurecoder / fluent-management Goto Github PK
View Code? Open in Web Editor NEWAzure Fluent Management
Azure Fluent Management
Add to the mobile service so that the service can be deleted
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?
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
Have to reverse the powershell scripts on the hadoopsdk website
The client sid is not being updated currently
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.
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"
}
Definition update on the virtual machine XML so password resets deprecated
Failed
400
BadRequest
ResetPasswordOnFirstLogon parameter is deprecated
Build a rule so that all of the firewall ip rules are returned from sql azure and the cloud services linq provider is used to pull back the firewall details and the specific IPs to the Sql Azure firewall
Use for the mobile service
Fire an event handler every time a log arrives do polling every 10 secs
Currently I'm doing funky distincts which is slightly pap.
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: BadRequest
Value '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, FSharpFunc
2 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.
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);
If the URI to the .cspkg does not exist, whilst Fluent internally appears to receive 404 errors, it silently suppresses them and does not fail.
Cannot open http://fluentmanagement.elastacloud.com/, just wanted to read more about this library.
website.WebsiteParameters.CurrentNumberOfWorkers
This is always 0.
Traces sent in email.
Check the config first first to see if logging is switched on and if not throw an exception
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.
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.
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")
Restart and stop give HTTP 400s.
Currently fails to start the deployment by simulating the service hook from github test
Current Cloud Service status => Creating/Created/Deleting/Deleted/Changing/ResolvingDns but not Stopped/Running
RoleInstances status includes Stopped but we'd prefer to do this on the Service level.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.