public override void ExecuteCmdlet()
        {
            try
            {
                PreregisterSubscription();

                var getRequest = ManagementGroupsApiClient.TenantBackfillStatus();

                WriteObject(new PSBackfillStatus(getRequest));
            }
            catch (ErrorResponseException ex)
            {
                Utility.HandleErrorResponseException(ex);
            }
        }
Beispiel #2
0
        public override void ExecuteCmdlet()
        {
            try
            {
                PreregisterSubscription();

                var checkRequest = new CheckNameAvailabilityRequest(name: GroupName, Type.MicrosoftManagementManagementGroups);

                dynamic response = ManagementGroupsApiClient.CheckNameAvailability(checkRequest);

                WriteObject(new PsManagementGroupNameAvailabilityResult(response));
            }
            catch (ErrorResponseException ex)
            {
                Utility.HandleErrorResponseException(ex);
            }
        }