Azure 클래식 CLI 명령

중요

클래식 VM은 2023년 3월 1일에 사용 중지됩니다.

ASM의 IaaS 리소스를 사용하는 경우 2023년 3월 1일까지 마이그레이션을 완료하세요. Azure Resource Manager의 다양한 기능 향상을 활용하려면 빨리 전환하는 것이 좋습니다.

자세한 내용은 2023년 3월 1일까지 IaaS 리소스를 Azure Resource Manager로 마이그레이션을 참조하세요.

이 항목에서는 Azure 클래식 CLI를 설치하는 방법을 설명합니다. 클래식 CLI는 사용되지 않으므로 클래식 배포 모델과 함께만 사용해야 합니다. 다른 모든 배포에는 Azure CLI를 사용합니다.

이 문서에서는 Azure 리소스를 만들고 관리하는 데 일반적으로 사용하는 Azure 클래식 CLI(명령줄 인터페이스) 명령에 대한 구문 및 옵션을 제공합니다. 전체 참조는 아니며 CLI 버전에서 약간 다른 명령 또는 매개 변수를 표시할 수도 있습니다.

시작하려면 먼저 Azure 클래식 CLI를 설치 하고 Azure 구독에 연결합니다.

리소스 관리자 모드의 명령줄에 있는 현재 명령 구문 및 옵션의 경우 azure help를 입력합니다. 그렇지 않고 특정 명령에 대한 도움말을 표시하려면 azure help [command]를 입력합니다. 또한 설명서에 특정 Azure 서비스 만들기 및 관리에 대한 CLI 예제가 나와 있습니다.

선택적 매개 변수는 대괄호 안에 표시(예: [parameter])됩니다. 모든 다른 매개 변수는 필수 항목입니다.

여기에 언급된 명령 관련 선택적 매개 변수 이외에 요청 옵션, 상태 코드 등과 같은 자세한 출력을 표시하는 데 사용할 수 있는 세 가지 선택적 매개 변수가 있습니다. -v 매개 변수는 자세한 정보를 출력하고 -vv 매개 변수는 훨씬 더 자세한 정보를 출력합니다. --json 옵션은 결과를 원시 JSON 형식으로 결과를 출력합니다.

리소스 관리자 모드 설정

다음 명령을 사용하여 Azure CLI Resource Manager 모드 명령을 사용하도록 설정합니다.

azure config mode arm

참고

CLI의 Azure Resource Manager 모드 및 Azure 서비스 관리 모드는 함께 사용할 수 없습니다. 즉, 한 모드에서 만든 리소스는 다른 모드에서 관리할 수 없습니다.

계정 정보

Azure 구독 정보는 도구에서 계정에 연결하는 데 사용됩니다.

가져온 구독 나열

account list [options]

구독에 대한 자세한 정보 표시

account show [options] [subscriptionNameOrId]

현재 구독 설정

account set [options] <subscriptionNameOrId>

구독 또는 환경을 제거하거나 저장된 계정 및 환경 정보 모두 지우기

account clear [options]

계정 환경을 관리하는 명령

account env list [options]
account env show [options] [environment]
account env add [options] [environment]
account env set [options] [environment]
account env delete [options] [environment]

Active Directory 개체

Active Directory 애플리케이션을 표시하는 명령

ad app create [options]
ad app delete [options] <object-id>

Active Directory 그룹을 표시하는 명령

ad group list [options]
ad group show [options]

Active Directory 하위 그룹 또는 멤버 정보를 제공하는 명령

ad group member list [options] [objectId]

Active Directory 서비스 주체를 표시하는 명령

ad sp list [options]
ad sp show [options]
ad sp create [options] <application-id>
ad sp delete [options] <object-id>

Active Directory 사용자를 표시하는 명령

ad user list [options]
ad user show [options]

가용성 집합

리소스 그룹 내 가용성 집합 만들기

availset create [options] <resource-group> <name> <location> [tags]

리소스 그룹 내 가용성 집합 나열

availset list [options] <resource-group>

리소스 그룹 내 한 가용성 집합 가져오기

availset show [options] <resource-group> <name>

리소스 그룹 내 한 가용성 집합 삭제

availset delete [options] <resource-group> <name>

로컬 설정

Azure CLI 구성 설정 나열

config list [options]

구성 설정 삭제

config delete [options] <name>

구성 설정 업데이트

config set <name> <value>

Azure CLI 작업 모드를 arm 또는 asm으로 설정

config mode [options] <modename>

계정 기능

구독에 대해 사용할 수 있는 모든 기능 나열

feature list [options]

기능 표시

feature show [options] <providerName> <featureName>

리소스 공급자의 미리 본 기능 등록

feature register [options] <providerName> <featureName>

리소스 그룹

리소스 그룹을 만듭니다.

group create [options] <name> <location>

리소스 그룹에 태그 설정

group set [options] <name> <tags>

리소스 그룹 삭제

group delete [options] <name>

구독에 대한 리소스 그룹 나열

group list [options]

구독에 대한 리소스 그룹 표시

group show [options] <name>

리소스 그룹 로그를 관리하는 명령

group log show [options] [name]

리소스 그룹의 배포를 관리하는 명령

group deployment create [options] [resource-group] [name]
group deployment list [options] <resource-group> [state]
group deployment show [options] <resource-group> [deployment-name]
group deployment stop [options] <resource-group> [deployment-name]

사용자 로컬 또는 갤러리 리소스 그룹 템플릿을 관리하는 명령

group template list [options]
group template show [options] <name>
group template download [options] [name] [file]
group template validate [options] <resource-group>

HDInsight 클러스터

클러스터 구성 파일을 만들거나 클러스터 구성 파일에 추가하는 명령

hdinsight config create [options] <configFilePath> <overwrite>
hdinsight config add-config-values [options] <configFilePath>
hdinsight config add-script-action [options] <configFilePath>

예: 클러스터를 만들 때 실행할 스크립트 동작을 포함하는 구성 파일을 만듭니다.

hdinsight config create "C:\myFiles\configFile.config"
hdinsight config add-script-action --configFilePath "C:\myFiles\configFile.config" --nodeType HeadNode --uri <scriptActionURI> --name myScriptAction --parameters "-param value"

리소스 그룹에 클러스터를 만드는 명령

hdinsight cluster create [options] <clusterName>

예: Linux 클러스터에 Storm을 만듭니다.

azure hdinsight cluster create -g myarmgroup -l westus -y Linux --clusterType Storm --version 3.2 --defaultStorageAccountName mystorageaccount --defaultStorageAccountKey <defaultStorageAccountKey> --defaultStorageContainer mycontainer --userName admin --password <clusterPassword> --sshUserName sshuser --sshPassword <sshPassword> --workerNodeCount 1 myNewCluster01

info:    Executing command hdinsight cluster create
+ Submitting the request to create cluster...
info:    hdinsight cluster create command OK

예: 스크립트 동작으로 클러스터를 만듭니다.

azure hdinsight cluster create -g myarmgroup -l westus -y Linux --clusterType Hadoop --version 3.2 --defaultStorageAccountName mystorageaccount --defaultStorageAccountKey <defaultStorageAccountKey> --defaultStorageContainer mycontainer --userName admin --password <clusterPassword> --sshUserName sshuser --sshPassword <sshPassword> --workerNodeCount 1 –configurationPath "C:\myFiles\configFile.config" myNewCluster01

info:    Executing command hdinsight cluster create
+ Submitting the request to create cluster...
info:    hdinsight cluster create command OK

매개 변수 옵션:

