Skip to content

Some place else

Still learning, Still sharing when possible.

Recent Posts

  • Azure Resource Manager – a journey to understand basics
  • Schedulers – some notes
  • Scraper Breakers
  • Azure PowerShell – ServiceManagement & ResourceManagement
  • Debt of evolving RPC mechanisms

Categories

Blogroll

  • Anand
  • Arunn Narasimhan
  • Deepak
  • GC Performance- Maoni
  • Raymond Chen
  • swalpa sihi

Links

  • Theater

Azure PowerShell

Azure PowerShell – ServiceManagement & ResourceManagement

March 17, 2015March 17, 2015 govindkanshiARM, Azure PowerShell, AzureResourceManagement, RDFE, Storage accountLeave a comment

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

Advertisement
Azure PowerShell – ServiceManagement & ResourceManagement
Create a free website or blog at WordPress.com.
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy
  • Follow Following
    • Some place else
    • Already have a WordPress.com account? Log in now.
    • Some place else
    • Customize
    • Follow Following
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar