> For the complete documentation index, see [llms.txt](https://developer.harness.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.harness.io/continuous-delivery/use-continuous-delivery/deploy-services-on-different-platforms/azure/azure-faqs.md).

# Azure deployment FAQs

Frequently asked questions about Azure deployments.

This topic addresses frequently asked questions about Azure deployments in Harness.

<details>

<summary>Is this the right format to push a secret to the Azure key vault? secret.setVaule("azurevauly://avidentifier/pathToSecret", secretVaule)?</summary>

secret.setValue is not supported. Secrets can be referred to only using `secret.getValue("azurevauly://avidentifier/pathToSecret")` or `secret.getValue("secretIdentifierInHarness")`.

</details>

<details>

<summary>Does Harness support nested AD groups syncing on AD SCIM sync?</summary>

Enabling Azure AD provisioning in Harness allows user provisioning from Azure AD. Users directly provisioned require group assignment in Harness, while Azure AD group members' group assignments are managed in Azure AD. For more details, go to [Provision users and groups using Azure AD SCIM](https://developer.harness.io/harness-platform/use-harness-platform/platform-access-control/provision-users-and-groups-using-azure-ad-scim).

</details>

<details>

<summary>How do I pass --target-path to deploy the code into the different path in Azure Web App deployment?</summary>

Harness does not support any parameters to pass the target path.

</details>

<details>

<summary>How to deploy Azure SpringApps JAR via Harness CD?</summary>

Use the SSH deployment method and include a step to download the JAR.

</details>

<details>

<summary>What is the correct url format for Azure Git repo to be used in git ops repository?</summary>

The url format for the Azure git repo to be specified in gitOps repository is below:

```
https://someuser@dev.azure.com/someuser/someproject/_git/test.git
```

</details>

<details>

<summary>How can I deploy the application on a custom specified location in the Azure web app?</summary>

Harness does not support web app deployment to a custom-specified location in Azure. Alternatively, use the shell script step and the Azure CLI to pass the required argument.

</details>

<details>

<summary>How does support for Azure Logs as a Health Source in Harness contribute to service monitoring through Cloud Metrics and Cloud Logs?</summary>

Harness supports Azure Logs as a Health Source for Continuous Verification (CV), enabled for all accounts. Users can use Cloud Metrics and Cloud Logs to monitor their deployed service. For more information, see the [Azure Logs documentation](https://developer.harness.io/docs/service-reliability-management/monitored-services/health-source/azurelogs).

</details>

<details>

<summary>Does the Azure connector support service principals?</summary>

Yes. Harness supports System Assigned Managed Identity and User Assigned Managed Identity in the Azure Global and Government environments. The service principal maps to a managed identity.

</details>

<details>

<summary>Does Harness support Azure Container Apps?</summary>

No. Due to low customer demand, this is not on the roadmap. For more information, go to [CD integrations](https://developer.harness.io/continuous-delivery/new-to-continuous-delivery/cd-integrations.md).

</details>

<details>

<summary>Is there any internal or external documentation available for building and deploying updates for an Azure SQL Server database?</summary>

No. There is no prescribed way to do this; it requires custom scripts.

</details>

<details>

<summary>How to prepare Azure VMSS Deployment in Harness?</summary>

Harness provides a template specific to Azure VMSS Deployment which can be referred from the following [Custom Template Documentation](https://developer.harness.io/continuous-delivery/use-continuous-delivery/deploy-services-on-different-platforms/custom/custom-deployment-tutorial.md#azure-vmss-deployment-template-sample).

</details>

<details>

<summary>Why can I not deploy an ARM template?</summary>

If you are getting the below error when attempting to deploy ARM templates, it might be because `$schema` and `contentVersion` parameters have not been removed from the Parameters File yet. This is due to a limitation in the Azure Java SDK and REST API.

```
Status code 400, "{"error":{"code":"InvalidRequestContent","message":"The request content was invalid and could not be deserialized: 'Error converting value \"https://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json#\" to type 'Azure.Deployments.Core.Definitions.DeploymentParameterDefinition'. Path 'properties.parameters.$schema', line 1, position 6636.'."}}"
```

For an example of a valid Parameters File, go to [ARM parameter file](https://developer.harness.io/continuous-delivery/use-continuous-delivery/provision-infrastructure/azure-arm-provisioning.md#arm-parameter-file).

</details>

<details>

<summary>Why am I getting the error: "az command is not found"?</summary>

If you receive the below error:

```
az command not found
```

This indicates that the Azure CLI is not installed in the session. This typically happens when running a Shell Script step on the Delegate or when running a script in a CI Build Stage. To fix this, install the Azure CLI on the Delegate. For more information, go to [Add your custom tools](https://developer.harness.io/harness-platform/use-harness-platform/delegates/delegate/install-delegates/install-a-delegate-with-3-rd-party-tool-custom-binaries#add-your-custom-tools).

</details>

<details>

<summary>Does Harness support Azure Kubernetes Infrastructure for deployment targets?</summary>

Yes. Harness supports Azure Kubernetes Infrastructure for deployment targets.

For more information, go to [Deploy Azure ACR to Azure AKS](https://developer.harness.io/continuous-delivery/use-continuous-delivery/deploy-services-on-different-platforms/azure/azure-cd-quickstart.md).

</details>

<details>

<summary>Does Harness work with Azure Key Vault?</summary>

Yes. Harness supports Azure Key Vault, which also supports service principals via Managed Identity. Harness can fetch secrets from the Key Vault, but does not create secrets directly in the Key Vault.

For more information, go to [Add an Azure Key Vault secret manager](https://developer.harness.io/harness-platform/use-harness-platform/secrets/secrets-management/azure-key-vault).

</details>

<details>

<summary>Does Harness support deploying to VMs in Azure?</summary>

Yes. Harness supports the deployment of traditional (JAR, WAR, TAR, .ZIP) and Docker artifacts into Azure Managed VMs.

Harness can perform SSH deployments into Linux hosts managed by Azure.

For more information, go to:

* [VM deployments using SSH](https://developer.harness.io/continuous-delivery/use-continuous-delivery/deploy-services-on-different-platforms/traditional/ssh-ng.md)
* [Windows VM deployments using WinRM](https://developer.harness.io/continuous-delivery/use-continuous-delivery/deploy-services-on-different-platforms/traditional/win-rm-tutorial.md)

</details>

<details>

<summary>Can I deploy Azure Web Apps?</summary>

Yes. Harness can deploy a Docker image or non-containerized artifact for your Azure Web App. You can deploy to slots, perform traffic shifting, and swap slots. Harness supports common deployment strategies (basic, canary, and blue green).

For more information, go to [Azure Web Apps deployments](https://developer.harness.io/continuous-delivery/use-continuous-delivery/deploy-services-on-different-platforms/azure/azure-web-apps-tutorial.md).

</details>

<details>

<summary>What deployment strategies are supported?</summary>

Basic, canary, and blue green.

The Rolling strategy does not suit Azure Web App deployments, because they use slots for staging and production environments. The Rolling strategy uses a single environment and rolls out a new app version incrementally.

</details>

<details>

<summary>What limitations are there?</summary>

* App Service on Linux is not supported on the [Shared](https://azure.microsoft.com/pricing/details/app-service/plans/) pricing tier.
* Windows and Linux apps cannot be mixed in the same App Service plan.
* Within the same resource group, Windows and Linux apps cannot be mixed in the same region.
* Harness uses the Azure SDK among other methods and Authenticated proxy is not supported for Azure SDK. Consequently, you cannot use Azure connections for artifacts, machine images, and so on, that require proxy authentication. This is an Azure limitation, not a Harness limitation. This is a known Azure limitation with Java environment properties and their SDK.

</details>

<details>

<summary>How many Azure Web Apps execution steps are there?</summary>

There are 4 steps.

![Azure Web Apps execution steps](https://3694223630-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fy1JhZ4oKIppwY7d5AhPj%2Fuploads%2Fgit-blob-18fe5d4ad879a0f64ef27fe4dca9ed2b6ac061bf%2Fd0309c3510df58cc78c724f41b7da883076f2bf64c507e14ab083a0d8b6b1aad.png?alt=media)

Harness supports a basic Azure slot deployment, a canary deployment, and a blue green deployment of Azure Web Apps, as well as automated rollback for Azure Web App.

For more information, go to [Azure Web Apps deployments](https://developer.harness.io/continuous-delivery/use-continuous-delivery/deploy-services-on-different-platforms/azure/azure-web-apps-tutorial.md).

</details>

<details>

<summary>What is the correct deployment type for a Spring Boot JAR being deployed to Azure App Services in Harness?</summary>

The correct deployment type for a Spring Boot JAR being deployed to Azure App Services in Harness is Azure Web Apps.

</details>

<details>

<summary>What steps should be taken if the artifact shows up in the artifact feed but is not usable in the CD stage in Harness?</summary>

Verify that the artifact is of a supported type (for example, Maven or NuGet) and follows the correct naming conventions. Refactor the mvn publish command if necessary to ensure it targets the correct artifact feed. For more information, go to [CD artifact sources](https://developer.harness.io/continuous-delivery/use-continuous-delivery/cd-building-blocks/services/artifact-sources.md#package-type-support).

</details>

<details>

<summary>How can one publish a Maven artifact to the artifact feed instead of another repository in Harness?</summary>

One can modify the `pom.xml` file to configure the mvn publish command to push to the desired artifact feed. This might involve changing the repository settings in the `pom.xml` to point to the correct artifact feed.

</details>

<details>

<summary>Can I do an AZURE_VMSS deployment through Harness?</summary>

Yes. Configure the custom deployment template as described in the [Custom deployment tutorial](https://developer.harness.io/continuous-delivery/use-continuous-delivery/deploy-services-on-different-platforms/custom/custom-deployment-tutorial.md#azure-vmss-deployment-template-sample).

</details>

<details>

<summary>How to add a health check for Azure Slot deployment?</summary>

You can use a shell script to perform health checks after slot deployment.

</details>

<details>

<summary>How to pass Application Settings and Connection Strings for Azure App Service Configuration?</summary>

You can pass those in Harness Service under App Services Configuration.

</details>

<details>

<summary>How to deploy a Java Spring Boot application to Azure Web Apps using Azure Artifacts?</summary>

Azure Web Apps does not directly support JAR files as deployable artifacts. The pipeline should be modified to use a supported deployment method, such as WAR files or containers.

</details>

{% @harness-feedback/feedback %}
