Enable "Azure Active Directory authorization in the Azure portal" with PowerShell


This may be a simple, but I am trying to Enable Azure "Active Directory authorization in the Azure portal" through either a PowerShell script or and ARM template in my deployment. I have been looking around the internet and have not seen a solution to even see these settings (besides physically going to the Azure Portal and going to the storage account). I would think there would be some programmatic way of setting this configuration. I would appreciate any help that the community has.

Thank you
Mike M

Azure Storage Accounts
Azure Storage Accounts
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
2,733 questions
0 comments No comments
{count} votes

Accepted answer
  1. shiva patpi 13,146 Reputation points Microsoft Employee

    Hello @Michel Manchee Cucinotta (WIPRO LIMITED) ,
    Here is the powershell script:

    Connect-AzureRMAccount -Subscription subId
    $str = Get-AzureRmStorageAccount -ResourceGroupName rgname -Name storageaccountname
    $resource = Get-AzureRmResource -ResourceId $str.Id
    $resource | Set-AzureRmResource -Force

    I just tested it locally and it works !


    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. 2022-03-22T02:09:56.123+00:00

    Thank you Very Much