-h, --help                                                 output usage information
-v, --verbose                                              use verbose output
-vv                                                        more verbose with debug output
--json                                                     use json output
-g --resource-group <resource-group>                       The name of the resource group
-c, --clusterName <clusterName>                            HDInsight cluster name
-l, --location <location>                                  Data center location for the cluster
-y, --osType <osType>                                      HDInsight cluster operating system
'Windows' or 'Linux'
--version <version>                                        HDInsight cluster version
--clusterType <clusterType>                                HDInsight cluster type.
Hadoop | HBase | Spark | Storm
--defaultStorageAccountName <storageAccountName>           Storage account url to use for default HDInsight storage
--defaultStorageAccountKey <storageAccountKey>             Key to the storage account to use for default HDInsight storage
--defaultStorageContainer <storageContainer>               Container in the storage account to use for HDInsight default storage
--headNodeSize <headNodeSize>                              (Optional) Head node size for the cluster
--workerNodeCount <workerNodeCount>                        Number of worker nodes to use for the cluster
--workerNodeSize <workerNodeSize>                          (Optional) Worker node size for the cluster)
--zookeeperNodeSize <zookeeperNodeSize>                    (Optional) Zookeeper node size for the cluster
--userName <userName>                                      Cluster username
--password <password>                                      Cluster password
--sshUserName <sshUserName>                                SSH username (only for Linux clusters)
--sshPassword <sshPassword>                                SSH password (only for Linux clusters)
--sshPublicKey <sshPublicKey>                              SSH public key (only for Linux clusters)
--rdpUserName <rdpUserName>                                RDP username (only for Windows clusters)
--rdpPassword <rdpPassword>                                RDP password (only for Windows clusters)
--rdpAccessExpiry <rdpAccessExpiry>                        RDP access expiry.
For example 12/12/2015 (only for Windows clusters)
--virtualNetworkId <virtualNetworkId>                      (Optional) Virtual network ID for the cluster.
Value is a GUID for Windows cluster and ARM resource ID for Linux cluster)
--subnetName <subnetName>                                  (Optional) Subnet for the cluster
--additionalStorageAccounts <additionalStorageAccounts>    (Optional) Additional storage accounts.
Can be multiple.
In the format of 'accountName#accountKey'.
For example, --additionalStorageAccounts "acc1#key1;acc2#key2"
--hiveMetastoreServerName <hiveMetastoreServerName>        (Optional) SQL Server name for the external metastore for Hive
--hiveMetastoreDatabaseName <hiveMetastoreDatabaseName>    (Optional) Database name for the external metastore for Hive
--hiveMetastoreUserName <hiveMetastoreUserName>            (Optional) Database username for the external metastore for Hive
--hiveMetastorePassword <hiveMetastorePassword>            (Optional) Database password for the external metastore for Hive
--oozieMetastoreServerName <oozieMetastoreServerName>      (Optional) SQL Server name for the external metastore for Oozie
--oozieMetastoreDatabaseName <oozieMetastoreDatabaseName>  (Optional) Database name for the external metastore for Oozie
--oozieMetastoreUserName <oozieMetastoreUserName>          (Optional) Database username for the external metastore for Oozie
--oozieMetastorePassword <oozieMetastorePassword>          (Optional) Database password for the external metastore for Oozie
--configurationPath <configurationPath>                    (Optional) HDInsight cluster configuration file path
-s, --subscription <id>                                    The subscription id
--tags <tags>                                              Tags to set to the cluster.
Can be multiple.
In the format of 'name=value'.
Name is required and value is optional.
For example, --tags tag1=value1;tag2

클러스터를 삭제하는 명령

hdinsight cluster delete [options] <clusterName>

클러스터 세부 정보를 표시하는 명령

hdinsight cluster show [options] <clusterName>

특정 리소스 그룹의 모든 클러스터(제공된 경우)를 나열하는 명령

hdinsight cluster list [options]

클러스터 크기를 조정하는 명령

hdinsight cluster resize [options] <clusterName> <targetInstanceCount>

클러스터에 대한 HTTP 액세스를 사용하도록 설정하는 명령

hdinsight cluster enable-http-access [options] <clusterName> <userName> <password>

클러스터에 대한 HTTP 액세스를 사용하지 않도록 설정하는 명령

hdinsight cluster disable-http-access [options] <clusterName>

클러스터에 대한 RDP 액세스를 사용하도록 설정하는 명령

hdinsight cluster enable-rdp-access [options] <clusterName> <rdpUserName> <rdpPassword> <rdpExpiryDate>

클러스터에 대한 HTTP 액세스를 사용하지 않도록 설정하는 명령

hdinsight cluster disable-rdp-access [options] <clusterName>

Insights(이벤트, 경고 규칙, 자동 크기 조정 설정, 메트릭)

구독, 상관 관계 ID, 리소스 그룹, 리소스 또는 리소스 공급자에 대한 작업 로그 검색

insights logs list [options]

위치

사용 가능한 위치 나열

location list [options]

네트워크 리소스

가상 네트워크를 관리하는 명령

network vnet create [options] <resource-group> <name> <location>

가상 네트워크를 만듭니다. 다음 예제에서는 미국 서부 지역의 myresourcegroup 리소스 그룹에 대한 newvnet이라는 가상 네트워크를 만듭니다.

azure network vnet create myresourcegroup newvnet "west us"
info:    Executing command network vnet create
+ Looking up virtual network "newvnet"
+ Creating virtual network "newvnet"
 Loading virtual network state
data:    Id:                   /subscriptions/###############################/resourceGroups/myresourcegroup/providers/Microsoft.Network/virtualNetworks/newvnet
data:    Name:                 newvnet
data:    Type:                 Microsoft.Network/virtualNetworks
data:    Location:             westus
data:    Tags:
data:    Provisioning state:   Succeeded
data:    Address prefixes:
data:     10.0.0.0/8
data:    DNS servers:
data:    Subnets:
data:
info:    network vnet create command OK

매개 변수 옵션:

 -h, --help                                 output usage information
 -v, --verbose                              use verbose output
--json                                     use json output
 -g, --resource-group <resource-group>      the name of the resource group
 -n, --name <name>                          the name of the virtual network
 -l, --location <location>                  the location
 -a, --address-prefixes <address-prefixes>  the comma separated list of address prefixes for this virtual network
  For example -a 10.0.0.0/24,10.0.1.0/24.
  Default value is 10.0.0.0/8

-d, --dns-servers <dns-servers>            the comma separated list of DNS servers IP addresses
 -t, --tags <tags>                          the tags set on this virtual network.
  Can be multiple. In the format of "name=value".
  Name is required and value is optional.
  For example, -t tag1=value1;tag2
 -s, --subscription <subscription>          the subscription identifier

network vnet set [options] <resource-group> <name>

리소스 그룹 내에서 가상 네트워크 구성을 업데이트합니다.

azure network vnet set myresourcegroup newvnet

info:    Executing command network vnet set
+ Looking up virtual network "newvnet"
+ Updating virtual network "newvnet"
+ Loading virtual network state
data:    Id:                   /subscriptions/###############################/resourceGroups/myresourcegroup/providers/Microsoft.Network/virtualNetworks/newvnet
data:    Name:                 newvnet
data:    Type:                 Microsoft.Network/virtualNetworks
data:    Location:             westus
data:    Tags:
data:    Provisioning state:   Succeeded
data:    Address prefixes:
data:     10.0.0.0/8
data:    DNS servers:
data:    Subnets:
data:
info:    network vnet set command OK

매개 변수 옵션:

   -h, --help                                 output usage information
   -v, --verbose                              use verbose output
   --json                                     use json output
   -g, --resource-group <resource-group>      the name of the resource group
   -n, --name <name>                          the name of the virtual network
   -a, --address-prefixes <address-prefixes>  the comma separated list of address prefixes for this virtual network.
    For example -a 10.0.0.0/24,10.0.1.0/24.
    This list will be appended to the current list of address prefixes.
    The address prefixes in this list should not overlap between them.
    The address prefixes in this list should not overlap with existing address prefixes in the vnet.

   -d, --dns-servers [dns-servers]            the comma separated list of DNS servers IP addresses.
    This list will be appended to the current list of DNS server IP addresses.

   -t, --tags <tags>                          the tags set on this virtual network.
    Can be multiple. In the format of "name=value".
    Name is required and value is optional. For example, -t tag1=value1;tag2.
    This list will be appended to the current list of tags

   --no-tags                                  remove all existing tags
   -s, --subscription <subscription>          the subscription identifier

network vnet list [options] <resource-group>

리소스 그룹의 모든 가상 네트워크를 나열하는 명령입니다.

C:\>azure network vnet list myresourcegroup

info:    Executing command network vnet list
+ Listing virtual networks
    data:    ID
   Name      Location  Address prefixes  DNS servers
data:    -------------------------------------------------------------------
------  --------  --------  ----------------  -----------
data:    /subscriptions/###############################/resourceGroups/
wvnet   newvnet   westus    10.0.0.0/8
info:    network vnet list command OK

매개 변수 옵션:

  -h, --help                             output usage information
  -v, --verbose                          use verbose output
  --json                                 use json output
  -g, --resource-group <resource-group>  the name of the resource group
  -s, --subscription <subscription>      the subscription identifier

network vnet show [options] <resource-group> <name>

리소스 그룹의 가상 네트워크 속성을 보여주는 명령입니다.

azure network vnet show -g myresourcegroup -n newvnet

info:    Executing command network vnet show
+ Looking up virtual network "newvnet"
data:    Id:                   /subscriptions/###############################/resourceGroups/myresourcegroup/providers/Microsoft.Network/virtualNetworks/newvnet
data:    Name:                 newvnet
data:    Type:                 Microsoft.Network/virtualNetworks
data:    Location:             westus
data:    Tags:
data:    Provisioning state:   Succeeded
data:    Address prefixes:
data:     10.0.0.0/8
data:    DNS servers:
data:    Subnets:
data:
info:    network vnet show command OK

network vnet delete [options] <resource-group> <name>

가상 네트워크를 제거하는 명령입니다.

azure network vnet delete myresourcegroup newvnetX

info:    Executing command network vnet delete
+ Looking up virtual network "newvnetX"
Delete virtual network newvnetX? [y/n] y
+ Deleting virtual network "newvnetX"
info:    network vnet delete command OK

