1
0

VS Code から Bicep で Logic Apps デプロイ

Last updated at Posted at 2023-06-18

Bicep とは ARM に対して上腕二頭筋らしい。

VS Code から Bicep を使う準備

Bicep の開発およびデプロイ環境のセットアップ - Azure Resource Manager | Microsoft Learn
Bicep - Visual Studio Marketplace
Bicep ファイルを作成する - Visual Studio Code - Azure Resource Manager | Microsoft Learn

上に従いセットアップ。

書いてみる

ひとまず書いてみる。

image.png

視覚化

視覚化できる。
image.png

デプロイ

ひとまずデプロイしてみよう。
image.png

クイック スタート

以下に従う。

クイック スタート - Bicep を使用して従量課金ロジック アプリ ワークフローを作成する - Azure Logic Apps | Microsoft Learn

azure-quickstart-templates/quickstarts/microsoft.logic/logic-app-create/main.bicep at master · Azure/azure-quickstart-templates · GitHub

main.parameter.json
{
  "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json#",
  "contentVersion": "1.0.0.0",
  "parameters": {
    "testUri": {
      "value": "https://azure.status.microsoft/status/"
    },
    "location": {
      "value": "japaneast"
    },
    "logicAppName": {
      "value": "mybiceptest"
    }
  }
}

逆コンパイル

ARM テンプレート JSON を Bicep に逆コンパイルする - Azure Resource Manager | Microsoft Learn

az bicep decompile --file logicapps.json

image.png

完成

image.png

Bicep でデプロイできました。

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