-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Storage account not found. The selected service connection 'Service Principal' supports storage accounts of Azure Resource Manager type only. #19209
Storage account not found. The selected service connection 'Service Principal' supports storage accounts of Azure Resource Manager type only. #19209
Comments
Thank you for your feedback. This has been routed to the support team for assistance. |
@diegum , could you see the same issue when you use the same cmdlet in PowerShell console local rather than Azure pipeline. We need you provide debug information. You can see debug information after setting |
We are facing the same issue, in an Azure Pipeline's Release Pipeline
|
From the comment microsoft/azure-pipelines-tasks#14647 (comment), I see: And per microsoft/azure-pipelines-tasks#14647 (comment), it looks Would you please upgrade to And it looks the error is from server. |
@blueww I will need to verify what cmdlet and version is being used by the respective Azure Pipelines Task and will get back to you on it after I get some details. |
@diegum Thanks for reaching out to us and reporting this issue. Did you get a chance to look at the above comment and check your pipeline tasks and use Also Could you please confirm if you are facing the same issue while running the command from Powershell console ? If yes, please share the $DebugPreference = "Continue" output while running the same command in the Powershell. Awaiting your reply. |
@navba-MSFT I have asked for clarification in this issue since I did see references of |
Thanks, @dingmeng-xue but, how could I try? I'm not the maker of that cmdlet. I'm an end user, actually. I have a declared pipeline and applied that |
Thanks, @blueww but, how can I upgrade the cmdlet?? I'm using an Azure pipeline task ( |
Hi, @navba-MSFT . I replied to these comments (check whether the azure pipeline task uses an obsolete command, and the suggestion to run from terminal. I'll summarize my answers here: I'm an end-user. I'm just using What I certainly can't do is to modify the |
Hi @diegum, |
Thanks @mitsha-microsoft . @diegum I am following up offline with the assignee of microsoft/azure-pipelines-tasks#16757 to look into it on priority. |
fixes Azure/azure-powershell#19209 Customers have reported an issue with the Pipeline tasks for while it tries to fetch the storage account details it fails with below error: ##[error]Storage account: <my existing and accessible storage account> not found. The selected service connection 'Service Principal' supports storage accounts of Azure Resource Manager type only. Cause of the issue: Get-AzureRmStorageAccount is outdated and needs to be replaced with Get-AzStorageAccount.
@diegum @mitsha-microsoft see this PR microsoft/azure-pipelines-tasks#16785 and the below comments from it:
|
@navba-MSFT Thanks for taking it up and fixing the issue in the Az Pipelines Repo. When will you make the requested changes (bumping up the task versions) so that we can get an idea of when we can consume the new tasks in our pipelines? |
* {AzurePipelineTasks} fixes Azure/azure-powershell#19209 fixes Azure/azure-powershell#19209 Customers have reported an issue with the Pipeline tasks for while it tries to fetch the storage account details it fails with below error: ##[error]Storage account: <my existing and accessible storage account> not found. The selected service connection 'Service Principal' supports storage accounts of Azure Resource Manager type only. Cause of the issue: Get-AzureRmStorageAccount is outdated and needs to be replaced with Get-AzStorageAccount. * Update AzureUtilityARM.ps1 Customers have reported an issue with the Pipeline tasks for while it tries to fetch the storage account details it fails with below error: ##[error]Storage account: <my existing and accessible storage account> not found. The selected service connection 'Service Principal' supports storage accounts of Azure Resource Manager type only. Cause of the issue: Get-AzureRmStorageAccount is outdated and needs to be replaced with Get-AzStorageAccount. * Update task.json * Update task.loc.json * Bumping up task versions Co-authored-by: Martin Mrazik <mmrazik@users.noreply.github.com> Co-authored-by: Philipson Joseph V <77002750+PhilipsonJoseph@users.noreply.github.com> Co-authored-by: Philipson Joseph V <v-phiv@microsoft.com>
@diegum @mitsha-microsoft The suggested changes have been made in the OR and the PR is now merged. It will get released as a part of current sprint (210). Check current Azure DevOps sprint - https://whatsprintis.it/ |
…)" This reverts commit 54890ae.
) * Revert "{AzurePipelineTasks} fixes Azure/azure-powershell#19209 (#16785)" This reverts commit 54890ae. * Update task.json Reverted the 209, bumped to 210.1 * Update task.loc.json Reverted 209 * Update task.json Reverted to prev version 209 * Update task.loc.json Reverted to prev version 209
Description
I'm getting the same issue described in this Azure Pipeline Tasks repo thread.
In that occasion, it stopped happening on its own. The contributor closing the issue asked to file a ticket here if it happened again, alleging that "Az commands are not able to retrieve storage accounts immediately."
Issue script & Debug output
Environment data
I don't have that info available as this runs inside the Azure DevOps sandbox. I believe that it's Windows PowerShell (as opposed to PowerShell Core.)
Module versions
Error output
##[error]Storage account: <my existing and accessible storage account> not found. The selected service connection 'Service Principal' supports storage accounts of Azure Resource Manager type only.
The text was updated successfully, but these errors were encountered: