Powershell脚本中的错误 [英] Error in powershell scripting

查看:77
本文介绍了Powershell脚本中的错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我正在为Storage和SQL数据库创建连接字符串以与Webapp连接.但是,当我执行脚本时,它仅创建一个连接.你能帮我吗?

Hi Team, I am creating connection string for Storage and SQL database to connect with Webapp. But when I am executing script its creating one connection only. Would you please help me on that ?

推荐答案

你好ChandraKant18,

Hello ChandraKant18,

您可以共享Power Shell脚本和您要遵循的文档来创建用于存储和SQL数据库以与Web应用程序连接的连接字符串吗?

Could you share the Power Shell script and the document which you are following to create a connection string for Storage and SQL database to connect with Web app?

此外,您可以参考下一篇文章中提到的Power Shell示例,该示例向您展示了如何连接 Webapp到存储帐户 Webapp到SQL数据库.

Also, you may refer the Power Shell samples mentioned in the following article which shows you how to connect a Webapp to a storage account and Webapp to a SQL Database.

请尝试下面的Power Shell脚本,如果您需要进一步的帮助,请告诉我们.

Try the below power shell script and let us know, if you need any further assistance on this.

#########################################Connect SQl databaase to Webapp####################################


ResourceGroup =您的资源组名称"
ResourceGroup="yourresourcegroup name"


AppName =您的Web应用程序名称"
AppName="your webapp name"


这篇关于Powershell脚本中的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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