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'

查看:180
本文介绍了Sync-AzureAnalysisServicesInstance似乎有错误|| Sync-AzureAnalysisServicesInstance:无法在DLL"iphlpapi.dll"中找到名为"GetPerAdapterInfo"的入口点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在学习Powershell来学习自动化.我的问题就在这里,以同步扩展的Azure分析服务(AAS)服务器实例.我能够连接到AAS服务器,将其扩展,但是当我尝试同步时,我会遇到此错误:

Sync-AzureAnalysisServicesInstance:无法在DLL中找到名为"GetPerAdapterInfo"的入口点"iphlpapi.dll".

ScaleOut { $ connectionName = " AzureRunAsConnection" = 获取 - AutomationConnection - " ;登录到Azure ...'' 添加 - AzureRmAccount ` -ServicePrincipal` - TenantId $ servicePrincipalConnection . TenantId - CertificateThumbprint $ servicePrincipalConnection . CertificateThumbprint 选择 - AzureRmSubscription - SubscriptionId 设置 - AzureRmAnalysisServicesServer - 名称 InlineScript { $ ApplicationCredential = 获取 - AutomationPSCredential 添加 - AzureAnalysisServicesAccount - RolloutEnvironment 同步 - 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:

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
}
}


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屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