We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have created Virtual machine on Azure portal via Fluent API class in c#. my c# code is:
public JsonResult createVM() { try { IAzure azure = Authenticate(subscriptionId); azure.VirtualMachines.Define(vmName) .WithRegion(location) .WithExistingResourceGroup(ResourceGroupName) .WithExistingPrimaryNetworkInterface(networkInterface) .WithSpecializedOSDisk(managedDisk, operatingSystem) .WithSize(vmSize) .Create(); //Here i want complete response from above code..if success. return Json(string.Empty); } catch (CloudException ex) { Response.Write(ex.Response.Content); return Json(string.Empty); } }
i get response in catch block if execution failed. but we need response if execution succeed .
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I have created Virtual machine on Azure portal via Fluent API class in c#. my c# code is:
i get response in catch block if execution failed. but we need response if execution succeed .
The text was updated successfully, but these errors were encountered: