Assuming you have Azure PowerShell open and either done import-publish settings or done the Add-AzureAccount to download settings for an account.
Get-AzureSubscription
Switch-AzureMode AzureServiceManagement (by default this is the mode of PS)
Get-AzureStorageAccount (notice the details across all storage accounts)
Get-AzureStorageAccount -storageaccountname gsksqldel (see the details for specific account )
Switch-AzureMode AzureResourceManager (switch to Resource Management)
/* Switch-AzureMode AzureServiceManagement */
Get-AzureSubscription
Get-AzureStorageAccount ( does not work because now the mode is different)
Get-AzureResource | Group-Object ResourceType | select Name ( get different kind of resources that are available)
Get-AzureResource -ResourceType Microsoft.ClassicStorage/StorageAccounts (just get all the storage accounts)
Get-AzureResource -name gsksqldel -ResourceType Microsoft.ClassicStorage/storageaccounts -ResourceGroupName gsk-sql -ApiVersion 2014-04-01 ( get a specific storage account)
What is the difference ?
ResourceManager has the “parent resource, tags, permissions” and regular RDFE PS command has the “label, affinity group, georeplication info” and account_type. Except later RDFE does not add lot of information. Former has the subscription information which is also the REST endpoint for the resource.
What can you do with this information ?
Access the status periodically to ensure it is available, assuming the updated stuff is near-real time. Or just use it in script to take decisions.
Better yet over time learning PS/REST to interact with Resource groups will help mastering Azure’s resource managers.
Reference
Azure Resource Management
UX – http://azure.microsoft.com/en-in/documentation/articles/azure-preview-portal-using-resource-groups/
REST API – https://msdn.microsoft.com/en-us/library/azure/dn790568.aspx
VS tool – http://blogs.msdn.com/b/rmattsampson/archive/2014/08/19/azure-resource-manager-tools-for-visual-studio.aspx
Azure Service Management
REST – API – https://msdn.microsoft.com/en-us/library/azure/ee460799.aspx