question

Subramanyamk-9132 avatar image
0 Votes"
Subramanyamk-9132 asked azure-cxp-api edited

Azure AD Application Branding using Powershell Scripts

Hi,

Currently to set the Branding Parameters for Azure AD Applications using Powershell scripts, We are calling the Graph API.

Is there any other way with Powershell commands to set the branding while creating the Azure AD application


Thanks,
Subbu

azure-active-directoryazure-automation
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

amanpreetsingh-msft avatar image
0 Votes"
amanpreetsingh-msft answered

Hello @Subramanyamk-9132


All AzureAD PowerShell commands and even the Azure Portal makes graph calls to make changes to Azure AD database in the background. There can be different versions of Graph API used to make any changes to Azure AD but all changes to Azure AD can only be made via Graph API. There is no way to make changes to Azure AD without using Graph API. This is as per design.




Please do not forget to "Accept the answer" wherever the information provided helps you. This will help others in the community as well.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

soumi-MSFT avatar image
0 Votes"
soumi-MSFT answered

@Subramanyamk-9132, Thank you for reaching out. Yes, there is a Powershell cmdlet available to set the logo for the Application Registration in AAD.
You can use the following cmdlet:


 Set-AzureADApplicationLogo -ObjectId 79592454-dea7-4660-9d91-f1768e5055ac -FilePath D:\applogo.jpg


Where the -ObjectID of the Application for which the logo is set.


You can find more details about this cmdlet here: https://docs.microsoft.com/en-us/powershell/module/azuread/set-azureadapplicationlogo?view=azureadps-2.0


Hope this helps.


Do let us know if this helps and if there are any more queries around this, please do let us know so that we can help you further. Also, please do not forget to accept the response as Answer; if the above response helped in answering your query.



5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Subramanyamk-9132 avatar image
0 Votes"
Subramanyamk-9132 answered soumi-MSFT commented

Hi @soumi-MSFT,

We looking into setting the parameters "termsOfServiceUrl" and "privacyStatementUrl" in Azure AD application branding section using powershell commands.

· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@Subramanyamk-9132, Unfortunately, there are no PowerShell cmdlets available yet to set the "TermsOfServiceUrl" and "PrivacyStatementUrl" in app registration. The only available option is to use the Microsoft Graph API.

You can try using the Invoke-RestMethod in Powershell and make calls to the Graph API to set the TermsOfServiceURL and PrivacyStatementURL for your application.

Hope this helps.

Do let us know if this helps and if there are any more queries around this, please do let us know so that we can help you further. Also, please do not forget to accept the response as Answer; if the above response helped in answering your query.


0 Votes 0 ·

@Subramanyamk-9132 , Just wanted to check if the above response helped in answering your query. Do let me know if there are any more queries around this so that we can help you further.


0 Votes 0 ·