microsoft-teams-apps-requestateam icon indicating copy to clipboard operation
microsoft-teams-apps-requestateam copied to clipboard

The subscription 'e3dc3d6b-677f-4d10-dc30-b619c709ea58' could not be found.

Open dpclay opened this issue 2 years ago • 7 comments

Description

The provided account [email protected] does not have access to subscription ID "f30db892-07e9-47e9-837c-80727f46fd3d".

Steps to reproduce

1.followed the directions 2. 3.

Expected results

Complete with no errors,

I cant figure out why I am gettign this error when I am a Global Admin

Actual Results

The provided account [email protected] does not have access to subscription ID "f30db892-07e9-47e9-837c-80727f46fd3d".

Solution component

Logic Apps

Operating system (environment)

Windows

Additional Info

PS C:\Users\MerrickUser\Downloads\microsoft-teams-apps-requestateam-1.1.0\microsoft-teams-apps-requestateam-1.1.0\Deployment\Scripts> C:\Users\MerrickUser\Downloads\microsoft-teams-apps-requestateam-1.1.0\microsoft-teams-apps-requestateam-1.1.0\Deployment\Scripts\msteamrequestapp.ps1

DEPLOYMENT SCRIPT STARTED

(c) Microsoft Corporation ### Installing required PowerShell Modules... Installed modules _ _ _ __ ___ __ _ _ _ ___ ___ | |_ __ _ | |_ ___ __ _ _ __ ___ | '| / _ \ / || | | | / _ \/ __|| __| _____ / _ | _____ | __| / _ \ / || '_ _ \ | | | __/| (| || || || /_ | | ||| (_| |||| |_ | /| (| || | | | | | || _| _, | _,_| _||/ _| _,| _| ___| _,||| || || |_| Launching Azure sign-in... WARNING: The subscription 'f30db892-07e9-47e9-837c-80727f46fd3d' could not be found. Connect-AzAccount : The provided account [email protected] does not have access to subscription ID "f30db892-07e9-47e9-837c-80727f46fd3d". Please try logging in with different credentials or a different subscription ID. If a subscription is not specified, please check the configs by Get-AzConfig. At C:\Users\MerrickUser\Downloads\microsoft-teams-apps-requestateam-1.1.0\microsoft-teams-apps-requestateam-1.1.0\Deploy ment\Scripts\deploy.ps1:807 char:14

  • ... azConnect = Connect-AzAccount -Subscription $SubscriptionId -Tenant $ ...
  • CategoryInfo : CloseError: (:) [Connect-AzAccount], PSInvalidOperationException
  • FullyQualifiedErrorId : Microsoft.Azure.Commands.Profile.ConnectAzureRmAccountCommand

