// This file is autogenerated, DO NOT EDIT
// Use `node scripts/generate-docs-examples.js` to generate the docs examples

[source, js]
----
const response = await client.snapshot.createRepository({
  name: "my_backup1",
  repository: {
    type: "azure",
  },
});
console.log(response);

const response1 = await client.snapshot.createRepository({
  name: "my_backup2",
  repository: {
    type: "azure",
    settings: {
      container: "backup-container",
      base_path: "backups",
      chunk_size: "32MB",
      compress: true,
    },
  },
});
console.log(response1);

const response2 = await client.snapshot.createRepository({
  name: "my_backup3",
  repository: {
    type: "azure",
    settings: {
      client: "secondary",
    },
  },
});
console.log(response2);

const response3 = await client.snapshot.createRepository({
  name: "my_backup4",
  repository: {
    type: "azure",
    settings: {
      client: "secondary",
      location_mode: "primary_only",
    },
  },
});
console.log(response3);
----