매개 변수 옵션:

 -h, --help                             output usage information
 -v, --verbose                          use verbose output
 --json                                 use json output
 -g, --resource-group <resource-group>  the name of the resource group
 -n, --name <name>                      the name of the virtual network
 -q, --quiet                            quiet mode, do not ask for delete confirmation
 -s, --subscription <subscription>      the subscription identifier

가상 네트워크 서브넷을 관리하는 명령

network vnet subnet create [options] <resource-group> <vnet-name> <name>

기존 가상 네트워크에 다른 서브넷을 추가합니다.

azure network vnet subnet create -g myresourcegroup --vnet-name newvnet -n subnet --address-prefix 10.0.1.0/24

info:    Executing command network vnet subnet create
+ Looking up the subnet "subnet"
+ Creating subnet "subnet"
+ Looking up the subnet "subnet"
data:    Id:                        /subscriptions/###############################/resourceGroups/myresourcegroup/providers/Microsoft.Network/virtualNetworks/newvnet/subnets/subnet
data:    Name:                      subnet
data:    Type:                      Microsoft.Network/virtualNetworks/subnets
data:    Provisioning state:        Succeeded
data:    Address prefix:            10.0.1.0/24
info:    network vnet subnet create command OK

매개 변수 옵션:

 -h, --help                                                       output usage information
 -v, --verbose                                                    use verbose output
     --json                                                           use json output
 -g, --resource-group <resource-group>                            the name of the resource group
 -e, --vnet-name <vnet-name>                                      the name of the virtual network
 -n, --name <name>                                                the name of the subnet
 -a, --address-prefix <address-prefix>                            the address prefix
 -w, --network-security-group-id <network-security-group-id>      the network security group identifier.
       e.g. /subscriptions/<subscription-id>/resourceGroups/<resource-group-name>/providers/Microsoft.Network/networkSecurityGroups/<nsg-name>
 -o, --network-security-group-name <network-security-group-name>  the network security group name
 -s, --subscription <subscription>                                the subscription identifier

network vnet subnet set [options] <resource-group> <vnet-name> <name>

리소스 그룹 내 특정 가상 네트워크 서브넷을 설정합니다.

C:\>azure network vnet subnet set -g myresourcegroup --vnet-name newvnet -n subnet1

info:    Executing command network vnet subnet set
+ Looking up the subnet "subnet1"
+ Setting subnet "subnet1"
+ Looking up the subnet "subnet1"
data:    Id:                        /subscriptions/###############################/resourceGroups/myresourcegroup/providers/Microsoft.Network/virtualNetworks/newvnet/subnets/subnet1
data:    Name:                      subnet1
data:    Type:                      Microsoft.Network/virtualNetworks/subnets
data:    Provisioning state:        Succeeded
data:    Address prefix:            10.0.1.0/24
info:    network vnet subnet set command OK

network vnet subnet list [options] <resource-group> <vnet-name>

리소스 그룹 내 특정 가상 네트워크에 대한 모든 가상 네트워크 서브넷을 나열합니다.

azure network vnet subnet set -g myresourcegroup --vnet-name newvnet -n subnet1

info:    Executing command network vnet subnet set
+ Looking up the subnet "subnet1"
+ Setting subnet "subnet1"
+ Looking up the subnet "subnet1"
data:    Id:                        /subscriptions/###############################/resourceGroups/myresourcegroup/providers/Microsoft.Network/virtualNetworks/newvnet/subnets/subnet1
data:    Name:                      subnet1
data:    Type:                      Microsoft.Network/virtualNetworks/subnets
data:    Provisioning state:        Succeeded
data:    Address prefix:            10.0.1.0/24
info:    network vnet subnet set command OK

network vnet subnet show [options] <resource-group> <vnet-name> <name>

가상 네트워크 서브넷 속성을 표시합니다.

azure network vnet subnet show -g myresourcegroup --vnet-name newvnet -n subnet1

info:    Executing command network vnet subnet show
+ Looking up the subnet "subnet1"
data:    Id:                        /subscriptions/###############################/resourceGroups/myresourcegroup/providers/Microsoft
.Network/virtualNetworks/newvnet/subnets/subnet1
data:    Name:                      subnet1
data:    Type:                      Microsoft.Network/virtualNetworks/subnets
data:    Provisioning state:        Succeeded
data:    Address prefix:            10.0.1.0/24
info:    network vnet subnet show command OK

매개 변수 옵션:

-h, --help                             output usage information
-v, --verbose                          use verbose output
--json                                 use json output
-g, --resource-group <resource-group>  the name of the resource group
-e, --vnet-name <vnet-name>            the name of the virtual network
-n, --name <name>                      the name of the subnet
-s, --subscription <subscription>      the subscription identifier

network vnet subnet delete [options] <resource-group> <vnet-name> <subnet-name>

기존 가상 네트워크에서 서브넷을 제거합니다.

azure network vnet subnet delete -g myresourcegroup --vnet-name newvnet -n subnet1

info:    Executing command network vnet subnet delete
+ Looking up the subnet "subnet1"
Delete subnet "subnet1"? [y/n] y
+ Deleting subnet "subnet1"
info:    network vnet subnet delete command OK

매개 변수 옵션:

 -h, --help                             output usage information
 -v, --verbose                          use verbose output
 --json                                 use json output
 -g, --resource-group <resource-group>  the name of the resource group
 -e, --vnet-name <vnet-name>            the name of the virtual network
 -n, --name <name>                      the subnet name
 -s, --subscription <subscription>      the subscription identifier
 -q, --quiet                            quiet mode, do not ask for delete confirmation

부하 분산 장치를 관리하는 명령

network lb create [options] <resource-group> <name> <location>

부하 분산 장치 집합을 만듭니다.

azure network lb create -g myresourcegroup -n mylb -l westus

info:    Executing command network lb create
+ Looking up the load balancer "mylb"
+ Creating load balancer "mylb"
+ Looking up the load balancer "mylb"
data:    Id:                           /subscriptions/###############################/resourceGroups/myresourcegroup/providers/Microsoft.Network/loadBalancers/mylb
data:    Name:                         mylb
data:    Type:                         Microsoft.Network/loadBalancers
data:    Location:                     westus
data:    Provisioning state:           Succeeded
info:    network lb create command OK

매개 변수 옵션:

-h, --help                             output usage information
-v, --verbose                          use verbose output
--json                                 use json output
-g, --resource-group <resource-group>  the name of the resource group
-n, --name <name>                      the name of the load balancer
-l, --location <location>              the location
-t, --tags <tags>                      the list of tags.
 Can be multiple. In the format of "name=value".
 Name is required and value is optional. For example, -t tag1=value1;tag2
-s, --subscription <subscription>      the subscription identifier

network lb list [options] <resource-group>

리소스 그룹 내 부하 분산 장치 리소스를 나열합니다.

azure network lb list myresourcegroup

info:    Executing command network lb list
+ Getting the load balancers
data:    Name  Location
data:    ----  --------
data:    mylb  westus
info:    network lb list command OK

매개 변수 옵션:

-h, --help                             output usage information
-v, --verbose                          use verbose output
--json                                 use json output
-g, --resource-group <resource-group>  the name of the resource group
-s, --subscription <subscription>      the subscription identifier

network lb show [options] <resource-group> <name>

리소스 그룹 내 특정 부하 분산 장치의 부하 분산 장치 정보를 표시합니다.

azure network lb show myresourcegroup mylb -v

info:    Executing command network lb show
verbose: Looking up the load balancer "mylb"
data:    Id:                           /subscriptions/###############################/resourceGroups/myresourcegroup/providers/Microsoft.Network/loadBalancers/mylb
data:    Name:                         mylb
data:    Type:                         Microsoft.Network/loadBalancers
data:    Location:                     westus
data:    Provisioning state:           Succeeded
info:    network lb show command OK

매개 변수 옵션:

-h, --help                             output usage information
-v, --verbose                          use verbose output
--json                                 use json output
-g, --resource-group <resource-group>  the name of the resource group
-n, --name <name>                      the name of the load balancer
-s, --subscription <subscription>      the subscription identifier

network lb delete [options] <resource-group> <name>

부하 분산 장치 리소스를 삭제합니다.

azure network lb delete  myresourcegroup mylb

info:    Executing command network lb delete
+ Looking up the load balancer "mylb"
Delete load balancer "mylb"? [y/n] y
+ Deleting load balancer "mylb"
info:    network lb delete command OK

매개 변수 옵션:

 -h, --help                             output usage information
 -v, --verbose                          use verbose output
 --json                                 use json output
 -g, --resource-group <resource-group>  the name of the resource group
 -n, --name <name>                      the name of the load balancer
 -q, --quiet                            quiet mode, do not ask for delete confirmation
 -s, --subscription <subscription>      the subscription identifier

부하 분산 장치의 검색을 관리하는 명령

network lb probe create [options] <resource-group> <lb-name> <name>

부하 분산 장치의 상태 확인을 위해 검색 구성을 만듭니다. 이 명령을 실행하려면 부하 분산 장치에 프런트엔드 IP 리소스가 필요합니다(부하 분산 장치에 IP 주소를 할당하려면 "azure network frontend-ip" 명령 확인).

