public virtual void UpdateApplication(
string resourceGroupName,
string accountName,
string applicationId,
bool? allowUpdates,
string defaultVersion,
string displayName)
{
if (string.IsNullOrEmpty(resourceGroupName))
{
// use resource mgr to see if account exists and then use resource group name to do the actual lookup
resourceGroupName = GetGroupForAccount(accountName);
}
UpdateApplicationParameters uap = new UpdateApplicationParameters();
if (allowUpdates != null)
{
uap.AllowUpdates = allowUpdates;
}
if (defaultVersion != null)
{
uap.DefaultVersion = defaultVersion;
}
if (displayName != null)
{
uap.DisplayName = displayName;
}
BatchManagementClient.Application.Update(
resourceGroupName,
accountName,
applicationId,
uap);
}