hunk.code_window:     document.getElementById('content-wrapper').style.height = wrapperCSS.height;
       document.getElementById('content-wrapper').style.overflowY = wrapperCSS.overflowY;
       document.getElementById('sidebar-wrapper').style.height = wrapperCSS.height;
     };
   });
hunk.labels: keep keep keep add keep
hunk.after_edit:   this.terminalresize = function () {
       const contentWrapperHeight = $window.innerHeight;
       const newContentWrapperHeight = contentWrapperHeight - terminalHeight;
       document.getElementById('content-wrapper').style.height = newContentWrapperHeight + 'px';
       document.getElementById('content-wrapper').style.overflowY = 'auto';
       document.getElementById('sidebar-wrapper').style.height = newContentWrapperHeight + 'px';
     };
  
hunk.file_path: app/portainer/services/terminal-window.js
hunk.type: add
file: import { ContainerGroupViewModel, CreateContainerGroupRequest } from '../models/container_group';
  
  angular.module('portainer.azure').factory('ContainerGroupService', [
    '$q',
    'ContainerGroup',
    function ContainerGroupServiceFactory($q, ContainerGroup) {
      'use strict';
      var service = {};
  
      service.containerGroups = function (subscriptionId) {
        var deferred = $q.defer();
  
        ContainerGroup.query({ subscriptionId: subscriptionId })
          .$promise.then(function success(data) {
            var containerGroups = data.value.map(function (item) {
              return new ContainerGroupViewModel(item);
            });
            deferred.resolve(containerGroups);
          })
          .catch(function error(err) {
            deferred.reject({ msg: 'Unable to retrieve container groups', err: err });
          });
  
        return deferred.promise;
      };
  
      service.containerGroup = containerGroup;
      async function containerGroup(subscriptionId, resourceGroupName, containerGroupName) {
        const containerGroup = await ContainerGroup.get({ subscriptionId, resourceGroupName, containerGroupName }).$promise;
        return new ContainerGroupViewModel(containerGroup);
      }
  
      service.create = function (model, subscriptionId, resourceGroupName) {
        var payload = new CreateContainerGroupRequest(model);
        return ContainerGroup.create(
          {
            subscriptionId: subscriptionId,
            resourceGroupName: resourceGroupName,
            containerGroupName: model.Name,
          },
          payload
        ).$promise;
      };
  
      return service;
    },
  ]);
  