Azure PowerShell コマンドを使用して空のクラウド サービス (クラシック) コンテナーを作成する

重要

現在、Cloud Services (クラシック) は新しいお客様に対して非推奨となっており、2024 年 8 月 31 日に、すべてのお客様に対して廃止される予定です。 新しいデプロイでは、新しい Azure Resource Manager ベースのデプロイ モデル、 Azure Cloud Services (延長サポート) を使用してください。

この記事では、Azure PowerShell コマンドレットを使用して Cloud Services コンテナーを簡単に作成する方法について説明します。 次の手順に従ってください。

  1. Azure PowerShell のダウンロード ページから Microsoft Azure PowerShell コマンドレットをインストールします。

  2. PowerShell コマンド プロンプトを開きます。

  3. Add-AzureAccount を使用してサインインします。

    Note

    Azure PowerShell コマンドレットをインストールして、Azure サブスクリプションに接続する手順の詳細については、「 Azure PowerShell をインストールして構成する方法」を参照してください。

  4. New-AzureService コマンドレットを使用し、空の Azure クラウド サービス コンテナーを作成します。

    New-AzureService [-ServiceName] <String> [-AffinityGroup] <String> [[-Label] <String>] [[-Description] <String>] [[-ReverseDnsFqdn] <String>] [<CommonParameters>]
    New-AzureService [-ServiceName] <String> [-Location] <String> [[-Label] <String>] [[-Description] <String>] [[-ReverseDnsFqdn] <String>] [<CommonParameters>]
    
  5. この例に従って、コマンドレットを呼び出します。

    New-AzureService -ServiceName "mytestcloudservice" -Location "Central US" -Label "mytestcloudservice"
    

Azure クラウド サービスの作成方法については、次のコマンドレットを実行します。

Get-help New-AzureService

次のステップ