Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add output object for Set-AzureServiceProject cmdlet

  • Loading branch information...
commit 13f0da0ae1015cd295949fa55f2e17d481f0e560 1 parent bba1a90
@ogail ogail authored
View
6 WindowsAzurePowershell/src/Management.CloudService/Cmdlet/SetAzureServiceProject.cs
@@ -37,7 +37,7 @@ public class SetAzureServiceProjectCommand : SetSettings
public string Subscription { get; set; }
[PermissionSet(SecurityAction.Demand, Name = "FullTrust")]
- public void SetAzureServiceProjectProcess(string newLocation, string newSlot, string newStorage, string newSubscription, string settingsPath)
+ public ServiceSettings SetAzureServiceProjectProcess(string newLocation, string newSlot, string newStorage, string newSubscription, string settingsPath)
{
ServiceSettings settings = ServiceSettings.Load(settingsPath);
if (newLocation != null)
@@ -64,6 +64,10 @@ public void SetAzureServiceProjectProcess(string newLocation, string newSlot, st
{
settings.Save(settingsPath);
}
+
+ WriteOutputObject(settings);
+
+ return settings;
}
[PermissionSet(SecurityAction.Demand, Name = "FullTrust")]
View
30 ...AzurePowershell/src/Management.CloudService/Microsoft.WindowsAzure.Management.CloudService.format.ps1xml
@@ -45,5 +45,35 @@
</ListEntries>
</ListControl>
</View>
+ <View>
+ <Name>Microsoft.WindowsAzure.Management.CloudService.Model.ServiceSettings</Name>
+ <ViewSelectedBy>
+ <TypeName>Microsoft.WindowsAzure.Management.CloudService.Model.ServiceSettings</TypeName>
+ </ViewSelectedBy>
+ <ListControl>
+ <ListEntries>
+ <ListEntry>
+ <ListItems>
+ <ListItem>
+ <Label>Slot</Label>
+ <PropertyName>Slot</PropertyName>
+ </ListItem>
+ <ListItem>
+ <Label>Location</Label>
+ <PropertyName>Location</PropertyName>
+ </ListItem>
+ <ListItem>
+ <Label>Subscription</Label>
+ <PropertyName>Subscription</PropertyName>
+ </ListItem>
+ <ListItem>
+ <Label>StorageAccountName</Label>
+ <PropertyName>StorageAccountName</PropertyName>
+ </ListItem>
+ </ListItems>
+ </ListEntry>
+ </ListEntries>
+ </ListControl>
+ </View>
</ViewDefinitions>
</Configuration>
Please sign in to comment.
Something went wrong with that request. Please try again.