maurice-daly / DriverAutomationTool

Home of the Driver Automation Tool
https://www.msendpointmgr.com
BSD 2-Clause "Simplified" License
399 stars 120 forks source link

Issue with azure storage account for Intune deployment #562

Open dzaggiel opened 4 weeks ago

dzaggiel commented 4 weeks ago

Hello, I noticed some errors, when tool creates azure storage account then the error shows in the console:

New-AzStorageContainer : Public access is not permitted on this storage account.
RequestId:fa70c254-e01e-0060-70ca-269df2000000
Time:2024-10-25T10:40:06.7669883Z
Status: 409 (Public access is not permitted on this storage account.)
ErrorCode: PublicAccessNotPermitted
Content:
<?xml version="1.0" encoding="utf-8"?><Error><Code>PublicAccessNotPermitted</Code><Message>Public access is not permitted on this storage account.
RequestId:fa70c254-e01e-0060-70ca-269df2000000
Time:2024-10-25T10:40:06.7669883Z</Message></Error>
Headers:
x-ms-request-id: fa70c254-e01e-0060-70ca-269df2000000
x-ms-client-request-id: ba6adf07-87f2-428c-8894-0a20354917fb
x-ms-version: 2023-08-03
x-ms-error-code: PublicAccessNotPermitted
Date: Fri, 25 Oct 2024 10:40:06 GMT
Server: Windows-Azure-Blob/1.0,Microsoft-HTTPAPI/2.0
Content-Length: 248
Content-Type: application/xml
At line:11899 char:23
+ ... Container = New-AzStorageContainer -Name $ContainerName -Permission B ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : CloseError: (:) [New-AzStorageContainer], RequestFailedException
    + FullyQualifiedErrorId : RequestFailedException,Microsoft.WindowsAzure.Commands.Storage.Blob.Cmdlet.NewAzureStorageContainerCommand

Because of this error, no container is created inside the storage account. Tool, on the other hand, returns the message “Successfully provisioned in Azure”

The second error that I see in the console is:

Get-ItemPropertyValue : Property XML does not exist at path HKEY_LOCAL_MACHINE\SOFTWARE\MSEndpointMgr\DriverAutomationTool.
At line:2061 char:23
+ ... IOSXMLURI = Get-ItemPropertyValue -Path $global:RegistryPath -Name "X ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (:) [Get-ItemPropertyValue], PSArgumentException
    + FullyQualifiedErrorId : Argument,Microsoft.PowerShell.Commands.GetItemPropertyValueCommand