我正在尝试使用.dacpac和发布配置文件到Azure SQL数据库发布SQL Server 数据库.我们在很长一段时间内一直在使用SQL Server,没有问题,现在我们正在评估Azure和AWS,以确定哪个最适合我们的需求.
我们有一个SQL Server数据库项目,并希望将其部署到Azure SQL数据库,但是它无法执行SSDT生成的脚本.这是因为生成的脚本包含sp_MSforeachtable对Azure SQL中不存在的存储过程的调用.
我还将目标平台从SQL Server 2016更改为Azure SQL V12.我是从Visual Studio 2017的发布配置文件和使用Azure SQL数据库部署任务的VSTS Release管理中尝试此操作的.当然,通过提供任务中的必要.dacpac和publish.xml文件.
我知道我可以手动添加存储过程,但这似乎不是这些发布/部署方法的意图.有没有人有任何想法?
谢谢
sql-server azure azure-sql-database azure-devops azure-pipelines-release-pipeline
Current client we are setting up CI/CD using VSO => Azure devops and I need some help with the configuration of the releases in the environments. Here's the situation and issue.
I've got the builds all set up and working properly.
I've got 2 Environments set up in the release configuration. Artifact is set up for the drops. Dev environment is set up as well as QA.
In VS2015 I've got the web.config transforms and configurations set up for Debug, …
azure visual-studio-2015 azure-devops azure-pipelines-release-pipeline
我正在尝试在托管Linux池上运行针对Visual Studio Team Services的赛普拉斯测试.不幸的是,托管代理没有安装赛普拉斯的所有依赖项.
运行文档apt-get不起作用:
2018-05-18T21:03:14.7423331Z ##[section]Starting: Install cypress dependencies
2018-05-18T21:03:14.7474742Z ==============================================================================
2018-05-18T21:03:14.7488281Z Task : Bash
2018-05-18T21:03:14.7501148Z Description : This is an early preview. Run a Bash script on macOS, Linux, or Windows
2018-05-18T21:03:14.7513088Z Version : 3.127.0
2018-05-18T21:03:14.7524823Z Author : Microsoft Corporation
2018-05-18T21:03:14.7537179Z Help : [More Information](https://go.microsoft.com/fwlink/?LinkID=613738)
2018-05-18T21:03:14.7549730Z ==============================================================================
2018-05-18T21:03:15.0174503Z Generating script.
2018-05-18T21:03:15.0535056Z Script contents:
2018-05-18T21:03:15.0547355Z apt-get install xvfb libgtk2.0-0 libnotify-dev libgconf-2-4 libnss3 libxss1 libasound2
2018-05-18T21:03:15.0656822Z [command]/bin/bash --noprofile --norc /opt/vsts/work/_temp/cac4d3f9-42e7-49f3-94f6-7d0444827d83.sh
2018-05-18T21:03:15.6040707Z Reading package lists...
2018-05-18T21:03:15.6085335Z Building dependency tree... …Run Code Online (Sandbox Code Playgroud) azure-devops azure-pipelines azure-pipelines-release-pipeline cypress
我想使用 c# 代码在 VSTS 中创建/触发发布。我可以使用 VSTS REST API @ https://docs.microsoft.com/en-us/rest/api/vsts/release/releases?view=vsts-rest-4.1创建/触发它
但是我想知道是否有任何 NuGet 包可用于使用 c# 在 VSTS 中创建/触发/更新版本?
c# azure-devops azure-pipelines-release-pipeline azure-artifacts azure-devops-rest-api
请帮我。我正在遵循本指南:https : //pleasereleaseme.net/deploy-a-dockerized-asp-net-core-application-to-kubernetes-on-azure-using-a-vsts-ci-cd-pipeline-part -1/。我的 docker 镜像已成功构建并推送到我的私有容器注册表,我的 CD 管道也正常。但是当我尝试使用 kubectl get pods 检查它时,状态总是待定,当我尝试使用kubectl describe pod k8s-aspnetcore-deployment-64648bb5ff-fxg2k消息时:
Name: k8s-aspnetcore-deployment-64648bb5ff-fxg2k
Namespace: default
Node: <none>
Labels: app=k8s-aspnetcore
pod-template-hash=2020466199
Annotations: <none>
Status: Pending
IP:
Controlled By: ReplicaSet/k8s-aspnetcore-deployment-64648bb5ff
Containers:
k8s-aspnetcore:
Image: mycontainerregistryb007.azurecr.io/k8saspnetcore:2033
Port: 80/TCP
Environment: <none>
Mounts:
/var/run/secrets/kubernetes.io/serviceaccount from default-token-tr892 (ro)
Conditions:
Type Status
PodScheduled False
Volumes:
default-token-tr892:
Type: Secret (a volume populated by a Secret)
SecretName: default-token-tr892
Optional: false
QoS Class: BestEffort
Node-Selectors: beta.kubernetes.io/os=windows
Tolerations: node.kubernetes.io/not-ready:NoExecute for 300s
node.kubernetes.io/unreachable:NoExecute for 300s …Run Code Online (Sandbox Code Playgroud) 我们希望将TFS工作项链接到发行版,因此我们可以轻松地从发行版中单击一下,打开一个包含有关此发行版的更多信息的TFS项。信息,如发行说明等。
可能吗?发行版具有创建发行版时可以设置的这些变量,但它们不包含(可单击链接)。
azure-devops azure-pipelines azure-pipelines-release-pipeline
在 Azure 管道中,我下载了 kubernetes deployment.yml 属性文件,其中包含以下内容。
spec:
imagePullSecrets:
- name: some-secret
containers:
- name: container-name
image: pathtoimage/data-processor:$(releaseVersion)
imagePullPolicy: Always
ports:
- containerPort: 8088
env:
Run Code Online (Sandbox Code Playgroud)
我的目的是从管道变量中获取值$(releaseVersion)。但似乎kubernetes任务不允许从管道变量访问这个值。
我尝试使用内联配置类型并且它有效。这意味着如果我将与内联内容相同的配置复制到kubernetes任务配置,它就可以工作。
无论如何,我可以使它适用于文件中的配置吗?
kubernetes azure-devops azure-pipelines azure-pipelines-release-pipeline azure-aks
我可以使用以下 json 主体更新构建管道中的变量
$body = '
{
"definition": {
"id": 25
},
"parameters": "{\"var\":\"value\"}"
}
'
Run Code Online (Sandbox Code Playgroud)
相同的 json 不适用于 Release pipeline 。有什么方法可以通过发布管道以相同的方式传递变量
azure-devops azure-pipelines azure-pipelines-release-pipeline azure-devops-rest-api
试图根据对问题的初步反馈稍微转移焦点。
在 DevOps 发布管道中,使用管理 IIS 网站任务,尝试使用通配符证书添加 https 绑定。证书位于本地计算机的证书存储区(使用 mmc 检查 -> 添加管理单元“证书”,选择“计算机帐户”和“本地计算机”),在文件夹“Web Hosting\Certificates”中。我认为这是从 IIS 中添加时它们最终的位置。
但是当运行管道时,它失败了,日志中有这个条目:
SSL Certificate add failed, Error: 1312
A specified logon session does not exist. It may already have been terminated.
Run Code Online (Sandbox Code Playgroud)
任务发出的实际命令行是(我匿名的):
"netsh" http add sslcert hostnameport=www.mydomain.se:443 certhash=*** appid={xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx} certstorename=MY
Run Code Online (Sandbox Code Playgroud)
正如评论中所指出的,certstorename显然应该为参数分配一个不同的值。美好的。
但是任务属性页面没有提供此参数的设置,那么我该如何更改它呢?我应该把它改成什么?
如果无法在任务中更改它,我应该将证书移到哪里以使任务能够找到它的值certstorename=MY?我试图找到并理解有关此的文档,但失败了,可能是由于缺乏关于证书存储的基本知识和相关术语。
ssl-certificate netsh iis-10 azure-devops azure-pipelines-release-pipeline
我有一个 Azure CLI 脚本,它在 Cloud Shell 中运行得很好,但当我尝试将其包含在 devops 发布管道中时遇到了麻烦。出于调试目的,我已将脚本简化为仅作为服务主体登录,然后检索版本...
az login --service-principal -u http://[Service Principal name] -p [Service Principal password] --tenant [Service Principal tenant GUID]
az --version
Run Code Online (Sandbox Code Playgroud)
...但它仍然会出现同样的错误。
以下是我的Azure CLI任务的属性:
脚本类型:Shell
脚本位置:Inline script
内联脚本:[如上所述]
脚本参数:
访问脚本中的服务主体详细信息:false
使用全局 Azure CLI 配置:false
工作目录:
标准错误失败:false
已启用:true
出现错误时继续:false*
环境变量:
错误是:
2020-06-15T12:46:39.8710944Z ##[错误]错误代码:[1]
2020-06-15T12:46:39.8724737Z ##[错误]错误:Azure 登录失败
2020-06-15T12:46:39.8728448 Z ##[error]脚本失败,出现错误:获取令牌请求返回 http 错误:401 和服务器响应:{“error”:“invalid_client”,“error_description”:“AADSTS7000222:提供的客户端密钥已过期。请访问 Azure用于为应用程序创建新密钥的门户,或考虑使用证书凭据来提高安全性: https: //learn.microsoft.com/azure/active-directory/develop/active-directory-certificate-credentials
跟踪 ID:d0f42793-739e- 4ce9-9118-5049086aa800
相关 ID:2ad50471-9c2a-4c02-a4d0-189efad2f0c8
时间戳:2020-06-15 12:46:39Z","error_codes":[7000222],"timestamp":"2020-06-15 …
azure-pipelines-release-pipeline ×10
azure-devops ×8
azure ×3
kubernetes ×2
azure-aks ×1
azure-cli ×1
c# ×1
cypress ×1
devops ×1
iis-10 ×1
netsh ×1
sql-server ×1