iLaps V2 maintance is only required with AAD Secrets, SAS Tokens Policy, and Admin UI SAS tokens expire
By default Azure recommends Client Secrets to expire after 6 months, however you can choose to set them to 2 years or custom
and set them to never expire.
- Navigate to
Azure Active Directory
- Then
App Registrations
- Search for and select
ILAPS
- Click
Certificates & Secrets
- View the secrets at the bottom of the panel and check expiration date, if expiration is coming soon then create a new secret, copy the value.
- Navigate to Resource Group which
ilaps
is deployed via Azure Portal - Find and open the web application in the Portal
- Click
Configuration
- Search for
ClientSecret
- Update the value then click
OK
- Click
Save
this will cause the application to restart (recommend doing in maintence window)
- Navigate to Resource Group which
- Do not forget to update
settings.production.local.json
file also so subsequent builds are successful and work when debugging locally
Locate output/Install-iLaps_v2.0.ps1
and $AzureSharedAccessSignature
variable and see when expiration is set in the string (se=DATE
). If you do not have the output folder check settings.production.local.json
. If expiration is close follow steps below to create new secrets.
Navigate to iLAPs storage account via Azure Portal
-
Create Shared Access Signature for
Installation Script
-
Allowed Services: Blob
-
Allowed Resource Types: Object
-
Allowed Permissions: Read
-
Set Start and End Expiration dates
-
Allowed Protocols: Https only
-
Generate SAS and Connection String
-
Save into
settings.production.local.json
field shown below"Blob-Object-Read-Installer-SAS-Token": "PasteValueHere"
-
-
After you have updated the secret run
build.ps1
again and checkoutput/Install-iLaps_v2.0.ps1
and push via intune (instructions in Readme if you need them again)
Using Azure Portal:
-
Navigate to Resource Group which
ilaps
is deployed via Azure Portal- Find and open the web application in the Portal
- Click
Configuration
- Search for
SASToken
- Check
se=DATE
and see if date is about to expire soon, If so follow below
-
Navigate to iLAPs storage account via Azure Portal
- Create Shared Access Signature for
Admin UI
-
Allowed Services: Table
-
Allowed Resource Types: Object
-
Allowed Permissions: Read, Write, List, Add, Create, Update
-
Set Start and End Expiration dates
-
Allowed Protocols: Https only
-
Generate SAS and Connection String
-
Save into
settings.production.local.json
field shown below"Admin-UI-Table-Object-Read-Write-List-Add-Create-Update-SAS-Token": "PasteValueHere"
-
- Create Shared Access Signature for
-
Go back to step
1.3
and update using SAS Token from2.1.6
-
Navigate to Storage account via Azure Portal
-
Click
Tables
click the elipsis onAdminPassword
table- Select Access Policy
- Click Edit on
Add-Create
- Update Start/Expiry
- Click Ok
- Click Save
-
Click
Tables
click the elipsis onResetPasswords
table- Select Access Policy
- Click Edit on
Read-Update
- Update Start/Expiry
- Click Ok
- Click Save
-
If you chose to roll the primary keys, then you will need to also rebuild all scripts and push them to storage account again along with update intune install script to force script reinstallation with new keys
IF YOU WANT TO INVALIDATE ALL KEYS THEN NAVIGATE TO PORTAL > STORAGE ACCOUNT > ACCESS KEYS > CLICK THE REFRESH NEXT TO KEY1 AND KEY2
- Open
Azure Storage Explorer
-
Login to Azure and find the storage account we just created
-
Open the
Tables
section -
Right Click
AdminPasswords
table-
Click
Get Shared Access Signature...
-
Click
Access Policy
and selectAdd-Create
-
Click Create
-
Copy the
Query String
-
Save into
settings.production.local.json
field named"Table-Object-Add-Create-SAS-Token": "PasteValueHere"
-
-
Click
Back
and change theAccess Policy
toRead
-
Click Next
-
Copy the
Query String
-
Save into
settings.production.local.json
field named"Table-Object-Read-List-SAS-Token": "PasteValueHere"
-
-
-
Right Click
Reset Passwords
table- Click
Get Shared Access Signature...
- Click
Access Policy
and selectRead-Update
- Click Create
- Copy the
Query String
-
Save into
settings.production.local.json
field named"Table-Object-Read-Update-SAS-Token": "PasteValueHere"
-
- Click
-