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

Managing resource groups

A resource group is the main logical component when it comes to governing resources provisioned in Azure. You cannot create a service without selecting one – this is why learning the basic principles of managing resource groups is crucial for becoming a better Azure administrator. We will focus on things such as performing basic actions on resource groups, moving resources, and managing them so that you can learn all the necessary operations required on a daily basis.

To get started, you'll need a resource group. Creating one is one of the easiest operations in Azure – you can use the Azure portal, PowerShell cmdlet, or Azure CLI for this. If you prefer using the graphics interface, search for the Resource group term in the marketplace and click on the Create button. You will see a really simple form where you only need to provide two things:

  • Resource group name
  • Resource group location

The following is an example configuration for my resource group:

Figure 2.5: Creating a resource group
If you have more than a single subscription available, you will have to provide that value as well.

When everything is ready, you can just click the Review + Create button to start the process of creating an RG. Using Azure CLI or PowerShell is also just as easy. Here, you can find a command and a result when using the CLI. We will provide additional details such as its location and subscription to avoid mistakes:

$ az group create --name "azurecli-euw-rg" --location "West Europe" --subscription "Pay-As-You-Go"

The result of creating a resource group looks like this:

{
"id": "/subscriptions/.../resourceGroups/azurecli-euw-rg",
"location": "westeurope",
"managedBy": null,
"name": "azurecli-euw-rg",
"properties": {
"provisioningState": "Succeeded"
},
"tags": null
}

As an alternative, you can use Azure PowerShell, as shown here:

PS C:\Users\kamz> New-AzResourceGroup -Location "West Europe" -Name azurepowershell-euw-rg

PowerShell's output is quite different in terms of its structure but provides similar information to the Azure CLI:

ResourceGroupName : azurepowershell-euw-rg
Location : westeurope
ProvisioningState : Succeeded
Tags :
ResourceId : /subscriptions/.../resourceGroups/azurepowershell-euw-rg

Now, we are ready to learn about some additional management activities.

主站蜘蛛池模板: 二连浩特市| 桦南县| 宁强县| 彩票| 乳源| 衡阳市| 榆树市| 蒙山县| 金平| 崇左市| 伊川县| 五华县| 沙雅县| 朝阳区| 滨海县| 崇州市| 同心县| 云和县| 龙南县| 高要市| 河北省| 赫章县| 怀化市| 新安县| 临沭县| 龙海市| 德阳市| 济南市| 桓仁| 淮北市| 双流县| 丹巴县| 鞍山市| 乌审旗| 民县| 井冈山市| 重庆市| 吴旗县| 隆回县| 新闻| 炉霍县|