public override void ExecuteCmdlet() { Utility.ValidateResourceGroupAndResourceName(ResourceGroupName, Name); RedisCacheAttributes cache = new RedisCacheAttributes(CacheClient.GetCache(ResourceGroupName, Name), ResourceGroupName); ConfirmAction( string.Format(Resources.RemoveRedisCacheDiagnostics, Name), Name, () => CacheClient.SetDiagnostics(cache.Id, null)); }
public override void ExecuteCmdlet() { RedisCacheAttributes cache = new RedisCacheAttributes(CacheClient.GetCache(ResourceGroupName, Name), ResourceGroupName); if (!Force.IsPresent) { ConfirmAction( Force.IsPresent, string.Format(Resources.RemovingRedisCacheDiagnostics, Name), string.Format(Resources.RemoveRedisCacheDiagnostics, Name), Name, () => CacheClient.SetDiagnostics(cache.Id, null)); } else { CacheClient.SetDiagnostics(cache.Id, null); } }
public override void ExecuteCmdlet() { string storageAccountName = GetStorageAccountName(StorageAccountId); RedisCacheAttributes cache = new RedisCacheAttributes(CacheClient.GetCache(ResourceGroupName, Name), ResourceGroupName); CacheClient.SetDiagnostics(cache.Id, storageAccountName); }