I am attempting to create all my Azure resources with powershell but I cant create the data Factory
I am trying the following
$RG = "dev-uks-project-rg"
$ADFName = "dev-uks-project-adf"
$Location = "UK South"
New-AzDataFactory -ResourceGroupName $RG -Name $ADFName –Location $Location
But I get the error
New-AzDataFactory : HTTP Status Code: BadRequest
Error Code: LocationNotAvailableForResourceType
Error Message: The provided location 'UK South' is not available for resource type
'Microsoft.DataFactory/dataFactories'. List of available regions for the resource type is
'westus,northeurope,eastus,westcentralus'.
Request Id: 3076e363-45f7-4003-991d-11a3ebd48c73
Timestamp (Utc):03/02/2023 10:27:39
At line:5 char:1
+ New-AzDataFactory -ResourceGroupName $RG -Name $ADFName –Location $Lo ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : CloseError: (:) [New-AzDataFactory], CloudException
+ FullyQualifiedErrorId : Microsoft.Azure.Commands.DataFactories.NewAzureDataFactoryCommand
If I create it in azure Portal I can create in on UK South so my first question here is... Is there possibly another module I need to install before running this? UK south is definitely available so how can I use it.
The next part of the issue is when I attempt to create via northeurope
I get the below message so again Im wondering if there is something else i need to install for data factory?
New-AzDataFactory : HTTP Status Code: BadRequest
Error Code: DataFactoryCreationNotAllowedV2
Error Message: Data factory creation is currently disabled for tenant xxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx and
subscription xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx in the northeurope region.
Request Id: 87864b87-aaa2-4f44-9d1f-99c8b84aa381
Timestamp (Utc):03/02/2023 10:32:57
At line:5 char:1
+ New-AzDataFactory -ResourceGroupName $RG -Name $ADFName –Location $Lo ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : CloseError: (:) [New-AzDataFactory], CloudException
+ FullyQualifiedErrorId : Microsoft.Azure.Commands.DataFactories.NewAzureDataFactoryCommand