Once you provide the required details click create and you will get windows PowerShell script to execute on the desired environment so that azure devops can communicate with the machine.
Note: Check the checkbox which says “use a personal access token in the script for authentication” else you will be asked the same at the time of script execution
- Copy the PowerShell script
- Open windows PowerShell as administrator
- Paste the script and press enter
Now you will be able to see your machine in deployment group.
Now let’s start to configure Release pipeline.
- Open Release under pipeline
- Click New Release Pipeline

- Select template as IIS website deployment

- Click on Add an artifact
- Select the project for which you desired to create CD
- Select the build branch which you create in CI

- Click on add. This will add the artifact.
- This artifact was developed when we configure CI in the previous blog (Publish Artifact)
- Stage name – Job name, you can give any name
- Configuration type – IIS Website
- Action – Create or Update
- Website Name – Your website name in IIS
- Display name – Name of Deployment group job
- Deployment group – Select the deployment group add previously for which we need to deploy.
- Artifact download – Artifact which contains our successfully build repo.
- Display name – Step display name (Manage IISWebsite)
- Physical path – System path for your website example – %SystemDrive%\inetpub\wwwroot\SitecoreDemo\Website
- Display name – Step display name (Deploy IIS Website/App:)
- Package or Folder – File path to the package or a folder generated by MSBuild or a compressed archive file. Here we have to select the archive file which we had create for CI in Publish Artifacts step. Click on […] and select the folder – I named it as “drop”.
After you select the folder then add “\*.zip” at the end of the path.
This means search any zip file under this folder as zip file contains our repo which we need to publish.
Once the above steps are done, click save and then click create release(on top right).
Post that it will start executing and show the progress step wise as follows:
Here you go – Successfully deployed.
For continuous deployment:
Go back to edit release
Click continuous deployment trigger button and enable the same.
So, congratulations on configuring the CD pipeline on Azure cloud along with me.
Happy coding! 😊{:}{:ja}
これは、Azure DevopsPart-1を使用したオンプレミスでのSitecoreCI / CDの実装の続きです。
AzureでCDを構成しましょう
展開グループ
デプロイメントグループは、エージェントがそれぞれにインストールされているデプロイメントターゲットマシンの論理セットです。 展開グループは物理環境を表します。 たとえば、「Dev」、「Test」、「UAT」、「Production」などです。
事実上、展開グループは、エージェントプールのように、エージェントの単なる別のグループです。
パイプラインの下のデプロイメントグループをクリックし、環境のデプロイメントグループ名と説明を入力します。

必要な詳細を入力したら、[作成]をクリックすると、Windows PowerShellスクリプトが目的の環境で実行され、紺碧のdevopsがマシンと通信できるようになります。

注:「認証にスクリプトで個人用アクセストークンを使用する」というチェックボックスをオンにすると、スクリプトの実行時に同じように求められます。
- PowerShellスクリプトをコピーする
- 管理者としてWindowsPowerShellを開きます
- スクリプトを貼り付けてEnterキーを押します

これで、展開グループ内のマシンを確認できるようになります。

それでは、リリースパイプラインの構成を始めましょう。
- パイプラインの下でリリースを開く
- [新しいリリースパイプライン]をクリックします

- IISWebサイトの展開としてテンプレートを選択します

- [アーティファクトの追加]をクリックします
- CDを作成するプロジェクトを選択します
- CIで作成するビルドブランチを選択します

- 追加をクリックします。 これにより、アーティファクトが追加されます。
- このアーティファクトは、前のブログ(アーティファクトの公開)でCIを構成したときに開発されました。
それでは、仕事を追加しましょう–
1. ステージ1または1のジョブ、2つのタスクをクリックすると、次の画面が表示されます-

- 芸名–ジョブ名、任意の名前を付けることができます
- 構成タイプ– IISWebサイト
- アクション–作成または更新
- Webサイト名–IISでのWebサイト名
2. IIS展開をクリックすると、次の画面が表示されます-

- 表示名–デプロイメントグループジョブの名前
- 展開グループ–展開する必要がある以前に追加した展開グループを選択します。
- アーティファクトのダウンロード–正常にビルドされたリポジトリを含むアーティファクト。
3. IIS Web App Manageをクリックすると、次の画面が表示されます-

- 表示名–ステップ表示名(IISWebサイトの管理)
- 物理パス–Webサイトのシステムパス
例-%SystemDrive%\ inetpub \ wwwroot \ SitecoreDemo \ Website
4. IIS Web App Deployをクリックすると、次の画面が表示されます-

- 表示名–ステップ表示名(IIS Webサイト/アプリの展開:)
- パッケージまたはフォルダー-MSBuildまたは圧縮アーカイブファイルによって生成されたパッケージまたはフォルダーへのファイルパス。
ここでは、アーティファクトの公開ステップでCI用に作成したアーカイブファイルを選択する必要があります。
[…]をクリックしてフォルダを選択します–私はそれを「ドロップ」と名付けました。

フォルダを選択したら、パスの最後に「\ *。zip」を追加します。
これは、zipファイルに公開する必要のあるリポジトリが含まれているため、このフォルダーの下にあるzipファイルを検索することを意味します。

上記の手順が完了したら、[保存]をクリックし、[リリースの作成](右上)をクリックします。
実行を開始し、次のように段階的に進行状況を表示することを投稿します。

さあ、展開します–正常に展開されました。
継続的デプロイの場合:
リリースの編集に戻る
継続的デプロイのトリガーボタンをクリックして、同じものを有効にします。

だから、私と一緒にAzureクラウドでCDパイプラインを構成しておめでとうございます。
ハッピーコーディング! 😊
{:}