Azure / Azure/azure-powershell

Failure when Install-Module az when operating in Constrained Language Mode

Open
#22,799 3 comments 0 reactions 1 assignee Claimed by @dolauli View on GitHub
Azure PS Team bug customer-reported Investigate :mag:
Dominant language
C#
Stars
4.8k
Forks
4.3k
Avg merge
3d 14h
Merged PRs (30d)
54

Description

### Description

Latest version installed from MSI

Open PowerShell Core

Issue Install-Module az

Receive an error regarding Az.Advisor being of different language mode than the module.

The machine is operating with DeviceGuard configured; I am able to successfully load some of the modules specifically - such as Az.Accounts etc so this would appear to be a signing consistency issue?

### Issue script & Debug output

```PowerShell
N/A
```

### Environment data

```PowerShell
PSVersion 7.3.4
PSEdition Core
OS Microsoft Windows 10.0.19045
```

### Module versions

```PowerShell
Latest
```

### Error output

_No response_

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.