Skip to content

Commit 73fd0ed

Browse files
authored
Update anonymous-read-access-prevent.md
1 parent b8039be commit 73fd0ed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

articles/storage/blobs/anonymous-read-access-prevent.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ process {
328328
Select-AzSubscription -SubscriptionId $SubscriptionId -ErrorAction Stop | Out-Null
329329
}
330330
catch {
331-
Write-Error "Unable to access select subscription '$SubscriptionId' as the signed in user -- ensure that you have access to this subscription." -erroraction stop
331+
Write-Error "Unable to access select subscription '$SubscriptionId' as the signed in user -- ensure that you have access to this subscription." -ErrorAction Stop
332332
}
333333

334334
foreach ($account in Get-AzStorageAccount) {
@@ -351,7 +351,7 @@ process {
351351
}
352352
}
353353
elseif ($account.AllowBlobPublicAccess -eq $false) {
354-
Write-Host "Account:" $account.StorageAccountName " has public access disabled, no action required."
354+
Write-Host "Account:" $account.StorageAccountName "has public access disabled, no action required."
355355
}
356356
else {
357357
Write-Host "Account:" $account.StorageAccountName ". Error, please manually investigate."

0 commit comments

Comments
 (0)