@@ -130,9 +130,8 @@ If ($Task -eq 'Processing') {
130130 $FinalACLIPs = [string ]$FinalACLIPs
131131 $FinalACLIPs = if ($FinalACLIPs -like ' * ,*' ) { $FinalACLIPs -replace " .$" }else { $FinalACLIPs }
132132
133- $sac = Get-AzStorageAccount - ResourceGroupName $1.RESOURCEGROUP - Name $1.NAME
134- $ctx = $sac.Context
135- $blobProperties = Get-AzStorageServiceProperty - ServiceType Blob - Context $ctx
133+ $blobProperties = Get-AzStorageBlobServiceProperty - ResourceGroupName $1.RESOURCEGROUP - Name $1.NAME
134+ $fileProperties = Get-AzStorageFileServiceProperty - ResourceGroupName $1.RESOURCEGROUP - Name $1.NAME
136135
137136 foreach ($2 in $VNETRules )
138137 {
@@ -157,7 +156,9 @@ If ($Task -eq 'Processing') {
157156 ' Microsoft Entra Authorization' = $EntraID ;
158157 ' Allow Storage Account Key Access' = $KeyAccess ;
159158 ' SFTP Enabled' = $SFTPEnabled ;
160- ' Blob Soft Delete Days' = if ($blobProperties.DeleteRetentionPolicy.Enabled ) { $blobProperties.DeleteRetentionPolicy.RetentionDays } else { ' N/A' };
159+ ' Blob Soft Delete Days' = if ($blobProperties.DeleteRetentionPolicy.Enabled ) { $blobProperties.DeleteRetentionPolicy.Days } else { ' N/A' };
160+ ' Container Soft Delete Days' = if ($blobProperties.containerDeleteRetentionPolicy.Enabled ) { $blobProperties.containerDeleteRetentionPolicy.Days } else { ' N/A' };
161+ ' File Share Soft Delete Days' = if ($fileProperties.ShareDeleteRetentionPolicy.Enabled ) { $fileProperties.ShareDeleteRetentionPolicy.Days } else { ' N/A' };
161162 ' Hierarchical Namespace' = $HNSEnabled ;
162163 ' NFSv3 Enabled' = $NFSv3 ;
163164 ' Large File Shares' = $LargeFileShare ;
@@ -211,10 +212,10 @@ Else {
211212 $condtxt += New-ConditionalText 1.0 - Range M:M # Minimum TLS Version
212213 $condtxt += New-ConditionalText 1.1 - Range M:M # Minimum TLS Version
213214 $condtxt += New-ConditionalText true - Range O:O # Allow Storage Account Key Access
214- $condtxt += New-ConditionalText all - Range X:X # Public Network Access
215- $condtxt += New-ConditionalText . - Range AD:AD - ConditionalType ContainsText # Firewall Exceptions
216- $condtxt += New-ConditionalText unavailable - Range AF:AF # Status Of Primary Location
217- $condtxt += New-ConditionalText unavailable - Range AH:AH # Status Of Secondary Location
215+ $condtxt += New-ConditionalText all - Range Z:Z # Public Network Access
216+ $condtxt += New-ConditionalText . - Range AF:AF - ConditionalType ContainsText # Firewall Exceptions
217+ $condtxt += New-ConditionalText unavailable - Range AH:AH # Status Of Primary Location
218+ $condtxt += New-ConditionalText unavailable - Range AI:AI # Status Of Secondary Location
218219 $condtxt += New-ConditionalText - Range I2:I100 - ConditionalType ContainsText # Retiring Feature
219220
220221 $Exc = New-Object System.Collections.Generic.List[System.Object ]
@@ -235,6 +236,8 @@ Else {
235236 $Exc.Add (' Allow Storage Account Key Access' )
236237 $Exc.Add (' SFTP Enabled' )
237238 $Exc.Add (' Blob Soft Delete Days' )
239+ $Exc.Add (' Container Soft Delete Days' )
240+ $Exc.Add (' File Share Soft Delete Days' )
238241 $Exc.Add (' Hierarchical Namespace' )
239242 $Exc.Add (' NFSv3 Enabled' )
240243 $Exc.Add (' Large File Shares' )
0 commit comments