Checking for availability of Key Vault... Exception calling "AcquireAccessToken" with "1" argument(s): "Object reference not set to an instance of an object." At C:\Users\MerrickUser\Downloads\microsoft-teams-apps-requestateam-1.1.0\microsoft-teams-apps-requestateam-1.1.0\Deploy ment\Scripts\deploy.ps1:323 char:5

  • $token = $profileClient.AcquireAccessToken($azContext.Subscriptio ...
  • CategoryInfo : NotSpecified: (:) [], MethodInvocationException
  • FullyQualifiedErrorId : NullReferenceException

Invoke-WebRequest : {"error":{"code":"SubscriptionNotFound","message":"The subscription 'f30db892-07e9-47e9-837c-80727f46fd3d' could not be found."}} At C:\Users\MerrickUser\Downloads\microsoft-teams-apps-requestateam-1.1.0\microsoft-teams-apps-requestateam-1.1.0\Deploy ment\Scripts\deploy.ps1:313 char:18

  • ... response = (Invoke-WebRequest -Uri $uri -Method Post -Body "{$body}" ...
  • CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-WebRequest], WebExce ption
  • FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand ConvertFrom-Json : Cannot bind argument to parameter 'InputObject' because it is null. At C:\Users\MerrickUser\Downloads\microsoft-teams-apps-requestateam-1.1.0\microsoft-teams-apps-requestateam-1.1.0\Deploy ment\Scripts\deploy.ps1:314 char:17
  • $response | ConvertFrom-Json |
  • CategoryInfo : InvalidData: (:) [ConvertFrom-Json], ParameterBindingValidationException
  • FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.PowerShell.Commands.ConvertFromJ sonCommand

Get-AzLocation : Run Connect-AzAccount to login. At C:\Users\MerrickUser\Downloads\microsoft-teams-apps-requestateam-1.1.0\microsoft-teams-apps-requestateam-1.1.0\Deploy ment\Scripts\deploy.ps1:730 char:18

  • $locations = Get-AzLocation
  • CategoryInfo : CloseError: (:) [Get-AzLocation], PSInvalidOperationException
  • FullyQualifiedErrorId : Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.GetAzureLocationCmdlet

Invalid Azure Location. Please provide a valid location. See this list - https://azure.microsoft.com/en-gb/global-infrastructure/locations/ [azure.microsoft.com] At C:\Users\MerrickUser\Downloads\microsoft-teams-apps-requestateam-1.1.0\microsoft-teams-apps-requestateam-1.1.0\Deploy ment\Scripts\deploy.ps1:736 char:9

  • throw "Invalid Azure Location. Please provide a valid locatio ...
  • CategoryInfo : OperationStopped: (Invalid Azure L...ture/locations/:String) [], RuntimeException
  • FullyQualifiedErrorId : Invalid Azure Location. Please provide a valid location. See this list - https://azure.mi [azure.mi] crosoft.com/en-gb/global-infrastructure/locations/

dpclay avatar Oct 06 '22 15:10 dpclay

Hi, is the The subscription 'f30db892-07e9-47e9-837c-80727f46fd3d' the correct subscription ? and the user has owner rights ?

7gizmo avatar Oct 18 '22 14:10 7gizmo

Yes it does and is

Cheers,

Dave Clay | Sr SharePoint Administrator Merrick Bank Cell: 303-253-1397

From: 7gizmo @.> Sent: Tuesday, October 18, 2022 8:39 AM To: OfficeDev/microsoft-teams-apps-requestateam @.> Cc: David Clay @.>; Author @.> Subject: Re: [OfficeDev/microsoft-teams-apps-requestateam] The subscription 'e3dc3d6b-677f-4d10-dc30-b619c709ea58' could not be found. (Issue #373)

Hi, is the The subscription 'f30db892-07e9-47e9-837c-80727f46fd3d' the correct subscription ? and the user has owner rights ? — Reply to this email directly, view it on GitHub [github. com], or unsubscribe [github. com]. You are receiving

Hi, is the The subscription 'f30db892-07e9-47e9-837c-80727f46fd3d' the correct subscription ? and the user has owner rights ?

— Reply to this email directly, view it on GitHub [github.com]https://urldefense.com/v3/__https:/github.com/OfficeDev/microsoft-teams-apps-requestateam/issues/373*issuecomment-1282504049__;Iw!!NpL0Vht26w!GILwIhjRqpPKQniYlA5z5sllqf6ckoDdEnTC-6FRrSvpys00mKUMP2jvKatNhX4WJ-uknjjngAi5qhcqEr2o3y6sR7ytaA$, or unsubscribe [github.com]https://urldefense.com/v3/__https:/github.com/notifications/unsubscribe-auth/A3OWWBZJL62573DCOZFO25TWD2ZCDANCNFSM6AAAAAAQ6YWHJA__;!!NpL0Vht26w!GILwIhjRqpPKQniYlA5z5sllqf6ckoDdEnTC-6FRrSvpys00mKUMP2jvKatNhX4WJ-uknjjngAi5qhcqEr2o3y7HwscnQQ$. You are receiving this because you authored the thread.Message ID: @.@.>>


This email and any files transmitted with it are confidential and are intended solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering the e-mail to the intended recipient, be advised that you have received this e-mail in error, and that any use, dissemination, forwarding, printing, or copying of this e-mail, is strictly prohibited. If you have received this e-mail in error, please return it to the sender at Merrick Bank, and delete it from your computer.

Although Merrick Bank attempts to sweep email and attachments for viruses, it does not guarantee that they are virus-free, and accepts no liability for any damage sustained as a result.

dpclay avatar Oct 18 '22 14:10 dpclay

Can you connect with this

Connect-AzAccount -Tenant 'xxxx-xxxx-xxxx-xxxx' -SubscriptionId 'yyyy-yyyy-yyyy-yyyy ?

7gizmo avatar Oct 18 '22 14:10 7gizmo

No, still gives unknow subscription

Cheers,

Dave Clay | Sr SharePoint Administrator Merrick Bank Cell: 303-253-1397

From: 7gizmo @.> Sent: Tuesday, October 18, 2022 8:50 AM To: OfficeDev/microsoft-teams-apps-requestateam @.> Cc: David Clay @.>; Author @.> Subject: Re: [OfficeDev/microsoft-teams-apps-requestateam] The subscription 'e3dc3d6b-677f-4d10-dc30-b619c709ea58' could not be found. (Issue #373)

Can you connect with this Connect-AzAccount -Tenant 'xxxx-xxxx-xxxx-xxxx' -SubscriptionId 'yyyy-yyyy-yyyy-yyyy ? — Reply to this email directly, view it on GitHub [github. com], or unsubscribe [github. com]. You are receiving this because

Can you connect with this

Connect-AzAccount -Tenant 'xxxx-xxxx-xxxx-xxxx' -SubscriptionId 'yyyy-yyyy-yyyy-yyyy ?

— Reply to this email directly, view it on GitHub [github.com]https://urldefense.com/v3/__https:/github.com/OfficeDev/microsoft-teams-apps-requestateam/issues/373*issuecomment-1282519120__;Iw!!NpL0Vht26w!BkWjiTOtQYP8fdSCh-b7ar2QRN0cx2LhaShL-61rWTjHcnbN79JpzjXBo4VyukNs23snAYvxsnYLzm4-DBbeef60GvTe6g$, or unsubscribe [github.com]https://urldefense.com/v3/__https:/github.com/notifications/unsubscribe-auth/A3OWWBYNTCWBB47UNPBO743WD22I5ANCNFSM6AAAAAAQ6YWHJA__;!!NpL0Vht26w!BkWjiTOtQYP8fdSCh-b7ar2QRN0cx2LhaShL-61rWTjHcnbN79JpzjXBo4VyukNs23snAYvxsnYLzm4-DBbeef79bmF9og$. You are receiving this because you authored the thread.Message ID: @.@.>>


This email and any files transmitted with it are confidential and are intended solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering the e-mail to the intended recipient, be advised that you have received this e-mail in error, and that any use, dissemination, forwarding, printing, or copying of this e-mail, is strictly prohibited. If you have received this e-mail in error, please return it to the sender at Merrick Bank, and delete it from your computer.

Although Merrick Bank attempts to sweep email and attachments for viruses, it does not guarantee that they are virus-free, and accepts no liability for any damage sustained as a result.

dpclay avatar Oct 18 '22 14:10 dpclay

https://learn.microsoft.com/en-gb/azure/active-directory/fundamentals/active-directory-how-subscriptions-associated-directory

7gizmo avatar Oct 18 '22 15:10 7gizmo

Thank you that explains it!! You can close the ticket.

Cheers,

Dave Clay | Sr SharePoint Administrator Merrick Bank Cell: 303-253-1397

From: 7gizmo @.> Sent: Tuesday, October 18, 2022 9:10 AM To: OfficeDev/microsoft-teams-apps-requestateam @.> Cc: David Clay @.>; Author @.> Subject: Re: [OfficeDev/microsoft-teams-apps-requestateam] The subscription 'e3dc3d6b-677f-4d10-dc30-b619c709ea58' could not be found. (Issue #373)

https: //learn. microsoft. com/en-gb/azure/active-directory/fundamentals/active-directory-how-subscriptions-associated-directory [learn. microsoft. com] — Reply to this email directly, view it on GitHub [github. com], or unsubscribe [github. com]

https://learn.microsoft.com/en-gb/azure/active-directory/fundamentals/active-directory-how-subscriptions-associated-directory [learn.microsoft.com]https://urldefense.com/v3/__https:/learn.microsoft.com/en-gb/azure/active-directory/fundamentals/active-directory-how-subscriptions-associated-directory__;!!NpL0Vht26w!FHI5CnTbsP1NIlLBo54_NsI3hUJhsZYj79HN47R3ipVKOuFXsKHkBlasWUP63HXhn1iUB-cs2Ih1VVM6-swumEclUWH8Bw$

— Reply to this email directly, view it on GitHub [github.com]https://urldefense.com/v3/__https:/github.com/OfficeDev/microsoft-teams-apps-requestateam/issues/373*issuecomment-1282551709__;Iw!!NpL0Vht26w!FHI5CnTbsP1NIlLBo54_NsI3hUJhsZYj79HN47R3ipVKOuFXsKHkBlasWUP63HXhn1iUB-cs2Ih1VVM6-swumEf6IItQ9g$, or unsubscribe [github.com]https://urldefense.com/v3/__https:/github.com/notifications/unsubscribe-auth/A3OWWB2LRTAUIXO5YV7CTX3WD24UXANCNFSM6AAAAAAQ6YWHJA__;!!NpL0Vht26w!FHI5CnTbsP1NIlLBo54_NsI3hUJhsZYj79HN47R3ipVKOuFXsKHkBlasWUP63HXhn1iUB-cs2Ih1VVM6-swumEeJvPDi_w$. You are receiving this because you authored the thread.Message ID: @.@.>>


This email and any files transmitted with it are confidential and are intended solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering the e-mail to the intended recipient, be advised that you have received this e-mail in error, and that any use, dissemination, forwarding, printing, or copying of this e-mail, is strictly prohibited. If you have received this e-mail in error, please return it to the sender at Merrick Bank, and delete it from your computer.

Although Merrick Bank attempts to sweep email and attachments for viruses, it does not guarantee that they are virus-free, and accepts no liability for any damage sustained as a result.

dpclay avatar Oct 19 '22 13:10 dpclay

You can close it yourself.

7gizmo avatar Oct 20 '22 11:10 7gizmo