microsoft-azure

Kovair DevOps Azure Integration Plugin

microsoft-azure
Listen to this article

Azure Plugin Details

Plugin Version: 1.0.1
Last Update on: January 02, 2020

Overview

Microsoft Azure is a cloud computing service created by Microsoft for building, testing, deploying, and managing applications and services through Microsoft-managed data centers.

Azure Information:

More information can be found at Azure.

Version Supported:

This plugin was developed and tested against Azure CLI – 2.9

Plugin Operation:

    1. Create Resource Group
This operation allows to create Resource Group on Azure.

Input parameter(s):

ParameterIs MandatoryHelp Text
UsernametrueAzure Username
PasswordtrueAzure Password.
NametrueResource Group Name
(Ref : https://docs.microsoft.com/en-us/cli/azure/group?view=azure-cli-latest#az-group-create).
LocationtrueResource Location
(Ref : https://azure.microsoft.com/en-us/global-infrastructure/locations/).
Other OptionsfalseOther Parameters
(Ref : https://docs.microsoft.com/en-us/cli/azure/group?view=azure-cli-latest#az-group-create)

Output Parameter(s):

ParameterHelp Text
Output LogOutput log.
Group IdResource Group Id.
Location IdLocation Id.
Group NameResource Group Name.
AzureStatusStatus of the Operation
    1. Create AppService Plan
This operation allows to create AppService in Azure.

Input parameter(s):

ParameterIs MandatoryHelp Text
UsernametrueAzure Username
PasswordtrueAzure Password.
Resource Group NametrueResource Group Name.
Plan NametruePlan Name.
Other OptionsfalseOther Parameters
(Ref : https://docs.microsoft.com/en-us/cli/azure/appservice/plan?view=azure-cli-latest#az-appservice-plan-create)

Output Parameter(s):

ParameterIs MandatoryHelp Text
UsernametrueAzure Username
PasswordtrueAzure Password.
Resource Group NametrueResource Group Name.
Plan NametruePlan Name.
Other OptionsfalseOther Parameters
(Ref : https://docs.microsoft.com/en-us/cli/azure/appservice/plan?view=azure-cli-latest#az-appservice-plan-create)
    1. Create WebApp
This operation allows to create WebApp in Azure.

Input parameter(s):

ParameterIs MandatoryHelp Text
UsernametrueAzure Username
PasswordtrueAzure Password.
App NametrueWebApp Name.
Resource Group NametrueResource Group Name.
Plan NametruePlan Name.
Other OptionsfalseOther Parameters
(Ref : https://docs.microsoft.com/en-us/cli/azure/webapp?view=azure-cli-latest#az-webapp-create)

Output Parameter(s):

ParameterHelp Text
Output LogOutput Log.
WebApp IdWebApp Id.
Host NameHost Name.
Ftp UrlFtp Url.
StateState.
LocationWebApp Location.
AzureStatusStatus of the Operation
    1. Deploy WebApp
This operation allows to deploy WebApp in Azure.

Input parameter(s):

ParameterIs MandatoryHelp Text
UsernametrueAzure Username
PasswordtrueAzure Password.
App NametrueWebApp Name.
Local WebApp PathtrueWeb Application(to be deployed) path in local machine.
LocationfalseLocation.
Other OptionsfalseOther Parameters
(Ref : https://docs.microsoft.com/en-us/cli/azure/webapp?view=azure-cli-latest#az-webapp-up)

Output parameter(s):

ParameterHelp Text
Output LogOutput Log.
URLWebApp URL.
OSOperating System.
Runtime VersionRuntime Version.
SKUSKU.
AzureStatusStatus of the Operation
    1. Upload Blob
This operation allows to upload file in Azure blob storage.

Input parameter(s):

ParameterIs MandatoryHelp Text
UsernametrueAzure Username
PasswordtrueAzure Password.
Container NametrueContainer Name.
Account NametrueAccount Name.
File PathtrueLocal File Path.
Blob NametrueBlob Name.
Other OptionsfalseOther Parameters
(Ref : https://docs.microsoft.com/en-us/cli/azure/storage/blob?view=azure-cli-latest#az-storage-blob-upload)

Output parameter(s):

ParameterHelp Text
Output LogOutput Log.
Blob etagBlob etag.
Last Modified OnLast Modified On.
AzureStatusStatus of the Operation
    1. Download Blob
This operation allows to download file from Azure blob storage.

Input parameter(s):

ParameterIs MandatoryHelp Text
UsernametrueAzure Username
PasswordtrueAzure Password.
Container NametrueStorage Container Name.
Account NametrueStorage Account Name.
File PathtrueProvide Local File Path with the name of the file to be downloaded along with file extension.
Blob NametrueBlob Name.
Other OptionsfalseOther Parameters
(Ref : https://docs.microsoft.com/en-us/cli/azure/storage/blob?view=azure-cli-latest#az-storage-blob-download)

Output parameter(s):

ParameterHelp Text
Output LogOutput Log.
AzureStatusStatus of the Operation

Pass/Fail Condition:

StatusConditionMethod
PassedOutputlog should contain Json String with “id”,”location”,”managedBy”,”name”,”type”Create Resource Group
FailedIf Outputlog does not contain Json String with “id”,”location”,”managedBy”,”name”,”type”.Create Resource Group
PassedOutputlog should contain Json String with “id”,”location”,”name”,”status”Create AppService Plan
FailedOutputlog does not contain Json String with “id”,”location”,”name”,”status”Create AppService Plan
PassedOutputlog should contain Json String with “id”,”defaultHostName”,”ftpPublishingUrl”,”location”,”state”Create WebApp
FailedOutputlog does not contain Json String with “id”,”defaultHostName”,”ftpPublishingUrl”,”location”,”state”Create WebApp
PassedOutputlog should not contain Json String with “URL”,”os”,”runtime_version”,”sku”.Deploy WebApp
FailedIf Outputlog does not contain Json String with “URL”,”os”,”runtime_version”,”sku”.Deploy WebApp
PassedOutputlog should not contain Json String with “etag”,”lastModified”.Upload Blob
FailedIf outputlog does not contain Json String with “etag”,”lastModified”.Upload Blob

Limitations:

  1. This plugin will work in windows and linux environment.
  2. Azure CLI should be installed
    (https://docs.microsoft.com/en-us/cli/azure/install-azure-cli?view=azure-cli-latest) in agent machine.
  3. The functionality solely depends on azure cli command, if the command behaviour changes the result may vary.

Release Details:

Azure: 1.0.0
Initial version with basic functionalities.

Contact us:

Yes, I accept the Privacy Statement and want to receive latest information from Kovair.
EnglishFrenchGermanItalianJapaneseSpanishChinese (Simplified)