Meta tags:
Headings (most frequently used words):
gcloud, startup, windows, script, for, from, scripts, passing, console, rest, bash, command, prompt, powershell, permissions, required, this, task, on, and, metadata, of, use, vms, stay, organized, with, collections, save, categorize, content, based, your, preferences, prerequisites, before, you, begin, keys, order, execution, directly, local, file, cloud, storage, accessing, rerunning, viewing, the, output, what, next, security, implications, products, pricing, support, resources, engage,
Text of the page (most frequently used words):
the (506), startup (222), #script (221), create (163), windows (154), and (137), for (116), vms (110), metadata (105), file (101), cloud (91), compute (88), with (85), about (80), storage (78), using (77), instances (76), following (73), that (69), gcloud (67), server (65), troubleshoot (62), from (57), instance (57), you (54), view (53), use (48), manage (46), vm_name (46), image (45), disk (45), google (44), add (43), set (43), web (39), passing (39), html (36), directly (36), disks (35), command (33), overview (33), mig (33), configure (32), scripts (31), access (31), stored (31), existing (30), performance (30), value (29), name (29), project (29), bucket (29), engine (27), reservation (27), replace (26), new (26), boot (26), ps1 (25), local (25), url (25), body (24), key (23), zone (23), pass (23), images (23), machine (22), have (21), install (21), hyperdisk (21), sql (21), import (20), inetpub (20), wwwroot (20), type (20), network (20), monitor (20), linux (19), https (19), resources (18), external (18), googleapis (18), com (18), gpu (18), custom (17), policies (16), powershell (16), can (16), cloud_storage_url (16), zones (16), added (16), reservations (16), sample (15), browser (15), verify (15), might (15), created (15), location (15), after (15), management (15), virtual (15), apply (15), snapshots (15), groups (15), ssh (15), recommendations (15), configuration (15), this (14), microsoft (14), wait (14), minutes (14), finish (14), file_path (14), family (14), core (14), guest (14), workload (14), creation (14), host (14), load (14), connect (14), console (13), path (13), 2019 (13), when (13), verifying (13), one (13), during (13), based (13), size (13), bulk (13), cluster (13), module (12), servermanager (12), windowsfeature (12), includeallsubfeature (12), exists (12), index (12), get (12), fingerprint (12), project_id (12), sole (12), availability (12), persistent (12), best (12), regional (12), site (11), information (11), run (11), uri (11), multiple (11), permissions (11), attached (11), keys (11), delete (11), practices (11), workloads (11), stateful (11), how (10), managed (10), shutdown (10), application (10), directory (10), values (10), authenticated (10), method (10), projects (10), click (10), initial (10), service (10), choose (10), your (10), agent (10), migs (10), machines (10), migrate (10), logs (10), see (9), all (9), more (9), files (9), internal (9), out (9), formats (9), must (9), contents (9), environment (9), update (9), licenses (9), tenant (9), openshift (9), time (9), start (9), hpc (9), samples (8), page (8), license (8), workstation (8), remove (8), relative (8), default (8), scopes (8), options (8), change (8), batch (8), shell (8), unsigned (8), cli (8), sysprep (8), specialize (8), locally (8), 256 (8), authentication (8), manually (8), cpu (8), resource (8), login (8), optimize (8), disaster (8), recovery (8), high (8), h4d (8), flexibility (8), dns (8), optimized (8), tpu (8), events (7), thumb (7), each (7), setmetadata (7), section (7), identity (7), operating (7), security (7), perform (7), task (7), extension (7), networking (7), commitments (7), balancing (7), benchmark (7), enable (7), idle (7), addresses (7), request (7), scale (7), deploy (7), back (7), mysql (7), zonal (7), maintenance (7), templates (7), snapshot (7), backup (7), code (6), send (6), cmd (6), running (6), foo (6), passed (6), iis (6), ensure (6), email (6), flag (6), select (6), account (6), control (6), required (6), execution (6), types (6), available (6), usage (6), migration (6), data (6), updates (6), instant (6), nested (6), gpus (6), across (6), applications (6), group (6), mode (6), demand (6), pools (6), failover (6), transfer (6), customized (6), spot (6), understand (5), other (5), details (5), serial (5), specify (5), example (5), test (5), item (5), already (5), rest (5), uses (5), starts (5), bat (5), order (5), region (5), single (5), monitoring (5), databases (5), accounts (5), errors (5), future (5), drivers (5), virtualization (5), nvidia (5), operations (5), placement (5), node (5), highly (5), build (5), multi (5), modify (5), capacity (5), schedules (5), audit (5), symphony (5), manager (5), between (5), systems (5), enhanced (5), capabilities (5), stop (5), tenancy (5), restore (5), regions (5), faq (5), flex (5), português (4), español (4), sign (4), system (4), support (4), down (4), content (4), under (4), learn (4), port (4), output (4), creating (4), installing (4), not (4), write (4), expanded (4), string (4), overwriting (4), filepath (4), encoding (4), ascii (4), force (4), website (4), where (4), post (4), items (4), expand (4), advanced (4), api (4), public (4), store (4), before (4), first (4), services (4), apis (4), development (4), authenticate (4), provider (4), plan (4), tools (4), distributed (4), issues (4), ubuntu (4), bandwidth (4), tcp (4), pmu (4), number (4), ssd (4), share (4), upgrade (4), live (4), autoscaling (4), cross (4), requests (4), calendar (4), metrics (4), health (4), active (4), clusters (4), containers (4), container (4), database (4), postgresql (4), extensions (4), work (4), suspend (4), resize (4), graceful (4), locations (4), plans (4), replication (4), review (4), bound (4), third (3), terms (3), github (3), need (3), are (3), apache (3), iap (3), event (3), viewing (3), prompt (3), bash (3), edit (3), runs (3), tab (3), than (3), reboots (3), signed (3), executable (3), reference (3), check (3), used (3), specified (3), documentation (3), credentials (3), document (3), level (3), guides (3), infrastructure (3), observability (3), analytics (3), automatic (3), troubleshooting (3), encryption (3), pro (3), configurations (3), patterns (3), higher (3), discounts (3), cuds (3), manual (3), scalable (3), resilient (3), autoscale (3), balancer (3), prevent (3), policy (3), list (3), testing (3), ibm (3), spectrum (3), deploying (3), prepare (3), deployment (3), rhel (3), protect (3), certificates (3), query (3), state (3), disable (3), properties (3), increase (3), schedule (3), lifecycle (3), design (3), non (3), pool (3), move (3), workstations (3), series (3), tpus (3), product (3), 한국어 (2), 日本語 (2), עברית (2), brasil (2), italiano (2), indonesia (2), français (2), américa (2), latina (2), deutsch (2), english (2), join (2), youtube (2), center (2), started (2), pricing (2), products (2), last (2), updated (2), 2026 (2), utc (2), licensed (2), feedback (2), next (2), desktop (2), repository (2), googlecloudplatform (2), viewer (2), metadata_value (2), attributes (2), accessing (2), queries (2), same (2), different (2), obtained (2), along (2), call (2), networkinterfaces (2), accessconfigs (2), one_to_one_nat (2), www (2), auth (2), devstorage (2), read_only (2), insert (2), every (2), then (2), has (2), object (2), secure (2), there (2), localsystem (2), controls (2), which (2), permission (2), settings (2), note (2), ninstall (2), necho (2), procedures (2), fourth (2), second (2), also (2), table (2), shows (2), various (2), greater (2), idp (2), federated (2), installed (2), make (2), read (2), prerequisites (2), tasks (2), process (2), override (2), only (2), info (2), sdk (2), languages (2), frameworks (2), costs (2), industry (2), solutions (2), hybrid (2), multicloud (2), pipelines (2), hosting (2), quota (2), commitment (2), consumption (2), standard (2), full (2), registration (2), sles (2), export (2), collecting (2), nodes (2), report (2), arm (2), rdp (2), general (2), app (2), latency (2), analyze (2), visible (2), cores (2), automatically (2), committed (2), generation (2), underutilized (2), insights (2), utilization (2), globally (2), autohealing (2), shared (2), reserve (2), autoscaler (2), autoscalers (2), activity (2), kubernetes (2), place (2), setting (2), redis (2), cloning (2), writer (2), always (2), alwayson (2), volumes (2), synchronization (2), global (2), switch (2), byol (2), payg (2), byos (2), changes (2), families (2), guide (2), securing (2), simulate (2), topology (2), together (2), repairs (2), repair (2), failures (2), template (2), suspended (2), stopped (2), target (2), distribution (2), physical (2), cancel (2), once (2), limit (2), interfaces (2), ipv6 (2), static (2), decrease (2), basic (2), consistent (2), scoped (2), copy (2), appliances (2), asynchronous (2), throughput (2), encrypt (2), names (2), format (2), mount (2), memory (2), extreme (2), balanced (2), organization (2), user (2), through (2), rdma (2), specific (2), preemptible (2), provisioning (2), models (2), rtx (2), vws (2), constraints (2), accelerator (2), technology (2), areas (2), close (2), subscribe, newsletter, our, decade, climate, action, cookies, privacy, tech, twitter, blog, engage, training, certification, architecture, getting, status, release, notes, community, forums, contact, sales, marketplace, easy, easytounderstand, solved, problem, solvedmyproblem, otherup, hard, hardtounderstand, incorrect, incorrectinformationorsamplecode, missing, missingtheinformationsamplesineed, otherdown, tell, except, otherwise, noted, java, registered, trademark, oracle, its, affiliates, developers, creative, commons, attribution, domain, what, log, any, checking, gcemetadatascripts, program, metadata_scripts, run_startup_scripts, connecting, rerun, doing, rerunning, outputs, pair, bar, invoke, restmethod, headers, flavor, http, computemetadata, parameterize, individually, serviceaccounts, field, contains, role, less, risk, privilege, escalation, modified, because, owners, editors, unless, explicit, disallow, implications, installs, creates, simple, adding, cannot, beginning, show, execute, containing, impacts, provides, specifies, whether, depend, haven, verifies, selecting, provide, previously, sure, latest, version, components, init, installation, initialize, don, basics, begin, features, function, properly, come, preinstalled, includes, reads, initiates, related, scheduler, boots, copies, does, appropriate, performs, describes, save, categorize, preferences, stay, organized, collections, home, concurrent, operation, renewal, nvme, resizing, common, pay, diagnostic, sudoers, screenshots, generate, bug, blackwell, soft, lockups, bus, locks, rescue, inaccessible, dumps, kernel, panic, fstab, unresponsive, suspension, shutdowns, connectivity, tips, nics, dpdk, improve, resiliency, communication, reduce, compact, idpf, interface, irdma, driver, nic, customize, threads, per, sustained, merge, split, extend, renew, without, purchase, cost, savings, dynamic, overcommit, cpus, floating, reliable, udp, backends, routing, scaling, consuming, consume, combine, cud, allow, sharing, decisions, signals, serving, predictions, organize, labels, replica, states, observe, reports, tensorflow, inference, tensorrt5, learning, monte, carlo, methods, spark, forwarding, others, integrate, clustering, exchange, 2016, sharepoint, strategies, passive, inactive, setups, built, integrations, validation, were, deployed, transition, hammerdb, aws, ec2, pacemaker, s2d, block, netapp, hot, standby, drbd, architectures, client, private, address, mailjet, mailgun, sendgrid, sending, blue, green, deployments, lamp, joomla, asp, net, interactive, mongodb, flask, terraform, servers, over, mtls, random, generator, virtio, rng, accurate, protocol, ntp, append, els, restrictions, packages, deprecate, versions, trusted, red, hat, knowledgebase, functionality, risks, vpc, confidential, kek, expiration, shielded, predefined, handle, notices, faulty, unmanaged, affect, preserved, turn, off, alternate, fails, repairing, maintain, upgrades, selectively, applying, accelerate, outage, rebalance, reenable, proactive, redistribution, shape, distribute, define, accidental, deletion, spread, rename, reset, resume, restart, referrers, source, uuid, recover, corrupted, duplicate, clones, alerts, backups, vss, regionally, protection, considerations, synchronous, consistency, failback, replicate, provisioned, iops, limits, evaluate, help, kms, customer, supplied, symbolic, links, practice, device, ram, attach, additional, exapools, ptr, record, failure, rates, tags, restrict, automate, password, require, sac, securely, apps, root, vpn, bastion, connection, connections, networks, within, iso, imported, importing, exporting, bring, own, detach, reattach, constraint, accounting, provision, examples, slurm, reserved, team, slice, slices, adds, scenarios, deterministic, base, requirements, ready, aci, configured, preempted, historical, alternative, similar, displays, ops, logging, subnet, gpudirect, enabled, ultra, minimum, platform, hostname, quickstarts, iam, roles, office, licensing, premium, strategy, gemini, bare, metal, accelerators, platforms, scores, purpose, discover, free, skip, main,
Text of the page (random words):
startup script directly to an existing vm add the startup script directly to an existing vm by using the following gcloud compute instances add metadata command gcloud compute instances add metadata vm_name image project windows cloud image family windows 2019 core metadata windows startup script ps1 import module servermanager install windowsfeature web server includeallsubfeature html body p windows startup script added directly p body html c inetpub wwwroot index html replace vm_name with the name of the vm verifying the startup script after the vm starts view the external ip in a web browser to verify that the startup script created the web site you might have to wait about 10 minutes for the sample startup script to finish gcloud powershell passing a windows startup script directly to a new vm pass the contents of a startup script directly to a windows server vm when you create it by using the following gcloud compute instances create command gcloud compute instances create vm_name image project windows cloud image family windows 2019 core metadata windows startup script ps1 import module servermanager install windowsfeature web server includeallsubfeature html body p windows startup script added directly p body html c inetpub wwwroot index html replace vm_name with the name of the vm passing a windows startup script directly to an existing vm add the startup script directly to an existing vm by using the following gcloud compute instances add metadata command gcloud compute instances add metadata vm_name image project windows cloud image family windows 2019 core metadata windows startup script ps1 import module servermanager install windowsfeature web server includeallsubfeature html body p windows startup script added directly p body html c inetpub wwwroot index html replace vm_name with the name of the vm verifying the startup script after the vm starts view the external ip in a web browser to verify that the startup script created the web site you might have to wait about 10 minutes for the sample startup script to finish rest passing a windows startup script directly to a new vm pass the contents of a startup script directly to a windows server vm when you create it by using the following instances insert method post https compute googleapis com compute v1 projects project_id zones zone instances networkinterfaces accessconfigs type one_to_one_nat metadata items key windows startup script ps1 value import module servermanager ninstall windowsfeature web server includeallsubfeature necho html body p windows startup script added directly p body html c inetpub wwwroot index html replace the following project_id the project id zone the zone to create the vm in passing a windows startup script directly to an existing vm get the metadata fingerprint value of the vm by using the instances get method get https compute googleapis com compute v1 projects project_id zones zone instances vm_name replace the following project_id the id of the project where the vm exists zone the zone of the vm vm_name the name of the vm pass the startup script by using the fingerprint value along with the metadata key and value for the startup script in a call to the instances setmetadata method post https compute googleapis com compute v1 projects project_id zones zone instances vm_name setmetadata fingerprint fingerprint items key windows startup script ps1 value import module servermanager ninstall windowsfeature web server includeallsubfeature necho html body p windows startup script added directly p body html c inetpub wwwroot index html replace the following project_id the id of the project where the vm exists zone the zone of the vm vm_name the name of the vm fingerprint the metadata fingerprint value obtained by using the instances get method verifying the startup script after the vm starts view the external ip in a web browser to verify that the startup script created the website you might have to wait about 10 minutes for the sample startup script to finish passing a windows startup script from a local file permissions required for this task to perform this task you must have the following permissions all permissions required to create a new vm compute instances setmetadata on the vm you can store a startup script in a local batch file command shell script or unsigned powershell script on your workstation and pass the local file as metadata to a vm when you create it you cannot use files stored on vms as startup scripts before passing a windows startup script from a local file to a vm do the following create a local ps1 file to store the startup script note the relative path from gcloud cli to the startup script add the following startup script to the file installing iis import module servermanager install windowsfeature web server includeallsubfeature ensure the directory exists if not test path c inetpub wwwroot new item c inetpub wwwroot type directory write the expanded string out to the file overwriting the file if it already exists html body p windows startup script passed from a file on your local workstation p body html out file filepath c inetpub wwwroot index html encoding ascii force gcloud bash passing a windows startup script from a local file to a new vm create a vm and pass the contents of a local file to be used as the startup script by using the gcloud compute instances create command with the metadata from file flag gcloud compute instances create vm_name image project windows cloud image family windows 2019 core metadata from file windows startup script ps1 file_path replace the following vm_name the name of the vm file_path the relative path to the startup script file passing a windows startup script from a local file to an existing vm pass a startup script to an existing vm from a local file by using the following gcloud compute instances add metadata command gcloud compute instances add metadata vm_name metadata from file windows startup script ps1 file_path replace the following vm_name the name of the vm file_path the relative path to the startup script file verifying the startup script view the external ip in a web browser to verify that the startup script created the web site you might have to wait about 10 minutes for the sample startup script to finish gcloud command prompt passing a windows startup script from a local file to a new vm create a vm and pass the contents of a local file to be used as the startup script by using the gcloud compute instances create command with the metadata from file flag gcloud compute instances create vm_name image project windows cloud image family windows 2019 core metadata from file windows startup script ps1 file_path replace the following vm_name the name of the vm file_path the relative path to the startup script file passing a windows startup script from a local file to an existing vm pass a startup script to an existing vm from a local file by using the following gcloud compute instances add metadata command gcloud compute instances add metadata vm_name metadata from file windows startup script ps1 file_path replace the following vm_name the name of the vm file_path the relative path to the startup script file verifying the startup script view the external ip in a web browser to verify that the startup script created the web site you might have to wait about 10 minutes for the sample startup script to finish gcloud powershell passing a windows startup script from a local file to a new vm create a vm and pass the contents of a local file to be used as the startup script by using the gcloud compute instances create command with the metadata from file flag gcloud compute instances create vm_name image project windows cloud image family windows 2019 core metadata from file windows startup script ps1 file_path replace the following vm_name the name of the vm file_path the relative path to the startup script file passing a windows startup script from a local file to an existing vm pass a startup script to an existing vm from a local file by using the following gcloud compute instances add metadata command gcloud compute instances add metadata vm_name metadata from file windows startup script ps1 file_path replace the following vm_name the name of the vm file_path the relative path to the startup script file verifying the startup script view the external ip in a web browser to verify that the startup script created the web site you might have to wait about 10 minutes for the sample startup script to finish passing a windows startup script from cloud storage permissions required for this task to perform this task you must have the following permissions all permissions required to create a new vm compute instances setmetadata on the vm permission to access the bucket and script file in cloud storage check the access control settings on the bucket and file to ensure you have permission you can store a startup script as a batch file command shell script signed unsigned powershell script or executable in cloud storage and pass it to a vm when you create it after you add a startup script to cloud storage you have a url that you can use to reference the startup script when you create a vm before adding a startup script from a cloud storage bucket do the following create a file to store the startup script this example uses a powershell ps1 file add the following powershell script to the file which installs a web server and creates a simple web page installing iis import module servermanager install windowsfeature web server includeallsubfeature ensure the directory exists if not test path c inetpub wwwroot new item c inetpub wwwroot type directory write the expanded string out to the file overwriting the file if it already exists html body p windows startup script passed from cloud storage p body html out file filepath c inetpub wwwroot index html encoding ascii force create a cloud storage bucket add the file to the cloud storage bucket security implications by default project owners and project editors can access cloud storage files in the same project unless there are explicit access controls that disallow it if the cloud storage bucket or object is less secure than metadata there is a risk of privilege escalation if the startup script is modified and the vm reboots this is because after the vm reboots the startup script runs as localsystem and can then use the permissions of the attached service account to access other resources console passing a startup script that is stored in cloud storage to a new vm in the google cloud console go to the create an instance page go to create an instance for boot disk select change and do the following on the public images tab choose a windows server operating system click select in the identity and api access section select a service account that has the storage object viewer role expand the advanced options section and then do the following expand the management section in the metadata section add values for the following key the metadata key specify the windows startup script url metadata key so the script runs during every boot after the initial boot value the metadata value set to the cloud storage location of the startup script file using one of the following formats authenticated url https storage googleapis com bucket file gcloud storage uri gs bucket file replace the following bucket the name of the bucket that contains the startup script file file the name of the startup script file to create the vm click create passing a startup script that is stored in cloud storage to an existing vm in the google cloud console go to the vm instances page go to vm instances click the name of the vm click edit under metadata add the following values authenticated url https storage googleapis com bucket file gcloud storage uri gs bucket file verifying the startup script view the external ip in a web browser to verify that the startup script created the website you might have to wait about 10 minutes for the sample startup script to finish gcloud bash passing a startup script that is stored in cloud storage to a new vm pass a startup script that is stored in cloud storage to a windows server vm by using the following gcloud compute instances create command for the value of the scopes flag use storage ro so the vm can access cloud storage gcloud compute instances create vm_name image project windows cloud image family windows 2019 core scopes storage ro metadata windows startup script url cloud_storage_url replace the following vm_name the name of the vm cloud_storage_url the metadata values set to the location of the startup script file by using one of the following formats authenticated url https storage googleapis com bucket file gcloud storage uri gs bucket file passing a startup script that is stored in cloud storage to an existing vm pass a startup script that is stored in cloud storage to an existing vm by using the following gcloud compute instances add metadata command gcloud compute instances add metadata vm_name metadata windows startup script url cloud_storage_url replace the following vm_name the name of the vm cloud_storage_url the metadata values set to the location of the startup script file by using one of the following formats authenticated url https storage googleapis com bucket file gcloud storage uri gs bucket file verifying the startup script view the external ip in a web browser to verify that the startup script created the web site you might have to wait about 10 minutes for the sample startup script to finish gcloud command prompt passing a startup script that is stored in cloud storage to a new vm pass a startup script that is stored in cloud storage to a windows server vm by using the following gcloud compute instances create command for the value of the scopes flag use storage ro so the vm can access cloud storage gcloud compute instances create vm_name image project windows cloud image family windows 2019 core scopes storage ro metadata windows startup script url cloud_storage_url replace the following vm_name the name of the vm cloud_storage_url the metadata values set to the location of the startup script file by using one of the following formats authenticated url https storage googleapis com bucket file gcloud storage uri gs bucket file passing a startup script that is stored in cloud storage to an existing vm pass a startup script that is stored in cloud storage to an existing vm by using the following gcloud compute instances add metadata command gcloud compute instances add metadata vm_name metadata windows startup script url cloud_storage_url replace the following vm_name the name of the vm cloud_storage_url the metadata values set to the location of the startup script file by using one of the following formats authenticated url https storage googleapis com bucket file gcloud storage uri gs bucket file verifying the startup script view the external ip in a web browser to verify that the startup script...
|