Exemplo n.º 1
0
        protected override void OnProcessRecord()
        {
            var options = new FilterDeploymentOptions(DeploymentScopeType.ManagementGroup)
            {
                ManagementGroupId = !string.IsNullOrEmpty(this.ManagementGroupId) ? this.ManagementGroupId : this.DeploymentObject.ManagementGroupId,
                DeploymentName    = !string.IsNullOrEmpty(this.DeploymentName) ? this.DeploymentName : this.DeploymentObject.DeploymentName
            };

            var deploymentOperations = ResourceManagerSdkClient.ListDeploymentOperationsAtManagementGroup(
                options.ManagementGroupId, options.DeploymentName, this.OperationId);

            WriteObject(deploymentOperations, true);
        }