Microsoft purview does'nt support Managed virtual network deployment using powershell/ ARM script
Does any one have idea whether Microsoft purview support Managed virtual network deployment using powershell/ ARM script. I tried deploying Managed virtual network using powershell script on Azure CLI, it get failed.
Any response / feedback is appreciated.
Powershell script:-
$subscriptionId = "4XXXXXXXXXXXXXXXXXXXXXXXXXXXXX2"
$resourceGroupName = "df_test"
$purviewName = "Purview-XXXX"
$managedPrivateEndpointName = "purviewppep"
$integrationRuntimeName = "IRMpvnpurview"
$apiVersion = "2018-06-01"
$privateLinkResourceId = "/subscriptions/XXXXXXXXXXXXXXXXXX-212cee9b5662/resourceGroups/XXXXXXX/providers/Microsoft.Storage/storageAccounts/XXXXXXXXXXXXtapi"
$vnetResourceId = "subscriptions/${subscriptionId}/resourceGroups/${resourceGroupName}/providers/Microsoft.Purview/accounts/${purviewName}/managedVirtualNetworks/default"
$privateEndpointResourceId = "subscriptions/${subscriptionId}/resourceGroups/${resourceGroupName}/providers/Microsoft.Purview/accounts/${purviewName}/managedVirtualNetworks/default/managedprivateendpoints/${managedPrivateEndpointName}"
$integrationRuntimeResourceId = "subscriptions/${subscriptionId}/resourceGroups/${resourceGroupName}/providers/Microsoft.Purview/accounts/${purviewName}/integrationRuntimes/${integrationRuntimeName}"
Create managed Virtual Network resource
New-AzResource -ApiVersion "${apiVersion}" -ResourceId "${vnetResourceId}" -Properties @{}
Create managed private endpoint resource
New-AzResource -ApiVersion "${apiVersion}" -ResourceId "${privateEndpointResourceId}" -Properties @{
privateLinkResourceId = "${privateLinkResourceId}"
groupId = "dfs"
}
Create integration runtime resource enabled with virtual network
New-AzResource -ApiVersion "${apiVersion}" -ResourceId "${integrationRuntimeResourceId}" -Properties @{
type = "Managed"
typeProperties = @{
computeProperties = @{
location = "Central India"
dataFlowProperties = @{
computeType = "General"
coreCount = 8
timeToLive = 0
}
}
}
managedVirtualNetwork = @{
type = "ManagedVirtualNetworkReference"
referenceName = "default"
}
}