public override void ExecuteCmdlet() { try { PreregisterSubscription(); var getRequest = ManagementGroupsApiClient.TenantBackfillStatus(); WriteObject(new PSBackfillStatus(getRequest)); } catch (ErrorResponseException ex) { Utility.HandleErrorResponseException(ex); } }
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); } }