azure network lb probe create -g myresourcegroup --lb-name mylb -n mylbprobe --protocol tcp --port 80 -i 300

info:    Executing command network lb probe create
+ Looking up the load balancer "mylb"
+ Updating load balancer "mylb"
info:    network lb probe create command OK

매개 변수 옵션:

 -h, --help                             output usage information
 -v, --verbose                          use verbose output
 --json                                 use json output
-g, --resource-group <resource-group>  the name of the resource group
-l, --lb-name <lb-name>                the name of the load balancer
-n, --name <name>                      the name of the probe
-p, --protocol <protocol>              the probe protocol
-o, --port <port>                      the probe port
-f, --path <path>                      the probe path
-i, --interval <interval>              the probe interval in seconds
-c, --count <count>                    the number of probes
-s, --subscription <subscription>      the subscription identifier

network lb probe set [options] <resource-group> <lb-name> <name>

기존 부하 분산 장치 검색을 새 값으로 업데이트합니다.

azure network lb probe set -g myresourcegroup -l mylb -n mylbprobe -p mylbprobe1 -p TCP -o 443 -i 300

info:    Executing command network lb probe set
    + Looking up the load balancer "mylb"
+ Updating load balancer "mylb"
info:    network lb probe set command OK

매개 변수 옵션

-h, --help                             output usage information
-v, --verbose                          use verbose output
--json                                 use json output
-g, --resource-group <resource-group>  the name of the resource group
-l, --lb-name <lb-name>                the name of the load balancer
-n, --name <name>                      the name of the probe
-e, --new-probe-name <new-probe-name>  the new name of the probe
-p, --protocol <protocol>              the new value for probe protocol
-o, --port <port>                      the new value for probe port
-f, --path <path>                      the new value for probe path
-i, --interval <interval>              the new value for probe interval in seconds
-c, --count <count>                    the new value for number of probes
-s, --subscription <subscription>      the subscription identifier

network lb probe list [options] <resource-group> <lb-name>

부하 분산 장치 집합의 검색 속성을 나열합니다.

C:\>azure network lb probe list -g myresourcegroup -l mylb

info:    Executing command network lb probe list
+ Looking up the load balancer "mylb"
data:    Name       Protocol  Port  Path  Interval  Count
data:    ---------  --------  ----  ----  --------  -----
data:    mylbprobe  Tcp       443         300       2
info:    network lb probe list command OK

매개 변수 옵션:

-h, --help                             output usage information
-v, --verbose                          use verbose output
--json                                 use json output
-g, --resource-group <resource-group>  the name of the resource group
-l, --lb-name <lb-name>                the name of the load balancer
-s, --subscription <subscription>      the subscription identifier


network lb probe delete [options] <resource-group> <lb-name> <name>

부하 분산 장치에 대해 생성된 검색을 제거합니다.

azure network lb probe delete -g myresourcegroup -l mylb -n mylbprobe

info:    Executing command network lb probe delete
+ Looking up the load balancer "mylb"
Delete a probe "mylbprobe?" [y/n] y
+ Updating load balancer "mylb"
info:    network lb probe delete command OK

부하 분산 장치의 프런트엔드 IP 구성을 관리하는 명령

network lb frontend-ip create [options] <resource-group> <lb-name> <name>

기존 부하 분산 장치 집합에 대한 프런트엔드 IP 구성을 만듭니다.

azure network lb frontend-ip create -g myresourcegroup --lb-name mylb -n myfrontendip -o Dynamic -e subnet -m newvnet

info:    Executing command network lb frontend-ip create
+ Looking up the load balancer "mylb"
+ Looking up the subnet "subnet"
+ Creating frontend IP configuration "myfrontendip"
+ Looking up the load balancer "mylb"
data:    Id:                           /subscriptions/###############################/resourceGroups/Myresourcegroup/providers/Microsoft.Network/loadBalancers/mylb
/frontendIPConfigurations/myfrontendip
data:    Name:                         myfrontendip
data:    Type:                         Microsoft.Network/loadBalancers/frontendIPConfigurations
data:    Provisioning state:           Succeeded
data:    Private IP allocation method: Dynamic
data:    Private IP address:           10.0.1.4
data:    Subnet:                       id=/subscriptions/###############################/resourceGroups/myresourcegroup/providers/Microsoft.Network/virtualNetworks/newvnet/subnets/subnet
data:    Public IP address:
data:    Inbound NAT rules
data:    Outbound NAT rules
data:    Load balancing rules
data:
info:    network lb frontend-ip create command OK

network lb frontend-ip set [options] <resource-group> <lb-name> <name>

프런트 엔드 IP의 기존 구성을 업데이트합니다. 아래 명령은 myfrontendip라는 기존 부하 분산 장치 프런트 엔드 IP에 mypubip5라는 공용 IP를 추가합니다.

azure network lb frontend-ip set -g myresourcegroup --lb-name mylb -n myfrontendip -i mypubip5

info:    Executing command network lb frontend-ip set
+ Looking up the load balancer "mylb"
+ Looking up the public ip "mypubip5"
+ Updating load balancer "mylb"
+ Looking up the load balancer "mylb"
data:    Id:                           /subscriptions/###############################/resourceGroups/myresourcegroup/providers/Microsoft.Network/loadBalancers/mylb/frontendIPConfigurations/myfrontendip
data:    Name:                         myfrontendip
data:    Type:                         Microsoft.Network/loadBalancers/frontendIPConfigurations
data:    Provisioning state:           Succeeded
data:    Private IP allocation method: Dynamic
data:    Private IP address:
data:    Subnet:
data:    Public IP address:            id=/subscriptions/###############################/resourceGroups/myresourcegroup/providers/Microsoft.Network/publicIPAddresses/mypubip5
data:    Inbound NAT rules
data:    Outbound NAT rules
data:    Load balancing rules
data:
info:    network lb frontend-ip set command OK

매개 변수 옵션:

-h, --help                                                         output usage information
-v, --verbose                                                      use verbose output
--json                                                             use json output
-g, --resource-group <resource-group>                              the name of the resource group
-l, --lb-name <lb-name>                                            the name of the load balancer
-n, --name <name>                                                  the name of the frontend ip configuration
-a, --private-ip-address <private-ip-address>                      the private ip address
-o, --private-ip-allocation-method <private-ip-allocation-method>  the private ip allocation method [Static, Dynamic]
-u, --public-ip-id <public-ip-id>                                  the public ip identifier.
e.g. /subscriptions/<subscription-id>/resourceGroups/<resource-group-name>/providers/Microsoft.Network/publicIPAddresses/<public-ip-name>
-i, --public-ip-name <public-ip-name>                              the public ip name.
This public ip must exist in the same resource group as the lb.
Please use public-ip-id if that is not the case.
-b, --subnet-id <subnet-id>                                        the subnet id.
e.g. /subscriptions/<subscription-id>/resourceGroups/<resource-group-name>/providers/Microsoft.Network/VirtualNetworks/<vnet-name>/subnets/<subnet-name>
-e, --subnet-name <subnet-name>                                    the subnet name
-m, --vnet-name <vnet-name>                                        the virtual network name.
This virtual network must exist in the same resource group as the lb.
Please use subnet-id if that is not the case.
-s, --subscription <subscription>                                  the subscription identifier

network lb frontend-ip list [options] <resource-group> <lb-name>

부하 분산 장치에 대해 구성된 모든 프런트엔드 IP 리소스를 나열합니다.

azure network lb frontend-ip list -g myresourcegroup -l mylb

info:    Executing command network lb frontend-ip list
+ Looking up the load balancer "mylb"
data:    Name         Provisioning state  Private IP allocation method  Subnet
data:    -----------  ------------------  ----------------------------  ------
data:    myprivateip  Succeeded           Dynamic
info:    network lb frontend-ip list command OK

매개 변수 옵션:

-h, --help                             output usage information
-v, --verbose                          use verbose output
--json                                 use json output
-g, --resource-group <resource-group>  the name of the resource group
-l, --lb-name <lb-name>                the name of the load balancer
-s, --subscription <subscription>      the subscription identifier

network lb frontend-ip delete [options] <resource-group> <lb-name> <name>

부하 분산 장치에 연결된 프런트엔드 IP 개체를 삭제합니다.

network lb frontend-ip delete -g myresourcegroup -l mylb -n myfrontendip
info:    Executing command network lb frontend-ip delete
+ Looking up the load balancer "mylb"
Delete frontend ip configuration "myfrontendip"? [y/n] y
+ Updating load balancer "mylb"

매개 변수 옵션:

-h, --help                             output usage information
-v, --verbose                          use verbose output
--json                                 use json output
-g, --resource-group <resource-group>  the name of the resource group
-l, --lb-name <lb-name>                the name of the load balancer
-n, --name <name>                      the name of the frontend ip configuration
-q, --quiet                            quiet mode, do not ask for delete confirmation
-s, --subscription <subscription>      the subscription identifier

부하 분산 장치의 백엔드 주소 풀을 관리하는 명령

