azure 检索Bicep应用服务的发布凭据(发布配置文件)

kpbwa7wx  于 2022-11-17  发布在  其他
关注(0)|答案(1)|浏览(127)

如何获取Bicep应用服务的发布配置文件?我需要输出FTP发布URL、用户名和密码。

mzaanser

mzaanser1#

您可以在此处找到现有答案:

param appServiceName string

var publishingCredentialsId = resourceId('Microsoft.Web/sites/config', appServiceName, 'publishingCredentials')

// Full publishing credentials
output publishingCredentials object = list(publishingCredentialsId, '2022-03-01')

// publishingUserName
output publishingUserName string = list(publishingCredentialsId, '2022-03-01').properties.publishingUserName

// publishingPassword
output publishingPassword string = list(publishingCredentialsId, '2022-03-01').properties.publishingPassword
...

相关问题