1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

背景

Azure Samples はとても便利です。

便利なんですが、お財布には優しくなかったりします。

ってことで、節約術の記録

英語版デモでの low cost 対応

以下の英語版のデモでは、お財布も気にして以下のように無償枠を利用できるようにしてくれてたりもします。
ってことで、

上記の場合、以下三点を Free で使えるようにしてくれてる。
ってことで、この辺を取り組むのも有り

  • App Service
  • Azure AI Search
  • Azure Document Intelligence

日本語版デモからはだいぶ乖離があるので、日本語版で Free にするのは手間かも(未調査

日本語デモ

  • Basic にするだけでも節約になります

以下のデモで、実際に変更する箇所を記録

App Service の例

App Serivce を Basic へ @ main.bicep
module appServicePlan 'core/host/appserviceplan.bicep' = {
  name: 'appserviceplan'
  scope: resourceGroup
  params: {
    name: !empty(appServicePlanName) ? appServicePlanName : '${abbrs.webServerFarms}${resourceToken}'
    location: location
    tags: tags
    sku: {
      name: 'S1' # ここを、'B1' で Basic 
      capacity: 1
    }
    kind: 'linux'
  }
}

AI Search の例

AI Search を Basic へ @main.bicep
module searchService 'core/search/search-services.bicep' = {
  name: 'search-service'
  scope: searchServiceResourceGroup
  params: {
    name: !empty(searchServiceName) ? searchServiceName : 'gptkb-${resourceToken}'
    location: searchServiceResourceGroupLocation
    tags: tags
    authOptions: {
      aadOrApiKey: {
        aadAuthFailureMode: 'http401WithBearerChallenge'
      }
    }
    sku: {
      name: searchServiceSkuName # 'basic' へ
    }
    semanticSearch: 'free'
  }
}

Cosmos DB

分けて書いてしまった・・

あとがき

Visual Studio Subscription Benefits の Azure 無償枠でデモを起ち上げようとしたけど、何故かデプロイが上手くいかない。
無償枠での制限なのか・・ :thinking:

1
0
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
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?