Update azure-go-appservice
MODIFY
azure-go-appservice/Pulumi.yaml
azure-go-appservice/Pulumi.yaml
-name: azure-appservice
+name: azure-go-appservice
runtime: go
description: Creates Azure App Service with SQL Database and Application Insights
template:

MODIFY
azure-go-appservice/README.md
azure-go-appservice/README.md
@@ -33,6 +33,12 @@ with App Service.
pulumi config set --secret sqlPassword <value>
```
+1. Restore your Go dependencies. This example currently uses [Dep](https://github.com/golang/dep) to do so:
+
+ ```bash
+ $ dep ensure
+ ```
+
1. Run `pulumi up` to preview and deploy changes:
```

MODIFY
azure-go-appservice/main.go
azure-go-appservice/main.go
@@ -42,7 +42,7 @@ func main() {
ResourceGroupName: resourceGroup.Name,
Location: resourceGroup.Location,
Kind: pulumi.String("App"),
- Sku: appservice.PlanSkuInputs{
+ Sku: appservice.PlanSkuArgs{
Tier: pulumi.String("Basic"),
Size: pulumi.String("B1"),
},
@@ -115,8 +115,8 @@ func main() {
"ApplicationInsights:InstrumentationKey": appInsights.InstrumentationKey,
"APPINSIGHTS_INSTRUMENTATIONKEY": appInsights.InstrumentationKey,
},
- ConnectionStrings: appservice.AppServiceConnectionStringsArray{
- appservice.AppServiceConnectionStringsInputs{
+ ConnectionStrings: appservice.AppServiceConnectionStringArray{
+ appservice.AppServiceConnectionStringArgs{
Name: pulumi.String("db"),
Value: pulumi.Sprintf("Server=tcp:%s.database.windows.net;initial catalog=%s;user ID=%s;password=%s;Min Pool Size=0;Max Pool Size=30;Persist Security Info=true;",
sqlServer.Name, database.Name, username, passwd),
@@ -147,12 +147,12 @@ func signedBlobReadURL(ctx *pulumi.Context, blob *storage.ZipBlob, account *stor
containerName := args[2].(string)
blobName := args[3].(string)
- sas, err := storage.LookupAccountBlobContainerSAS(ctx, &storage.GetAccountBlobContainerSASArgs{
+ sas, err := storage.GetAccountBlobContainerSAS(ctx, &storage.GetAccountBlobContainerSASArgs{
ConnectionString: connectionString,
ContainerName: containerName,
Start: "2019-01-01",
Expiry: signatureExpiration,
- Permissions: storage.GetAccountBlobContainerSASPermissionsArgs{Read: true},
+ Permissions: storage.GetAccountBlobContainerSASPermissions{Read: true},
})
if err != nil {
return "", err

Update azure-go-appservice (#564)