LoginSignup
10
3

More than 5 years have passed since last update.

Azureでlinux-data-science-vm-ubuntuを起動するときに"Legal terms have not been accepted for this item on this subscription."が出る場合の対処

Posted at

概要

https://qiita.com/keisuke-umezawa/items/fcf5d00474e244217a5e
で環境構築中に出たエラーへの対処です。
要はAPIでVM作成するのに、利用規約に同意する必要があるってことです。利用規約をよく読んでご対応ください。

エラーの例

$ az vm create --location ${AZ_LOCATION} --resource-group ${AZ_RESOURCE_GROUP} --name ${AZ_USER}-vm --admin-username ${AZ_USER} --public-ip-address-dns-name ${AZ_USER} --image microsoft-ads:linux-data-science-vm-ubuntu:linuxdsvmubuntu:latest --size Standard_NC6 --generate-ssh-keys
Azure Error: MarketplacePurchaseEligibilityFailed
Message: Marketplace purchase eligibilty check returned errors. See inner errors for details.
Exception Details:
Error Code: BadRequest
Message: Offer with PublisherId: microsoft-ads, OfferId: linux-data-science-vm-ubuntu cannot be purchased due to validation errors. See details for more information.[{"Legal terms have not been accepted for this item on this subscription. To accept legal terms using PowerShell, please use Get-AzureRmMarketplaceTerms and Set-AzureRmMarketplaceTerms API(https://go.microsoft.com/fwlink/?linkid=862451) or deploy via the Azure portal to accept the terms":"StoreApi"}]
$

手順

  1. Azureポータルにログインする
  2. 左のサイドバーからすべてのサービスをクリック
  3. Marketplaceをクリック
  4. 検索ボックスに「linux-data-science-vm-ubuntu」を入力してEnter なぜか2つヒットします(区別つかない) スクリーンショット 2019-01-12 13.50.54.png
  5. 作成ボタンの下に「プログラムによるデプロイについて」というリンクが表示される方を選んで、そのリンクをクリックします。 スクリーンショット 2019-01-12 13.51.12.png
  6. 有効化ボタンをクリックして、次に保存ボタンをクリックすると規約に同意したことになり、エラーが解消します。 スクリーンショット 2019-01-12 13.54.16.png ※キャプチャは既に有効化済みのもの
10
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
10
3