Ejemplo n.º 1
0
        public override void ExecuteCmdlet()
        {
            base.ExecuteCmdlet();
            var list = WebsitesClient.ListSiteBackups(ResourceGroupName, Name, Slot);

            AzureWebAppBackup[] backups = new AzureWebAppBackup[list.Count()];
            for (int i = 0; i < backups.Length; i++)
            {
                backups[i] = BackupRestoreUtils.BackupItemToAppBackup(list.ElementAt(i), ResourceGroupName, Name, Slot);
            }
            WriteObject(backups, true);
        }