Skip to content
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

use get-azurermstorageaccount instead of get-azurermresource to fetch… #11423

Merged
merged 4 commits into from
Oct 6, 2019

Conversation

arjgupta
Copy link
Member

… storage account details

@arjgupta arjgupta requested a review from kmkumaran as a code owner September 25, 2019 09:42
$azureStorageAccountResourceDetails = (Get-AzureRMResource -ErrorAction Stop) | Where-Object { ($_.ResourceType -eq $ARMStorageAccountResourceType) -and ($_.ResourceName -eq $storageAccountName)}
}

$azureStorageAccountResourceDetails = Get-AzureRmStorageAccount -ErrorAction Stop | Where-Object { $_.StorageAccountName -eq $storageAccountName }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@niadak fyi we are using 'Get-AzureRmStorageAccount', replacing logic with Get-AzureRMResource

@arjgupta arjgupta merged commit 41e2cf6 into master Oct 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants