Skip to content

Commit 90a73c6

Browse files
authored
Fix permissions for SAS token
> The below example generates a blob SAS token with read access and returns the full blob URI with the shared access signature token. In the PowerShell sample code, remove write and delete permissions for the SAS token to align with description. Write and delete permissions are not required for the intended use case and must be removed to comply with the secure design principle of **Least Privilege**.
1 parent e320d3e commit 90a73c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

articles/governance/machine-configuration/machine-configuration-create-publish.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ Optionally, you can add a SAS token in the URL, this ensures that the content pa
6161
```powershell
6262
$StartTime = Get-Date
6363
$EndTime = $startTime.AddYears(3)
64-
$contenturi = New-AzStorageBlobSASToken -StartTime $StartTime -ExpiryTime $EndTime -Container "guestconfiguration" -Blob "MyConfig.zip" -Permission rwd -Context $Context -FullUri
64+
$contenturi = New-AzStorageBlobSASToken -StartTime $StartTime -ExpiryTime $EndTime -Container "guestconfiguration" -Blob "MyConfig.zip" -Permission r -Context $Context -FullUri
6565
```
6666

6767
## Next steps

0 commit comments

Comments
 (0)