public override void ExecuteCmdlet() { if (string.IsNullOrEmpty(ResourceGroupName)) { ResourceGroupName = DataLakeAnalyticsClient.GetResourceGroupByAccountName(Name); } var account = DataLakeAnalyticsClient.GetAccount(ResourceGroupName, Name); if (!FirewallState.HasValue) { FirewallState = account.FirewallState; } if (AllowAzureIpState.HasValue && FirewallState.Value == Management.DataLake.Analytics.Models.FirewallState.Disabled) { WriteWarning(string.Format(Properties.Resources.FirewallDisabledWarning, Name)); } WriteObject( new PSDataLakeAnalyticsAccount( DataLakeAnalyticsClient.CreateOrUpdateAccount( ResourceGroupName, Name, null, null, null, null, Tags, MaxAnalyticsUnits, MaxJobCount, QueryStoreRetention, Tier, FirewallState, AllowAzureIpState))); }