Skip to content

Instantly share code, notes, and snippets.

View takekazuomi's full-sized avatar
:octocat:
on code

Takekazu Omi takekazuomi

:octocat:
on code
View GitHub Profile
@takekazuomi
takekazuomi / csharp.gitignore
Created April 17, 2014 05:47
.gitignore for C#
## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.
# User-specific files
*.suo
*.user
*.sln.docstates
# Build results
@takekazuomi
takekazuomi / get-schema.json
Created January 8, 2023 07:27
az monitor log-analytics workspace get-schema
{
"value": [
{
"displayName": "Category",
"facet": false,
"indexed": false,
"name": "Category",
"ownerType": [
"AACAudit",
"AACHttpRequest",
@takekazuomi
takekazuomi / main.bicep
Last active July 28, 2022 12:46
deploy multiple vm using loop
param vmPrefix string
param location string
param vmCount int
module vm 'vm.bicep' = [for i in range(0, vmCount): {
name: 'vm-${i}'
params:{
name: '${vmPrefix}-${substring(uniqueString(resourceGroup().id), 0, 5)}-${i}'
location: location
vnetName:vnet.name

ラズパイでも動くよと聞いて、もしかしたらARMエミュかと思って中を見たら。 Multi-arch images になっていた。どっちを覗いても、ほぼほぼ同じようなものが入っている。

https://www.docker.com/blog/multi-arch-build-and-images-the-simple-way/

$ docker manifest inspect mcr.microsoft.com/azure-sql-edge:latest
{
   "schemaVersion": 2,
 "mediaType": "application/vnd.docker.distribution.manifest.list.v2+json",

mcrをすこし探索。azure-sql-edgeというイメージは3つある。

$ curl -s https://mcr.microsoft.com/v2/_catalog | grep azure-sql-edge
    "azure-sql-edge/developer",
    "azure-sql-edge/premium",
    "azure-sql-edge",

この辺見たら、mcr.microsoft.com/azure-sql-edge:latest がイメージ名らしい。 https://docs.microsoft.com/en-us/azure/azure-sql/database/local-dev-experience-sql-database-emulator?view=azuresql#what-is-the-azure-sql-database-emulator

持ってきて中をみたら。以前に比べて、paldumper ってのはあるけど、palrun がない。

mssql@d7caad55dc97:/opt/mssql/bin$ ls -Al
total 16172
-rwxrwxr-x 1 root root     434 Jan 14 22:02 compress-dump.sh
-rw-rw-r-- 1 root root   21890 Jan 14 22:02 crash-support-functions.sh
-rwxrwxr-x 1 root root    1749 Jan 14 22:02 generate-sql-dump.sh
@takekazuomi
takekazuomi / main.go
Created May 5, 2022 08:22
constraint struct fields
package main
import (
"fmt"
"time"
)
type common struct {
ID string
Created time.Time
@takekazuomi
takekazuomi / aca-2022-03-01 update.md
Last active April 27, 2022 06:53
API Version 2022-03-01 appears in ACA, so check the difference.
package main
import (
"context"
"fmt"
"log"
"net/url"
"time"
"github.com/Azure/azure-pipeline-go/pipeline"
@takekazuomi
takekazuomi / go.mod
Last active April 14, 2022 12:40
storage access with azidentity(0.13)
module webwas
go 1.18
require (
github.com/Azure/azure-sdk-for-go/sdk/azcore v0.23.0
github.com/Azure/azure-sdk-for-go/sdk/azidentity v0.14.0
github.com/Azure/azure-sdk-for-go/sdk/storage/azblob v0.3.0
github.com/gorilla/handlers v1.5.1
)