Upgrade to Pro — share decks privately, control downloads, hide ads and more …

AKSで学ぶBicepのアレコレ

Sponsored · Your Podcast. Everywhere. Effortlessly. Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
Avatar for Hifumi Takai Hifumi Takai
September 25, 2021

 AKSで学ぶBicepのアレコレ

Japan Azure User Group 11周年イベント
https://jazug.connpass.com/event/223585/

Avatar for Hifumi Takai

Hifumi Takai

September 25, 2021
Tweet

More Decks by Hifumi Takai

Other Decks in Technology

Transcript

  1. 自己紹介 • 株式会社エーピーコミュニケーションズ (フルリモート@北海道) • Twitter: @okinawa__noodle, GitHub: @thanaism •

    QiitaエンジニアフェスタAzure SWA優秀賞 「無料で使えるAzure Static Web AppsにGatsbyブログを爆速でデプロイする」 Hifumi Takai 趣味: 競プロ
  2. ARM param demoParam string = 'Contoso' "parameters": { "demoParam": {

    "type": "string", "defaultValue": "Contoso" } } Bicep 👍
  3. productionを目指すと重厚になる AKSデプロイに絡む要素は……🙄 • Azure CNI(vnet/subnet) • Azure Container Registry •

    Key Vault • Managed Database • Application Gateway • Log Analytics • Add-ons(今日あとで取り上げる)
  4. ①の原因 事前にappgwを デプロイ する する しない しない identity ブロック省略 する

    しない する しない 成否 成功する 成功する 失敗する 成功する addonProfiles -> ingressApplicationGateway -> identity という ブロックを省略してはいけないパターンがある
  5. ②の詳細 This expression is being used in an assignment to

    the "name" property of the "Microsoft.ManagedIdentity/userAssignedIdentities" type, which requires a value that can be calculated at the start of the deployment. Properties of aks which can be calculated at the start include "name". ↑動的にして依存関係もたせるとエラーになる(モジュール化が必須) ↑静的だが依存関係を解決できない(existingにはdependsOn使えない)