Azure / Azure/azure-cli

Allow setting logo for app registrations

Open
#32,944 4 comments 0 reactions 1 assignee Claimed by @jiasli View on GitHub
act-identity-squad ARM Auto-Assign customer-reported feature-request Graph Service Attention Similar-Issue
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

**Related command**
`az ad app create`

**Is your feature request related to a problem? Please describe.**
Currently it is very unintuitive to add a logo image to a app registration.

**Describe the solution you'd like**
`--logo "@path/to/logo.png"`

**Describe alternatives you've considered**
Using the (Power)shell's HTTP client because `az rest` does not seem to work with images.

```
$graphJwt = az account get-access-token --resource-type ms-graph | ConvertFrom-Json -Depth 100
$headers = @{
"Authorization" = "Bearer $($graphJwt.accessToken)"
"Content-Type" = "image/png"
}
$bytes = [System.IO.File]::ReadAllBytes($logo)
Invoke-RestMethod -Uri "https://graph.microsoft.com/v1.0/applications/$($app.id)/logo" -Method PUT -Body $bytes -Headers $headers
```

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.