Azure / Azure/PSRule.Rules.Azure

Azure.AppService.UseHTTPS reports fail although app service is deployed with https only

Open
#1,919 9 comments 0 reactions 0 assignees View on GitHub
bug integration: azgovviz rule: app-service
Dominant language
PowerShell
Stars
447
Forks
109
Avg merge
2d 19h
Merged PRs (30d)
23

Description

**Description of the issue**

We have (via IaC) deployed app services with the property 'https_only = true' in Terraform F CAF code.
When reviewing the deployed resource in the Azure portal is is actually set to HTTP Only, as can be seen in the screenshot
![image](https://user-images.githubusercontent.com/84451910/204779971-e6a7e420-c37b-4566-afa2-6f73eef1f6d7.png)

We see the same incorrect PSRule results on multiple app services deployed with similar code and with the HTTPS Only property set.

Steps to reproduce the issue:

```powershell

```

**Expected behaviour**

I would expect that app service resources with HTTPS only would flag as passed instead of failed.

**Error output**

```text

```

**Module in use and version:**

- Module: PSRule.Rules.Azure
- Version: 1.21.2

Captured output from `$PSVersionTable`:

```text

```

**Additional context**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.