rubrikinc / polaris-o365-powershell

PowerShell commands for managing Polaris M365 protection
MIT License
7 stars 13 forks source link

Update Azure AD application update script #49

Closed mishiay closed 2 months ago

mishiay commented 2 months ago

Description

Added an Script to update the secret of Azure AD application. This updated secret is synced to RSC as well to be used later. We need this script, as few of our customer uses customer app, and they wanted a way to update their secret as their secret is on the verge of expiry.

One of the main customer is CIBC, who has initially put the request.

Related Issue

https://rubrik.atlassian.net/browse/SPARK-335902

Motivation and Context

For CIBC, since they uses customer managed apps, with secret having some expiry. As their apps secret is about to get expired, they want to update their secret, and sync same to rubrik.

How Has This Been Tested?

Ran it locally.

Updating Secret fa6c4986-63fc-496e-b610-a15483d6a09d...Successfully Updated secret for Application fa6c4986-63fc-496e-b610-a15483d6a09d. Updating Secret fa6c4986-63fc-496e-b610-a15483d6a09d...Successfully Updated secret for Application fa6c4986-63fc-496e-b610-a15483d6a09d.

AppId : fa6c4986-63fc-496e-b610-a15483d6a09d Secret : E~o8Q~yGwCY3WA941kNKonK-tn9iNi1b~sigccUT DataSource : Exchange CertRawDataBase64 : PemRawDataBase64 :

AppId : fa6c4986-63fc-496e-b610-a15483d6a09d Secret : r5a8Q~YQqsX~Rby.rZAVCFZ4zD2KUCB2AgSPja1Y DataSource : Exchange CertRawDataBase64 : PemRawDataBase64 :

Screenshots (if appropriate):

Types of changes

What types of changes does your code introduce? Put an x in all the boxes that apply:

Checklist:

Go over all the following points, and put an x in all the boxes that apply. If you're unsure about any of these, don't hesitate to ask. We're here to help!