network lb address-pool create [options] <resource-group> <lb-name> <name>

부하 분산 장치의 백엔드 주소 풀을 만듭니다.

azure network lb address-pool create -g myresourcegroup --lb-name mylb -n myaddresspool

info:    Executing command network lb address-pool create
+ Looking up the load balancer "mylb"
+ Updating load balancer "mylb"
+ Looking up the load balancer "mylb"
data:    Id:                        /subscriptions/###############################/resourceGroups/myresourgroup/providers/Microso.Network/loadBalancers/mylb/backendAddressPools/myaddresspool
data:    Name:                      myaddresspool
data:    Type:                      Microsoft.Network/loadBalancers/backendAddressPools
data:    Provisioning state:        Succeeded
data:    Backend IP configurations:
data:    Load balancing rules:
data:
info:    network lb address-pool create command OK

매개 변수 옵션:

-h, --help                             output usage information
-v, --verbose                          use verbose output
--json                                 use json output
-g, --resource-group <resource-group>  the name of the resource group
-l, --lb-name <lb-name>                the name of the load balancer
-n, --name <name>                      the name of the backend address pool
-s, --subscription <subscription>      the subscription identifier

network lb address-pool list [options] <resource-group> <lb-name>

특정 리소스 그룹에 대한 백엔드 IP 주소 풀 범위를 나열합니다.

azure network lb address-pool list -g myresourcegroup -l mylb

info:    Executing command network lb address-pool list
+ Looking up the load balancer "mylb"
data:    Name           Provisioning state
data:    -------------  ------------------
data:    mybackendpool  Succeeded
info:    network lb address-pool list command OK

매개 변수 옵션:

 -h, --help                             output usage information
 -v, --verbose                          use verbose output
 --json                                 use json output
 -g, --resource-group <resource-group>  the name of the resource group
 -l, --lb-name <lb-name>                the name of the load balancer
 -s, --subscription <subscription>      the subscription identifier

network lb address-pool delete [options] <resource-group> <lb-name> <name>

부하 분산 장치에서 백엔드 IP 풀 범위 리소스를 제거합니다.

azure network lb address-pool delete -g myresourcegroup -l mylb -n mybackendpool

info:    Executing command network lb address-pool delete
+ Looking up the load balancer "mylb"
Delete backend address pool "mybackendpool"? [y/n] y
+ Updating load balancer "mylb"
info:    network lb address-pool delete command OK

매개 변수 옵션:

-h, --help                             output usage information
-v, --verbose                          use verbose output
--json                                 use json output
-g, --resource-group <resource-group>  the name of the resource group
-l, --lb-name <lb-name>                the name of the load balancer
-n, --name <name>                      the name of the backend address pool
-q, --quiet                            quiet mode, do not ask for delete confirmation
-s, --subscription <subscription>      the subscription identifier

부하 분산 장치 규칙을 관리하는 명령

network lb rule create [options] <resource-group> <lb-name> <name>

부하 분산 장치 규칙을 만듭니다.

부하 분산 장치의 프런트 엔드 엔드포인트 및 들어오는 네트워크 트래픽을 수신하는 백 엔드 주소 풀 범위를 구성하는 부하 분산 장치 규칙을 만들 수 있습니다. 설정에는 프런트엔드 IP 엔드포인트의 포트 및 백엔드 주소 풀 범위의 포트도 포함됩니다.

다음 예제에서는 백엔드 주소 풀 범위에서 부하 분산 장치 규칙, 80 TCP 포트를 수신 대기하는 프런트엔드 엔드포인트 및 포트 8080으로 보내는 부하 분산 네트워크 트래픽을 만드는 방법을 보여줍니다.

azure network lb rule create -g myresourcegroup -l mylb -n mylbrule -p tcp -f 80 -b 8080 -i 10


info:    Executing command network lb rule create
+ Looking up the load balancer "mylb"
+ Updating load balancer "mylb"
+ Loading rule state
data:    Id:                        /subscriptions/###############################/resourceGroups/myresourcegroup/providers/Microsoft.Network/loadBalancers/mylb/loadBalancingRules/mylbrule
data:    Name:                      mylbrule
data:    Type:                      Microsoft.Network/loadBalancers/loadBalancingRules
data:    Provisioning state:        Succeeded
data:    Frontend IP configuration: /subscriptions/###############################/resourceGroups/myresourcegroup/providers/Microsoft.Network/loadBalancers/mylb/frontendIPConfigurations/myfrontendip
data:    Backend address pool:      id=/subscriptions/###############################/resourceGroups/myresourcegroup/providers/Microsoft.Network/loadBalancers/mylb/backendAddressPools/mybackendpool
data:    Protocol:                  Tcp
data:    Frontend port:             80
data:    Backend port:              8080
data:    Enable floating IP:        false
data:    Idle timeout in minutes:   10
data:    Probes
data:
info:    network lb rule create command OK

network lb rule set [options] <resource-group> <lb-name> <name>

특정 리소스 그룹의 기존 부하 분산 장치 규칙 집합을 업데이트합니다. 다음 예제에서는 규칙 이름을 mylbrule에서 mynewlbrule로 변경했습니다.

azure network lb rule set -g myresourcegroup -l mylb -n mylbrule -r mynewlbrule -p tcp -f 80 -b 8080 -i 10 -t myfrontendip -o mybackendpool

info:    Executing command network lb rule set
+ Looking up the load balancer "mylb"
+ Updating load balancer "mylb"
+ Loading rule state
data:    Id:                        /subscriptions/###############################/resourceGroups/yresourcegroup/providers/Microsoft.Network/loadBalancers/mylb/loadBalancingRules/mynewlbrule
data:    Name:                      mynewlbrule
data:    Type:                      Microsoft.Network/loadBalancers/loadBalancingRules
data:    Provisioning state:        Succeeded
data:    Frontend IP configuration: /subscriptions/###############################/resourceGroups/yresourcegroup/providers/Microsoft.Network/loadBalancers/mylb/frontendIPConfigurations/myfrontendip
data:    Backend address pool:      id=/subscriptions/###############################/resourceGroups/yresourcegroup/providers/Microsoft.Network/loadBalancers/mylb/backendAddressPools/mybackendpool
data:    Protocol:                  Tcp
data:    Frontend port:             80
data:    Backend port:              8080
data:    Enable floating IP:        false
data:    Idle timeout in minutes:   10
data:    Probes
data:
info:    network lb rule set command OK

매개 변수 옵션:

-h, --help                                         output usage information
-v, --verbose                                      use verbose output
--json                                             use json output
-g, --resource-group <resource-group>              the name of the resource group
-l, --lb-name <lb-name>                            the name of the load balancer
-n, --name <name>                                  the name of the rule
-r, --new-rule-name <new-rule-name>                new rule name
-p, --protocol <protocol>                          the rule protocol
-f, --frontend-port <frontend-port>                the frontend port
-b, --backend-port <backend-port>                  the backend port
-e, --enable-floating-ip <enable-floating-ip>      enable floating point ip
-i, --idle-timeout <idle-timeout>                  the idle timeout in minutes
-a, --probe-name [probe-name]                      the name of the probe defined in the same load balancer
-t, --frontend-ip-name <frontend-ip-name>          the name of the frontend ip configuration in the same load balancer
-o, --backend-address-pool <backend-address-pool>  name of the backend address pool defined in the same load balancer
-s, --subscription <subscription>                  the subscription identifier


network lb rule list [options] <resource-group> <lb-name>

특정 리소스 그룹의 부하 분산 장치에 대해 구성된 모든 부하 분산 장치 규칙을 나열합니다.

azure network lb rule list -g myresourcegroup -l mylb

info:    Executing command network lb rule list
+ Looking up the load balancer "mylb"
data:    Name         Provisioning state  Protocol  Frontend port  Backend port  Enable floating IP  Idle timeout in minutes  Backend address pool  Probe data

data:    mynewlbrule  Succeeded           Tcp       80             8080          false               10                       /subscriptions/###############################/resourceGroups/myresourcegroup/providers/Microsoft.Network/loadBalancers/mylb/backendAddressPools/mybackendpool
info:    network lb rule list command OK

매개 변수 옵션:

-h, --help                             output usage information
-v, --verbose                          use verbose output
--json                                 use json output
-g, --resource-group <resource-group>  the name of the resource group
-l, --lb-name <lb-name>                the name of the load balancer
-s, --subscription <subscription>      the subscription identifier

network lb rule delete [options] <resource-group> <lb-name> <name>

부하 분산 장치 규칙을 삭제합니다.

azure network lb rule delete -g myresourcegroup -l mylb -n mynewlbrule

info:    Executing command network lb rule delete
+ Looking up the load balancer "mylb"
Delete load balancing rule mynewlbrule? [y/n] y
+ Updating load balancer "mylb"
info:    network lb rule delete command OK

매개 변수 옵션:

