The subscription 'e3dc3d6b-677f-4d10-dc30-b619c709ea58' could not be found.
Opened this issue · 7 comments
Description
The provided account dc-admin@cardworksbeta.onmicrosoft.com 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 dc-admin@cardworksbeta.onmicrosoft.com 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 dc-admin@cardworksbeta.onmicrosoft.com 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/
Hi, is the The subscription 'f30db892-07e9-47e9-837c-80727f46fd3d' the correct subscription ? and the user has owner rights ?
Can you connect with this
Connect-AzAccount -Tenant 'xxxx-xxxx-xxxx-xxxx' -SubscriptionId 'yyyy-yyyy-yyyy-yyyy ?
You can close it yourself.