Sync-AzureAnalysisServicesInstance似乎有错误|| Sync-AzureAnalysisServicesInstance:无法在DLL"iphlpapi.dll"中找到名为"GetPerAdapterInfo"的入口点 [英] Sync-AzureAnalysisServicesInstance seems to have bug || Sync-AzureAnalysisServicesInstance : Unable to find an entry point named 'GetPerAdapterInfo' in DLL 'iphlpapi.dll'
问题描述
我正在学习Powershell来学习自动化.我的问题就在这里,以同步扩展的Azure分析服务(AAS)服务器实例.我能够连接到AAS服务器,将其扩展,但是当我尝试同步时,我会遇到此错误:
Sync-AzureAnalysisServicesInstance:无法在DLL中找到名为"GetPerAdapterInfo"的入口点"iphlpapi.dll".
工作流程 ScaleOut
{
$ connectionName = " AzureRunAsConnection" = 获取 - AutomationConnection - $ connectionName
" ;登录到Azure ...'' 添加 - AzureRmAccount `
-ServicePrincipal` - TenantId $ servicePrincipalConnection . TenantId - CertificateThumbprint $ servicePrincipalConnection . CertificateThumbprint
选择 - AzureRmSubscription - SubscriptionId "xxxx-a4c8-1234-123a-xxxx" 设置 - AzureRmAnalysisServicesServer - 名称 "aasname" - InlineScript {
$ ApplicationCredential = 获取 - AutomationPSCredential 名称 "SA" 添加 - AzureAnalysisServicesAccount - RolloutEnvironment 西北欧 天真 windows 净 凭据 $ ApplicationCredential
同步 - AzureAnalysisServicesInstance - 实例 :
}
}
MSDN thread
解决了类似的问题. --------------- -------------------------------------------------- ------------------------------ 如果此答案有帮助,请单击标记为答案"或向上" -投票".要提供有关您的论坛体验的其他反馈,请单击
在这里 >>
Hi All,
I'm learning Powershell to learn to automate. My question lies here to sync the scaled out Azure Analysis Services(AAS) Server Instance. I am able to connect to AAS server, scale it out but when I try to sync, I face this error:
Sync-AzureAnalysisServicesInstance : Unable to find an entry point named 'GetPerAdapterInfo' in DLL 'iphlpapi.dll'.
Entire piece of code is below:
If I use Test-AzureRmAnalysisServicesServer cmdlet in place of Sync-AzureAnalysisServicesInstance like "Test-AzureRmAnalysisServicesServer -Name aasname-ResourceGroupName "storagename" , the code works just fine.
Can someone please have a look and advise.
P.S: I tried using REST API, since I'm new, could not understand on how to start it and had to return back to powershell.
Thanks in advance. You may refer the suggestions outlined in the MSDN thread
which addresses similar issue. ----------------------------------------------------------------------------------------------- If this answer was helpful, click "Mark as Answer" or "Up-Vote". To provide additional feedback on your forum experience, click
here 这篇关于Sync-AzureAnalysisServicesInstance似乎有错误|| Sync-AzureAnalysisServicesInstance:无法在DLL"iphlpapi.dll"中找到名为"GetPerAdapterInfo"的入口点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
workflow ScaleOut
{
$connectionName = "AzureRunAsConnection"
$servicePrincipalConnection=Get-AutomationConnection -Name $connectionName
"Logging in to Azure..."
Add-AzureRmAccount `
-ServicePrincipal `
-TenantId $servicePrincipalConnection.TenantId `
-ApplicationId $servicePrincipalConnection.ApplicationId `
-CertificateThumbprint $servicePrincipalConnection.CertificateThumbprint
Select-AzureRmSubscription -SubscriptionId "xxxx-a4c8-1234-123a-xxxx"
Set-AzureRmAnalysisServicesServer -Name "aasname" -ResourceGroupName "storagename"
InlineScript {
$ApplicationCredential = Get-AutomationPSCredential -Name "SA"
Add-AzureAnalysisServicesAccount -RolloutEnvironment: westeurope.asazure.windows.net -Credential: $ApplicationCredential
Sync-AzureAnalysisServicesInstance -Instance asazure://westeurope.asazure.windows.net/aasprakhar -Database adventureworks
}
}