-h, --help                             output usage information
-v, --verbose                          use verbose output
--json                                 use json output
-g, --resource-group <resource-group>  the name of the resource group
-l, --lb-name <lb-name>                the name of the load balancer
-n, --name <name>                      the name of the rule
-q, --quiet                            quiet mode, do not ask for delete confirmation
-s, --subscription <subscription>      the subscription identifier

부하 분산 장치 인바운드 NAT 규칙을 관리하는 명령

network lb inbound-nat-rule create [options] <resource-group> <lb-name> <name>

부하 분산 장치의 인바운드 NAT 규칙을 만듭니다.

다음 예제에서는 부하 분산 장치가 네트워크 트래픽을 보내는 데 사용하는 인바운드 수신 대기 포트 및 아웃바운드 포트를 사용하여 프런트 엔드 IP(이전에 "azure network frontend-ip" 명령을 사용하여 정의됨)에서 NAT 규칙을 만들었습니다.

azure network lb inbound-nat-rule create -g myresourcegroup -l mylb -n myinboundnat -p tcp -f 80 -b 8080 -i myfrontendip

info:    Executing command network lb inbound-nat-rule create
+ Looking up the load balancer "mylb"
+ Updating load balancer "mylb"
+ Looking up the load balancer "mylb"
data:    Id:                        /subscriptions/###############################/resourceGroups/myresourcegroup/providers/Microsoft.Network/loadBalancers/mylb/inboundNatRules/myinboundnat
data:    Name:                      myinboundnat
data:    Type:                      Microsoft.Network/loadBalancers/inboundNatRules
data:    Provisioning state:        Succeeded
data:    Frontend IP Configuration: id=/subscriptions/###############################/resourceGroups/myresourcegroup/providers/Microsoft.Network/loadBalancers/mylb/frontendIPConfigurations/myfrontendip
data:    Backend IP configuration
data:    Protocol                   Tcp
data:    Frontend port              80
data:    Backend port               8080
data:    Enable floating IP         false
info:    network lb inbound-nat-rule create command OK

매개 변수 옵션:

-h, --help                                     output usage information
-v, --verbose                                  use verbose output
--json                                         use json output
-g, --resource-group <resource-group>          the name of the resource group
-l, --lb-name <lb-name>                        the name of the load balancer
-n, --name <name>                              the name of the inbound NAT rule
-p, --protocol <protocol>                      the rule protocol [tcp,udp]
-f, --frontend-port <frontend-port>            the frontend port [0-65535]
-b, --backend-port <backend-port>              the backend port [0-65535]
-e, --enable-floating-ip <enable-floating-ip>  enable floating point ip [true,false]
-i, --frontend-ip <frontend-ip>                the name of the frontend ip configuration
-m, --vm-id <vm-id>                            the VM id.
e.g. /subscriptions/<subscription-id>/resourceGroups/<resource-group-name>/providers/Microsoft.Compute/virtualMachines/<vm-name>
-a, --vm-name <vm-name>                        the VM name.This VM must exist in the same resource group as the lb.
Please use vm-id if that is not the case.
this parameter will be ignored if --vm-id is specified
-s, --subscription <subscription>              the subscription identifier

network lb inbound-nat-rule set [options] <resource-group> <lb-name> <name>

기존 인바운드 NAT 규칙을 업데이트합니다. 다음 예제에서는 인바운드 수신 대기 포트를 80에서 81로 변경했습니다.

azure network lb inbound-nat-rule set -g group-1 -l mylb -n myinboundnat -p tcp -f 81 -b 8080 -i myfrontendip

info:    Executing command network lb inbound-nat-rule set
+ Looking up the load balancer "mylb"
+ Updating load balancer "mylb"
+ Looking up the load balancer "mylb"
data:    Id:                        /subscriptions/###############################/resourceGroups/group-1/providers/Microsoft.Network/loadBalancers/mylb/inboundNatRules/myinboundnat
data:    Name:                      myinboundnat
data:    Type:                      Microsoft.Network/loadBalancers/inboundNatRules
data:    Provisioning state:        Succeeded
data:    Frontend IP Configuration: id=/subscriptions/###############################/resourceGroups/group-1/providers/Microsoft.Network/loadBalancers/mylb/frontendIPConfigurations/myfrontendip
data:    Backend IP configuration
data:    Protocol                   Tcp
data:    Frontend port              81
data:    Backend port               8080
data:    Enable floating IP         false
info:    network lb inbound-nat-rule set command OK

매개 변수 옵션:

-h, --help                                     output usage information
-v, --verbose                                  use verbose output
--json                                         use json output
-g, --resource-group <resource-group>          the name of the resource group
-l, --lb-name <lb-name>                        the name of the load balancer
-n, --name <name>                              the name of the inbound NAT rule
-p, --protocol <protocol>                      the rule protocol [tcp,udp]
-f, --frontend-port <frontend-port>            the frontend port [0-65535]
-b, --backend-port <backend-port>              the backend port [0-65535]
-e, --enable-floating-ip <enable-floating-ip>  enable floating point ip [true,false]
-i, --frontend-ip <frontend-ip>                the name of the frontend ip configuration
-m, --vm-id [vm-id]                            the VM id.
e.g. /subscriptions/<subscription-id>/resourceGroups/<resource-group-name>/providers/Microsoft.Compute/virtualMachines/<vm-name>
-a, --vm-name <vm-name>                        the VM name.
This virtual machine must exist in the same resource group as the lb.
Please use vm-id if that is not the case
-s, --subscription <subscription>              the subscription identifier

network lb inbound-nat-rule list [options] <resource-group> <lb-name>

부하 분산 장치의 모든 인바운드 NAT 규칙을 나열합니다.

azure network lb inbound-nat-rule list -g myresourcegroup -l mylb

info:    Executing command network lb inbound-nat-rule list
+ Looking up the load balancer "mylb"
data:    Name          Provisioning state  Protocol  Frontend port  Backend port  Enable floating IP  Idle timeout in minutes  Backend IP configuration
data:    ------------  ------------------  --------  -------------  ------------  ------------------  -----------------------  ---
---------------------
data:    myinboundnat  Succeeded           Tcp       81             8080          false               4

info:    network lb inbound-nat-rule list command OK

매개 변수 옵션:

-h, --help                             output usage information
-v, --verbose                          use verbose output
--json                                 use json output
-g, --resource-group <resource-group>  the name of the resource group
-l, --lb-name <lb-name>                the name of the load balancer
-s, --subscription <subscription>      the subscription identifier

network lb inbound-nat-rule delete [options] <resource-group> <lb-name> <name>

특정 리소스 그룹에서 부하 분산 장치에 대한 NAT 규칙을 삭제합니다.

azure network lb inbound-nat-rule delete -g myresourcegroup -l mylb -n myinboundnat

info:    Executing command network lb inbound-nat-rule delete
+ Looking up the load balancer "mylb"
Delete inbound NAT rule "myinboundnat?" [y/n] y
+ Updating load balancer "mylb"
info:    network lb inbound-nat-rule delete command OK

매개 변수 옵션:

-h, --help                             output usage information
-v, --verbose                          use verbose output
--json                                 use json output
-g, --resource-group <resource-group>  the name of the resource group
-l, --lb-name <lb-name>                the name of the load balancer
-n, --name <name>                      the name of the inbound NAT rule
-q, --quiet                            quiet mode, do not ask for delete confirmation
-s, --subscription <subscription>      the subscription identifier

공용 IP 주소를 관리하는 명령

network public-ip create [options] <resource-group> <name> <location>

공용 IP 리소스를 만듭니다. 공용 IP 리소스를 만들고 도메인 이름에 연결합니다.

azure network public-ip create -g myresourcegroup -n mytestpublicip1 -l eastus -d azureclitest -a "Dynamic"
info:    Executing command network public-ip create
+ Looking up the public ip "mytestpublicip1"
+ Creating public ip address "mytestpublicip1"
+ Looking up the public ip "mytestpublicip1"
data:    Id:                   /subscriptions/###############################/resourceGroups/myresourcegroup/providers/Microsoft.Network/publicIPAddresses/mytestpublicip1
data:    Name:                 mytestpublicip1
data:    Type:                 Microsoft.Network/publicIPAddresses
data:    Location:             eastus
data:    Provisioning state:   Succeeded
data:    Allocation method:    Dynamic
data:    Idle timeout:         4
data:    Domain name label:    azureclitest
data:    FQDN:                 azureclitest.eastus.cloudapp.azure.com
info:    network public-ip create command OK

매개 변수 옵션:

-h, --help                                   output usage information
-v, --verbose                                use verbose output
--json                                       use json output
-g, --resource-group <resource-group>        the name of the resource group
-n, --name <name>                            the name of the public ip
-l, --location <location>                    the location
-d, --domain-name-label <domain-name-label>  the domain name label.
This set DNS to <domain-name-label>.<location>.cloudapp.azure.com
-a, --allocation-method <allocation-method>  the allocation method [Static][Dynamic]
-i, --idletimeout <idletimeout>              the idle timeout in minutes
-f, --reverse-fqdn <reverse-fqdn>            the reverse fqdn
-t, --tags <tags>                            the list of tags.
Can be multiple. In the format of "name=value".
Name is required and value is optional.
For example, -t tag1=value1;tag2
-s, --subscription <subscription>            the subscription identifier

