官术网_书友最值得收藏!

Understanding resource providers

All the operations that are invoked via the command line or Azure portal are reflected with the help of Azure Resource Manager. When you look closely at resource IDs, you will see that they all have their provider provided. Take a look at the following Azure Logic App ID:

/subscriptions/.../resourceGroups/azureadministrator-euw-rg/providers/Microsoft.Logic/workflows/azureadministrator-euw-logicapp

Here, the registered provider is Microsoft.Logic. The full namespace of the resource is displayed as Microsoft.Logic/workflows. This means that each Logic App uses that provider under the hood and all the operations that are performed on it are performed with the registered RP. If we take a look at another resource, the displayed provider will be different:

/subscriptions/.../resourceGroups/azureadministrator-euw-rg/providers/Microsoft.Storage/storageAccounts/azureadministratortest

As you can see, here, Azure uses Microsoft.Storage and the Microsoft.Storage/storageAccounts namespace. The more you work with Azure, the more familiar you will become with the available providers. In fact, constructing such an ID will also become a piece of cake for you – the only thing hard to remember is your subscription ID. 

Managing resource groups requires some practice, but once you start performing different operations on them, things will quickly become straightforward for you. Since you are just starting your journey of administrating Azure resources, I encourage you to focus on learning commands to be used in a command line as they will greatly improve your productivity when working with cloud services.

In Azure, some changes are much easier when performed with the right command than by clicking a dozen blades in the portal. The only thing required here is practice. This is why you should find other concepts from this chapter extremely interesting; they'll help you build up your knowledge when it comes to governing resources in Azure.

Using the Azure CLI or Azure PowerShell, you can perform far more operations over your resources and resource groups. Here are the most useful ones:

  • The following operations can be performed on the CLI:
    • az group exists: Checks whether a group exists
    • az group export: Exports a resource group template
    • az group update: Updates a resource group with the desired parameters
    • az resource create: Creates a resource
    • az resource invoke-action: Invokes an action on a resource
  • The following commands can be used on PowerShell:
    • Export-AzureRmResourceGroup: Exports a resource group template
    • Set-AzureRmResourceGroup: Sets the desired parameter on a resource group
    • Move-AzureRmResource: Moves Azure resources to another resource group
    • Set-AzureRmResource: Sets the desired parameter on a resource

This section helped you understand one of the most important concepts in Azure: resource groups. It is crucial that you understand how resource groups work and their capabilities so that you can work with them with no worries. In the next section, you will extend your current knowledge by learning how to perform deployments in the context of a resource group using ARM templates.

主站蜘蛛池模板: 商水县| 英吉沙县| 延安市| 江山市| 济源市| 常德市| 榆中县| 通江县| 巴中市| 武鸣县| 扬州市| 芷江| 台东县| 张掖市| 衡阳市| 乐平市| 若羌县| 雷波县| 长葛市| 沁源县| 黄大仙区| 永善县| 乌鲁木齐市| 宜兰市| 旌德县| 合阳县| 依兰县| 大竹县| 肇东市| 高唐县| 嘉义市| 英超| 连城县| 建水县| 凤冈县| 清苑县| 嘉定区| 双江| 镇赉县| 图们市| 佳木斯市|