About This Page
This page is part of the Azure documentation. It contains code examples and configuration instructions for working with Azure services.
Bias Analysis
Bias Types:
⚠️
powershell_heavy
⚠️
windows_first
⚠️
missing_linux_example
⚠️
windows_tools
Summary:
The documentation page demonstrates a Windows bias by providing only PowerShell examples for certificate operations, referencing PowerShell and Azure CLI as alternatives but not providing CLI (cross-platform) examples. All step-by-step instructions for resolving issues are oriented around the Azure Portal UI, which is platform-agnostic but often aligns with Windows user workflows. There is a lack of Linux-specific or cross-platform command-line examples, and PowerShell is presented as the default scripting tool for automation, with no Bash or Azure CLI equivalents shown.
Recommendations:
- Provide Azure CLI (az) command examples alongside PowerShell for all certificate and Key Vault operations, ensuring parity for Linux and macOS users.
- Explicitly mention that PowerShell examples are for Windows and offer Bash/Azure CLI alternatives for cross-platform users.
- Where automation is discussed, include both PowerShell and Bash/CLI scripts to cover both Windows and Linux environments.
- Review all troubleshooting steps to ensure that none assume a Windows environment or toolset by default.
- Add a note at the beginning of the page clarifying that both PowerShell and Azure CLI can be used, and link to documentation for both.
Create pull request
Flagged Code Snippets
$appgw = Get-AzApplicationGateway -ResourceGroupName "<ResourceGroup>" -Name "<AppGatewayName>"
$password = ConvertTo-SecureString -String "<password>" -Force -AsPlainText
Set-AzApplicationGatewaySSLCertificate -Name "<oldcertname>" -ApplicationGateway $appgw -CertificateFile "<newcertPath>" -Password $password
Set-AzApplicationGateway -ApplicationGateway $appgw
$appgw = Get-AzApplicationGateway -ResourceGroupName "<ResourceGroup>" -Name "<AppGatewayName>"
$secret = Get-AzKeyVaultSecret -VaultName "<KeyVaultName>" -Name "<CertificateName>"
$secretId = $secret.Id.Replace($secret.Version, "")
$cert = Set-AzApplicationGatewaySslCertificate -ApplicationGateway $AppGW -Name "<CertificateName>" -KeyVaultSecretId $secretId
Set-AzApplicationGateway -ApplicationGateway $appgw
$appgw = Get-AzApplicationGateway -ResourceGroupName "<ResourceGroup>" -Name "<AppGatewayName>"
$password = ConvertTo-SecureString -String "<password>" -Force -AsPlainText
Set-AzApplicationGatewaySSLCertificate -Name "<oldcertname>" -ApplicationGateway $appgw -CertificateFile "<newcertPath>" -Password $password
Set-AzApplicationGateway -ApplicationGateway $appgw
$appgw = Get-AzApplicationGateway -ResourceGroupName "<ResourceGroup>" -Name "<AppGatewayName>"
$secret = Get-AzKeyVaultSecret -VaultName "<KeyVaultName>" -Name "<CertificateName>"
$secretId = $secret.Id.Replace($secret.Version, "")
$cert = Set-AzApplicationGatewaySslCertificate -ApplicationGateway $AppGW -Name "<CertificateName>" -KeyVaultSecretId $secretId
Set-AzApplicationGateway -ApplicationGateway $appgw