network public-ip set [options] <resource-group> <name>

기존 공용 IP 리소스의 속성을 업데이트합니다. 다음 예제에서는 공용 IP 주소를 Dynamic에서 Static으로 변경했습니다.

azure network public-ip set -g group-1 -n mytestpublicip1 -d azureclitest -a "Static"
info:    Executing command network public-ip set
+ Looking up the public ip "mytestpublicip1"
+ Updating public ip address "mytestpublicip1"
+ Looking up the public ip "mytestpublicip1"
data:    Id:                   /subscriptions/###############################/resourceGroups/myresourcegroup/providers/Microsoft.Network/publicIPAddresses/mytestpublicip1
data:    Name:                 mytestpublicip1
data:    Type:                 Microsoft.Network/publicIPAddresses
data:    Location:             eastus
data:    Provisioning state:   Succeeded
data:    Allocation method:    Static
data:    Idle timeout:         4
data:    IP Address:           (static IP address)
data:    Domain name label:    azureclitest
data:    FQDN:                 azureclitest.eastus.cloudapp.azure.com
info:    network public-ip set command OK

매개 변수 옵션:

-h, --help                                   output usage information
-v, --verbose                                use verbose output
--json                                       use json output
-g, --resource-group <resource-group>        the name of the resource group
-n, --name <name>                            the name of the public ip
-d, --domain-name-label [domain-name-label]  the domain name label.
This set DNS to <domain-name-label>.<location>.cloudapp.azure.com
-a, --allocation-method <allocation-method>  the allocation method [Static][Dynamic]
-i, --idletimeout <idletimeout>              the idle timeout in minutes
-f, --reverse-fqdn [reverse-fqdn]            the reverse fqdn
-t, --tags <tags>                            the list of tags.
Can be multiple. In the format of "name=value".
Name is required and value is optional.
For example, -t tag1=value1;tag2
--no-tags                                    remove all existing tags
-s, --subscription <subscription>            the subscription identifier

network public-ip list [options] <resource-group>

리소스 그룹 내의 모든 공용 IP 리소스를 나열합니다.

azure network public-ip list -g myresourcegroup

info:    Executing command network public-ip list
+ Getting the public ip addresses
data:    Name             Location  Allocation  IP Address    Idle timeout  DNS Name
data:    ---------------  --------  ----------  ------------  ------------  -------------------------------------------
data:    mypubip5         westus    Dynamic                   4             "domain name".westus.cloudapp.azure.com
data:    myPublicIP       eastus    Dynamic                   4             "domain name".eastus.cloudapp.azure.com
data:    mytestpublicip   eastus    Dynamic                   4             "domain name".eastus.cloudapp.azure.com
data:    mytestpublicip1  eastus   Static (Static IP address) 4             azureclitest.eastus.cloudapp.azure.com

매개 변수 옵션:

-h, --help                             output usage information
-v, --verbose                          use verbose output
--json                                 use json output
-g, --resource-group <resource-group>  the name of the resource group
-s, --subscription <subscription>      the subscription identifier

network public-ip show [options] <resource-group> <name>

리소스 그룹 내 공용 IP 리소스에 대한 공용 IP 속성을 표시합니다.

azure network public-ip show -g myresourcegroup -n mytestpublicip

info:    Executing command network public-ip show
+ Looking up the public ip "mytestpublicip1"
data:    Id:                   /subscriptions/###############################/resourceGroups/myresourcegroup/providers/Microsoft.Network/publicIPAddresses/mytestpublicip
data:    Name:                 mytestpublicip
data:    Type:                 Microsoft.Network/publicIPAddresses
data:    Location:             eastus
data:    Provisioning state:   Succeeded
data:    Allocation method:    Static
data:    Idle timeout:         4
data:    IP Address:           (static IP address)
data:    Domain name label:    azureclitest
data:    FQDN:                 azureclitest.eastus.cloudapp.azure.com
info:    network public-ip show command OK

매개 변수 옵션:

-h, --help                             output usage information
-v, --verbose                          use verbose output
--json                                 use json output
-g, --resource-group <resource-group>  the name of the resource group
-n, --name <name>                      the name of the public IP
-s, --subscription <subscription>      the subscription identifier


network public-ip delete [options] <resource-group> <name>

공용 IP 리소스를 삭제합니다.

azure network public-ip delete -g group-1 -n mypublicipname
info:    Executing command network public-ip delete
+ Looking up the public ip "mypublicipname"
Delete public ip address "mypublicipname"? [y/n] y
+ Deleting public ip address "mypublicipname"
info:    network public-ip delete command OK

매개 변수 옵션:

-h, --help                             output usage information
-v, --verbose                          use verbose output
--json                                 use json output
-g, --resource-group <resource-group>  the name of the resource group
-n, --name <name>                      the name of the public IP
-q, --quiet                            quiet mode, do not ask for delete confirmation
-s, --subscription <subscription>      the subscription identifier

네트워크 인터페이스를 관리하는 명령

network nic create [options] <resource-group> <name> <location>

부하 분산 장치에 사용하거나 Virtual Machine에 연결할 수 있는 NIC(네트워크 인터페이스)라고 하는 리소스를 만듭니다.

azure network nic create -g myresourcegroup -l eastus -n testnic1 --subnet-name subnet-1 --subnet-vnet-name myvnet

info:    Executing command network nic create
+ Looking up the network interface "testnic1"
+ Looking up the subnet "subnet-1"
+ Creating network interface "testnic1"
+ Looking up the network interface "testnic1"
data:    Id:                     /subscriptions/c4a17ddf-aa84-491c-b6f9-b90d882299f7/resourceGroups/group-1/providers/Microsoft.Network/networkInterfaces/testnic1
data:    Name:                   testnic1
data:    Type:                   Microsoft.Network/networkInterfaces
data:    Location:               eastus
data:    Provisioning state:     Succeeded
data:    IP configurations:
data:       Name:                         NIC-config
data:       Provisioning state:           Succeeded
data:       Private IP address:           10.0.0.5
data:       Private IP Allocation Method: Dynamic
data:       Subnet:                       /subscriptions/c4a17ddf-aa84-491c-b6f9-b90d882299f7/resourceGroups/group-1/providers/Microsoft.Network/virtualNetworks/myVNET/subnets/Subnet-1

매개 변수 옵션:

-h, --help                                                       output usage information
-v, --verbose                                                    use verbose output
--json                                                           use json output
-g, --resource-group <resource-group>                            the name of the resource group
-n, --name <name>                                                the name of the network interface
-l, --location <location>                                        the location
-w, --network-security-group-id <network-security-group-id>      the network security group identifier.
e.g. /subscriptions/<subscription-id>/resourceGroups/<resource-group-name>/providers/Microsoft.Network/networkSecurityGroups/<nsg-name>
-o, --network-security-group-name <network-security-group-name>  the network security group name.
This network security group must exist in the same resource group as the nic.
Please use network-security-group-id if that is not the case.
-i, --public-ip-id <public-ip-id>                                the public IP identifier.
e.g. /subscriptions/<subscription-id>/resourceGroups/<resource-group-name>/providers/Microsoft.Network/publicIPAddresses/<public-ip-name>
-p, --public-ip-name <public-ip-name>                            the public IP name.
This public ip must exist in the same resource group as the nic.
Please use public-ip-id if that is not the case.
-a, --private-ip-address <private-ip-address>                    the private IP address
-u, --subnet-id <subnet-id>                                      the subnet identifier.
e.g. /subscriptions/<subscription-id>/resourceGroups/<resource-group-name>/providers/Microsoft.Network/virtualNetworks/<vnet-name>/subnets/<subnet-name>
--subnet-name <subnet-name>                                  the subnet name
-m, --subnet-vnet-name <subnet-vnet-name>                        the vnet name under which subnet-name exists
-t, --tags <tags>                                                the comma separated list of tags.
Can be multiple. In the format of "name=value".
Name is required and value is optional.
For example, -t tag1=value1;tag2
-s, --subscription <subscription>                                the subscription identifier
data:
info:    network nic create command OK

network nic set [options] <resource-group> <name>

network nic list [options] <resource-group>
network nic show [options] <resource-group> <name>
network nic delete [options] <resource-group> <name>

네트워크 보안 그룹을 관리하는 명령

network nsg create [options] <resource-group> <name> <location>
network nsg set [options] <resource-group> <name>
network nsg list [options] <resource-group>
network nsg show [options] <resource-group> <name>
network nsg delete [options] <resource-group> <name>

네트워크 보안 그룹 규칙을 관리하는 명령

network nsg rule create [options] <resource-group> <nsg-name> <name>
network nsg rule set [options] <resource-group> <nsg-name> <name>
network nsg rule list [options] <resource-group> <nsg-name>
network nsg rule show [options] <resource-group> <nsg-name> <name>
network nsg rule delete [options] <resource-group> <nsg-name> <name>

