Share via

PS Script: New-Team : NotFound

Anonymous
2022-05-27T07:43:35+00:00

Hi everyone, since 3 days I can not create a TEAMS via Powershell anymore. Its the same script since 3 months at it was never a problem.
My script is:
# Team Display Name - declare Variables

$display_name = "Ayti Test 3"

$description_name = "MCCH-ORG-EXT Ayti Test 3"

$mailnick_name = "MCCH-ORG-EXTAYTITEST3"

$owner = "myCompanyEmailAdress" 

#PS for Creation

 New-Team -DisplayName $display_name -MailNickName $mailnick_name -Description $description_name -Owner $owner -AllowCreateUpdateRemoveConnectors:$false -AllowCreateUpdateRemoveTabs:$false -AllowAddRemoveApps:$false -AllowDeleteChannels:$false -AllowGuestDeleteChannel:$false -AllowCreateUpdateChannels:$false -Visibility "private" 

The Error message since today is:
New-Team : NotFound in /v1.0/teams/ endpoint

At line:1 char:2

+  New-Team -DisplayName $display_name -MailNickName $mailnick_name -De ...

+  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    + CategoryInfo          : NotSpecified: (:) [New-Team], HttpRequestException

    + FullyQualifiedErrorId : System.Net.Http.HttpRequestException,Microsoft.Teams.PowerShell.TeamsCmdlets.NewTeam

Like I told you above, this script worked since 3 months without any problems. Any Idea what the Problem is?

Regards
Aytac

Microsoft Teams | Microsoft Teams for business | Teams and channels | Create a new team or channel

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

3 answers

Sort by: Most helpful
  1. Anonymous
    2022-05-27T13:24:34+00:00

    I have the same issue when trying to create a team either with both the graphAPI http request and Power Automate built-in actions. The team is created but the ID that's generated is invalid. Microsoft must have changed something...

    EDIT: just to mention everything was working as intended until yesterday...

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2022-05-27T12:58:35+00:00

    Hello Aytac Dogan,

    Good day to you and hope you are doing well.

    As your concern is related with PowerShell script not working and for that we have separated dedicated support team who have special expertise in PowerShell script, so it is recommended to kinldy post your question into this dedicated Powershell Script Community support, so dedicated support engineer team will check and assist you. At this point, your kind co-operation will be highly appreciated.

    Thank you so much for your precious time. Stay safe , happy and healthy forever.

    Sincerely,

    Ankita Vaidya | Microsoft Community Moderator

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2022-05-27T12:08:41+00:00

    Hi,

    Same issue for me, since today I cannot use any script to create a new team. A couple of weeks ago my scripts run ok.

    Even a basic single "new-team" command now fails, I get exactly the same error message as yours.

    No idea why.

    Edit on May 29th : the issue seems to have been fixed by Microsoft, this morning I can execute my scripts properly, nd create teams/channels normally.

    Is it fixed also for you ?

    Was this answer helpful?

    0 comments No comments