internal void NewAzureService(string serviceName, string serviceLabel, string locationName) { NewAzureServiceCmdletInfo newAzureServiceCmdletInfo = new NewAzureServiceCmdletInfo(serviceName, serviceLabel, locationName); WindowsAzurePowershellCmdlet newAzureServiceCmdlet = new WindowsAzurePowershellCmdlet(newAzureServiceCmdletInfo); Collection <PSObject> result = newAzureServiceCmdlet.Run(); }
public ManagementOperationContext NewAzureService(string serviceName, string location) { var newAzureServiceCmdletInfo = new NewAzureServiceCmdletInfo(serviceName, location); var newAzureServiceCmdlet = new WindowsAzurePowershellCmdlet(newAzureServiceCmdletInfo); var result = newAzureServiceCmdlet.Run(); if (result.Count == 1) { return (ManagementOperationContext)result[0].BaseObject; } return null; }
internal void NewAzureService(string serviceName, string serviceLabel, string locationName) { NewAzureServiceCmdletInfo newAzureServiceCmdletInfo = new NewAzureServiceCmdletInfo(serviceName, serviceLabel, locationName); WindowsAzurePowershellCmdlet newAzureServiceCmdlet = new WindowsAzurePowershellCmdlet(newAzureServiceCmdletInfo); Collection<PSObject> result = newAzureServiceCmdlet.Run(); }