트래픽 관리자 프로필을 관리하는 명령

network traffic-manager profile create [options] <resource-group> <name>
network traffic-manager profile set [options] <resource-group> <name>
network traffic-manager profile list [options] <resource-group>
network traffic-manager profile show [options] <resource-group> <name>
network traffic-manager profile delete [options] <resource-group> <name>
network traffic-manager profile is-dns-available [options] <resource-group> <relative-dns-name>

트래픽 관리자 엔드포인트를 관리하는 명령

network traffic-manager profile endpoint create [options] <resource-group> <profile-name> <name> <endpoint-location>
network traffic-manager profile endpoint set [options] <resource-group> <profile-name> <name>
network traffic-manager profile endpoint delete [options] <resource-group> <profile-name> <name>

가상 네트워크 게이트웨이를 관리하는 명령

network gateway list [options] <resource-group>

리소스 공급자 등록

Resource Manager에 현재 등록된 공급자 나열

provider list [options]

요청한 공급자 네임스페이스에 대한 자세한 정보 표시

provider show [options] <namespace>

구독에 공급자 등록

provider register [options] <namespace>

구독에 공급자 등록 취소

provider unregister [options] <namespace>

리소스

리소스 그룹에 리소스 만들기

resource create [options] <resource-group> <name> <resource-type> <location> <api-version>

템플릿 또는 매개 변수 없이 리소스 그룹의 리소스 업데이트

resource set [options] <resource-group> <name> <resource-type> <properties> <api-version>

리소스 나열

resource list [options] [resource-group]

리소스 그룹 또는 구독 내에서 한 리소스 가져오기

resource show [options] <resource-group> <name> <resource-type> <api-version>

리소스 그룹의 리소스 삭제

resource delete [options] <resource-group> <name> <resource-type> <api-version>

Azure 역할

모든 사용 가능한 역할 정의 가져오기

role list [options]

사용 가능한 역할 정의 가져오기

role show [options] [name]

역할 할당을 관리하는 명령

role assignment create [options] [objectId] [upn] [mail] [spn] [role] [scope] [resource-group] [resource-type] [resource-name]
role assignment list [options] [objectId] [upn] [mail] [spn] [role] [scope] [resource-group] [resource-type] [resource-name]
role assignment delete [options] [objectId] [upn] [mail] [spn] [role] [scope] [resource-group] [resource-type] [resource-name]

스토리지 개체

Storage 계정을 관리하는 명령

storage account list [options]
storage account show [options] <name>
storage account create [options] <name>
storage account set [options] <name>
storage account delete [options] <name>

Storage 계정 키를 관리하는 명령

storage account keys list [options] <name>
storage account keys renew [options] <name>

스토리지 연결 문자열을 표시하는 명령

storage account connectionstring show [options] <name>

스토리지 컨테이너를 관리하는 명령

storage container list [options] [prefix]
storage container show [options] [container]
storage container create [options] [container]
storage container delete [options] [container]
storage container set [options] [container]

스토리지 컨테이너의 공유 액세스 서명을 관리하는 명령

storage container sas create [options] [container] [permissions] [expiry]

스토리지 컨테이너의 저장된 액세스 정책을 관리하는 명령

storage container policy create [options] [container] [name]
storage container policy show [options] [container] [name]
storage container policy list [options] [container]
storage container policy set [options] [container] [name]
storage container policy delete [options] [container] [name]

스토리지 BLOB를 관리하는 명령

storage blob list [options] [container] [prefix]
storage blob show [options] [container] [blob]
storage blob delete [options] [container] [blob]
storage blob upload [options] [file] [container] [blob]
storage blob download [options] [container] [blob] [destination]

BLOB 복사 작업을 관리하는 명령

storage blob copy start [options] [sourceUri] [destContainer]
storage blob copy show [options] [container] [blob]
storage blob copy stop [options] [container] [blob] [copyid]

스토리지 BLOB의 공유 액세스 서명을 관리하는 명령

storage blob sas create [options] [container] [blob] [permissions] [expiry]

스토리지 파일 공유를 관리하는 명령

storage share create [options] [share]
storage share show [options] [share]
storage share delete [options] [share]
storage share list [options] [prefix]

스토리지 파일을 관리하는 명령

storage file list [options] [share] [path]
storage file delete [options] [share] [path]
storage file upload [options] [source] [share] [path]
storage file download [options] [share] [path] [destination]

스토리지 파일 디렉터리를 관리하는 명령

storage directory create [options] [share] [path]
storage directory delete [options] [share] [path]

스토리지 대기열을 관리하는 명령

storage queue create [options] [queue]
storage queue list [options] [prefix]
storage queue show [options] [queue]
storage queue delete [options] [queue]

스토리지 대기열의 공유 액세스 서명을 관리하는 명령

storage queue sas create [options] [queue] [permissions] [expiry]

스토리지 대기열의 공유 액세스 정책을 관리하는 명령

storage queue policy create [options] [queue] [name]
storage queue policy show [options] [queue] [name]
storage queue policy list [options] [queue]
storage queue policy set [options] [queue] [name]
storage queue policy delete [options] [queue] [name]

스토리지 로깅 속성을 관리하는 명령

storage logging show [options]
storage logging set [options]

Storage 메트릭 속성을 관리하는 명령

storage metrics show [options]
storage metrics set [options]

스토리지 테이블을 관리하는 명령

storage table create [options] [table]
storage table list [options] [prefix]
storage table show [options] [table]
storage table delete [options] [table]

스토리지 테이블의 공유 액세스 서명을 관리하는 명령

storage table sas create [options] [table] [permissions] [expiry]

스토리지 테이블의 공유 액세스 정책을 관리하는 명령

storage table policy create [options] [table] [name]
storage table policy show [options] [table] [name]
storage table policy list [options] [table]
storage table policy set [options] [table] [name]
storage table policy delete [options] [table] [name]

태그

태그 추가

tag create [options] <name> <value>

전체 태그 또는 태그 값 제거

tag delete [options] <name> <value>

태그 정보 나열

tag list [options]

태그 가져오기

tag show [options] [name]

Virtual Machines

VM 만들기

vm create [options] <resource-group> <name> <location> <os-type>

기본 리소스를 사용하여 VM 만들기

vm quick-create [options] <resource-group> <name> <location> <os-type> <image-urn> <admin-username> <admin-password

CLI 0.10 버전부터 일부 인기 있는 Marketplace 이미지에 대한 image-urn으로 "UbuntuLTS" 또는 "Win2012R2Datacenter"와 같은 짧은 별칭을 제공할 수 있습니다. 옵션으로 azure help vm quick-create를 실행합니다. 또한 0.10 버전부터 azure vm quick-create 는 선택한 영역에서 사용 가능한 경우 기본적으로 Premium Storage를 사용합니다.

계정 내에서 가상 머신 나열

vm list [options]

리소스 그룹 내 한 가상 머신 가져오기

vm show [options] <resource-group> <name>

리소스 그룹 내 한 가상 머신 삭제

vm delete [options] <resource-group> <name>

리소스 그룹 내 한 가상 머신 종료

vm stop [options] <resource-group> <name>

리소스 그룹 내 한 가상 머신 다시 시작

vm restart [options] <resource-group> <name>

리소스 그룹 내 한 가상 머신 시작

vm start [options] <resource-group> <name>

리소스 그룹 내 한 가상 머신을 종료하고 컴퓨팅 리소스 해제

vm deallocate [options] <resource-group> <name>

사용 가능한 가상 머신 크기 나열

vm sizes [options]

VM을 OS 이미지 또는 VM 이미지로 캡처

vm capture [options] <resource-group> <name> <vhd-name-prefix>

VM의 상태를 일반화됨으로 설정

vm generalize [options] <resource-group> <name>

VM의 인스턴스 보기 가져오기

vm get-instance-view [options] <resource-group> <name>

Virtual Machine에서 원격 데스크톱 액세스 또는 SSH 설정을 다시 설정하고 관리자 또는 sudo 권한이 있는 계정의 암호를 다시 설정할 수 있습니다.

vm reset-access [options] <resource-group> <name>

새 데이터로 VM 업데이트

vm set [options] <resource-group> <name>

Virtual Machine 데이터 디스크를 관리하는 명령

vm disk attach-new [options] <resource-group> <vm-name> <size-in-gb> [vhd-name]
vm disk detach [options] <resource-group> <vm-name> <lun>
vm disk attach [options] <resource-group> <vm-name> [vhd-url]

VM 리소스 확장을 관리하는 명령

vm extension set [options] <resource-group> <vm-name> <name> <publisher-name> <version>
vm extension get [options] <resource-group> <vm-name>

도커 Virtual Machine을 관리하는 명령

vm docker create [options] <resource-group> <name> <location> <os-type>

VM 이미지를 관리하는 명령

vm image list-publishers [options] <location>
vm image list-offers [options] <location> <publisher>
vm image list-skus [options] <location> <publisher> <offer>
vm image list [options] <location> <publisher> [offer] [sku]