Created
October 18, 2024 21:32
-
-
Save jplewa/9f1b6473760f8788968411a181711a8d to your computer and use it in GitHub Desktop.
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "azure-native", | |
"displayName": "Azure Native", | |
"config": { | |
"variables": { | |
"auxiliaryTenantIds": { | |
"type": "array", | |
"items": { | |
"type": "string" | |
}, | |
"description": "Any additional Tenant IDs which should be used for authentication." | |
}, | |
"clientCertificatePassword": { | |
"type": "string", | |
"description": "The password associated with the Client Certificate. For use when authenticating as a Service Principal using a Client Certificate", | |
"secret": true | |
}, | |
"clientCertificatePath": { | |
"type": "string", | |
"description": "The path to the Client Certificate associated with the Service Principal for use when authenticating as a Service Principal using a Client Certificate." | |
}, | |
"clientId": { | |
"type": "string", | |
"description": "The Client ID which should be used.", | |
"secret": true | |
}, | |
"clientSecret": { | |
"type": "string", | |
"description": "The Client Secret which should be used. For use when authenticating as a Service Principal using a Client Secret.", | |
"secret": true | |
}, | |
"disablePulumiPartnerId": { | |
"type": "boolean", | |
"description": "This will disable the Pulumi Partner ID which is used if a custom `partnerId` isn't specified." | |
}, | |
"environment": { | |
"type": "string", | |
"description": "The Cloud Environment which should be used. Possible values are public, usgovernment, and china. Defaults to public." | |
}, | |
"location": { | |
"type": "string", | |
"description": "The location to use. ResourceGroups will consult this property for a default location, if one was not supplied explicitly when defining the resource." | |
}, | |
"metadataHost": { | |
"type": "string", | |
"description": "The Hostname of the Azure Metadata Service." | |
}, | |
"msiEndpoint": { | |
"type": "string", | |
"description": "The path to a custom endpoint for Managed Service Identity - in most circumstances this should be detected automatically." | |
}, | |
"oidcRequestToken": { | |
"type": "string", | |
"description": "Your cloud service or provider's bearer token to exchange for an OIDC ID token." | |
}, | |
"oidcRequestUrl": { | |
"type": "string", | |
"description": "The URL to initiate the OIDC token exchange. " | |
}, | |
"oidcToken": { | |
"type": "string", | |
"description": "The OIDC token to exchange for an Azure token." | |
}, | |
"oidcTokenFilePath": { | |
"type": "string", | |
"description": "The path to a file containing an OIDC token to exchange for an Azure token." | |
}, | |
"partnerId": { | |
"type": "string", | |
"description": "A GUID/UUID that is registered with Microsoft to facilitate partner resource usage attribution." | |
}, | |
"subscriptionId": { | |
"type": "string", | |
"description": "The Subscription ID which should be used." | |
}, | |
"tenantId": { | |
"type": "string", | |
"description": "The Tenant ID which should be used." | |
}, | |
"useMsi": { | |
"type": "boolean", | |
"description": "Allow Managed Service Identity be used for Authentication." | |
}, | |
"useOidc": { | |
"type": "boolean", | |
"description": "Allow OpenID Connect (OIDC) to be used for Authentication." | |
} | |
} | |
}, | |
"language": { | |
"csharp": { | |
"namespaces": { | |
"aad": "Aad", | |
"aadiam": "AadIam", | |
"addons": "Addons", | |
"adhybridhealthservice": "ADHybridHealthService", | |
"advisor": "Advisor", | |
"agfoodplatform": "AgFoodPlatform", | |
"alertsmanagement": "AlertsManagement", | |
"analysisservices": "AnalysisServices", | |
"apicenter": "ApiCenter", | |
"apimanagement": "ApiManagement", | |
"app": "App", | |
"appcomplianceautomation": "AppComplianceAutomation", | |
"appconfiguration": "AppConfiguration", | |
"appplatform": "AppPlatform", | |
"attestation": "Attestation", | |
"authorization": "Authorization", | |
"automanage": "Automanage", | |
"automation": "Automation", | |
"autonomousdevelopmentplatform": "AutonomousDevelopmentPlatform", | |
"avs": "AVS", | |
"azure-native": "AzureNative", | |
"azureactivedirectory": "AzureActiveDirectory", | |
"azurearcdata": "AzureArcData", | |
"azuredata": "AzureData", | |
"azuredatatransfer": "AzureDataTransfer", | |
"azurefleet": "AzureFleet", | |
"azurelargeinstance": "AzureLargeInstance", | |
"azureplaywrightservice": "AzurePlaywrightService", | |
"azuresphere": "AzureSphere", | |
"azurestack": "AzureStack", | |
"azurestackhci": "AzureStackHCI", | |
"baremetalinfrastructure": "BareMetalInfrastructure", | |
"batch": "Batch", | |
"billing": "Billing", | |
"billingbenefits": "BillingBenefits", | |
"blueprint": "Blueprint", | |
"botservice": "BotService", | |
"cache": "Cache", | |
"capacity": "Capacity", | |
"cdn": "Cdn", | |
"certificateregistration": "CertificateRegistration", | |
"changeanalysis": "ChangeAnalysis", | |
"chaos": "Chaos", | |
"cloudngfw": "Cloudngfw", | |
"codesigning": "CodeSigning", | |
"cognitiveservices": "CognitiveServices", | |
"commerce": "Commerce", | |
"communication": "Communication", | |
"community": "Community", | |
"compute": "Compute", | |
"computeschedule": "ComputeSchedule", | |
"confidentialledger": "ConfidentialLedger", | |
"confluent": "Confluent", | |
"connectedvmwarevsphere": "ConnectedVMwarevSphere", | |
"consumption": "Consumption", | |
"containerinstance": "ContainerInstance", | |
"containerregistry": "ContainerRegistry", | |
"containerservice": "ContainerService", | |
"containerstorage": "ContainerStorage", | |
"contoso": "Contoso", | |
"costmanagement": "CostManagement", | |
"customerinsights": "CustomerInsights", | |
"customerlockbox": "CustomerLockbox", | |
"customproviders": "CustomProviders", | |
"dashboard": "Dashboard", | |
"databasewatcher": "DatabaseWatcher", | |
"databox": "DataBox", | |
"databoxedge": "DataBoxEdge", | |
"databricks": "Databricks", | |
"datacatalog": "DataCatalog", | |
"datadog": "Datadog", | |
"datafactory": "DataFactory", | |
"datalakeanalytics": "DataLakeAnalytics", | |
"datalakestore": "DataLakeStore", | |
"datamigration": "DataMigration", | |
"dataprotection": "DataProtection", | |
"datareplication": "DataReplication", | |
"datashare": "DataShare", | |
"dbformariadb": "DBforMariaDB", | |
"dbformysql": "DBforMySQL", | |
"dbforpostgresql": "DBforPostgreSQL", | |
"delegatednetwork": "DelegatedNetwork", | |
"desktopvirtualization": "DesktopVirtualization", | |
"devcenter": "DevCenter", | |
"devhub": "DevHub", | |
"deviceregistry": "DeviceRegistry", | |
"devices": "Devices", | |
"deviceupdate": "DeviceUpdate", | |
"devops": "DevOps", | |
"devopsinfrastructure": "DevOpsInfrastructure", | |
"devspaces": "DevSpaces", | |
"devtestlab": "DevTestLab", | |
"digitaltwins": "DigitalTwins", | |
"documentdb": "DocumentDB", | |
"domainregistration": "DomainRegistration", | |
"dynamics365fraudprotection": "Dynamics365Fraudprotection", | |
"dynamicstelemetry": "DynamicsTelemetry", | |
"easm": "Easm", | |
"edgemarketplace": "EdgeMarketplace", | |
"edgeorder": "EdgeOrder", | |
"edgeorderpartner": "EdgeOrderPartner", | |
"edgezones": "EdgeZones", | |
"education": "Education", | |
"elastic": "Elastic", | |
"elasticsan": "ElasticSan", | |
"engagementfabric": "EngagementFabric", | |
"enterpriseknowledgegraph": "EnterpriseKnowledgeGraph", | |
"eventgrid": "EventGrid", | |
"eventhub": "EventHub", | |
"extendedlocation": "ExtendedLocation", | |
"fabric": "Fabric", | |
"features": "Features", | |
"fluidrelay": "FluidRelay", | |
"graphservices": "GraphServices", | |
"guestconfiguration": "GuestConfiguration", | |
"hanaonazure": "HanaOnAzure", | |
"hardwaresecuritymodules": "HardwareSecurityModules", | |
"hdinsight": "HDInsight", | |
"healthbot": "HealthBot", | |
"healthcareapis": "HealthcareApis", | |
"healthdataaiservices": "HealthDataAIServices", | |
"help": "Help", | |
"hybridcloud": "HybridCloud", | |
"hybridcompute": "HybridCompute", | |
"hybridconnectivity": "HybridConnectivity", | |
"hybridcontainerservice": "HybridContainerService", | |
"hybriddata": "HybridData", | |
"hybridnetwork": "HybridNetwork", | |
"importexport": "ImportExport", | |
"insights": "Insights", | |
"integrationspaces": "IntegrationSpaces", | |
"intune": "Intune", | |
"iotcentral": "IoTCentral", | |
"iotfirmwaredefense": "IoTFirmwareDefense", | |
"iotoperations": "IoTOperations", | |
"iotoperationsdataprocessor": "IoTOperationsDataProcessor", | |
"iotoperationsmq": "IoTOperationsMQ", | |
"iotoperationsorchestrator": "IoTOperationsOrchestrator", | |
"keyvault": "KeyVault", | |
"kubernetes": "Kubernetes", | |
"kubernetesconfiguration": "KubernetesConfiguration", | |
"kubernetesruntime": "KubernetesRuntime", | |
"kusto": "Kusto", | |
"labservices": "LabServices", | |
"loadtestservice": "LoadTestService", | |
"logic": "Logic", | |
"logz": "Logz", | |
"m365securityandcompliance": "M365SecurityAndCompliance", | |
"machinelearning": "MachineLearning", | |
"machinelearningservices": "MachineLearningServices", | |
"maintenance": "Maintenance", | |
"managedidentity": "ManagedIdentity", | |
"managednetwork": "ManagedNetwork", | |
"managednetworkfabric": "ManagedNetworkFabric", | |
"managedservices": "ManagedServices", | |
"management": "Management", | |
"managementpartner": "ManagementPartner", | |
"maps": "Maps", | |
"marketplace": "Marketplace", | |
"marketplacenotifications": "MarketplaceNotifications", | |
"marketplaceordering": "MarketplaceOrdering", | |
"media": "Media", | |
"migrate": "Migrate", | |
"mixedreality": "MixedReality", | |
"mobilenetwork": "MobileNetwork", | |
"mobilepacketcore": "MobilePacketCore", | |
"monitor": "Monitor", | |
"netapp": "NetApp", | |
"network": "Network", | |
"networkanalytics": "NetworkAnalytics", | |
"networkcloud": "NetworkCloud", | |
"networkfunction": "NetworkFunction", | |
"notificationhubs": "NotificationHubs", | |
"offazure": "OffAzure", | |
"offazurespringboot": "OffAzureSpringBoot", | |
"openenergyplatform": "OpenEnergyPlatform", | |
"operationalinsights": "OperationalInsights", | |
"operationsmanagement": "OperationsManagement", | |
"orbital": "Orbital", | |
"peering": "Peering", | |
"policyinsights": "PolicyInsights", | |
"portal": "Portal", | |
"portalservices": "PortalServices", | |
"powerbi": "PowerBI", | |
"powerbidedicated": "PowerBIDedicated", | |
"powerplatform": "PowerPlatform", | |
"professionalservice": "ProfessionalService", | |
"providerhub": "ProviderHub", | |
"purview": "Purview", | |
"quantum": "Quantum", | |
"quota": "Quota", | |
"recommendationsservice": "RecommendationsService", | |
"recoveryservices": "RecoveryServices", | |
"redhatopenshift": "RedHatOpenShift", | |
"relay": "Relay", | |
"resourceconnector": "ResourceConnector", | |
"resourcegraph": "ResourceGraph", | |
"resourcehealth": "ResourceHealth", | |
"resources": "Resources", | |
"saas": "SaaS", | |
"scheduler": "Scheduler", | |
"scom": "Scom", | |
"scvmm": "ScVmm", | |
"search": "Search", | |
"security": "Security", | |
"securityandcompliance": "SecurityAndCompliance", | |
"securityinsights": "SecurityInsights", | |
"serialconsole": "SerialConsole", | |
"servicebus": "ServiceBus", | |
"servicefabric": "ServiceFabric", | |
"servicefabricmesh": "ServiceFabricMesh", | |
"servicelinker": "ServiceLinker", | |
"servicenetworking": "ServiceNetworking", | |
"signalrservice": "SignalRService", | |
"softwareplan": "SoftwarePlan", | |
"solutions": "Solutions", | |
"sql": "Sql", | |
"sqlvirtualmachine": "SqlVirtualMachine", | |
"standbypool": "StandbyPool", | |
"storage": "Storage", | |
"storageactions": "StorageActions", | |
"storagecache": "StorageCache", | |
"storagemover": "StorageMover", | |
"storagepool": "StoragePool", | |
"storagesync": "StorageSync", | |
"storsimple": "StorSimple", | |
"streamanalytics": "StreamAnalytics", | |
"subscription": "Subscription", | |
"support": "Support", | |
"synapse": "Synapse", | |
"syntex": "Syntex", | |
"testbase": "TestBase", | |
"timeseriesinsights": "TimeSeriesInsights", | |
"verifiedid": "VerifiedId", | |
"videoanalyzer": "VideoAnalyzer", | |
"videoindexer": "VideoIndexer", | |
"virtualmachineimages": "VirtualMachineImages", | |
"visualstudio": "VisualStudio", | |
"vmwarecloudsimple": "VMwareCloudSimple", | |
"voiceservices": "VoiceServices", | |
"web": "Web", | |
"webpubsub": "WebPubSub", | |
"windowsesu": "WindowsESU", | |
"windowsiot": "WindowsIoT", | |
"workloadmonitor": "WorkloadMonitor", | |
"workloads": "Workloads" | |
}, | |
"packageReferences": { | |
"Pulumi": "3.*", | |
"System.Collections.Immutable": "5.0.0" | |
}, | |
"respectSchemaVersion": true | |
}, | |
"go": { | |
"disableInputTypeRegistrations": true, | |
"generateResourceContainerTypes": false, | |
"importBasePath": "github.com/pulumi/pulumi-azure-native-sdk/v2", | |
"importPathPattern": "github.com/pulumi/pulumi-azure-native-sdk/{module}/v2", | |
"internalModuleName": "utilities", | |
"packageImportAliases": { | |
"github.com/pulumi/pulumi-azure-native-sdk/aad/v2": "aad", | |
"github.com/pulumi/pulumi-azure-native-sdk/aadiam/v2": "aadiam", | |
"github.com/pulumi/pulumi-azure-native-sdk/addons/v2": "addons", | |
"github.com/pulumi/pulumi-azure-native-sdk/adhybridhealthservice/v2": "adhybridhealthservice", | |
"github.com/pulumi/pulumi-azure-native-sdk/advisor/v2": "advisor", | |
"github.com/pulumi/pulumi-azure-native-sdk/agfoodplatform/v2": "agfoodplatform", | |
"github.com/pulumi/pulumi-azure-native-sdk/alertsmanagement/v2": "alertsmanagement", | |
"github.com/pulumi/pulumi-azure-native-sdk/analysisservices/v2": "analysisservices", | |
"github.com/pulumi/pulumi-azure-native-sdk/apicenter/v2": "apicenter", | |
"github.com/pulumi/pulumi-azure-native-sdk/apimanagement/v2": "apimanagement", | |
"github.com/pulumi/pulumi-azure-native-sdk/app/v2": "app", | |
"github.com/pulumi/pulumi-azure-native-sdk/appcomplianceautomation/v2": "appcomplianceautomation", | |
"github.com/pulumi/pulumi-azure-native-sdk/appconfiguration/v2": "appconfiguration", | |
"github.com/pulumi/pulumi-azure-native-sdk/appplatform/v2": "appplatform", | |
"github.com/pulumi/pulumi-azure-native-sdk/attestation/v2": "attestation", | |
"github.com/pulumi/pulumi-azure-native-sdk/authorization/v2": "authorization", | |
"github.com/pulumi/pulumi-azure-native-sdk/automanage/v2": "automanage", | |
"github.com/pulumi/pulumi-azure-native-sdk/automation/v2": "automation", | |
"github.com/pulumi/pulumi-azure-native-sdk/autonomousdevelopmentplatform/v2": "autonomousdevelopmentplatform", | |
"github.com/pulumi/pulumi-azure-native-sdk/avs/v2": "avs", | |
"github.com/pulumi/pulumi-azure-native-sdk/azureactivedirectory/v2": "azureactivedirectory", | |
"github.com/pulumi/pulumi-azure-native-sdk/azurearcdata/v2": "azurearcdata", | |
"github.com/pulumi/pulumi-azure-native-sdk/azuredata/v2": "azuredata", | |
"github.com/pulumi/pulumi-azure-native-sdk/azuredatatransfer/v2": "azuredatatransfer", | |
"github.com/pulumi/pulumi-azure-native-sdk/azurefleet/v2": "azurefleet", | |
"github.com/pulumi/pulumi-azure-native-sdk/azurelargeinstance/v2": "azurelargeinstance", | |
"github.com/pulumi/pulumi-azure-native-sdk/azureplaywrightservice/v2": "azureplaywrightservice", | |
"github.com/pulumi/pulumi-azure-native-sdk/azuresphere/v2": "azuresphere", | |
"github.com/pulumi/pulumi-azure-native-sdk/azurestack/v2": "azurestack", | |
"github.com/pulumi/pulumi-azure-native-sdk/azurestackhci/v2": "azurestackhci", | |
"github.com/pulumi/pulumi-azure-native-sdk/baremetalinfrastructure/v2": "baremetalinfrastructure", | |
"github.com/pulumi/pulumi-azure-native-sdk/batch/v2": "batch", | |
"github.com/pulumi/pulumi-azure-native-sdk/billing/v2": "billing", | |
"github.com/pulumi/pulumi-azure-native-sdk/billingbenefits/v2": "billingbenefits", | |
"github.com/pulumi/pulumi-azure-native-sdk/blueprint/v2": "blueprint", | |
"github.com/pulumi/pulumi-azure-native-sdk/botservice/v2": "botservice", | |
"github.com/pulumi/pulumi-azure-native-sdk/cache/v2": "cache", | |
"github.com/pulumi/pulumi-azure-native-sdk/capacity/v2": "capacity", | |
"github.com/pulumi/pulumi-azure-native-sdk/cdn/v2": "cdn", | |
"github.com/pulumi/pulumi-azure-native-sdk/certificateregistration/v2": "certificateregistration", | |
"github.com/pulumi/pulumi-azure-native-sdk/changeanalysis/v2": "changeanalysis", | |
"github.com/pulumi/pulumi-azure-native-sdk/chaos/v2": "chaos", | |
"github.com/pulumi/pulumi-azure-native-sdk/cloudngfw/v2": "cloudngfw", | |
"github.com/pulumi/pulumi-azure-native-sdk/codesigning/v2": "codesigning", | |
"github.com/pulumi/pulumi-azure-native-sdk/cognitiveservices/v2": "cognitiveservices", | |
"github.com/pulumi/pulumi-azure-native-sdk/commerce/v2": "commerce", | |
"github.com/pulumi/pulumi-azure-native-sdk/communication/v2": "communication", | |
"github.com/pulumi/pulumi-azure-native-sdk/community/v2": "community", | |
"github.com/pulumi/pulumi-azure-native-sdk/compute/v2": "compute", | |
"github.com/pulumi/pulumi-azure-native-sdk/computeschedule/v2": "computeschedule", | |
"github.com/pulumi/pulumi-azure-native-sdk/confidentialledger/v2": "confidentialledger", | |
"github.com/pulumi/pulumi-azure-native-sdk/confluent/v2": "confluent", | |
"github.com/pulumi/pulumi-azure-native-sdk/connectedvmwarevsphere/v2": "connectedvmwarevsphere", | |
"github.com/pulumi/pulumi-azure-native-sdk/consumption/v2": "consumption", | |
"github.com/pulumi/pulumi-azure-native-sdk/containerinstance/v2": "containerinstance", | |
"github.com/pulumi/pulumi-azure-native-sdk/containerregistry/v2": "containerregistry", | |
"github.com/pulumi/pulumi-azure-native-sdk/containerservice/v2": "containerservice", | |
"github.com/pulumi/pulumi-azure-native-sdk/containerstorage/v2": "containerstorage", | |
"github.com/pulumi/pulumi-azure-native-sdk/contoso/v2": "contoso", | |
"github.com/pulumi/pulumi-azure-native-sdk/costmanagement/v2": "costmanagement", | |
"github.com/pulumi/pulumi-azure-native-sdk/customerinsights/v2": "customerinsights", | |
"github.com/pulumi/pulumi-azure-native-sdk/customerlockbox/v2": "customerlockbox", | |
"github.com/pulumi/pulumi-azure-native-sdk/customproviders/v2": "customproviders", | |
"github.com/pulumi/pulumi-azure-native-sdk/dashboard/v2": "dashboard", | |
"github.com/pulumi/pulumi-azure-native-sdk/databasewatcher/v2": "databasewatcher", | |
"github.com/pulumi/pulumi-azure-native-sdk/databox/v2": "databox", | |
"github.com/pulumi/pulumi-azure-native-sdk/databoxedge/v2": "databoxedge", | |
"github.com/pulumi/pulumi-azure-native-sdk/databricks/v2": "databricks", | |
"github.com/pulumi/pulumi-azure-native-sdk/datacatalog/v2": "datacatalog", | |
"github.com/pulumi/pulumi-azure-native-sdk/datadog/v2": "datadog", | |
"github.com/pulumi/pulumi-azure-native-sdk/datafactory/v2": "datafactory", | |
"github.com/pulumi/pulumi-azure-native-sdk/datalakeanalytics/v2": "datalakeanalytics", | |
"github.com/pulumi/pulumi-azure-native-sdk/datalakestore/v2": "datalakestore", | |
"github.com/pulumi/pulumi-azure-native-sdk/datamigration/v2": "datamigration", | |
"github.com/pulumi/pulumi-azure-native-sdk/dataprotection/v2": "dataprotection", | |
"github.com/pulumi/pulumi-azure-native-sdk/datareplication/v2": "datareplication", | |
"github.com/pulumi/pulumi-azure-native-sdk/datashare/v2": "datashare", | |
"github.com/pulumi/pulumi-azure-native-sdk/dbformariadb/v2": "dbformariadb", | |
"github.com/pulumi/pulumi-azure-native-sdk/dbformysql/v2": "dbformysql", | |
"github.com/pulumi/pulumi-azure-native-sdk/dbforpostgresql/v2": "dbforpostgresql", | |
"github.com/pulumi/pulumi-azure-native-sdk/delegatednetwork/v2": "delegatednetwork", | |
"github.com/pulumi/pulumi-azure-native-sdk/desktopvirtualization/v2": "desktopvirtualization", | |
"github.com/pulumi/pulumi-azure-native-sdk/devcenter/v2": "devcenter", | |
"github.com/pulumi/pulumi-azure-native-sdk/devhub/v2": "devhub", | |
"github.com/pulumi/pulumi-azure-native-sdk/deviceregistry/v2": "deviceregistry", | |
"github.com/pulumi/pulumi-azure-native-sdk/devices/v2": "devices", | |
"github.com/pulumi/pulumi-azure-native-sdk/deviceupdate/v2": "deviceupdate", | |
"github.com/pulumi/pulumi-azure-native-sdk/devops/v2": "devops", | |
"github.com/pulumi/pulumi-azure-native-sdk/devopsinfrastructure/v2": "devopsinfrastructure", | |
"github.com/pulumi/pulumi-azure-native-sdk/devspaces/v2": "devspaces", | |
"github.com/pulumi/pulumi-azure-native-sdk/devtestlab/v2": "devtestlab", | |
"github.com/pulumi/pulumi-azure-native-sdk/digitaltwins/v2": "digitaltwins", | |
"github.com/pulumi/pulumi-azure-native-sdk/documentdb/v2": "documentdb", | |
"github.com/pulumi/pulumi-azure-native-sdk/domainregistration/v2": "domainregistration", | |
"github.com/pulumi/pulumi-azure-native-sdk/dynamics365fraudprotection/v2": "dynamics365fraudprotection", | |
"github.com/pulumi/pulumi-azure-native-sdk/dynamicstelemetry/v2": "dynamicstelemetry", | |
"github.com/pulumi/pulumi-azure-native-sdk/easm/v2": "easm", | |
"github.com/pulumi/pulumi-azure-native-sdk/edgemarketplace/v2": "edgemarketplace", | |
"github.com/pulumi/pulumi-azure-native-sdk/edgeorder/v2": "edgeorder", | |
"github.com/pulumi/pulumi-azure-native-sdk/edgeorderpartner/v2": "edgeorderpartner", | |
"github.com/pulumi/pulumi-azure-native-sdk/edgezones/v2": "edgezones", | |
"github.com/pulumi/pulumi-azure-native-sdk/education/v2": "education", | |
"github.com/pulumi/pulumi-azure-native-sdk/elastic/v2": "elastic", | |
"github.com/pulumi/pulumi-azure-native-sdk/elasticsan/v2": "elasticsan", | |
"github.com/pulumi/pulumi-azure-native-sdk/engagementfabric/v2": "engagementfabric", | |
"github.com/pulumi/pulumi-azure-native-sdk/enterpriseknowledgegraph/v2": "enterpriseknowledgegraph", | |
"github.com/pulumi/pulumi-azure-native-sdk/eventgrid/v2": "eventgrid", | |
"github.com/pulumi/pulumi-azure-native-sdk/eventhub/v2": "eventhub", | |
"github.com/pulumi/pulumi-azure-native-sdk/extendedlocation/v2": "extendedlocation", | |
"github.com/pulumi/pulumi-azure-native-sdk/fabric/v2": "fabric", | |
"github.com/pulumi/pulumi-azure-native-sdk/features/v2": "features", | |
"github.com/pulumi/pulumi-azure-native-sdk/fluidrelay/v2": "fluidrelay", | |
"github.com/pulumi/pulumi-azure-native-sdk/graphservices/v2": "graphservices", | |
"github.com/pulumi/pulumi-azure-native-sdk/guestconfiguration/v2": "guestconfiguration", | |
"github.com/pulumi/pulumi-azure-native-sdk/hanaonazure/v2": "hanaonazure", | |
"github.com/pulumi/pulumi-azure-native-sdk/hardwaresecuritymodules/v2": "hardwaresecuritymodules", | |
"github.com/pulumi/pulumi-azure-native-sdk/hdinsight/v2": "hdinsight", | |
"github.com/pulumi/pulumi-azure-native-sdk/healthbot/v2": "healthbot", | |
"github.com/pulumi/pulumi-azure-native-sdk/healthcareapis/v2": "healthcareapis", | |
"github.com/pulumi/pulumi-azure-native-sdk/healthdataaiservices/v2": "healthdataaiservices", | |
"github.com/pulumi/pulumi-azure-native-sdk/help/v2": "help", | |
"github.com/pulumi/pulumi-azure-native-sdk/hybridcloud/v2": "hybridcloud", | |
"github.com/pulumi/pulumi-azure-native-sdk/hybridcompute/v2": "hybridcompute", | |
"github.com/pulumi/pulumi-azure-native-sdk/hybridconnectivity/v2": "hybridconnectivity", | |
"github.com/pulumi/pulumi-azure-native-sdk/hybridcontainerservice/v2": "hybridcontainerservice", | |
"github.com/pulumi/pulumi-azure-native-sdk/hybriddata/v2": "hybriddata", | |
"github.com/pulumi/pulumi-azure-native-sdk/hybridnetwork/v2": "hybridnetwork", | |
"github.com/pulumi/pulumi-azure-native-sdk/importexport/v2": "importexport", | |
"github.com/pulumi/pulumi-azure-native-sdk/insights/v2": "insights", | |
"github.com/pulumi/pulumi-azure-native-sdk/integrationspaces/v2": "integrationspaces", | |
"github.com/pulumi/pulumi-azure-native-sdk/intune/v2": "intune", | |
"github.com/pulumi/pulumi-azure-native-sdk/iotcentral/v2": "iotcentral", | |
"github.com/pulumi/pulumi-azure-native-sdk/iotfirmwaredefense/v2": "iotfirmwaredefense", | |
"github.com/pulumi/pulumi-azure-native-sdk/iotoperations/v2": "iotoperations", | |
"github.com/pulumi/pulumi-azure-native-sdk/iotoperationsdataprocessor/v2": "iotoperationsdataprocessor", | |
"github.com/pulumi/pulumi-azure-native-sdk/iotoperationsmq/v2": "iotoperationsmq", | |
"github.com/pulumi/pulumi-azure-native-sdk/iotoperationsorchestrator/v2": "iotoperationsorchestrator", | |
"github.com/pulumi/pulumi-azure-native-sdk/keyvault/v2": "keyvault", | |
"github.com/pulumi/pulumi-azure-native-sdk/kubernetes/v2": "kubernetes", | |
"github.com/pulumi/pulumi-azure-native-sdk/kubernetesconfiguration/v2": "kubernetesconfiguration", | |
"github.com/pulumi/pulumi-azure-native-sdk/kubernetesruntime/v2": "kubernetesruntime", | |
"github.com/pulumi/pulumi-azure-native-sdk/kusto/v2": "kusto", | |
"github.com/pulumi/pulumi-azure-native-sdk/labservices/v2": "labservices", | |
"github.com/pulumi/pulumi-azure-native-sdk/loadtestservice/v2": "loadtestservice", | |
"github.com/pulumi/pulumi-azure-native-sdk/logic/v2": "logic", | |
"github.com/pulumi/pulumi-azure-native-sdk/logz/v2": "logz", | |
"github.com/pulumi/pulumi-azure-native-sdk/m365securityandcompliance/v2": "m365securityandcompliance", | |
"github.com/pulumi/pulumi-azure-native-sdk/machinelearning/v2": "machinelearning", | |
"github.com/pulumi/pulumi-azure-native-sdk/machinelearningservices/v2": "machinelearningservices", | |
"github.com/pulumi/pulumi-azure-native-sdk/maintenance/v2": "maintenance", | |
"github.com/pulumi/pulumi-azure-native-sdk/managedidentity/v2": "managedidentity", | |
"github.com/pulumi/pulumi-azure-native-sdk/managednetwork/v2": "managednetwork", | |
"github.com/pulumi/pulumi-azure-native-sdk/managednetworkfabric/v2": "managednetworkfabric", | |
"github.com/pulumi/pulumi-azure-native-sdk/managedservices/v2": "managedservices", | |
"github.com/pulumi/pulumi-azure-native-sdk/management/v2": "management", | |
"github.com/pulumi/pulumi-azure-native-sdk/managementpartner/v2": "managementpartner", | |
"github.com/pulumi/pulumi-azure-native-sdk/maps/v2": "maps", | |
"github.com/pulumi/pulumi-azure-native-sdk/marketplace/v2": "marketplace", | |
"github.com/pulumi/pulumi-azure-native-sdk/marketplacenotifications/v2": "marketplacenotifications", | |
"github.com/pulumi/pulumi-azure-native-sdk/marketplaceordering/v2": "marketplaceordering", | |
"github.com/pulumi/pulumi-azure-native-sdk/media/v2": "media", | |
"github.com/pulumi/pulumi-azure-native-sdk/migrate/v2": "migrate", | |
"github.com/pulumi/pulumi-azure-native-sdk/mixedreality/v2": "mixedreality", | |
"github.com/pulumi/pulumi-azure-native-sdk/mobilenetwork/v2": "mobilenetwork", | |
"github.com/pulumi/pulumi-azure-native-sdk/mobilepacketcore/v2": "mobilepacketcore", | |
"github.com/pulumi/pulumi-azure-native-sdk/monitor/v2": "monitor", | |
"github.com/pulumi/pulumi-azure-native-sdk/netapp/v2": "netapp", | |
"github.com/pulumi/pulumi-azure-native-sdk/network/v2": "network", | |
"github.com/pulumi/pulumi-azure-native-sdk/networkanalytics/v2": "networkanalytics", | |
"github.com/pulumi/pulumi-azure-native-sdk/networkcloud/v2": "networkcloud", | |
"github.com/pulumi/pulumi-azure-native-sdk/networkfunction/v2": "networkfunction", | |
"github.com/pulumi/pulumi-azure-native-sdk/notificationhubs/v2": "notificationhubs", | |
"github.com/pulumi/pulumi-azure-native-sdk/offazure/v2": "offazure", | |
"github.com/pulumi/pulumi-azure-native-sdk/offazurespringboot/v2": "offazurespringboot", | |
"github.com/pulumi/pulumi-azure-native-sdk/openenergyplatform/v2": "openenergyplatform", | |
"github.com/pulumi/pulumi-azure-native-sdk/operationalinsights/v2": "operationalinsights", | |
"github.com/pulumi/pulumi-azure-native-sdk/operationsmanagement/v2": "operationsmanagement", | |
"github.com/pulumi/pulumi-azure-native-sdk/orbital/v2": "orbital", | |
"github.com/pulumi/pulumi-azure-native-sdk/peering/v2": "peering", | |
"github.com/pulumi/pulumi-azure-native-sdk/policyinsights/v2": "policyinsights", | |
"github.com/pulumi/pulumi-azure-native-sdk/portal/v2": "portal", | |
"github.com/pulumi/pulumi-azure-native-sdk/portalservices/v2": "portalservices", | |
"github.com/pulumi/pulumi-azure-native-sdk/powerbi/v2": "powerbi", | |
"github.com/pulumi/pulumi-azure-native-sdk/powerbidedicated/v2": "powerbidedicated", | |
"github.com/pulumi/pulumi-azure-native-sdk/powerplatform/v2": "powerplatform", | |
"github.com/pulumi/pulumi-azure-native-sdk/professionalservice/v2": "professionalservice", | |
"github.com/pulumi/pulumi-azure-native-sdk/providerhub/v2": "providerhub", | |
"github.com/pulumi/pulumi-azure-native-sdk/purview/v2": "purview", | |
"github.com/pulumi/pulumi-azure-native-sdk/quantum/v2": "quantum", | |
"github.com/pulumi/pulumi-azure-native-sdk/quota/v2": "quota", | |
"github.com/pulumi/pulumi-azure-native-sdk/recommendationsservice/v2": "recommendationsservice", | |
"github.com/pulumi/pulumi-azure-native-sdk/recoveryservices/v2": "recoveryservices", | |
"github.com/pulumi/pulumi-azure-native-sdk/redhatopenshift/v2": "redhatopenshift", | |
"github.com/pulumi/pulumi-azure-native-sdk/relay/v2": "relay", | |
"github.com/pulumi/pulumi-azure-native-sdk/resourceconnector/v2": "resourceconnector", | |
"github.com/pulumi/pulumi-azure-native-sdk/resourcegraph/v2": "resourcegraph", | |
"github.com/pulumi/pulumi-azure-native-sdk/resourcehealth/v2": "resourcehealth", | |
"github.com/pulumi/pulumi-azure-native-sdk/resources/v2": "resources", | |
"github.com/pulumi/pulumi-azure-native-sdk/saas/v2": "saas", | |
"github.com/pulumi/pulumi-azure-native-sdk/scheduler/v2": "scheduler", | |
"github.com/pulumi/pulumi-azure-native-sdk/scom/v2": "scom", | |
"github.com/pulumi/pulumi-azure-native-sdk/scvmm/v2": "scvmm", | |
"github.com/pulumi/pulumi-azure-native-sdk/search/v2": "search", | |
"github.com/pulumi/pulumi-azure-native-sdk/security/v2": "security", | |
"github.com/pulumi/pulumi-azure-native-sdk/securityandcompliance/v2": "securityandcompliance", | |
"github.com/pulumi/pulumi-azure-native-sdk/securityinsights/v2": "securityinsights", | |
"github.com/pulumi/pulumi-azure-native-sdk/serialconsole/v2": "serialconsole", | |
"github.com/pulumi/pulumi-azure-native-sdk/servicebus/v2": "servicebus", | |
"github.com/pulumi/pulumi-azure-native-sdk/servicefabric/v2": "servicefabric", | |
"github.com/pulumi/pulumi-azure-native-sdk/servicefabricmesh/v2": "servicefabricmesh", | |
"github.com/pulumi/pulumi-azure-native-sdk/servicelinker/v2": "servicelinker", | |
"github.com/pulumi/pulumi-azure-native-sdk/servicenetworking/v2": "servicenetworking", | |
"github.com/pulumi/pulumi-azure-native-sdk/signalrservice/v2": "signalrservice", | |
"github.com/pulumi/pulumi-azure-native-sdk/softwareplan/v2": "softwareplan", | |
"github.com/pulumi/pulumi-azure-native-sdk/solutions/v2": "solutions", | |
"github.com/pulumi/pulumi-azure-native-sdk/sql/v2": "sql", | |
"github.com/pulumi/pulumi-azure-native-sdk/sqlvirtualmachine/v2": "sqlvirtualmachine", | |
"github.com/pulumi/pulumi-azure-native-sdk/standbypool/v2": "standbypool", | |
"github.com/pulumi/pulumi-azure-native-sdk/storage/v2": "storage", | |
"github.com/pulumi/pulumi-azure-native-sdk/storageactions/v2": "storageactions", | |
"github.com/pulumi/pulumi-azure-native-sdk/storagecache/v2": "storagecache", | |
"github.com/pulumi/pulumi-azure-native-sdk/storagemover/v2": "storagemover", | |
"github.com/pulumi/pulumi-azure-native-sdk/storagepool/v2": "storagepool", | |
"github.com/pulumi/pulumi-azure-native-sdk/storagesync/v2": "storagesync", | |
"github.com/pulumi/pulumi-azure-native-sdk/storsimple/v2": "storsimple", | |
"github.com/pulumi/pulumi-azure-native-sdk/streamanalytics/v2": "streamanalytics", | |
"github.com/pulumi/pulumi-azure-native-sdk/subscription/v2": "subscription", | |
"github.com/pulumi/pulumi-azure-native-sdk/support/v2": "support", | |
"github.com/pulumi/pulumi-azure-native-sdk/synapse/v2": "synapse", | |
"github.com/pulumi/pulumi-azure-native-sdk/syntex/v2": "syntex", | |
"github.com/pulumi/pulumi-azure-native-sdk/testbase/v2": "testbase", | |
"github.com/pulumi/pulumi-azure-native-sdk/timeseriesinsights/v2": "timeseriesinsights", | |
"github.com/pulumi/pulumi-azure-native-sdk/verifiedid/v2": "verifiedid", | |
"github.com/pulumi/pulumi-azure-native-sdk/videoanalyzer/v2": "videoanalyzer", | |
"github.com/pulumi/pulumi-azure-native-sdk/videoindexer/v2": "videoindexer", | |
"github.com/pulumi/pulumi-azure-native-sdk/virtualmachineimages/v2": "virtualmachineimages", | |
"github.com/pulumi/pulumi-azure-native-sdk/visualstudio/v2": "visualstudio", | |
"github.com/pulumi/pulumi-azure-native-sdk/vmwarecloudsimple/v2": "vmwarecloudsimple", | |
"github.com/pulumi/pulumi-azure-native-sdk/voiceservices/v2": "voiceservices", | |
"github.com/pulumi/pulumi-azure-native-sdk/web/v2": "web", | |
"github.com/pulumi/pulumi-azure-native-sdk/webpubsub/v2": "webpubsub", | |
"github.com/pulumi/pulumi-azure-native-sdk/windowsesu/v2": "windowsesu", | |
"github.com/pulumi/pulumi-azure-native-sdk/windowsiot/v2": "windowsiot", | |
"github.com/pulumi/pulumi-azure-native-sdk/workloadmonitor/v2": "workloadmonitor", | |
"github.com/pulumi/pulumi-azure-native-sdk/workloads/v2": "workloads" | |
}, | |
"respectSchemaVersion": true, | |
"rootPackageName": "pulumiazurenativesdk" | |
}, | |
"java": { | |
"packages": { | |
"aad": "aad", | |
"aadiam": "aadiam", | |
"addons": "addons", | |
"adhybridhealthservice": "adhybridhealthservice", | |
"advisor": "advisor", | |
"agfoodplatform": "agfoodplatform", | |
"alertsmanagement": "alertsmanagement", | |
"analysisservices": "analysisservices", | |
"apicenter": "apicenter", | |
"apimanagement": "apimanagement", | |
"app": "app", | |
"appcomplianceautomation": "appcomplianceautomation", | |
"appconfiguration": "appconfiguration", | |
"appplatform": "appplatform", | |
"attestation": "attestation", | |
"authorization": "authorization", | |
"automanage": "automanage", | |
"automation": "automation", | |
"autonomousdevelopmentplatform": "autonomousdevelopmentplatform", | |
"avs": "avs", | |
"azure-native": "azurenative", | |
"azureactivedirectory": "azureactivedirectory", | |
"azurearcdata": "azurearcdata", | |
"azuredata": "azuredata", | |
"azuredatatransfer": "azuredatatransfer", | |
"azurefleet": "azurefleet", | |
"azurelargeinstance": "azurelargeinstance", | |
"azureplaywrightservice": "azureplaywrightservice", | |
"azuresphere": "azuresphere", | |
"azurestack": "azurestack", | |
"azurestackhci": "azurestackhci", | |
"baremetalinfrastructure": "baremetalinfrastructure", | |
"batch": "batch", | |
"billing": "billing", | |
"billingbenefits": "billingbenefits", | |
"blueprint": "blueprint", | |
"botservice": "botservice", | |
"cache": "cache", | |
"capacity": "capacity", | |
"cdn": "cdn", | |
"certificateregistration": "certificateregistration", | |
"changeanalysis": "changeanalysis", | |
"chaos": "chaos", | |
"cloudngfw": "cloudngfw", | |
"codesigning": "codesigning", | |
"cognitiveservices": "cognitiveservices", | |
"commerce": "commerce", | |
"communication": "communication", | |
"community": "community", | |
"compute": "compute", | |
"computeschedule": "computeschedule", | |
"confidentialledger": "confidentialledger", | |
"confluent": "confluent", | |
"connectedvmwarevsphere": "connectedvmwarevsphere", | |
"consumption": "consumption", | |
"containerinstance": "containerinstance", | |
"containerregistry": "containerregistry", | |
"containerservice": "containerservice", | |
"containerstorage": "containerstorage", | |
"contoso": "contoso", | |
"costmanagement": "costmanagement", | |
"customerinsights": "customerinsights", | |
"customerlockbox": "customerlockbox", | |
"customproviders": "customproviders", | |
"dashboard": "dashboard", | |
"databasewatcher": "databasewatcher", | |
"databox": "databox", | |
"databoxedge": "databoxedge", | |
"databricks": "databricks", | |
"datacatalog": "datacatalog", | |
"datadog": "datadog", | |
"datafactory": "datafactory", | |
"datalakeanalytics": "datalakeanalytics", | |
"datalakestore": "datalakestore", | |
"datamigration": "datamigration", | |
"dataprotection": "dataprotection", | |
"datareplication": "datareplication", | |
"datashare": "datashare", | |
"dbformariadb": "dbformariadb", | |
"dbformysql": "dbformysql", | |
"dbforpostgresql": "dbforpostgresql", | |
"delegatednetwork": "delegatednetwork", | |
"desktopvirtualization": "desktopvirtualization", | |
"devcenter": "devcenter", | |
"devhub": "devhub", | |
"deviceregistry": "deviceregistry", | |
"devices": "devices", | |
"deviceupdate": "deviceupdate", | |
"devops": "devops", | |
"devopsinfrastructure": "devopsinfrastructure", | |
"devspaces": "devspaces", | |
"devtestlab": "devtestlab", | |
"digitaltwins": "digitaltwins", | |
"documentdb": "documentdb", | |
"domainregistration": "domainregistration", | |
"dynamics365fraudprotection": "dynamics365fraudprotection", | |
"dynamicstelemetry": "dynamicstelemetry", | |
"easm": "easm", | |
"edgemarketplace": "edgemarketplace", | |
"edgeorder": "edgeorder", | |
"edgeorderpartner": "edgeorderpartner", | |
"edgezones": "edgezones", | |
"education": "education", | |
"elastic": "elastic", | |
"elasticsan": "elasticsan", | |
"engagementfabric": "engagementfabric", | |
"enterpriseknowledgegraph": "enterpriseknowledgegraph", | |
"eventgrid": "eventgrid", | |
"eventhub": "eventhub", | |
"extendedlocation": "extendedlocation", | |
"fabric": "fabric", | |
"features": "features", | |
"fluidrelay": "fluidrelay", | |
"graphservices": "graphservices", | |
"guestconfiguration": "guestconfiguration", | |
"hanaonazure": "hanaonazure", | |
"hardwaresecuritymodules": "hardwaresecuritymodules", | |
"hdinsight": "hdinsight", | |
"healthbot": "healthbot", | |
"healthcareapis": "healthcareapis", | |
"healthdataaiservices": "healthdataaiservices", | |
"help": "help", | |
"hybridcloud": "hybridcloud", | |
"hybridcompute": "hybridcompute", | |
"hybridconnectivity": "hybridconnectivity", | |
"hybridcontainerservice": "hybridcontainerservice", | |
"hybriddata": "hybriddata", | |
"hybridnetwork": "hybridnetwork", | |
"importexport": "importexport", | |
"insights": "insights", | |
"integrationspaces": "integrationspaces", | |
"intune": "intune", | |
"iotcentral": "iotcentral", | |
"iotfirmwaredefense": "iotfirmwaredefense", | |
"iotoperations": "iotoperations", | |
"iotoperationsdataprocessor": "iotoperationsdataprocessor", | |
"iotoperationsmq": "iotoperationsmq", | |
"iotoperationsorchestrator": "iotoperationsorchestrator", | |
"keyvault": "keyvault", | |
"kubernetes": "kubernetes", | |
"kubernetesconfiguration": "kubernetesconfiguration", | |
"kubernetesruntime": "kubernetesruntime", | |
"kusto": "kusto", | |
"labservices": "labservices", | |
"loadtestservice": "loadtestservice", | |
"logic": "logic", | |
"logz": "logz", | |
"m365securityandcompliance": "m365securityandcompliance", | |
"machinelearning": "machinelearning", | |
"machinelearningservices": "machinelearningservices", | |
"maintenance": "maintenance", | |
"managedidentity": "managedidentity", | |
"managednetwork": "managednetwork", | |
"managednetworkfabric": "managednetworkfabric", | |
"managedservices": "managedservices", | |
"management": "management", | |
"managementpartner": "managementpartner", | |
"maps": "maps", | |
"marketplace": "marketplace", | |
"marketplacenotifications": "marketplacenotifications", | |
"marketplaceordering": "marketplaceordering", | |
"media": "media", | |
"migrate": "migrate", | |
"mixedreality": "mixedreality", | |
"mobilenetwork": "mobilenetwork", | |
"mobilepacketcore": "mobilepacketcore", | |
"monitor": "monitor", | |
"netapp": "netapp", | |
"network": "network", | |
"networkanalytics": "networkanalytics", | |
"networkcloud": "networkcloud", | |
"networkfunction": "networkfunction", | |
"notificationhubs": "notificationhubs", | |
"offazure": "offazure", | |
"offazurespringboot": "offazurespringboot", | |
"openenergyplatform": "openenergyplatform", | |
"operationalinsights": "operationalinsights", | |
"operationsmanagement": "operationsmanagement", | |
"orbital": "orbital", | |
"peering": "peering", | |
"policyinsights": "policyinsights", | |
"portal": "portal", | |
"portalservices": "portalservices", | |
"powerbi": "powerbi", | |
"powerbidedicated": "powerbidedicated", | |
"powerplatform": "powerplatform", | |
"professionalservice": "professionalservice", | |
"providerhub": "providerhub", | |
"purview": "purview", | |
"quantum": "quantum", | |
"quota": "quota", | |
"recommendationsservice": "recommendationsservice", | |
"recoveryservices": "recoveryservices", | |
"redhatopenshift": "redhatopenshift", | |
"relay": "relay", | |
"resourceconnector": "resourceconnector", | |
"resourcegraph": "resourcegraph", | |
"resourcehealth": "resourcehealth", | |
"resources": "resources", | |
"saas": "saas", | |
"scheduler": "scheduler", | |
"scom": "scom", | |
"scvmm": "scvmm", | |
"search": "search", | |
"security": "security", | |
"securityandcompliance": "securityandcompliance", | |
"securityinsights": "securityinsights", | |
"serialconsole": "serialconsole", | |
"servicebus": "servicebus", | |
"servicefabric": "servicefabric", | |
"servicefabricmesh": "servicefabricmesh", | |
"servicelinker": "servicelinker", | |
"servicenetworking": "servicenetworking", | |
"signalrservice": "signalrservice", | |
"softwareplan": "softwareplan", | |
"solutions": "solutions", | |
"sql": "sql", | |
"sqlvirtualmachine": "sqlvirtualmachine", | |
"standbypool": "standbypool", | |
"storage": "storage", | |
"storageactions": "storageactions", | |
"storagecache": "storagecache", | |
"storagemover": "storagemover", | |
"storagepool": "storagepool", | |
"storagesync": "storagesync", | |
"storsimple": "storsimple", | |
"streamanalytics": "streamanalytics", | |
"subscription": "subscription", | |
"support": "support", | |
"synapse": "synapse", | |
"syntex": "syntex", | |
"testbase": "testbase", | |
"timeseriesinsights": "timeseriesinsights", | |
"verifiedid": "verifiedid", | |
"videoanalyzer": "videoanalyzer", | |
"videoindexer": "videoindexer", | |
"virtualmachineimages": "virtualmachineimages", | |
"visualstudio": "visualstudio", | |
"vmwarecloudsimple": "vmwarecloudsimple", | |
"voiceservices": "voiceservices", | |
"web": "web", | |
"webpubsub": "webpubsub", | |
"windowsesu": "windowsesu", | |
"windowsiot": "windowsiot", | |
"workloadmonitor": "workloadmonitor", | |
"workloads": "workloads" | |
} | |
}, | |
"nodejs": { | |
"dependencies": { | |
"@pulumi/pulumi": "^3.0.0" | |
}, | |
"readme": "The native Azure provider package offers support for all Azure Resource Manager (ARM)\nresources and their properties. Resources are exposed as types from modules based on Azure Resource\nProviders such as 'compute', 'network', 'storage', and 'web', among many others. Using this package\nallows you to programmatically declare instances of any Azure resource and any supported resource\nversion using infrastructure as code, which Pulumi then uses to drive the ARM API.", | |
"respectSchemaVersion": true | |
}, | |
"python": { | |
"inputTypes": "classes-and-dicts", | |
"moduleNameOverrides": { | |
"aad": "aad", | |
"aadiam": "aadiam", | |
"addons": "addons", | |
"adhybridhealthservice": "adhybridhealthservice", | |
"advisor": "advisor", | |
"agfoodplatform": "agfoodplatform", | |
"alertsmanagement": "alertsmanagement", | |
"analysisservices": "analysisservices", | |
"apicenter": "apicenter", | |
"apimanagement": "apimanagement", | |
"app": "app", | |
"appcomplianceautomation": "appcomplianceautomation", | |
"appconfiguration": "appconfiguration", | |
"appplatform": "appplatform", | |
"attestation": "attestation", | |
"authorization": "authorization", | |
"automanage": "automanage", | |
"automation": "automation", | |
"autonomousdevelopmentplatform": "autonomousdevelopmentplatform", | |
"avs": "avs", | |
"azureactivedirectory": "azureactivedirectory", | |
"azurearcdata": "azurearcdata", | |
"azuredata": "azuredata", | |
"azuredatatransfer": "azuredatatransfer", | |
"azurefleet": "azurefleet", | |
"azurelargeinstance": "azurelargeinstance", | |
"azureplaywrightservice": "azureplaywrightservice", | |
"azuresphere": "azuresphere", | |
"azurestack": "azurestack", | |
"azurestackhci": "azurestackhci", | |
"baremetalinfrastructure": "baremetalinfrastructure", | |
"batch": "batch", | |
"billing": "billing", | |
"billingbenefits": "billingbenefits", | |
"blueprint": "blueprint", | |
"botservice": "botservice", | |
"cache": "cache", | |
"capacity": "capacity", | |
"cdn": "cdn", | |
"certificateregistration": "certificateregistration", | |
"changeanalysis": "changeanalysis", | |
"chaos": "chaos", | |
"cloudngfw": "cloudngfw", | |
"codesigning": "codesigning", | |
"cognitiveservices": "cognitiveservices", | |
"commerce": "commerce", | |
"communication": "communication", | |
"community": "community", | |
"compute": "compute", | |
"computeschedule": "computeschedule", | |
"confidentialledger": "confidentialledger", | |
"confluent": "confluent", | |
"connectedvmwarevsphere": "connectedvmwarevsphere", | |
"consumption": "consumption", | |
"containerinstance": "containerinstance", | |
"containerregistry": "containerregistry", | |
"containerservice": "containerservice", | |
"containerstorage": "containerstorage", | |
"contoso": "contoso", | |
"costmanagement": "costmanagement", | |
"customerinsights": "customerinsights", | |
"customerlockbox": "customerlockbox", | |
"customproviders": "customproviders", | |
"dashboard": "dashboard", | |
"databasewatcher": "databasewatcher", | |
"databox": "databox", | |
"databoxedge": "databoxedge", | |
"databricks": "databricks", | |
"datacatalog": "datacatalog", | |
"datadog": "datadog", | |
"datafactory": "datafactory", | |
"datalakeanalytics": "datalakeanalytics", | |
"datalakestore": "datalakestore", | |
"datamigration": "datamigration", | |
"dataprotection": "dataprotection", | |
"datareplication": "datareplication", | |
"datashare": "datashare", | |
"dbformariadb": "dbformariadb", | |
"dbformysql": "dbformysql", | |
"dbforpostgresql": "dbforpostgresql", | |
"delegatednetwork": "delegatednetwork", | |
"desktopvirtualization": "desktopvirtualization", | |
"devcenter": "devcenter", | |
"devhub": "devhub", | |
"deviceregistry": "deviceregistry", | |
"devices": "devices", | |
"deviceupdate": "deviceupdate", | |
"devops": "devops", | |
"devopsinfrastructure": "devopsinfrastructure", | |
"devspaces": "devspaces", | |
"devtestlab": "devtestlab", | |
"digitaltwins": "digitaltwins", | |
"documentdb": "documentdb", | |
"domainregistration": "domainregistration", | |
"dynamics365fraudprotection": "dynamics365fraudprotection", | |
"dynamicstelemetry": "dynamicstelemetry", | |
"easm": "easm", | |
"edgemarketplace": "edgemarketplace", | |
"edgeorder": "edgeorder", | |
"edgeorderpartner": "edgeorderpartner", | |
"edgezones": "edgezones", | |
"education": "education", | |
"elastic": "elastic", | |
"elasticsan": "elasticsan", | |
"engagementfabric": "engagementfabric", | |
"enterpriseknowledgegraph": "enterpriseknowledgegraph", | |
"eventgrid": "eventgrid", | |
"eventhub": "eventhub", | |
"extendedlocation": "extendedlocation", | |
"fabric": "fabric", | |
"features": "features", | |
"fluidrelay": "fluidrelay", | |
"graphservices": "graphservices", | |
"guestconfiguration": "guestconfiguration", | |
"hanaonazure": "hanaonazure", | |
"hardwaresecuritymodules": "hardwaresecuritymodules", | |
"hdinsight": "hdinsight", | |
"healthbot": "healthbot", | |
"healthcareapis": "healthcareapis", | |
"healthdataaiservices": "healthdataaiservices", | |
"help": "help", | |
"hybridcloud": "hybridcloud", | |
"hybridcompute": "hybridcompute", | |
"hybridconnectivity": "hybridconnectivity", | |
"hybridcontainerservice": "hybridcontainerservice", | |
"hybriddata": "hybriddata", | |
"hybridnetwork": "hybridnetwork", | |
"importexport": "importexport", | |
"insights": "insights", | |
"integrationspaces": "integrationspaces", | |
"intune": "intune", | |
"iotcentral": "iotcentral", | |
"iotfirmwaredefense": "iotfirmwaredefense", | |
"iotoperations": "iotoperations", | |
"iotoperationsdataprocessor": "iotoperationsdataprocessor", | |
"iotoperationsmq": "iotoperationsmq", | |
"iotoperationsorchestrator": "iotoperationsorchestrator", | |
"keyvault": "keyvault", | |
"kubernetes": "kubernetes", | |
"kubernetesconfiguration": "kubernetesconfiguration", | |
"kubernetesruntime": "kubernetesruntime", | |
"kusto": "kusto", | |
"labservices": "labservices", | |
"loadtestservice": "loadtestservice", | |
"logic": "logic", | |
"logz": "logz", | |
"m365securityandcompliance": "m365securityandcompliance", | |
"machinelearning": "machinelearning", | |
"machinelearningservices": "machinelearningservices", | |
"maintenance": "maintenance", | |
"managedidentity": "managedidentity", | |
"managednetwork": "managednetwork", | |
"managednetworkfabric": "managednetworkfabric", | |
"managedservices": "managedservices", | |
"management": "management", | |
"managementpartner": "managementpartner", | |
"maps": "maps", | |
"marketplace": "marketplace", | |
"marketplacenotifications": "marketplacenotifications", | |
"marketplaceordering": "marketplaceordering", | |
"media": "media", | |
"migrate": "migrate", | |
"mixedreality": "mixedreality", | |
"mobilenetwork": "mobilenetwork", | |
"mobilepacketcore": "mobilepacketcore", | |
"monitor": "monitor", | |
"netapp": "netapp", | |
"network": "network", | |
"networkanalytics": "networkanalytics", | |
"networkcloud": "networkcloud", | |
"networkfunction": "networkfunction", | |
"notificationhubs": "notificationhubs", | |
"offazure": "offazure", | |
"offazurespringboot": "offazurespringboot", | |
"openenergyplatform": "openenergyplatform", | |
"operationalinsights": "operationalinsights", | |
"operationsmanagement": "operationsmanagement", | |
"orbital": "orbital", | |
"peering": "peering", | |
"policyinsights": "policyinsights", | |
"portal": "portal", | |
"portalservices": "portalservices", | |
"powerbi": "powerbi", | |
"powerbidedicated": "powerbidedicated", | |
"powerplatform": "powerplatform", | |
"professionalservice": "professionalservice", | |
"providerhub": "providerhub", | |
"purview": "purview", | |
"quantum": "quantum", | |
"quota": "quota", | |
"recommendationsservice": "recommendationsservice", | |
"recoveryservices": "recoveryservices", | |
"redhatopenshift": "redhatopenshift", | |
"relay": "relay", | |
"resourceconnector": "resourceconnector", | |
"resourcegraph": "resourcegraph", | |
"resourcehealth": "resourcehealth", | |
"resources": "resources", | |
"saas": "saas", | |
"scheduler": "scheduler", | |
"scom": "scom", | |
"scvmm": "scvmm", | |
"search": "search", | |
"security": "security", | |
"securityandcompliance": "securityandcompliance", | |
"securityinsights": "securityinsights", | |
"serialconsole": "serialconsole", | |
"servicebus": "servicebus", | |
"servicefabric": "servicefabric", | |
"servicefabricmesh": "servicefabricmesh", | |
"servicelinker": "servicelinker", | |
"servicenetworking": "servicenetworking", | |
"signalrservice": "signalrservice", | |
"softwareplan": "softwareplan", | |
"solutions": "solutions", | |
"sql": "sql", | |
"sqlvirtualmachine": "sqlvirtualmachine", | |
"standbypool": "standbypool", | |
"storage": "storage", | |
"storageactions": "storageactions", | |
"storagecache": "storagecache", | |
"storagemover": "storagemover", | |
"storagepool": "storagepool", | |
"storagesync": "storagesync", | |
"storsimple": "storsimple", | |
"streamanalytics": "streamanalytics", | |
"subscription": "subscription", | |
"support": "support", | |
"synapse": "synapse", | |
"syntex": "syntex", | |
"testbase": "testbase", | |
"timeseriesinsights": "timeseriesinsights", | |
"verifiedid": "verifiedid", | |
"videoanalyzer": "videoanalyzer", | |
"videoindexer": "videoindexer", | |
"virtualmachineimages": "virtualmachineimages", | |
"visualstudio": "visualstudio", | |
"vmwarecloudsimple": "vmwarecloudsimple", | |
"voiceservices": "voiceservices", | |
"web": "web", | |
"webpubsub": "webpubsub", | |
"windowsesu": "windowsesu", | |
"windowsiot": "windowsiot", | |
"workloadmonitor": "workloadmonitor", | |
"workloads": "workloads" | |
}, | |
"pyproject": { | |
"enabled": true | |
}, | |
"readme": "The native Azure provider package offers support for all Azure Resource Manager (ARM)\nresources and their properties. Resources are exposed as types from modules based on Azure Resource\nProviders such as 'compute', 'network', 'storage', and 'web', among many others. Using this package\nallows you to programmatically declare instances of any Azure resource and any supported resource\nversion using infrastructure as code, which Pulumi then uses to drive the ARM API.", | |
"requires": { | |
"pulumi": ">=3.35.0,<4.0.0" | |
}, | |
"respectSchemaVersion": true, | |
"usesIOClasses": true | |
} | |
}, | |
"provider": { | |
"description": "The provider type for the native Azure package.", | |
"type": "object", | |
"inputProperties": { | |
"auxiliaryTenantIds": { | |
"type": "array", | |
"items": { | |
"type": "string" | |
}, | |
"description": "Any additional Tenant IDs which should be used for authentication." | |
}, | |
"clientCertificatePassword": { | |
"type": "string", | |
"description": "The password associated with the Client Certificate. For use when authenticating as a Service Principal using a Client Certificate", | |
"secret": true | |
}, | |
"clientCertificatePath": { | |
"type": "string", | |
"description": "The path to the Client Certificate associated with the Service Principal for use when authenticating as a Service Principal using a Client Certificate." | |
}, | |
"clientId": { | |
"type": "string", | |
"description": "The Client ID which should be used.", | |
"secret": true | |
}, | |
"clientSecret": { | |
"type": "string", | |
"description": "The Client Secret which should be used. For use When authenticating as a Service Principal using a Client Secret.", | |
"secret": true | |
}, | |
"disablePulumiPartnerId": { | |
"type": "boolean", | |
"description": "This will disable the Pulumi Partner ID which is used if a custom `partnerId` isn't specified." | |
}, | |
"environment": { | |
"type": "string", | |
"description": "The Cloud Environment which should be used. Possible values are public, usgovernment, and china. Defaults to public.", | |
"default": "public" | |
}, | |
"location": { | |
"type": "string", | |
"description": "The location to use. ResourceGroups will consult this property for a default location, if one was not supplied explicitly when defining the resource." | |
}, | |
"metadataHost": { | |
"type": "string", | |
"description": "The Hostname of the Azure Metadata Service." | |
}, | |
"msiEndpoint": { | |
"type": "string", | |
"description": "The path to a custom endpoint for Managed Service Identity - in most circumstances this should be detected automatically." | |
}, | |
"oidcRequestToken": { | |
"type": "string", | |
"description": "Your cloud service or provider’s bearer token to exchange for an OIDC ID token." | |
}, | |
"oidcRequestUrl": { | |
"type": "string", | |
"description": "The URL to initiate the `oidcRequestToken` OIDC token exchange." | |
}, | |
"oidcToken": { | |
"type": "string", | |
"description": "The OIDC token to exchange for an Azure token." | |
}, | |
"partnerId": { | |
"type": "string", | |
"description": "A GUID/UUID that is registered with Microsoft to facilitate partner resource usage attribution." | |
}, | |
"subscriptionId": { | |
"type": "string", | |
"description": "The Subscription ID which should be used." | |
}, | |
"tenantId": { | |
"type": "string", | |
"description": "The Tenant ID which should be used." | |
}, | |
"useMsi": { | |
"type": "boolean", | |
"description": "Allow Managed Service Identity to be used for Authentication." | |
}, | |
"useOidc": { | |
"type": "boolean", | |
"description": "Allow OpenID Connect (OIDC) to be used for Authentication." | |
} | |
} | |
}, | |
"types": { | |
"azure-native:compute:AdditionalCapabilities": { | |
"description": "Enables or disables a capability on the virtual machine or virtual machine scale set.", | |
"properties": { | |
"hibernationEnabled": { | |
"type": "boolean", | |
"description": "The flag that enables or disables hibernation capability on the VM." | |
}, | |
"ultraSSDEnabled": { | |
"type": "boolean", | |
"description": "The flag that enables or disables a capability to have one or more managed data disks with UltraSSD_LRS storage account type on the VM or VMSS. Managed disks with storage account type UltraSSD_LRS can be added to a virtual machine or virtual machine scale set only if this property is enabled." | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:compute:AdditionalCapabilitiesResponse": { | |
"description": "Enables or disables a capability on the virtual machine or virtual machine scale set.", | |
"properties": { | |
"hibernationEnabled": { | |
"type": "boolean", | |
"description": "The flag that enables or disables hibernation capability on the VM." | |
}, | |
"ultraSSDEnabled": { | |
"type": "boolean", | |
"description": "The flag that enables or disables a capability to have one or more managed data disks with UltraSSD_LRS storage account type on the VM or VMSS. Managed disks with storage account type UltraSSD_LRS can be added to a virtual machine or virtual machine scale set only if this property is enabled." | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:compute:AdditionalUnattendContent": { | |
"description": "Specifies additional XML formatted information that can be included in the Unattend.xml file, which is used by Windows Setup. Contents are defined by setting name, component name, and the pass in which the content is applied.", | |
"properties": { | |
"componentName": { | |
"$ref": "#/types/azure-native:compute:ComponentNames", | |
"description": "The component name. Currently, the only allowable value is Microsoft-Windows-Shell-Setup." | |
}, | |
"content": { | |
"type": "string", | |
"description": "Specifies the XML formatted content that is added to the unattend.xml file for the specified path and component. The XML must be less than 4KB and must include the root element for the setting or feature that is being inserted." | |
}, | |
"passName": { | |
"$ref": "#/types/azure-native:compute:PassNames", | |
"description": "The pass name. Currently, the only allowable value is OobeSystem." | |
}, | |
"settingName": { | |
"$ref": "#/types/azure-native:compute:SettingNames", | |
"description": "Specifies the name of the setting to which the content applies. Possible values are: FirstLogonCommands and AutoLogon." | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:compute:AdditionalUnattendContentResponse": { | |
"description": "Specifies additional XML formatted information that can be included in the Unattend.xml file, which is used by Windows Setup. Contents are defined by setting name, component name, and the pass in which the content is applied.", | |
"properties": { | |
"componentName": { | |
"type": "string", | |
"description": "The component name. Currently, the only allowable value is Microsoft-Windows-Shell-Setup." | |
}, | |
"content": { | |
"type": "string", | |
"description": "Specifies the XML formatted content that is added to the unattend.xml file for the specified path and component. The XML must be less than 4KB and must include the root element for the setting or feature that is being inserted." | |
}, | |
"passName": { | |
"type": "string", | |
"description": "The pass name. Currently, the only allowable value is OobeSystem." | |
}, | |
"settingName": { | |
"type": "string", | |
"description": "Specifies the name of the setting to which the content applies. Possible values are: FirstLogonCommands and AutoLogon." | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:compute:ApiErrorBaseResponse": { | |
"description": "Api error base.", | |
"properties": { | |
"code": { | |
"type": "string", | |
"description": "The error code." | |
}, | |
"message": { | |
"type": "string", | |
"description": "The error message." | |
}, | |
"target": { | |
"type": "string", | |
"description": "The target of the particular error." | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:compute:ApiErrorResponse": { | |
"description": "Api error.", | |
"properties": { | |
"code": { | |
"type": "string", | |
"description": "The error code." | |
}, | |
"details": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:ApiErrorBaseResponse" | |
}, | |
"description": "The Api error details" | |
}, | |
"innererror": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:InnerErrorResponse", | |
"description": "The Api inner error" | |
}, | |
"message": { | |
"type": "string", | |
"description": "The error message." | |
}, | |
"target": { | |
"type": "string", | |
"description": "The target of the particular error." | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:compute:ApplicationProfile": { | |
"description": "Contains the list of gallery applications that should be made available to the VM/VMSS", | |
"properties": { | |
"galleryApplications": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:VMGalleryApplication" | |
}, | |
"description": "Specifies the gallery applications that should be made available to the VM/VMSS" | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:compute:ApplicationProfileResponse": { | |
"description": "Contains the list of gallery applications that should be made available to the VM/VMSS", | |
"properties": { | |
"galleryApplications": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:VMGalleryApplicationResponse" | |
}, | |
"description": "Specifies the gallery applications that should be made available to the VM/VMSS" | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:compute:AvailablePatchSummaryResponse": { | |
"description": "Describes the properties of an virtual machine instance view for available patch summary.", | |
"properties": { | |
"assessmentActivityId": { | |
"type": "string", | |
"description": "The activity ID of the operation that produced this result. It is used to correlate across CRP and extension logs." | |
}, | |
"criticalAndSecurityPatchCount": { | |
"type": "integer", | |
"description": "The number of critical or security patches that have been detected as available and not yet installed." | |
}, | |
"error": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:ApiErrorResponse", | |
"description": "The errors that were encountered during execution of the operation. The details array contains the list of them." | |
}, | |
"lastModifiedTime": { | |
"type": "string", | |
"description": "The UTC timestamp when the operation began." | |
}, | |
"otherPatchCount": { | |
"type": "integer", | |
"description": "The number of all available patches excluding critical and security." | |
}, | |
"rebootPending": { | |
"type": "boolean", | |
"description": "The overall reboot status of the VM. It will be true when partially installed patches require a reboot to complete installation but the reboot has not yet occurred." | |
}, | |
"startTime": { | |
"type": "string", | |
"description": "The UTC timestamp when the operation began." | |
}, | |
"status": { | |
"type": "string", | |
"description": "The overall success or failure status of the operation. It remains \"InProgress\" until the operation completes. At that point it will become \"Unknown\", \"Failed\", \"Succeeded\", or \"CompletedWithWarnings.\"" | |
} | |
}, | |
"type": "object", | |
"required": [ | |
"assessmentActivityId", | |
"criticalAndSecurityPatchCount", | |
"error", | |
"lastModifiedTime", | |
"otherPatchCount", | |
"rebootPending", | |
"startTime", | |
"status" | |
] | |
}, | |
"azure-native:compute:BillingProfile": { | |
"description": "Specifies the billing related details of a Azure Spot VM or VMSS. Minimum api-version: 2019-03-01.", | |
"properties": { | |
"maxPrice": { | |
"type": "number", | |
"description": "Specifies the maximum price you are willing to pay for a Azure Spot VM/VMSS. This price is in US Dollars. <br><br> This price will be compared with the current Azure Spot price for the VM size. Also, the prices are compared at the time of create/update of Azure Spot VM/VMSS and the operation will only succeed if the maxPrice is greater than the current Azure Spot price. <br><br> The maxPrice will also be used for evicting a Azure Spot VM/VMSS if the current Azure Spot price goes beyond the maxPrice after creation of VM/VMSS. <br><br> Possible values are: <br><br> - Any decimal value greater than zero. Example: 0.01538 <br><br> -1 – indicates default price to be up-to on-demand. <br><br> You can set the maxPrice to -1 to indicate that the Azure Spot VM/VMSS should not be evicted for price reasons. Also, the default max price is -1 if it is not provided by you. <br><br>Minimum api-version: 2019-03-01." | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:compute:BillingProfileResponse": { | |
"description": "Specifies the billing related details of a Azure Spot VM or VMSS. Minimum api-version: 2019-03-01.", | |
"properties": { | |
"maxPrice": { | |
"type": "number", | |
"description": "Specifies the maximum price you are willing to pay for a Azure Spot VM/VMSS. This price is in US Dollars. <br><br> This price will be compared with the current Azure Spot price for the VM size. Also, the prices are compared at the time of create/update of Azure Spot VM/VMSS and the operation will only succeed if the maxPrice is greater than the current Azure Spot price. <br><br> The maxPrice will also be used for evicting a Azure Spot VM/VMSS if the current Azure Spot price goes beyond the maxPrice after creation of VM/VMSS. <br><br> Possible values are: <br><br> - Any decimal value greater than zero. Example: 0.01538 <br><br> -1 – indicates default price to be up-to on-demand. <br><br> You can set the maxPrice to -1 to indicate that the Azure Spot VM/VMSS should not be evicted for price reasons. Also, the default max price is -1 if it is not provided by you. <br><br>Minimum api-version: 2019-03-01." | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:compute:BootDiagnostics": { | |
"description": "Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status. You can easily view the output of your console log. Azure also enables you to see a screenshot of the VM from the hypervisor.", | |
"properties": { | |
"enabled": { | |
"type": "boolean", | |
"description": "Whether boot diagnostics should be enabled on the Virtual Machine." | |
}, | |
"storageUri": { | |
"type": "string", | |
"description": "Uri of the storage account to use for placing the console output and screenshot. If storageUri is not specified while enabling boot diagnostics, managed storage will be used." | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:compute:BootDiagnosticsInstanceViewResponse": { | |
"description": "The instance view of a virtual machine boot diagnostics.", | |
"properties": { | |
"consoleScreenshotBlobUri": { | |
"type": "string", | |
"description": "The console screenshot blob URI. **Note:** This will **not** be set if boot diagnostics is currently enabled with managed storage." | |
}, | |
"serialConsoleLogBlobUri": { | |
"type": "string", | |
"description": "The serial console log blob Uri. **Note:** This will **not** be set if boot diagnostics is currently enabled with managed storage." | |
}, | |
"status": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:InstanceViewStatusResponse", | |
"description": "The boot diagnostics status information for the VM. **Note:** It will be set only if there are errors encountered in enabling boot diagnostics." | |
} | |
}, | |
"type": "object", | |
"required": [ | |
"consoleScreenshotBlobUri", | |
"serialConsoleLogBlobUri", | |
"status" | |
] | |
}, | |
"azure-native:compute:BootDiagnosticsResponse": { | |
"description": "Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status. You can easily view the output of your console log. Azure also enables you to see a screenshot of the VM from the hypervisor.", | |
"properties": { | |
"enabled": { | |
"type": "boolean", | |
"description": "Whether boot diagnostics should be enabled on the Virtual Machine." | |
}, | |
"storageUri": { | |
"type": "string", | |
"description": "Uri of the storage account to use for placing the console output and screenshot. If storageUri is not specified while enabling boot diagnostics, managed storage will be used." | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:compute:CachingTypes": { | |
"description": "Specifies the caching requirements. Possible values are: **None,** **ReadOnly,** **ReadWrite.** The defaulting behavior is: **None for Standard storage. ReadOnly for Premium storage.**", | |
"type": "string", | |
"enum": [ | |
{ | |
"value": "None" | |
}, | |
{ | |
"value": "ReadOnly" | |
}, | |
{ | |
"value": "ReadWrite" | |
} | |
] | |
}, | |
"azure-native:compute:CapacityReservationProfile": { | |
"description": "The parameters of a capacity reservation Profile.", | |
"properties": { | |
"capacityReservationGroup": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:SubResource", | |
"description": "Specifies the capacity reservation group resource id that should be used for allocating the virtual machine or scaleset vm instances provided enough capacity has been reserved. Please refer to https://aka.ms/CapacityReservation for more details." | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:compute:CapacityReservationProfileResponse": { | |
"description": "The parameters of a capacity reservation Profile.", | |
"properties": { | |
"capacityReservationGroup": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:SubResourceResponse", | |
"description": "Specifies the capacity reservation group resource id that should be used for allocating the virtual machine or scaleset vm instances provided enough capacity has been reserved. Please refer to https://aka.ms/CapacityReservation for more details." | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:compute:ComponentNames": { | |
"description": "The component name. Currently, the only allowable value is Microsoft-Windows-Shell-Setup.", | |
"type": "string", | |
"enum": [ | |
{ | |
"value": "Microsoft-Windows-Shell-Setup" | |
} | |
] | |
}, | |
"azure-native:compute:DataDisk": { | |
"description": "Describes a data disk.", | |
"properties": { | |
"caching": { | |
"$ref": "#/types/azure-native:compute:CachingTypes", | |
"description": "Specifies the caching requirements. Possible values are: **None,** **ReadOnly,** **ReadWrite.** The defaulting behavior is: **None for Standard storage. ReadOnly for Premium storage.**" | |
}, | |
"createOption": { | |
"oneOf": [ | |
{ | |
"type": "string" | |
}, | |
{ | |
"$ref": "#/types/azure-native:compute:DiskCreateOptionTypes" | |
} | |
], | |
"description": "Specifies how the virtual machine should be created. Possible values are: **Attach.** This value is used when you are using a specialized disk to create the virtual machine. **FromImage.** This value is used when you are using an image to create the virtual machine. If you are using a platform image, you should also use the imageReference element described above. If you are using a marketplace image, you should also use the plan element previously described." | |
}, | |
"deleteOption": { | |
"oneOf": [ | |
{ | |
"type": "string" | |
}, | |
{ | |
"$ref": "#/types/azure-native:compute:DiskDeleteOptionTypes" | |
} | |
], | |
"description": "Specifies whether data disk should be deleted or detached upon VM deletion. Possible values are: **Delete.** If this value is used, the data disk is deleted when VM is deleted. **Detach.** If this value is used, the data disk is retained after VM is deleted. The default value is set to **Detach**." | |
}, | |
"detachOption": { | |
"oneOf": [ | |
{ | |
"type": "string" | |
}, | |
{ | |
"$ref": "#/types/azure-native:compute:DiskDetachOptionTypes" | |
} | |
], | |
"description": "Specifies the detach behavior to be used while detaching a disk or which is already in the process of detachment from the virtual machine. Supported values: **ForceDetach.** detachOption: **ForceDetach** is applicable only for managed data disks. If a previous detachment attempt of the data disk did not complete due to an unexpected failure from the virtual machine and the disk is still not released then use force-detach as a last resort option to detach the disk forcibly from the VM. All writes might not have been flushed when using this detach behavior. **This feature is still in preview** mode and is not supported for VirtualMachineScaleSet. To force-detach a data disk update toBeDetached to 'true' along with setting detachOption: 'ForceDetach'." | |
}, | |
"diskSizeGB": { | |
"type": "integer", | |
"description": "Specifies the size of an empty data disk in gigabytes. This element can be used to overwrite the size of the disk in a virtual machine image. The property 'diskSizeGB' is the number of bytes x 1024^3 for the disk and the value cannot be larger than 1023." | |
}, | |
"image": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:VirtualHardDisk", | |
"description": "The source user image virtual hard disk. The virtual hard disk will be copied before being attached to the virtual machine. If SourceImage is provided, the destination virtual hard drive must not exist." | |
}, | |
"lun": { | |
"type": "integer", | |
"description": "Specifies the logical unit number of the data disk. This value is used to identify data disks within the VM and therefore must be unique for each data disk attached to a VM." | |
}, | |
"managedDisk": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:ManagedDiskParameters", | |
"description": "The managed disk parameters." | |
}, | |
"name": { | |
"type": "string", | |
"description": "The disk name." | |
}, | |
"toBeDetached": { | |
"type": "boolean", | |
"description": "Specifies whether the data disk is in process of detachment from the VirtualMachine/VirtualMachineScaleset" | |
}, | |
"vhd": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:VirtualHardDisk", | |
"description": "The virtual hard disk." | |
}, | |
"writeAcceleratorEnabled": { | |
"type": "boolean", | |
"description": "Specifies whether writeAccelerator should be enabled or disabled on the disk." | |
} | |
}, | |
"type": "object", | |
"required": [ | |
"createOption", | |
"lun" | |
] | |
}, | |
"azure-native:compute:DataDiskResponse": { | |
"description": "Describes a data disk.", | |
"properties": { | |
"caching": { | |
"type": "string", | |
"description": "Specifies the caching requirements. Possible values are: **None,** **ReadOnly,** **ReadWrite.** The defaulting behavior is: **None for Standard storage. ReadOnly for Premium storage.**" | |
}, | |
"createOption": { | |
"type": "string", | |
"description": "Specifies how the virtual machine should be created. Possible values are: **Attach.** This value is used when you are using a specialized disk to create the virtual machine. **FromImage.** This value is used when you are using an image to create the virtual machine. If you are using a platform image, you should also use the imageReference element described above. If you are using a marketplace image, you should also use the plan element previously described." | |
}, | |
"deleteOption": { | |
"type": "string", | |
"description": "Specifies whether data disk should be deleted or detached upon VM deletion. Possible values are: **Delete.** If this value is used, the data disk is deleted when VM is deleted. **Detach.** If this value is used, the data disk is retained after VM is deleted. The default value is set to **Detach**." | |
}, | |
"detachOption": { | |
"type": "string", | |
"description": "Specifies the detach behavior to be used while detaching a disk or which is already in the process of detachment from the virtual machine. Supported values: **ForceDetach.** detachOption: **ForceDetach** is applicable only for managed data disks. If a previous detachment attempt of the data disk did not complete due to an unexpected failure from the virtual machine and the disk is still not released then use force-detach as a last resort option to detach the disk forcibly from the VM. All writes might not have been flushed when using this detach behavior. **This feature is still in preview** mode and is not supported for VirtualMachineScaleSet. To force-detach a data disk update toBeDetached to 'true' along with setting detachOption: 'ForceDetach'." | |
}, | |
"diskIOPSReadWrite": { | |
"type": "number", | |
"description": "Specifies the Read-Write IOPS for the managed disk when StorageAccountType is UltraSSD_LRS. Returned only for VirtualMachine ScaleSet VM disks. Can be updated only via updates to the VirtualMachine Scale Set." | |
}, | |
"diskMBpsReadWrite": { | |
"type": "number", | |
"description": "Specifies the bandwidth in MB per second for the managed disk when StorageAccountType is UltraSSD_LRS. Returned only for VirtualMachine ScaleSet VM disks. Can be updated only via updates to the VirtualMachine Scale Set." | |
}, | |
"diskSizeGB": { | |
"type": "integer", | |
"description": "Specifies the size of an empty data disk in gigabytes. This element can be used to overwrite the size of the disk in a virtual machine image. The property 'diskSizeGB' is the number of bytes x 1024^3 for the disk and the value cannot be larger than 1023." | |
}, | |
"image": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:VirtualHardDiskResponse", | |
"description": "The source user image virtual hard disk. The virtual hard disk will be copied before being attached to the virtual machine. If SourceImage is provided, the destination virtual hard drive must not exist." | |
}, | |
"lun": { | |
"type": "integer", | |
"description": "Specifies the logical unit number of the data disk. This value is used to identify data disks within the VM and therefore must be unique for each data disk attached to a VM." | |
}, | |
"managedDisk": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:ManagedDiskParametersResponse", | |
"description": "The managed disk parameters." | |
}, | |
"name": { | |
"type": "string", | |
"description": "The disk name." | |
}, | |
"toBeDetached": { | |
"type": "boolean", | |
"description": "Specifies whether the data disk is in process of detachment from the VirtualMachine/VirtualMachineScaleset" | |
}, | |
"vhd": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:VirtualHardDiskResponse", | |
"description": "The virtual hard disk." | |
}, | |
"writeAcceleratorEnabled": { | |
"type": "boolean", | |
"description": "Specifies whether writeAccelerator should be enabled or disabled on the disk." | |
} | |
}, | |
"type": "object", | |
"required": [ | |
"createOption", | |
"diskIOPSReadWrite", | |
"diskMBpsReadWrite", | |
"lun" | |
] | |
}, | |
"azure-native:compute:DeleteOptions": { | |
"description": "Specify what happens to the public IP when the VM is deleted", | |
"type": "string", | |
"enum": [ | |
{ | |
"value": "Delete" | |
}, | |
{ | |
"value": "Detach" | |
} | |
] | |
}, | |
"azure-native:compute:DiagnosticsProfile": { | |
"description": "Specifies the boot diagnostic settings state. Minimum api-version: 2015-06-15.", | |
"properties": { | |
"bootDiagnostics": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:BootDiagnostics", | |
"description": "Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status. **NOTE**: If storageUri is being specified then ensure that the storage account is in the same region and subscription as the VM. You can easily view the output of your console log. Azure also enables you to see a screenshot of the VM from the hypervisor." | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:compute:DiagnosticsProfileResponse": { | |
"description": "Specifies the boot diagnostic settings state. Minimum api-version: 2015-06-15.", | |
"properties": { | |
"bootDiagnostics": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:BootDiagnosticsResponse", | |
"description": "Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status. **NOTE**: If storageUri is being specified then ensure that the storage account is in the same region and subscription as the VM. You can easily view the output of your console log. Azure also enables you to see a screenshot of the VM from the hypervisor." | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:compute:DiffDiskOptions": { | |
"description": "Specifies the ephemeral disk settings for operating system disk.", | |
"type": "string", | |
"enum": [ | |
{ | |
"value": "Local" | |
} | |
] | |
}, | |
"azure-native:compute:DiffDiskPlacement": { | |
"description": "Specifies the ephemeral disk placement for operating system disk. Possible values are: **CacheDisk,** **ResourceDisk.** The defaulting behavior is: **CacheDisk** if one is configured for the VM size otherwise **ResourceDisk** is used. Refer to the VM size documentation for Windows VM at https://docs.microsoft.com/azure/virtual-machines/windows/sizes and Linux VM at https://docs.microsoft.com/azure/virtual-machines/linux/sizes to check which VM sizes exposes a cache disk.", | |
"type": "string", | |
"enum": [ | |
{ | |
"value": "CacheDisk" | |
}, | |
{ | |
"value": "ResourceDisk" | |
} | |
] | |
}, | |
"azure-native:compute:DiffDiskSettings": { | |
"description": "Describes the parameters of ephemeral disk settings that can be specified for operating system disk. **Note:** The ephemeral disk settings can only be specified for managed disk.", | |
"properties": { | |
"option": { | |
"oneOf": [ | |
{ | |
"type": "string" | |
}, | |
{ | |
"$ref": "#/types/azure-native:compute:DiffDiskOptions" | |
} | |
], | |
"description": "Specifies the ephemeral disk settings for operating system disk." | |
}, | |
"placement": { | |
"oneOf": [ | |
{ | |
"type": "string" | |
}, | |
{ | |
"$ref": "#/types/azure-native:compute:DiffDiskPlacement" | |
} | |
], | |
"description": "Specifies the ephemeral disk placement for operating system disk. Possible values are: **CacheDisk,** **ResourceDisk.** The defaulting behavior is: **CacheDisk** if one is configured for the VM size otherwise **ResourceDisk** is used. Refer to the VM size documentation for Windows VM at https://docs.microsoft.com/azure/virtual-machines/windows/sizes and Linux VM at https://docs.microsoft.com/azure/virtual-machines/linux/sizes to check which VM sizes exposes a cache disk." | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:compute:DiffDiskSettingsResponse": { | |
"description": "Describes the parameters of ephemeral disk settings that can be specified for operating system disk. **Note:** The ephemeral disk settings can only be specified for managed disk.", | |
"properties": { | |
"option": { | |
"type": "string", | |
"description": "Specifies the ephemeral disk settings for operating system disk." | |
}, | |
"placement": { | |
"type": "string", | |
"description": "Specifies the ephemeral disk placement for operating system disk. Possible values are: **CacheDisk,** **ResourceDisk.** The defaulting behavior is: **CacheDisk** if one is configured for the VM size otherwise **ResourceDisk** is used. Refer to the VM size documentation for Windows VM at https://docs.microsoft.com/azure/virtual-machines/windows/sizes and Linux VM at https://docs.microsoft.com/azure/virtual-machines/linux/sizes to check which VM sizes exposes a cache disk." | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:compute:DiskControllerTypes": { | |
"description": "Specifies the disk controller type configured for the VM. **Note:** This property will be set to the default disk controller type if not specified provided virtual machine is being created with 'hyperVGeneration' set to V2 based on the capabilities of the operating system disk and VM size from the the specified minimum api version. You need to deallocate the VM before updating its disk controller type unless you are updating the VM size in the VM configuration which implicitly deallocates and reallocates the VM. Minimum api-version: 2022-08-01.", | |
"type": "string", | |
"enum": [ | |
{ | |
"value": "SCSI" | |
}, | |
{ | |
"value": "NVMe" | |
} | |
] | |
}, | |
"azure-native:compute:DiskCreateOptionTypes": { | |
"description": "Specifies how the virtual machine should be created. Possible values are: **Attach.** This value is used when you are using a specialized disk to create the virtual machine. **FromImage.** This value is used when you are using an image to create the virtual machine. If you are using a platform image, you should also use the imageReference element described above. If you are using a marketplace image, you should also use the plan element previously described.", | |
"type": "string", | |
"enum": [ | |
{ | |
"value": "FromImage" | |
}, | |
{ | |
"value": "Empty" | |
}, | |
{ | |
"value": "Attach" | |
} | |
] | |
}, | |
"azure-native:compute:DiskDeleteOptionTypes": { | |
"description": "Specifies whether OS Disk should be deleted or detached upon VM deletion. Possible values are: **Delete.** If this value is used, the OS disk is deleted when VM is deleted. **Detach.** If this value is used, the os disk is retained after VM is deleted. The default value is set to **Detach**. For an ephemeral OS Disk, the default value is set to **Delete**. The user cannot change the delete option for an ephemeral OS Disk.", | |
"type": "string", | |
"enum": [ | |
{ | |
"value": "Delete" | |
}, | |
{ | |
"value": "Detach" | |
} | |
] | |
}, | |
"azure-native:compute:DiskDetachOptionTypes": { | |
"description": "Specifies the detach behavior to be used while detaching a disk or which is already in the process of detachment from the virtual machine. Supported values: **ForceDetach.** detachOption: **ForceDetach** is applicable only for managed data disks. If a previous detachment attempt of the data disk did not complete due to an unexpected failure from the virtual machine and the disk is still not released then use force-detach as a last resort option to detach the disk forcibly from the VM. All writes might not have been flushed when using this detach behavior. **This feature is still in preview** mode and is not supported for VirtualMachineScaleSet. To force-detach a data disk update toBeDetached to 'true' along with setting detachOption: 'ForceDetach'.", | |
"type": "string", | |
"enum": [ | |
{ | |
"value": "ForceDetach" | |
} | |
] | |
}, | |
"azure-native:compute:DiskEncryptionSetParameters": { | |
"description": "Describes the parameter of customer managed disk encryption set resource id that can be specified for disk. **Note:** The disk encryption set resource id can only be specified for managed disk. Please refer https://aka.ms/mdssewithcmkoverview for more details.", | |
"properties": { | |
"id": { | |
"type": "string", | |
"description": "Resource Id" | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:compute:DiskEncryptionSetParametersResponse": { | |
"description": "Describes the parameter of customer managed disk encryption set resource id that can be specified for disk. **Note:** The disk encryption set resource id can only be specified for managed disk. Please refer https://aka.ms/mdssewithcmkoverview for more details.", | |
"properties": { | |
"id": { | |
"type": "string", | |
"description": "Resource Id" | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:compute:DiskEncryptionSettings": { | |
"description": "Describes a Encryption Settings for a Disk", | |
"properties": { | |
"diskEncryptionKey": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:KeyVaultSecretReference", | |
"description": "Specifies the location of the disk encryption key, which is a Key Vault Secret." | |
}, | |
"enabled": { | |
"type": "boolean", | |
"description": "Specifies whether disk encryption should be enabled on the virtual machine." | |
}, | |
"keyEncryptionKey": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:KeyVaultKeyReference", | |
"description": "Specifies the location of the key encryption key in Key Vault." | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:compute:DiskEncryptionSettingsResponse": { | |
"description": "Describes a Encryption Settings for a Disk", | |
"properties": { | |
"diskEncryptionKey": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:KeyVaultSecretReferenceResponse", | |
"description": "Specifies the location of the disk encryption key, which is a Key Vault Secret." | |
}, | |
"enabled": { | |
"type": "boolean", | |
"description": "Specifies whether disk encryption should be enabled on the virtual machine." | |
}, | |
"keyEncryptionKey": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:KeyVaultKeyReferenceResponse", | |
"description": "Specifies the location of the key encryption key in Key Vault." | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:compute:DiskInstanceViewResponse": { | |
"description": "The instance view of the disk.", | |
"properties": { | |
"encryptionSettings": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:DiskEncryptionSettingsResponse" | |
}, | |
"description": "Specifies the encryption settings for the OS Disk. <br><br> Minimum api-version: 2015-06-15" | |
}, | |
"name": { | |
"type": "string", | |
"description": "The disk name." | |
}, | |
"statuses": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:InstanceViewStatusResponse" | |
}, | |
"description": "The resource status information." | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:compute:ExtendedLocation": { | |
"description": "The complex type of the extended location.", | |
"properties": { | |
"name": { | |
"type": "string", | |
"description": "The name of the extended location." | |
}, | |
"type": { | |
"oneOf": [ | |
{ | |
"type": "string" | |
}, | |
{ | |
"$ref": "#/types/azure-native:compute:ExtendedLocationTypes" | |
} | |
], | |
"description": "The type of the extended location." | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:compute:ExtendedLocationResponse": { | |
"description": "The complex type of the extended location.", | |
"properties": { | |
"name": { | |
"type": "string", | |
"description": "The name of the extended location." | |
}, | |
"type": { | |
"type": "string", | |
"description": "The type of the extended location." | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:compute:ExtendedLocationTypes": { | |
"description": "The type of the extended location.", | |
"type": "string", | |
"enum": [ | |
{ | |
"value": "EdgeZone" | |
} | |
] | |
}, | |
"azure-native:compute:HardwareProfile": { | |
"description": "Specifies the hardware settings for the virtual machine.", | |
"properties": { | |
"vmSize": { | |
"oneOf": [ | |
{ | |
"type": "string" | |
}, | |
{ | |
"$ref": "#/types/azure-native:compute:VirtualMachineSizeTypes" | |
} | |
], | |
"description": "Specifies the size of the virtual machine. The enum data type is currently deprecated and will be removed by December 23rd 2023. The recommended way to get the list of available sizes is using these APIs: [List all available virtual machine sizes in an availability set](https://docs.microsoft.com/rest/api/compute/availabilitysets/listavailablesizes), [List all available virtual machine sizes in a region]( https://docs.microsoft.com/rest/api/compute/resourceskus/list), [List all available virtual machine sizes for resizing](https://docs.microsoft.com/rest/api/compute/virtualmachines/listavailablesizes). For more information about virtual machine sizes, see [Sizes for virtual machines](https://docs.microsoft.com/azure/virtual-machines/sizes). The available VM sizes depend on region and availability set." | |
}, | |
"vmSizeProperties": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:VMSizeProperties", | |
"description": "Specifies the properties for customizing the size of the virtual machine. Minimum api-version: 2021-07-01. This feature is still in preview mode and is not supported for VirtualMachineScaleSet. Please follow the instructions in [VM Customization](https://aka.ms/vmcustomization) for more details." | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:compute:HardwareProfileResponse": { | |
"description": "Specifies the hardware settings for the virtual machine.", | |
"properties": { | |
"vmSize": { | |
"type": "string", | |
"description": "Specifies the size of the virtual machine. The enum data type is currently deprecated and will be removed by December 23rd 2023. The recommended way to get the list of available sizes is using these APIs: [List all available virtual machine sizes in an availability set](https://docs.microsoft.com/rest/api/compute/availabilitysets/listavailablesizes), [List all available virtual machine sizes in a region]( https://docs.microsoft.com/rest/api/compute/resourceskus/list), [List all available virtual machine sizes for resizing](https://docs.microsoft.com/rest/api/compute/virtualmachines/listavailablesizes). For more information about virtual machine sizes, see [Sizes for virtual machines](https://docs.microsoft.com/azure/virtual-machines/sizes). The available VM sizes depend on region and availability set." | |
}, | |
"vmSizeProperties": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:VMSizePropertiesResponse", | |
"description": "Specifies the properties for customizing the size of the virtual machine. Minimum api-version: 2021-07-01. This feature is still in preview mode and is not supported for VirtualMachineScaleSet. Please follow the instructions in [VM Customization](https://aka.ms/vmcustomization) for more details." | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:compute:IPVersions": { | |
"description": "Available from Api-Version 2019-07-01 onwards, it represents whether the specific ipconfiguration is IPv4 or IPv6. Default is taken as IPv4. Possible values are: 'IPv4' and 'IPv6'.", | |
"type": "string", | |
"enum": [ | |
{ | |
"value": "IPv4" | |
}, | |
{ | |
"value": "IPv6" | |
} | |
] | |
}, | |
"azure-native:compute:ImageReference": { | |
"description": "Specifies information about the image to use. You can specify information about platform images, marketplace images, or virtual machine images. This element is required when you want to use a platform image, marketplace image, or virtual machine image, but is not used in other creation operations. NOTE: Image reference publisher and offer can only be set when you create the scale set.", | |
"properties": { | |
"communityGalleryImageId": { | |
"type": "string", | |
"description": "Specified the community gallery image unique id for vm deployment. This can be fetched from community gallery image GET call." | |
}, | |
"id": { | |
"type": "string", | |
"description": "Resource Id" | |
}, | |
"offer": { | |
"type": "string", | |
"description": "Specifies the offer of the platform image or marketplace image used to create the virtual machine." | |
}, | |
"publisher": { | |
"type": "string", | |
"description": "The image publisher." | |
}, | |
"sharedGalleryImageId": { | |
"type": "string", | |
"description": "Specified the shared gallery image unique id for vm deployment. This can be fetched from shared gallery image GET call." | |
}, | |
"sku": { | |
"type": "string", | |
"description": "The image SKU." | |
}, | |
"version": { | |
"type": "string", | |
"description": "Specifies the version of the platform image or marketplace image used to create the virtual machine. The allowed formats are Major.Minor.Build or 'latest'. Major, Minor, and Build are decimal numbers. Specify 'latest' to use the latest version of an image available at deploy time. Even if you use 'latest', the VM image will not automatically update after deploy time even if a new version becomes available. Please do not use field 'version' for gallery image deployment, gallery image should always use 'id' field for deployment, to use 'latest' version of gallery image, just set '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{imageName}' in the 'id' field without version input." | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:compute:ImageReferenceResponse": { | |
"description": "Specifies information about the image to use. You can specify information about platform images, marketplace images, or virtual machine images. This element is required when you want to use a platform image, marketplace image, or virtual machine image, but is not used in other creation operations. NOTE: Image reference publisher and offer can only be set when you create the scale set.", | |
"properties": { | |
"communityGalleryImageId": { | |
"type": "string", | |
"description": "Specified the community gallery image unique id for vm deployment. This can be fetched from community gallery image GET call." | |
}, | |
"exactVersion": { | |
"type": "string", | |
"description": "Specifies in decimal numbers, the version of platform image or marketplace image used to create the virtual machine. This readonly field differs from 'version', only if the value specified in 'version' field is 'latest'." | |
}, | |
"id": { | |
"type": "string", | |
"description": "Resource Id" | |
}, | |
"offer": { | |
"type": "string", | |
"description": "Specifies the offer of the platform image or marketplace image used to create the virtual machine." | |
}, | |
"publisher": { | |
"type": "string", | |
"description": "The image publisher." | |
}, | |
"sharedGalleryImageId": { | |
"type": "string", | |
"description": "Specified the shared gallery image unique id for vm deployment. This can be fetched from shared gallery image GET call." | |
}, | |
"sku": { | |
"type": "string", | |
"description": "The image SKU." | |
}, | |
"version": { | |
"type": "string", | |
"description": "Specifies the version of the platform image or marketplace image used to create the virtual machine. The allowed formats are Major.Minor.Build or 'latest'. Major, Minor, and Build are decimal numbers. Specify 'latest' to use the latest version of an image available at deploy time. Even if you use 'latest', the VM image will not automatically update after deploy time even if a new version becomes available. Please do not use field 'version' for gallery image deployment, gallery image should always use 'id' field for deployment, to use 'latest' version of gallery image, just set '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{imageName}' in the 'id' field without version input." | |
} | |
}, | |
"type": "object", | |
"required": [ | |
"exactVersion" | |
] | |
}, | |
"azure-native:compute:InnerErrorResponse": { | |
"description": "Inner error details.", | |
"properties": { | |
"errordetail": { | |
"type": "string", | |
"description": "The internal error message or exception dump." | |
}, | |
"exceptiontype": { | |
"type": "string", | |
"description": "The exception type." | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:compute:InstanceViewStatusResponse": { | |
"description": "Instance view status.", | |
"properties": { | |
"code": { | |
"type": "string", | |
"description": "The status code." | |
}, | |
"displayStatus": { | |
"type": "string", | |
"description": "The short localizable label for the status." | |
}, | |
"level": { | |
"type": "string", | |
"description": "The level code." | |
}, | |
"message": { | |
"type": "string", | |
"description": "The detailed status message, including for alerts and error messages." | |
}, | |
"time": { | |
"type": "string", | |
"description": "The time of the status." | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:compute:KeyVaultKeyReference": { | |
"description": "Describes a reference to Key Vault Key", | |
"properties": { | |
"keyUrl": { | |
"type": "string", | |
"description": "The URL referencing a key encryption key in Key Vault." | |
}, | |
"sourceVault": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:SubResource", | |
"description": "The relative URL of the Key Vault containing the key." | |
} | |
}, | |
"type": "object", | |
"required": [ | |
"keyUrl", | |
"sourceVault" | |
] | |
}, | |
"azure-native:compute:KeyVaultKeyReferenceResponse": { | |
"description": "Describes a reference to Key Vault Key", | |
"properties": { | |
"keyUrl": { | |
"type": "string", | |
"description": "The URL referencing a key encryption key in Key Vault." | |
}, | |
"sourceVault": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:SubResourceResponse", | |
"description": "The relative URL of the Key Vault containing the key." | |
} | |
}, | |
"type": "object", | |
"required": [ | |
"keyUrl", | |
"sourceVault" | |
] | |
}, | |
"azure-native:compute:KeyVaultSecretReference": { | |
"description": "Describes a reference to Key Vault Secret", | |
"properties": { | |
"secretUrl": { | |
"type": "string", | |
"description": "The URL referencing a secret in a Key Vault." | |
}, | |
"sourceVault": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:SubResource", | |
"description": "The relative URL of the Key Vault containing the secret." | |
} | |
}, | |
"type": "object", | |
"required": [ | |
"secretUrl", | |
"sourceVault" | |
] | |
}, | |
"azure-native:compute:KeyVaultSecretReferenceResponse": { | |
"description": "Describes a reference to Key Vault Secret", | |
"properties": { | |
"secretUrl": { | |
"type": "string", | |
"description": "The URL referencing a secret in a Key Vault." | |
}, | |
"sourceVault": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:SubResourceResponse", | |
"description": "The relative URL of the Key Vault containing the secret." | |
} | |
}, | |
"type": "object", | |
"required": [ | |
"secretUrl", | |
"sourceVault" | |
] | |
}, | |
"azure-native:compute:LastPatchInstallationSummaryResponse": { | |
"description": "Describes the properties of the last installed patch summary.", | |
"properties": { | |
"error": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:ApiErrorResponse", | |
"description": "The errors that were encountered during execution of the operation. The details array contains the list of them." | |
}, | |
"excludedPatchCount": { | |
"type": "integer", | |
"description": "The number of all available patches but excluded explicitly by a customer-specified exclusion list match." | |
}, | |
"failedPatchCount": { | |
"type": "integer", | |
"description": "The count of patches that failed installation." | |
}, | |
"installationActivityId": { | |
"type": "string", | |
"description": "The activity ID of the operation that produced this result. It is used to correlate across CRP and extension logs." | |
}, | |
"installedPatchCount": { | |
"type": "integer", | |
"description": "The count of patches that successfully installed." | |
}, | |
"lastModifiedTime": { | |
"type": "string", | |
"description": "The UTC timestamp when the operation began." | |
}, | |
"maintenanceWindowExceeded": { | |
"type": "boolean", | |
"description": "Describes whether the operation ran out of time before it completed all its intended actions" | |
}, | |
"notSelectedPatchCount": { | |
"type": "integer", | |
"description": "The number of all available patches but not going to be installed because it didn't match a classification or inclusion list entry." | |
}, | |
"pendingPatchCount": { | |
"type": "integer", | |
"description": "The number of all available patches expected to be installed over the course of the patch installation operation." | |
}, | |
"startTime": { | |
"type": "string", | |
"description": "The UTC timestamp when the operation began." | |
}, | |
"status": { | |
"type": "string", | |
"description": "The overall success or failure status of the operation. It remains \"InProgress\" until the operation completes. At that point it will become \"Unknown\", \"Failed\", \"Succeeded\", or \"CompletedWithWarnings.\"" | |
} | |
}, | |
"type": "object", | |
"required": [ | |
"error", | |
"excludedPatchCount", | |
"failedPatchCount", | |
"installationActivityId", | |
"installedPatchCount", | |
"lastModifiedTime", | |
"maintenanceWindowExceeded", | |
"notSelectedPatchCount", | |
"pendingPatchCount", | |
"startTime", | |
"status" | |
] | |
}, | |
"azure-native:compute:LinuxConfiguration": { | |
"description": "Specifies the Linux operating system settings on the virtual machine. For a list of supported Linux distributions, see [Linux on Azure-Endorsed Distributions](https://docs.microsoft.com/azure/virtual-machines/linux/endorsed-distros).", | |
"properties": { | |
"disablePasswordAuthentication": { | |
"type": "boolean", | |
"description": "Specifies whether password authentication should be disabled." | |
}, | |
"enableVMAgentPlatformUpdates": { | |
"type": "boolean", | |
"description": "Indicates whether VMAgent Platform Updates is enabled for the Linux virtual machine. Default value is false." | |
}, | |
"patchSettings": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:LinuxPatchSettings", | |
"description": "[Preview Feature] Specifies settings related to VM Guest Patching on Linux." | |
}, | |
"provisionVMAgent": { | |
"type": "boolean", | |
"description": "Indicates whether virtual machine agent should be provisioned on the virtual machine. When this property is not specified in the request body, default behavior is to set it to true. This will ensure that VM Agent is installed on the VM so that extensions can be added to the VM later." | |
}, | |
"ssh": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:SshConfiguration", | |
"description": "Specifies the ssh key configuration for a Linux OS." | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:compute:LinuxConfigurationResponse": { | |
"description": "Specifies the Linux operating system settings on the virtual machine. For a list of supported Linux distributions, see [Linux on Azure-Endorsed Distributions](https://docs.microsoft.com/azure/virtual-machines/linux/endorsed-distros).", | |
"properties": { | |
"disablePasswordAuthentication": { | |
"type": "boolean", | |
"description": "Specifies whether password authentication should be disabled." | |
}, | |
"enableVMAgentPlatformUpdates": { | |
"type": "boolean", | |
"description": "Indicates whether VMAgent Platform Updates is enabled for the Linux virtual machine. Default value is false." | |
}, | |
"patchSettings": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:LinuxPatchSettingsResponse", | |
"description": "[Preview Feature] Specifies settings related to VM Guest Patching on Linux." | |
}, | |
"provisionVMAgent": { | |
"type": "boolean", | |
"description": "Indicates whether virtual machine agent should be provisioned on the virtual machine. When this property is not specified in the request body, default behavior is to set it to true. This will ensure that VM Agent is installed on the VM so that extensions can be added to the VM later." | |
}, | |
"ssh": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:SshConfigurationResponse", | |
"description": "Specifies the ssh key configuration for a Linux OS." | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:compute:LinuxPatchAssessmentMode": { | |
"description": "Specifies the mode of VM Guest Patch Assessment for the IaaS virtual machine.<br /><br /> Possible values are:<br /><br /> **ImageDefault** - You control the timing of patch assessments on a virtual machine. <br /><br /> **AutomaticByPlatform** - The platform will trigger periodic patch assessments. The property provisionVMAgent must be true.", | |
"type": "string", | |
"enum": [ | |
{ | |
"value": "ImageDefault" | |
}, | |
{ | |
"value": "AutomaticByPlatform" | |
} | |
] | |
}, | |
"azure-native:compute:LinuxPatchSettings": { | |
"description": "Specifies settings related to VM Guest Patching on Linux.", | |
"properties": { | |
"assessmentMode": { | |
"oneOf": [ | |
{ | |
"type": "string" | |
}, | |
{ | |
"$ref": "#/types/azure-native:compute:LinuxPatchAssessmentMode" | |
} | |
], | |
"description": "Specifies the mode of VM Guest Patch Assessment for the IaaS virtual machine.<br /><br /> Possible values are:<br /><br /> **ImageDefault** - You control the timing of patch assessments on a virtual machine. <br /><br /> **AutomaticByPlatform** - The platform will trigger periodic patch assessments. The property provisionVMAgent must be true." | |
}, | |
"automaticByPlatformSettings": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:LinuxVMGuestPatchAutomaticByPlatformSettings", | |
"description": "Specifies additional settings for patch mode AutomaticByPlatform in VM Guest Patching on Linux." | |
}, | |
"patchMode": { | |
"oneOf": [ | |
{ | |
"type": "string" | |
}, | |
{ | |
"$ref": "#/types/azure-native:compute:LinuxVMGuestPatchMode" | |
} | |
], | |
"description": "Specifies the mode of VM Guest Patching to IaaS virtual machine or virtual machines associated to virtual machine scale set with OrchestrationMode as Flexible.<br /><br /> Possible values are:<br /><br /> **ImageDefault** - The virtual machine's default patching configuration is used. <br /><br /> **AutomaticByPlatform** - The virtual machine will be automatically updated by the platform. The property provisionVMAgent must be true" | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:compute:LinuxPatchSettingsResponse": { | |
"description": "Specifies settings related to VM Guest Patching on Linux.", | |
"properties": { | |
"assessmentMode": { | |
"type": "string", | |
"description": "Specifies the mode of VM Guest Patch Assessment for the IaaS virtual machine.<br /><br /> Possible values are:<br /><br /> **ImageDefault** - You control the timing of patch assessments on a virtual machine. <br /><br /> **AutomaticByPlatform** - The platform will trigger periodic patch assessments. The property provisionVMAgent must be true." | |
}, | |
"automaticByPlatformSettings": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:LinuxVMGuestPatchAutomaticByPlatformSettingsResponse", | |
"description": "Specifies additional settings for patch mode AutomaticByPlatform in VM Guest Patching on Linux." | |
}, | |
"patchMode": { | |
"type": "string", | |
"description": "Specifies the mode of VM Guest Patching to IaaS virtual machine or virtual machines associated to virtual machine scale set with OrchestrationMode as Flexible.<br /><br /> Possible values are:<br /><br /> **ImageDefault** - The virtual machine's default patching configuration is used. <br /><br /> **AutomaticByPlatform** - The virtual machine will be automatically updated by the platform. The property provisionVMAgent must be true" | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:compute:LinuxVMGuestPatchAutomaticByPlatformRebootSetting": { | |
"description": "Specifies the reboot setting for all AutomaticByPlatform patch installation operations.", | |
"type": "string", | |
"enum": [ | |
{ | |
"value": "Unknown" | |
}, | |
{ | |
"value": "IfRequired" | |
}, | |
{ | |
"value": "Never" | |
}, | |
{ | |
"value": "Always" | |
} | |
] | |
}, | |
"azure-native:compute:LinuxVMGuestPatchAutomaticByPlatformSettings": { | |
"description": "Specifies additional settings to be applied when patch mode AutomaticByPlatform is selected in Linux patch settings.", | |
"properties": { | |
"bypassPlatformSafetyChecksOnUserSchedule": { | |
"type": "boolean", | |
"description": "Enables customer to schedule patching without accidental upgrades" | |
}, | |
"rebootSetting": { | |
"oneOf": [ | |
{ | |
"type": "string" | |
}, | |
{ | |
"$ref": "#/types/azure-native:compute:LinuxVMGuestPatchAutomaticByPlatformRebootSetting" | |
} | |
], | |
"description": "Specifies the reboot setting for all AutomaticByPlatform patch installation operations." | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:compute:LinuxVMGuestPatchAutomaticByPlatformSettingsResponse": { | |
"description": "Specifies additional settings to be applied when patch mode AutomaticByPlatform is selected in Linux patch settings.", | |
"properties": { | |
"bypassPlatformSafetyChecksOnUserSchedule": { | |
"type": "boolean", | |
"description": "Enables customer to schedule patching without accidental upgrades" | |
}, | |
"rebootSetting": { | |
"type": "string", | |
"description": "Specifies the reboot setting for all AutomaticByPlatform patch installation operations." | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:compute:LinuxVMGuestPatchMode": { | |
"description": "Specifies the mode of VM Guest Patching to IaaS virtual machine or virtual machines associated to virtual machine scale set with OrchestrationMode as Flexible.<br /><br /> Possible values are:<br /><br /> **ImageDefault** - The virtual machine's default patching configuration is used. <br /><br /> **AutomaticByPlatform** - The virtual machine will be automatically updated by the platform. The property provisionVMAgent must be true", | |
"type": "string", | |
"enum": [ | |
{ | |
"value": "ImageDefault" | |
}, | |
{ | |
"value": "AutomaticByPlatform" | |
} | |
] | |
}, | |
"azure-native:compute:MaintenanceRedeployStatusResponse": { | |
"description": "Maintenance Operation Status.", | |
"properties": { | |
"isCustomerInitiatedMaintenanceAllowed": { | |
"type": "boolean", | |
"description": "True, if customer is allowed to perform Maintenance." | |
}, | |
"lastOperationMessage": { | |
"type": "string", | |
"description": "Message returned for the last Maintenance Operation." | |
}, | |
"lastOperationResultCode": { | |
"type": "string", | |
"description": "The Last Maintenance Operation Result Code." | |
}, | |
"maintenanceWindowEndTime": { | |
"type": "string", | |
"description": "End Time for the Maintenance Window." | |
}, | |
"maintenanceWindowStartTime": { | |
"type": "string", | |
"description": "Start Time for the Maintenance Window." | |
}, | |
"preMaintenanceWindowEndTime": { | |
"type": "string", | |
"description": "End Time for the Pre Maintenance Window." | |
}, | |
"preMaintenanceWindowStartTime": { | |
"type": "string", | |
"description": "Start Time for the Pre Maintenance Window." | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:compute:ManagedDiskParameters": { | |
"description": "The parameters of a managed disk.", | |
"properties": { | |
"diskEncryptionSet": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:DiskEncryptionSetParameters", | |
"description": "Specifies the customer managed disk encryption set resource id for the managed disk." | |
}, | |
"id": { | |
"type": "string", | |
"description": "Resource Id" | |
}, | |
"securityProfile": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:VMDiskSecurityProfile", | |
"description": "Specifies the security profile for the managed disk." | |
}, | |
"storageAccountType": { | |
"oneOf": [ | |
{ | |
"type": "string" | |
}, | |
{ | |
"$ref": "#/types/azure-native:compute:StorageAccountTypes" | |
} | |
], | |
"description": "Specifies the storage account type for the managed disk. NOTE: UltraSSD_LRS can only be used with data disks, it cannot be used with OS Disk." | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:compute:ManagedDiskParametersResponse": { | |
"description": "The parameters of a managed disk.", | |
"properties": { | |
"diskEncryptionSet": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:DiskEncryptionSetParametersResponse", | |
"description": "Specifies the customer managed disk encryption set resource id for the managed disk." | |
}, | |
"id": { | |
"type": "string", | |
"description": "Resource Id" | |
}, | |
"securityProfile": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:VMDiskSecurityProfileResponse", | |
"description": "Specifies the security profile for the managed disk." | |
}, | |
"storageAccountType": { | |
"type": "string", | |
"description": "Specifies the storage account type for the managed disk. NOTE: UltraSSD_LRS can only be used with data disks, it cannot be used with OS Disk." | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:compute:NetworkApiVersion": { | |
"description": "specifies the Microsoft.Network API version used when creating networking resources in the Network Interface Configurations", | |
"type": "string", | |
"enum": [ | |
{ | |
"value": "2020-11-01" | |
} | |
] | |
}, | |
"azure-native:compute:NetworkInterfaceReference": { | |
"description": "Describes a network interface reference.", | |
"properties": { | |
"deleteOption": { | |
"oneOf": [ | |
{ | |
"type": "string" | |
}, | |
{ | |
"$ref": "#/types/azure-native:compute:DeleteOptions" | |
} | |
], | |
"description": "Specify what happens to the network interface when the VM is deleted" | |
}, | |
"id": { | |
"type": "string", | |
"description": "Resource Id" | |
}, | |
"primary": { | |
"type": "boolean", | |
"description": "Specifies the primary network interface in case the virtual machine has more than 1 network interface." | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:compute:NetworkInterfaceReferenceResponse": { | |
"description": "Describes a network interface reference.", | |
"properties": { | |
"deleteOption": { | |
"type": "string", | |
"description": "Specify what happens to the network interface when the VM is deleted" | |
}, | |
"id": { | |
"type": "string", | |
"description": "Resource Id" | |
}, | |
"primary": { | |
"type": "boolean", | |
"description": "Specifies the primary network interface in case the virtual machine has more than 1 network interface." | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:compute:NetworkProfile": { | |
"description": "Specifies the network interfaces or the networking configuration of the virtual machine.", | |
"properties": { | |
"networkApiVersion": { | |
"oneOf": [ | |
{ | |
"type": "string" | |
}, | |
{ | |
"$ref": "#/types/azure-native:compute:NetworkApiVersion" | |
} | |
], | |
"description": "specifies the Microsoft.Network API version used when creating networking resources in the Network Interface Configurations" | |
}, | |
"networkInterfaceConfigurations": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:VirtualMachineNetworkInterfaceConfiguration" | |
}, | |
"description": "Specifies the networking configurations that will be used to create the virtual machine networking resources." | |
}, | |
"networkInterfaces": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:NetworkInterfaceReference" | |
}, | |
"description": "Specifies the list of resource Ids for the network interfaces associated with the virtual machine." | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:compute:NetworkProfileResponse": { | |
"description": "Specifies the network interfaces or the networking configuration of the virtual machine.", | |
"properties": { | |
"networkApiVersion": { | |
"type": "string", | |
"description": "specifies the Microsoft.Network API version used when creating networking resources in the Network Interface Configurations" | |
}, | |
"networkInterfaceConfigurations": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:VirtualMachineNetworkInterfaceConfigurationResponse" | |
}, | |
"description": "Specifies the networking configurations that will be used to create the virtual machine networking resources." | |
}, | |
"networkInterfaces": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:NetworkInterfaceReferenceResponse" | |
}, | |
"description": "Specifies the list of resource Ids for the network interfaces associated with the virtual machine." | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:compute:OSDisk": { | |
"description": "Specifies information about the operating system disk used by the virtual machine. For more information about disks, see [About disks and VHDs for Azure virtual machines](https://docs.microsoft.com/azure/virtual-machines/managed-disks-overview).", | |
"properties": { | |
"caching": { | |
"$ref": "#/types/azure-native:compute:CachingTypes", | |
"description": "Specifies the caching requirements. Possible values are: **None,** **ReadOnly,** **ReadWrite.** The defaulting behavior is: **None for Standard storage. ReadOnly for Premium storage.**" | |
}, | |
"createOption": { | |
"oneOf": [ | |
{ | |
"type": "string" | |
}, | |
{ | |
"$ref": "#/types/azure-native:compute:DiskCreateOptionTypes" | |
} | |
], | |
"description": "Specifies how the virtual machine should be created. Possible values are: **Attach.** This value is used when you are using a specialized disk to create the virtual machine. **FromImage.** This value is used when you are using an image to create the virtual machine. If you are using a platform image, you should also use the imageReference element described above. If you are using a marketplace image, you should also use the plan element previously described." | |
}, | |
"deleteOption": { | |
"oneOf": [ | |
{ | |
"type": "string" | |
}, | |
{ | |
"$ref": "#/types/azure-native:compute:DiskDeleteOptionTypes" | |
} | |
], | |
"description": "Specifies whether OS Disk should be deleted or detached upon VM deletion. Possible values are: **Delete.** If this value is used, the OS disk is deleted when VM is deleted. **Detach.** If this value is used, the os disk is retained after VM is deleted. The default value is set to **Detach**. For an ephemeral OS Disk, the default value is set to **Delete**. The user cannot change the delete option for an ephemeral OS Disk." | |
}, | |
"diffDiskSettings": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:DiffDiskSettings", | |
"description": "Specifies the ephemeral Disk Settings for the operating system disk used by the virtual machine." | |
}, | |
"diskSizeGB": { | |
"type": "integer", | |
"description": "Specifies the size of an empty data disk in gigabytes. This element can be used to overwrite the size of the disk in a virtual machine image. The property 'diskSizeGB' is the number of bytes x 1024^3 for the disk and the value cannot be larger than 1023." | |
}, | |
"encryptionSettings": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:DiskEncryptionSettings", | |
"description": "Specifies the encryption settings for the OS Disk. Minimum api-version: 2015-06-15." | |
}, | |
"image": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:VirtualHardDisk", | |
"description": "The source user image virtual hard disk. The virtual hard disk will be copied before being attached to the virtual machine. If SourceImage is provided, the destination virtual hard drive must not exist." | |
}, | |
"managedDisk": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:ManagedDiskParameters", | |
"description": "The managed disk parameters." | |
}, | |
"name": { | |
"type": "string", | |
"description": "The disk name." | |
}, | |
"osType": { | |
"$ref": "#/types/azure-native:compute:OperatingSystemTypes", | |
"description": "This property allows you to specify the type of the OS that is included in the disk if creating a VM from user-image or a specialized VHD. Possible values are: **Windows,** **Linux.**" | |
}, | |
"vhd": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:VirtualHardDisk", | |
"description": "The virtual hard disk." | |
}, | |
"writeAcceleratorEnabled": { | |
"type": "boolean", | |
"description": "Specifies whether writeAccelerator should be enabled or disabled on the disk." | |
} | |
}, | |
"type": "object", | |
"required": [ | |
"createOption" | |
] | |
}, | |
"azure-native:compute:OSDiskResponse": { | |
"description": "Specifies information about the operating system disk used by the virtual machine. For more information about disks, see [About disks and VHDs for Azure virtual machines](https://docs.microsoft.com/azure/virtual-machines/managed-disks-overview).", | |
"properties": { | |
"caching": { | |
"type": "string", | |
"description": "Specifies the caching requirements. Possible values are: **None,** **ReadOnly,** **ReadWrite.** The defaulting behavior is: **None for Standard storage. ReadOnly for Premium storage.**" | |
}, | |
"createOption": { | |
"type": "string", | |
"description": "Specifies how the virtual machine should be created. Possible values are: **Attach.** This value is used when you are using a specialized disk to create the virtual machine. **FromImage.** This value is used when you are using an image to create the virtual machine. If you are using a platform image, you should also use the imageReference element described above. If you are using a marketplace image, you should also use the plan element previously described." | |
}, | |
"deleteOption": { | |
"type": "string", | |
"description": "Specifies whether OS Disk should be deleted or detached upon VM deletion. Possible values are: **Delete.** If this value is used, the OS disk is deleted when VM is deleted. **Detach.** If this value is used, the os disk is retained after VM is deleted. The default value is set to **Detach**. For an ephemeral OS Disk, the default value is set to **Delete**. The user cannot change the delete option for an ephemeral OS Disk." | |
}, | |
"diffDiskSettings": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:DiffDiskSettingsResponse", | |
"description": "Specifies the ephemeral Disk Settings for the operating system disk used by the virtual machine." | |
}, | |
"diskSizeGB": { | |
"type": "integer", | |
"description": "Specifies the size of an empty data disk in gigabytes. This element can be used to overwrite the size of the disk in a virtual machine image. The property 'diskSizeGB' is the number of bytes x 1024^3 for the disk and the value cannot be larger than 1023." | |
}, | |
"encryptionSettings": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:DiskEncryptionSettingsResponse", | |
"description": "Specifies the encryption settings for the OS Disk. Minimum api-version: 2015-06-15." | |
}, | |
"image": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:VirtualHardDiskResponse", | |
"description": "The source user image virtual hard disk. The virtual hard disk will be copied before being attached to the virtual machine. If SourceImage is provided, the destination virtual hard drive must not exist." | |
}, | |
"managedDisk": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:ManagedDiskParametersResponse", | |
"description": "The managed disk parameters." | |
}, | |
"name": { | |
"type": "string", | |
"description": "The disk name." | |
}, | |
"osType": { | |
"type": "string", | |
"description": "This property allows you to specify the type of the OS that is included in the disk if creating a VM from user-image or a specialized VHD. Possible values are: **Windows,** **Linux.**" | |
}, | |
"vhd": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:VirtualHardDiskResponse", | |
"description": "The virtual hard disk." | |
}, | |
"writeAcceleratorEnabled": { | |
"type": "boolean", | |
"description": "Specifies whether writeAccelerator should be enabled or disabled on the disk." | |
} | |
}, | |
"type": "object", | |
"required": [ | |
"createOption" | |
] | |
}, | |
"azure-native:compute:OSImageNotificationProfile": { | |
"properties": { | |
"enable": { | |
"type": "boolean", | |
"description": "Specifies whether the OS Image Scheduled event is enabled or disabled." | |
}, | |
"notBeforeTimeout": { | |
"type": "string", | |
"description": "Length of time a Virtual Machine being reimaged or having its OS upgraded will have to potentially approve the OS Image Scheduled Event before the event is auto approved (timed out). The configuration is specified in ISO 8601 format, and the value must be 15 minutes (PT15M)" | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:compute:OSImageNotificationProfileResponse": { | |
"properties": { | |
"enable": { | |
"type": "boolean", | |
"description": "Specifies whether the OS Image Scheduled event is enabled or disabled." | |
}, | |
"notBeforeTimeout": { | |
"type": "string", | |
"description": "Length of time a Virtual Machine being reimaged or having its OS upgraded will have to potentially approve the OS Image Scheduled Event before the event is auto approved (timed out). The configuration is specified in ISO 8601 format, and the value must be 15 minutes (PT15M)" | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:compute:OSProfile": { | |
"description": "Specifies the operating system settings for the virtual machine. Some of the settings cannot be changed once VM is provisioned.", | |
"properties": { | |
"adminPassword": { | |
"type": "string", | |
"description": "Specifies the password of the administrator account. <br><br> **Minimum-length (Windows):** 8 characters <br><br> **Minimum-length (Linux):** 6 characters <br><br> **Max-length (Windows):** 123 characters <br><br> **Max-length (Linux):** 72 characters <br><br> **Complexity requirements:** 3 out of 4 conditions below need to be fulfilled <br> Has lower characters <br>Has upper characters <br> Has a digit <br> Has a special character (Regex match [\\W_]) <br><br> **Disallowed values:** \"abc@123\", \"P@$$w0rd\", \"P@ssw0rd\", \"P@ssword123\", \"Pa$$word\", \"pass@word1\", \"Password!\", \"Password1\", \"Password22\", \"iloveyou!\" <br><br> For resetting the password, see [How to reset the Remote Desktop service or its login password in a Windows VM](https://docs.microsoft.com/troubleshoot/azure/virtual-machines/reset-rdp) <br><br> For resetting root password, see [Manage users, SSH, and check or repair disks on Azure Linux VMs using the VMAccess Extension](https://docs.microsoft.com/troubleshoot/azure/virtual-machines/troubleshoot-ssh-connection)" | |
}, | |
"adminUsername": { | |
"type": "string", | |
"description": "Specifies the name of the administrator account. <br><br> This property cannot be updated after the VM is created. <br><br> **Windows-only restriction:** Cannot end in \".\" <br><br> **Disallowed values:** \"administrator\", \"admin\", \"user\", \"user1\", \"test\", \"user2\", \"test1\", \"user3\", \"admin1\", \"1\", \"123\", \"a\", \"actuser\", \"adm\", \"admin2\", \"aspnet\", \"backup\", \"console\", \"david\", \"guest\", \"john\", \"owner\", \"root\", \"server\", \"sql\", \"support\", \"support_388945a0\", \"sys\", \"test2\", \"test3\", \"user4\", \"user5\". <br><br> **Minimum-length (Linux):** 1 character <br><br> **Max-length (Linux):** 64 characters <br><br> **Max-length (Windows):** 20 characters." | |
}, | |
"allowExtensionOperations": { | |
"type": "boolean", | |
"description": "Specifies whether extension operations should be allowed on the virtual machine. This may only be set to False when no extensions are present on the virtual machine." | |
}, | |
"computerName": { | |
"type": "string", | |
"description": "Specifies the host OS name of the virtual machine. This name cannot be updated after the VM is created. **Max-length (Windows):** 15 characters. **Max-length (Linux):** 64 characters. For naming conventions and restrictions see [Azure infrastructure services implementation guidelines](https://docs.microsoft.com/azure/azure-resource-manager/management/resource-name-rules)." | |
}, | |
"customData": { | |
"type": "string", | |
"description": "Specifies a base-64 encoded string of custom data. The base-64 encoded string is decoded to a binary array that is saved as a file on the Virtual Machine. The maximum length of the binary array is 65535 bytes. **Note: Do not pass any secrets or passwords in customData property.** This property cannot be updated after the VM is created. The property 'customData' is passed to the VM to be saved as a file, for more information see [Custom Data on Azure VMs](https://azure.microsoft.com/blog/custom-data-and-cloud-init-on-windows-azure/). For using cloud-init for your Linux VM, see [Using cloud-init to customize a Linux VM during creation](https://docs.microsoft.com/azure/virtual-machines/linux/using-cloud-init)." | |
}, | |
"linuxConfiguration": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:LinuxConfiguration", | |
"description": "Specifies the Linux operating system settings on the virtual machine. For a list of supported Linux distributions, see [Linux on Azure-Endorsed Distributions](https://docs.microsoft.com/azure/virtual-machines/linux/endorsed-distros)." | |
}, | |
"requireGuestProvisionSignal": { | |
"type": "boolean", | |
"description": "Optional property which must either be set to True or omitted." | |
}, | |
"secrets": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:VaultSecretGroup" | |
}, | |
"description": "Specifies set of certificates that should be installed onto the virtual machine. To install certificates on a virtual machine it is recommended to use the [Azure Key Vault virtual machine extension for Linux](https://docs.microsoft.com/azure/virtual-machines/extensions/key-vault-linux) or the [Azure Key Vault virtual machine extension for Windows](https://docs.microsoft.com/azure/virtual-machines/extensions/key-vault-windows)." | |
}, | |
"windowsConfiguration": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:WindowsConfiguration", | |
"description": "Specifies Windows operating system settings on the virtual machine." | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:compute:OSProfileResponse": { | |
"description": "Specifies the operating system settings for the virtual machine. Some of the settings cannot be changed once VM is provisioned.", | |
"properties": { | |
"adminPassword": { | |
"type": "string", | |
"description": "Specifies the password of the administrator account. <br><br> **Minimum-length (Windows):** 8 characters <br><br> **Minimum-length (Linux):** 6 characters <br><br> **Max-length (Windows):** 123 characters <br><br> **Max-length (Linux):** 72 characters <br><br> **Complexity requirements:** 3 out of 4 conditions below need to be fulfilled <br> Has lower characters <br>Has upper characters <br> Has a digit <br> Has a special character (Regex match [\\W_]) <br><br> **Disallowed values:** \"abc@123\", \"P@$$w0rd\", \"P@ssw0rd\", \"P@ssword123\", \"Pa$$word\", \"pass@word1\", \"Password!\", \"Password1\", \"Password22\", \"iloveyou!\" <br><br> For resetting the password, see [How to reset the Remote Desktop service or its login password in a Windows VM](https://docs.microsoft.com/troubleshoot/azure/virtual-machines/reset-rdp) <br><br> For resetting root password, see [Manage users, SSH, and check or repair disks on Azure Linux VMs using the VMAccess Extension](https://docs.microsoft.com/troubleshoot/azure/virtual-machines/troubleshoot-ssh-connection)" | |
}, | |
"adminUsername": { | |
"type": "string", | |
"description": "Specifies the name of the administrator account. <br><br> This property cannot be updated after the VM is created. <br><br> **Windows-only restriction:** Cannot end in \".\" <br><br> **Disallowed values:** \"administrator\", \"admin\", \"user\", \"user1\", \"test\", \"user2\", \"test1\", \"user3\", \"admin1\", \"1\", \"123\", \"a\", \"actuser\", \"adm\", \"admin2\", \"aspnet\", \"backup\", \"console\", \"david\", \"guest\", \"john\", \"owner\", \"root\", \"server\", \"sql\", \"support\", \"support_388945a0\", \"sys\", \"test2\", \"test3\", \"user4\", \"user5\". <br><br> **Minimum-length (Linux):** 1 character <br><br> **Max-length (Linux):** 64 characters <br><br> **Max-length (Windows):** 20 characters." | |
}, | |
"allowExtensionOperations": { | |
"type": "boolean", | |
"description": "Specifies whether extension operations should be allowed on the virtual machine. This may only be set to False when no extensions are present on the virtual machine." | |
}, | |
"computerName": { | |
"type": "string", | |
"description": "Specifies the host OS name of the virtual machine. This name cannot be updated after the VM is created. **Max-length (Windows):** 15 characters. **Max-length (Linux):** 64 characters. For naming conventions and restrictions see [Azure infrastructure services implementation guidelines](https://docs.microsoft.com/azure/azure-resource-manager/management/resource-name-rules)." | |
}, | |
"customData": { | |
"type": "string", | |
"description": "Specifies a base-64 encoded string of custom data. The base-64 encoded string is decoded to a binary array that is saved as a file on the Virtual Machine. The maximum length of the binary array is 65535 bytes. **Note: Do not pass any secrets or passwords in customData property.** This property cannot be updated after the VM is created. The property 'customData' is passed to the VM to be saved as a file, for more information see [Custom Data on Azure VMs](https://azure.microsoft.com/blog/custom-data-and-cloud-init-on-windows-azure/). For using cloud-init for your Linux VM, see [Using cloud-init to customize a Linux VM during creation](https://docs.microsoft.com/azure/virtual-machines/linux/using-cloud-init)." | |
}, | |
"linuxConfiguration": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:LinuxConfigurationResponse", | |
"description": "Specifies the Linux operating system settings on the virtual machine. For a list of supported Linux distributions, see [Linux on Azure-Endorsed Distributions](https://docs.microsoft.com/azure/virtual-machines/linux/endorsed-distros)." | |
}, | |
"requireGuestProvisionSignal": { | |
"type": "boolean", | |
"description": "Optional property which must either be set to True or omitted." | |
}, | |
"secrets": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:VaultSecretGroupResponse" | |
}, | |
"description": "Specifies set of certificates that should be installed onto the virtual machine. To install certificates on a virtual machine it is recommended to use the [Azure Key Vault virtual machine extension for Linux](https://docs.microsoft.com/azure/virtual-machines/extensions/key-vault-linux) or the [Azure Key Vault virtual machine extension for Windows](https://docs.microsoft.com/azure/virtual-machines/extensions/key-vault-windows)." | |
}, | |
"windowsConfiguration": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:WindowsConfigurationResponse", | |
"description": "Specifies Windows operating system settings on the virtual machine." | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:compute:OperatingSystemTypes": { | |
"description": "This property allows you to specify the type of the OS that is included in the disk if creating a VM from user-image or a specialized VHD. Possible values are: **Windows,** **Linux.**", | |
"type": "string", | |
"enum": [ | |
{ | |
"value": "Windows" | |
}, | |
{ | |
"value": "Linux" | |
} | |
] | |
}, | |
"azure-native:compute:PassNames": { | |
"description": "The pass name. Currently, the only allowable value is OobeSystem.", | |
"type": "string", | |
"enum": [ | |
{ | |
"value": "OobeSystem" | |
} | |
] | |
}, | |
"azure-native:compute:PatchSettings": { | |
"description": "Specifies settings related to VM Guest Patching on Windows.", | |
"properties": { | |
"assessmentMode": { | |
"oneOf": [ | |
{ | |
"type": "string" | |
}, | |
{ | |
"$ref": "#/types/azure-native:compute:WindowsPatchAssessmentMode" | |
} | |
], | |
"description": "Specifies the mode of VM Guest patch assessment for the IaaS virtual machine.<br /><br /> Possible values are:<br /><br /> **ImageDefault** - You control the timing of patch assessments on a virtual machine.<br /><br /> **AutomaticByPlatform** - The platform will trigger periodic patch assessments. The property provisionVMAgent must be true. " | |
}, | |
"automaticByPlatformSettings": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:WindowsVMGuestPatchAutomaticByPlatformSettings", | |
"description": "Specifies additional settings for patch mode AutomaticByPlatform in VM Guest Patching on Windows." | |
}, | |
"enableHotpatching": { | |
"type": "boolean", | |
"description": "Enables customers to patch their Azure VMs without requiring a reboot. For enableHotpatching, the 'provisionVMAgent' must be set to true and 'patchMode' must be set to 'AutomaticByPlatform'." | |
}, | |
"patchMode": { | |
"oneOf": [ | |
{ | |
"type": "string" | |
}, | |
{ | |
"$ref": "#/types/azure-native:compute:WindowsVMGuestPatchMode" | |
} | |
], | |
"description": "Specifies the mode of VM Guest Patching to IaaS virtual machine or virtual machines associated to virtual machine scale set with OrchestrationMode as Flexible.<br /><br /> Possible values are:<br /><br /> **Manual** - You control the application of patches to a virtual machine. You do this by applying patches manually inside the VM. In this mode, automatic updates are disabled; the property WindowsConfiguration.enableAutomaticUpdates must be false<br /><br /> **AutomaticByOS** - The virtual machine will automatically be updated by the OS. The property WindowsConfiguration.enableAutomaticUpdates must be true. <br /><br /> **AutomaticByPlatform** - the virtual machine will automatically updated by the platform. The properties provisionVMAgent and WindowsConfiguration.enableAutomaticUpdates must be true " | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:compute:PatchSettingsResponse": { | |
"description": "Specifies settings related to VM Guest Patching on Windows.", | |
"properties": { | |
"assessmentMode": { | |
"type": "string", | |
"description": "Specifies the mode of VM Guest patch assessment for the IaaS virtual machine.<br /><br /> Possible values are:<br /><br /> **ImageDefault** - You control the timing of patch assessments on a virtual machine.<br /><br /> **AutomaticByPlatform** - The platform will trigger periodic patch assessments. The property provisionVMAgent must be true. " | |
}, | |
"automaticByPlatformSettings": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:WindowsVMGuestPatchAutomaticByPlatformSettingsResponse", | |
"description": "Specifies additional settings for patch mode AutomaticByPlatform in VM Guest Patching on Windows." | |
}, | |
"enableHotpatching": { | |
"type": "boolean", | |
"description": "Enables customers to patch their Azure VMs without requiring a reboot. For enableHotpatching, the 'provisionVMAgent' must be set to true and 'patchMode' must be set to 'AutomaticByPlatform'." | |
}, | |
"patchMode": { | |
"type": "string", | |
"description": "Specifies the mode of VM Guest Patching to IaaS virtual machine or virtual machines associated to virtual machine scale set with OrchestrationMode as Flexible.<br /><br /> Possible values are:<br /><br /> **Manual** - You control the application of patches to a virtual machine. You do this by applying patches manually inside the VM. In this mode, automatic updates are disabled; the property WindowsConfiguration.enableAutomaticUpdates must be false<br /><br /> **AutomaticByOS** - The virtual machine will automatically be updated by the OS. The property WindowsConfiguration.enableAutomaticUpdates must be true. <br /><br /> **AutomaticByPlatform** - the virtual machine will automatically updated by the platform. The properties provisionVMAgent and WindowsConfiguration.enableAutomaticUpdates must be true " | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:compute:Plan": { | |
"description": "Specifies information about the marketplace image used to create the virtual machine. This element is only used for marketplace images. Before you can use a marketplace image from an API, you must enable the image for programmatic use. In the Azure portal, find the marketplace image that you want to use and then click **Want to deploy programmatically, Get Started ->**. Enter any required information and then click **Save**.", | |
"properties": { | |
"name": { | |
"type": "string", | |
"description": "The plan ID." | |
}, | |
"product": { | |
"type": "string", | |
"description": "Specifies the product of the image from the marketplace. This is the same value as Offer under the imageReference element." | |
}, | |
"promotionCode": { | |
"type": "string", | |
"description": "The promotion code." | |
}, | |
"publisher": { | |
"type": "string", | |
"description": "The publisher ID." | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:compute:PlanResponse": { | |
"description": "Specifies information about the marketplace image used to create the virtual machine. This element is only used for marketplace images. Before you can use a marketplace image from an API, you must enable the image for programmatic use. In the Azure portal, find the marketplace image that you want to use and then click **Want to deploy programmatically, Get Started ->**. Enter any required information and then click **Save**.", | |
"properties": { | |
"name": { | |
"type": "string", | |
"description": "The plan ID." | |
}, | |
"product": { | |
"type": "string", | |
"description": "Specifies the product of the image from the marketplace. This is the same value as Offer under the imageReference element." | |
}, | |
"promotionCode": { | |
"type": "string", | |
"description": "The promotion code." | |
}, | |
"publisher": { | |
"type": "string", | |
"description": "The publisher ID." | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:compute:ProtocolTypes": { | |
"description": "Specifies the protocol of WinRM listener. Possible values are: **http,** **https.**", | |
"type": "string", | |
"enum": [ | |
{ | |
"value": "Http" | |
}, | |
{ | |
"value": "Https" | |
} | |
] | |
}, | |
"azure-native:compute:PublicIPAddressSku": { | |
"description": "Describes the public IP Sku. It can only be set with OrchestrationMode as Flexible.", | |
"properties": { | |
"name": { | |
"oneOf": [ | |
{ | |
"type": "string" | |
}, | |
{ | |
"$ref": "#/types/azure-native:compute:PublicIPAddressSkuName" | |
} | |
], | |
"description": "Specify public IP sku name" | |
}, | |
"tier": { | |
"oneOf": [ | |
{ | |
"type": "string" | |
}, | |
{ | |
"$ref": "#/types/azure-native:compute:PublicIPAddressSkuTier" | |
} | |
], | |
"description": "Specify public IP sku tier" | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:compute:PublicIPAddressSkuName": { | |
"description": "Specify public IP sku name", | |
"type": "string", | |
"enum": [ | |
{ | |
"value": "Basic" | |
}, | |
{ | |
"value": "Standard" | |
} | |
] | |
}, | |
"azure-native:compute:PublicIPAddressSkuResponse": { | |
"description": "Describes the public IP Sku. It can only be set with OrchestrationMode as Flexible.", | |
"properties": { | |
"name": { | |
"type": "string", | |
"description": "Specify public IP sku name" | |
}, | |
"tier": { | |
"type": "string", | |
"description": "Specify public IP sku tier" | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:compute:PublicIPAddressSkuTier": { | |
"description": "Specify public IP sku tier", | |
"type": "string", | |
"enum": [ | |
{ | |
"value": "Regional" | |
}, | |
{ | |
"value": "Global" | |
} | |
] | |
}, | |
"azure-native:compute:PublicIPAllocationMethod": { | |
"description": "Specify the public IP allocation type", | |
"type": "string", | |
"enum": [ | |
{ | |
"value": "Dynamic" | |
}, | |
{ | |
"value": "Static" | |
} | |
] | |
}, | |
"azure-native:compute:ResourceIdentityType": { | |
"description": "The type of identity used for the virtual machine. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user assigned identities. The type 'None' will remove any identities from the virtual machine.", | |
"type": "string", | |
"enum": [ | |
{ | |
"value": "SystemAssigned" | |
}, | |
{ | |
"value": "UserAssigned" | |
}, | |
{ | |
"value": "SystemAssigned, UserAssigned" | |
}, | |
{ | |
"value": "None" | |
} | |
] | |
}, | |
"azure-native:compute:ScheduledEventsProfile": { | |
"properties": { | |
"osImageNotificationProfile": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:OSImageNotificationProfile", | |
"description": "Specifies OS Image Scheduled Event related configurations." | |
}, | |
"terminateNotificationProfile": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:TerminateNotificationProfile", | |
"description": "Specifies Terminate Scheduled Event related configurations." | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:compute:ScheduledEventsProfileResponse": { | |
"properties": { | |
"osImageNotificationProfile": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:OSImageNotificationProfileResponse", | |
"description": "Specifies OS Image Scheduled Event related configurations." | |
}, | |
"terminateNotificationProfile": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:TerminateNotificationProfileResponse", | |
"description": "Specifies Terminate Scheduled Event related configurations." | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:compute:SecurityEncryptionTypes": { | |
"description": "Specifies the EncryptionType of the managed disk. It is set to DiskWithVMGuestState for encryption of the managed disk along with VMGuestState blob, and VMGuestStateOnly for encryption of just the VMGuestState blob. **Note:** It can be set for only Confidential VMs.", | |
"type": "string", | |
"enum": [ | |
{ | |
"value": "VMGuestStateOnly" | |
}, | |
{ | |
"value": "DiskWithVMGuestState" | |
} | |
] | |
}, | |
"azure-native:compute:SecurityProfile": { | |
"description": "Specifies the Security profile settings for the virtual machine or virtual machine scale set.", | |
"properties": { | |
"encryptionAtHost": { | |
"type": "boolean", | |
"description": "This property can be used by user in the request to enable or disable the Host Encryption for the virtual machine or virtual machine scale set. This will enable the encryption for all the disks including Resource/Temp disk at host itself. The default behavior is: The Encryption at host will be disabled unless this property is set to true for the resource." | |
}, | |
"securityType": { | |
"oneOf": [ | |
{ | |
"type": "string" | |
}, | |
{ | |
"$ref": "#/types/azure-native:compute:SecurityTypes" | |
} | |
], | |
"description": "Specifies the SecurityType of the virtual machine. It has to be set to any specified value to enable UefiSettings. The default behavior is: UefiSettings will not be enabled unless this property is set." | |
}, | |
"uefiSettings": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:UefiSettings", | |
"description": "Specifies the security settings like secure boot and vTPM used while creating the virtual machine. Minimum api-version: 2020-12-01." | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:compute:SecurityProfileResponse": { | |
"description": "Specifies the Security profile settings for the virtual machine or virtual machine scale set.", | |
"properties": { | |
"encryptionAtHost": { | |
"type": "boolean", | |
"description": "This property can be used by user in the request to enable or disable the Host Encryption for the virtual machine or virtual machine scale set. This will enable the encryption for all the disks including Resource/Temp disk at host itself. The default behavior is: The Encryption at host will be disabled unless this property is set to true for the resource." | |
}, | |
"securityType": { | |
"type": "string", | |
"description": "Specifies the SecurityType of the virtual machine. It has to be set to any specified value to enable UefiSettings. The default behavior is: UefiSettings will not be enabled unless this property is set." | |
}, | |
"uefiSettings": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:UefiSettingsResponse", | |
"description": "Specifies the security settings like secure boot and vTPM used while creating the virtual machine. Minimum api-version: 2020-12-01." | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:compute:SecurityTypes": { | |
"description": "Specifies the SecurityType of the virtual machine. It has to be set to any specified value to enable UefiSettings. The default behavior is: UefiSettings will not be enabled unless this property is set.", | |
"type": "string", | |
"enum": [ | |
{ | |
"value": "TrustedLaunch" | |
}, | |
{ | |
"value": "ConfidentialVM" | |
} | |
] | |
}, | |
"azure-native:compute:SettingNames": { | |
"description": "Specifies the name of the setting to which the content applies. Possible values are: FirstLogonCommands and AutoLogon.", | |
"type": "string", | |
"enum": [ | |
{ | |
"value": "AutoLogon" | |
}, | |
{ | |
"value": "FirstLogonCommands" | |
} | |
] | |
}, | |
"azure-native:compute:SshConfiguration": { | |
"description": "SSH configuration for Linux based VMs running on Azure", | |
"properties": { | |
"publicKeys": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:SshPublicKey" | |
}, | |
"description": "The list of SSH public keys used to authenticate with linux based VMs." | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:compute:SshConfigurationResponse": { | |
"description": "SSH configuration for Linux based VMs running on Azure", | |
"properties": { | |
"publicKeys": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:SshPublicKeyResponse" | |
}, | |
"description": "The list of SSH public keys used to authenticate with linux based VMs." | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:compute:SshPublicKey": { | |
"description": "Contains information about SSH certificate public key and the path on the Linux VM where the public key is placed.", | |
"properties": { | |
"keyData": { | |
"type": "string", | |
"description": "SSH public key certificate used to authenticate with the VM through ssh. The key needs to be at least 2048-bit and in ssh-rsa format. For creating ssh keys, see [Create SSH keys on Linux and Mac for Linux VMs in Azure]https://docs.microsoft.com/azure/virtual-machines/linux/create-ssh-keys-detailed)." | |
}, | |
"path": { | |
"type": "string", | |
"description": "Specifies the full path on the created VM where ssh public key is stored. If the file already exists, the specified key is appended to the file. Example: /home/user/.ssh/authorized_keys" | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:compute:SshPublicKeyResponse": { | |
"description": "Contains information about SSH certificate public key and the path on the Linux VM where the public key is placed.", | |
"properties": { | |
"keyData": { | |
"type": "string", | |
"description": "SSH public key certificate used to authenticate with the VM through ssh. The key needs to be at least 2048-bit and in ssh-rsa format. For creating ssh keys, see [Create SSH keys on Linux and Mac for Linux VMs in Azure]https://docs.microsoft.com/azure/virtual-machines/linux/create-ssh-keys-detailed)." | |
}, | |
"path": { | |
"type": "string", | |
"description": "Specifies the full path on the created VM where ssh public key is stored. If the file already exists, the specified key is appended to the file. Example: /home/user/.ssh/authorized_keys" | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:compute:StorageAccountTypes": { | |
"description": "Specifies the storage account type for the managed disk. NOTE: UltraSSD_LRS can only be used with data disks, it cannot be used with OS Disk.", | |
"type": "string", | |
"enum": [ | |
{ | |
"value": "Standard_LRS" | |
}, | |
{ | |
"value": "Premium_LRS" | |
}, | |
{ | |
"value": "StandardSSD_LRS" | |
}, | |
{ | |
"value": "UltraSSD_LRS" | |
}, | |
{ | |
"value": "Premium_ZRS" | |
}, | |
{ | |
"value": "StandardSSD_ZRS" | |
}, | |
{ | |
"value": "PremiumV2_LRS" | |
} | |
] | |
}, | |
"azure-native:compute:StorageProfile": { | |
"description": "Specifies the storage settings for the virtual machine disks.", | |
"properties": { | |
"dataDisks": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:DataDisk" | |
}, | |
"description": "Specifies the parameters that are used to add a data disk to a virtual machine. For more information about disks, see [About disks and VHDs for Azure virtual machines](https://docs.microsoft.com/azure/virtual-machines/managed-disks-overview)." | |
}, | |
"diskControllerType": { | |
"oneOf": [ | |
{ | |
"type": "string" | |
}, | |
{ | |
"$ref": "#/types/azure-native:compute:DiskControllerTypes" | |
} | |
], | |
"description": "Specifies the disk controller type configured for the VM. **Note:** This property will be set to the default disk controller type if not specified provided virtual machine is being created with 'hyperVGeneration' set to V2 based on the capabilities of the operating system disk and VM size from the the specified minimum api version. You need to deallocate the VM before updating its disk controller type unless you are updating the VM size in the VM configuration which implicitly deallocates and reallocates the VM. Minimum api-version: 2022-08-01." | |
}, | |
"imageReference": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:ImageReference", | |
"description": "Specifies information about the image to use. You can specify information about platform images, marketplace images, or virtual machine images. This element is required when you want to use a platform image, marketplace image, or virtual machine image, but is not used in other creation operations." | |
}, | |
"osDisk": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:OSDisk", | |
"description": "Specifies information about the operating system disk used by the virtual machine. For more information about disks, see [About disks and VHDs for Azure virtual machines](https://docs.microsoft.com/azure/virtual-machines/managed-disks-overview)." | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:compute:StorageProfileResponse": { | |
"description": "Specifies the storage settings for the virtual machine disks.", | |
"properties": { | |
"dataDisks": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:DataDiskResponse" | |
}, | |
"description": "Specifies the parameters that are used to add a data disk to a virtual machine. For more information about disks, see [About disks and VHDs for Azure virtual machines](https://docs.microsoft.com/azure/virtual-machines/managed-disks-overview)." | |
}, | |
"diskControllerType": { | |
"type": "string", | |
"description": "Specifies the disk controller type configured for the VM. **Note:** This property will be set to the default disk controller type if not specified provided virtual machine is being created with 'hyperVGeneration' set to V2 based on the capabilities of the operating system disk and VM size from the the specified minimum api version. You need to deallocate the VM before updating its disk controller type unless you are updating the VM size in the VM configuration which implicitly deallocates and reallocates the VM. Minimum api-version: 2022-08-01." | |
}, | |
"imageReference": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:ImageReferenceResponse", | |
"description": "Specifies information about the image to use. You can specify information about platform images, marketplace images, or virtual machine images. This element is required when you want to use a platform image, marketplace image, or virtual machine image, but is not used in other creation operations." | |
}, | |
"osDisk": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:OSDiskResponse", | |
"description": "Specifies information about the operating system disk used by the virtual machine. For more information about disks, see [About disks and VHDs for Azure virtual machines](https://docs.microsoft.com/azure/virtual-machines/managed-disks-overview)." | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:compute:SubResource": { | |
"properties": { | |
"id": { | |
"type": "string", | |
"description": "Sub-resource ID. Both absolute resource ID and a relative resource ID are accepted.\nAn absolute ID starts with /subscriptions/ and contains the entire ID of the parent resource and the ID of the sub-resource in the end.\nA relative ID replaces the ID of the parent resource with a token '$self', followed by the sub-resource ID itself.\nExample of a relative ID: $self/frontEndConfigurations/my-frontend." | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:compute:SubResourceResponse": { | |
"properties": { | |
"id": { | |
"type": "string", | |
"description": "Resource Id" | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:compute:TerminateNotificationProfile": { | |
"properties": { | |
"enable": { | |
"type": "boolean", | |
"description": "Specifies whether the Terminate Scheduled event is enabled or disabled." | |
}, | |
"notBeforeTimeout": { | |
"type": "string", | |
"description": "Configurable length of time a Virtual Machine being deleted will have to potentially approve the Terminate Scheduled Event before the event is auto approved (timed out). The configuration must be specified in ISO 8601 format, the default value is 5 minutes (PT5M)" | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:compute:TerminateNotificationProfileResponse": { | |
"properties": { | |
"enable": { | |
"type": "boolean", | |
"description": "Specifies whether the Terminate Scheduled event is enabled or disabled." | |
}, | |
"notBeforeTimeout": { | |
"type": "string", | |
"description": "Configurable length of time a Virtual Machine being deleted will have to potentially approve the Terminate Scheduled Event before the event is auto approved (timed out). The configuration must be specified in ISO 8601 format, the default value is 5 minutes (PT5M)" | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:compute:UefiSettings": { | |
"description": "Specifies the security settings like secure boot and vTPM used while creating the virtual machine. Minimum api-version: 2020-12-01.", | |
"properties": { | |
"secureBootEnabled": { | |
"type": "boolean", | |
"description": "Specifies whether secure boot should be enabled on the virtual machine. Minimum api-version: 2020-12-01." | |
}, | |
"vTpmEnabled": { | |
"type": "boolean", | |
"description": "Specifies whether vTPM should be enabled on the virtual machine. Minimum api-version: 2020-12-01." | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:compute:UefiSettingsResponse": { | |
"description": "Specifies the security settings like secure boot and vTPM used while creating the virtual machine. Minimum api-version: 2020-12-01.", | |
"properties": { | |
"secureBootEnabled": { | |
"type": "boolean", | |
"description": "Specifies whether secure boot should be enabled on the virtual machine. Minimum api-version: 2020-12-01." | |
}, | |
"vTpmEnabled": { | |
"type": "boolean", | |
"description": "Specifies whether vTPM should be enabled on the virtual machine. Minimum api-version: 2020-12-01." | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:compute:UserAssignedIdentitiesResponseUserAssignedIdentities": { | |
"properties": { | |
"clientId": { | |
"type": "string", | |
"description": "The client id of user assigned identity." | |
}, | |
"principalId": { | |
"type": "string", | |
"description": "The principal id of user assigned identity." | |
} | |
}, | |
"type": "object", | |
"required": [ | |
"clientId", | |
"principalId" | |
] | |
}, | |
"azure-native:compute:VMDiskSecurityProfile": { | |
"description": "Specifies the security profile settings for the managed disk. **Note:** It can only be set for Confidential VMs.", | |
"properties": { | |
"diskEncryptionSet": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:DiskEncryptionSetParameters", | |
"description": "Specifies the customer managed disk encryption set resource id for the managed disk that is used for Customer Managed Key encrypted ConfidentialVM OS Disk and VMGuest blob." | |
}, | |
"securityEncryptionType": { | |
"oneOf": [ | |
{ | |
"type": "string" | |
}, | |
{ | |
"$ref": "#/types/azure-native:compute:SecurityEncryptionTypes" | |
} | |
], | |
"description": "Specifies the EncryptionType of the managed disk. It is set to DiskWithVMGuestState for encryption of the managed disk along with VMGuestState blob, and VMGuestStateOnly for encryption of just the VMGuestState blob. **Note:** It can be set for only Confidential VMs." | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:compute:VMDiskSecurityProfileResponse": { | |
"description": "Specifies the security profile settings for the managed disk. **Note:** It can only be set for Confidential VMs.", | |
"properties": { | |
"diskEncryptionSet": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:DiskEncryptionSetParametersResponse", | |
"description": "Specifies the customer managed disk encryption set resource id for the managed disk that is used for Customer Managed Key encrypted ConfidentialVM OS Disk and VMGuest blob." | |
}, | |
"securityEncryptionType": { | |
"type": "string", | |
"description": "Specifies the EncryptionType of the managed disk. It is set to DiskWithVMGuestState for encryption of the managed disk along with VMGuestState blob, and VMGuestStateOnly for encryption of just the VMGuestState blob. **Note:** It can be set for only Confidential VMs." | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:compute:VMGalleryApplication": { | |
"description": "Specifies the required information to reference a compute gallery application version", | |
"properties": { | |
"configurationReference": { | |
"type": "string", | |
"description": "Optional, Specifies the uri to an azure blob that will replace the default configuration for the package if provided" | |
}, | |
"enableAutomaticUpgrade": { | |
"type": "boolean", | |
"description": "If set to true, when a new Gallery Application version is available in PIR/SIG, it will be automatically updated for the VM/VMSS" | |
}, | |
"order": { | |
"type": "integer", | |
"description": "Optional, Specifies the order in which the packages have to be installed" | |
}, | |
"packageReferenceId": { | |
"type": "string", | |
"description": "Specifies the GalleryApplicationVersion resource id on the form of /subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{application}/versions/{version}" | |
}, | |
"tags": { | |
"type": "string", | |
"description": "Optional, Specifies a passthrough value for more generic context." | |
}, | |
"treatFailureAsDeploymentFailure": { | |
"type": "boolean", | |
"description": "Optional, If true, any failure for any operation in the VmApplication will fail the deployment" | |
} | |
}, | |
"type": "object", | |
"required": [ | |
"packageReferenceId" | |
] | |
}, | |
"azure-native:compute:VMGalleryApplicationResponse": { | |
"description": "Specifies the required information to reference a compute gallery application version", | |
"properties": { | |
"configurationReference": { | |
"type": "string", | |
"description": "Optional, Specifies the uri to an azure blob that will replace the default configuration for the package if provided" | |
}, | |
"enableAutomaticUpgrade": { | |
"type": "boolean", | |
"description": "If set to true, when a new Gallery Application version is available in PIR/SIG, it will be automatically updated for the VM/VMSS" | |
}, | |
"order": { | |
"type": "integer", | |
"description": "Optional, Specifies the order in which the packages have to be installed" | |
}, | |
"packageReferenceId": { | |
"type": "string", | |
"description": "Specifies the GalleryApplicationVersion resource id on the form of /subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{application}/versions/{version}" | |
}, | |
"tags": { | |
"type": "string", | |
"description": "Optional, Specifies a passthrough value for more generic context." | |
}, | |
"treatFailureAsDeploymentFailure": { | |
"type": "boolean", | |
"description": "Optional, If true, any failure for any operation in the VmApplication will fail the deployment" | |
} | |
}, | |
"type": "object", | |
"required": [ | |
"packageReferenceId" | |
] | |
}, | |
"azure-native:compute:VMSizeProperties": { | |
"description": "Specifies VM Size Property settings on the virtual machine.", | |
"properties": { | |
"vCPUsAvailable": { | |
"type": "integer", | |
"description": "Specifies the number of vCPUs available for the VM. When this property is not specified in the request body the default behavior is to set it to the value of vCPUs available for that VM size exposed in api response of [List all available virtual machine sizes in a region](https://docs.microsoft.com/en-us/rest/api/compute/resource-skus/list)." | |
}, | |
"vCPUsPerCore": { | |
"type": "integer", | |
"description": "Specifies the vCPU to physical core ratio. When this property is not specified in the request body the default behavior is set to the value of vCPUsPerCore for the VM Size exposed in api response of [List all available virtual machine sizes in a region](https://docs.microsoft.com/en-us/rest/api/compute/resource-skus/list). **Setting this property to 1 also means that hyper-threading is disabled.**" | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:compute:VMSizePropertiesResponse": { | |
"description": "Specifies VM Size Property settings on the virtual machine.", | |
"properties": { | |
"vCPUsAvailable": { | |
"type": "integer", | |
"description": "Specifies the number of vCPUs available for the VM. When this property is not specified in the request body the default behavior is to set it to the value of vCPUs available for that VM size exposed in api response of [List all available virtual machine sizes in a region](https://docs.microsoft.com/en-us/rest/api/compute/resource-skus/list)." | |
}, | |
"vCPUsPerCore": { | |
"type": "integer", | |
"description": "Specifies the vCPU to physical core ratio. When this property is not specified in the request body the default behavior is set to the value of vCPUsPerCore for the VM Size exposed in api response of [List all available virtual machine sizes in a region](https://docs.microsoft.com/en-us/rest/api/compute/resource-skus/list). **Setting this property to 1 also means that hyper-threading is disabled.**" | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:compute:VaultCertificate": { | |
"description": "Describes a single certificate reference in a Key Vault, and where the certificate should reside on the VM.", | |
"properties": { | |
"certificateStore": { | |
"type": "string", | |
"description": "For Windows VMs, specifies the certificate store on the Virtual Machine to which the certificate should be added. The specified certificate store is implicitly in the LocalMachine account. For Linux VMs, the certificate file is placed under the /var/lib/waagent directory, with the file name <UppercaseThumbprint>.crt for the X509 certificate file and <UppercaseThumbprint>.prv for private key. Both of these files are .pem formatted." | |
}, | |
"certificateUrl": { | |
"type": "string", | |
"description": "This is the URL of a certificate that has been uploaded to Key Vault as a secret. For adding a secret to the Key Vault, see [Add a key or secret to the key vault](https://docs.microsoft.com/azure/key-vault/key-vault-get-started/#add). In this case, your certificate needs to be It is the Base64 encoding of the following JSON Object which is encoded in UTF-8: <br><br> {<br> \"data\":\"<Base64-encoded-certificate>\",<br> \"dataType\":\"pfx\",<br> \"password\":\"<pfx-file-password>\"<br>} <br> To install certificates on a virtual machine it is recommended to use the [Azure Key Vault virtual machine extension for Linux](https://docs.microsoft.com/azure/virtual-machines/extensions/key-vault-linux) or the [Azure Key Vault virtual machine extension for Windows](https://docs.microsoft.com/azure/virtual-machines/extensions/key-vault-windows)." | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:compute:VaultCertificateResponse": { | |
"description": "Describes a single certificate reference in a Key Vault, and where the certificate should reside on the VM.", | |
"properties": { | |
"certificateStore": { | |
"type": "string", | |
"description": "For Windows VMs, specifies the certificate store on the Virtual Machine to which the certificate should be added. The specified certificate store is implicitly in the LocalMachine account. For Linux VMs, the certificate file is placed under the /var/lib/waagent directory, with the file name <UppercaseThumbprint>.crt for the X509 certificate file and <UppercaseThumbprint>.prv for private key. Both of these files are .pem formatted." | |
}, | |
"certificateUrl": { | |
"type": "string", | |
"description": "This is the URL of a certificate that has been uploaded to Key Vault as a secret. For adding a secret to the Key Vault, see [Add a key or secret to the key vault](https://docs.microsoft.com/azure/key-vault/key-vault-get-started/#add). In this case, your certificate needs to be It is the Base64 encoding of the following JSON Object which is encoded in UTF-8: <br><br> {<br> \"data\":\"<Base64-encoded-certificate>\",<br> \"dataType\":\"pfx\",<br> \"password\":\"<pfx-file-password>\"<br>} <br> To install certificates on a virtual machine it is recommended to use the [Azure Key Vault virtual machine extension for Linux](https://docs.microsoft.com/azure/virtual-machines/extensions/key-vault-linux) or the [Azure Key Vault virtual machine extension for Windows](https://docs.microsoft.com/azure/virtual-machines/extensions/key-vault-windows)." | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:compute:VaultSecretGroup": { | |
"description": "Describes a set of certificates which are all in the same Key Vault.", | |
"properties": { | |
"sourceVault": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:SubResource", | |
"description": "The relative URL of the Key Vault containing all of the certificates in VaultCertificates." | |
}, | |
"vaultCertificates": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:VaultCertificate" | |
}, | |
"description": "The list of key vault references in SourceVault which contain certificates." | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:compute:VaultSecretGroupResponse": { | |
"description": "Describes a set of certificates which are all in the same Key Vault.", | |
"properties": { | |
"sourceVault": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:SubResourceResponse", | |
"description": "The relative URL of the Key Vault containing all of the certificates in VaultCertificates." | |
}, | |
"vaultCertificates": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:VaultCertificateResponse" | |
}, | |
"description": "The list of key vault references in SourceVault which contain certificates." | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:compute:VirtualHardDisk": { | |
"description": "Describes the uri of a disk.", | |
"properties": { | |
"uri": { | |
"type": "string", | |
"description": "Specifies the virtual hard disk's uri." | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:compute:VirtualHardDiskResponse": { | |
"description": "Describes the uri of a disk.", | |
"properties": { | |
"uri": { | |
"type": "string", | |
"description": "Specifies the virtual hard disk's uri." | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:compute:VirtualMachineAgentInstanceViewResponse": { | |
"description": "The instance view of the VM Agent running on the virtual machine.", | |
"properties": { | |
"extensionHandlers": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:VirtualMachineExtensionHandlerInstanceViewResponse" | |
}, | |
"description": "The virtual machine extension handler instance view." | |
}, | |
"statuses": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:InstanceViewStatusResponse" | |
}, | |
"description": "The resource status information." | |
}, | |
"vmAgentVersion": { | |
"type": "string", | |
"description": "The VM Agent full version." | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:compute:VirtualMachineEvictionPolicyTypes": { | |
"description": "Specifies the eviction policy for the Azure Spot virtual machine and Azure Spot scale set. For Azure Spot virtual machines, both 'Deallocate' and 'Delete' are supported and the minimum api-version is 2019-03-01. For Azure Spot scale sets, both 'Deallocate' and 'Delete' are supported and the minimum api-version is 2017-10-30-preview.", | |
"type": "string", | |
"enum": [ | |
{ | |
"value": "Deallocate" | |
}, | |
{ | |
"value": "Delete" | |
} | |
] | |
}, | |
"azure-native:compute:VirtualMachineExtensionHandlerInstanceViewResponse": { | |
"description": "The instance view of a virtual machine extension handler.", | |
"properties": { | |
"status": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:InstanceViewStatusResponse", | |
"description": "The extension handler status." | |
}, | |
"type": { | |
"type": "string", | |
"description": "Specifies the type of the extension; an example is \"CustomScriptExtension\"." | |
}, | |
"typeHandlerVersion": { | |
"type": "string", | |
"description": "Specifies the version of the script handler." | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:compute:VirtualMachineExtensionInstanceViewResponse": { | |
"description": "The instance view of a virtual machine extension.", | |
"properties": { | |
"name": { | |
"type": "string", | |
"description": "The virtual machine extension name." | |
}, | |
"statuses": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:InstanceViewStatusResponse" | |
}, | |
"description": "The resource status information." | |
}, | |
"substatuses": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:InstanceViewStatusResponse" | |
}, | |
"description": "The resource status information." | |
}, | |
"type": { | |
"type": "string", | |
"description": "Specifies the type of the extension; an example is \"CustomScriptExtension\"." | |
}, | |
"typeHandlerVersion": { | |
"type": "string", | |
"description": "Specifies the version of the script handler." | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:compute:VirtualMachineExtensionResponse": { | |
"description": "Describes a Virtual Machine Extension.", | |
"properties": { | |
"autoUpgradeMinorVersion": { | |
"type": "boolean", | |
"description": "Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true." | |
}, | |
"enableAutomaticUpgrade": { | |
"type": "boolean", | |
"description": "Indicates whether the extension should be automatically upgraded by the platform if there is a newer version of the extension available." | |
}, | |
"forceUpdateTag": { | |
"type": "string", | |
"description": "How the extension handler should be forced to update even if the extension configuration has not changed." | |
}, | |
"id": { | |
"type": "string", | |
"description": "Resource Id" | |
}, | |
"instanceView": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:VirtualMachineExtensionInstanceViewResponse", | |
"description": "The virtual machine extension instance view." | |
}, | |
"location": { | |
"type": "string", | |
"description": "Resource location" | |
}, | |
"name": { | |
"type": "string", | |
"description": "Resource name" | |
}, | |
"protectedSettings": { | |
"$ref": "pulumi.json#/Any", | |
"description": "The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all." | |
}, | |
"protectedSettingsFromKeyVault": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:KeyVaultSecretReferenceResponse", | |
"description": "The extensions protected settings that are passed by reference, and consumed from key vault" | |
}, | |
"provisionAfterExtensions": { | |
"type": "array", | |
"items": { | |
"type": "string" | |
}, | |
"description": "Collection of extension names after which this extension needs to be provisioned." | |
}, | |
"provisioningState": { | |
"type": "string", | |
"description": "The provisioning state, which only appears in the response." | |
}, | |
"publisher": { | |
"type": "string", | |
"description": "The name of the extension handler publisher." | |
}, | |
"settings": { | |
"$ref": "pulumi.json#/Any", | |
"description": "Json formatted public settings for the extension." | |
}, | |
"suppressFailures": { | |
"type": "boolean", | |
"description": "Indicates whether failures stemming from the extension will be suppressed (Operational failures such as not connecting to the VM will not be suppressed regardless of this value). The default is false." | |
}, | |
"tags": { | |
"type": "object", | |
"additionalProperties": { | |
"type": "string" | |
}, | |
"description": "Resource tags" | |
}, | |
"type": { | |
"type": "string", | |
"description": "Resource type" | |
}, | |
"typeHandlerVersion": { | |
"type": "string", | |
"description": "Specifies the version of the script handler." | |
} | |
}, | |
"type": "object", | |
"required": [ | |
"id", | |
"name", | |
"provisioningState", | |
"type" | |
] | |
}, | |
"azure-native:compute:VirtualMachineHealthStatusResponse": { | |
"description": "The health status of the VM.", | |
"properties": { | |
"status": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:InstanceViewStatusResponse", | |
"description": "The health status information for the VM." | |
} | |
}, | |
"type": "object", | |
"required": [ | |
"status" | |
] | |
}, | |
"azure-native:compute:VirtualMachineIdentity": { | |
"description": "Identity for the virtual machine.", | |
"properties": { | |
"type": { | |
"$ref": "#/types/azure-native:compute:ResourceIdentityType", | |
"description": "The type of identity used for the virtual machine. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user assigned identities. The type 'None' will remove any identities from the virtual machine." | |
}, | |
"userAssignedIdentities": { | |
"type": "array", | |
"items": { | |
"type": "string" | |
}, | |
"description": "The list of user identities associated with the Virtual Machine. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'." | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:compute:VirtualMachineIdentityResponse": { | |
"description": "Identity for the virtual machine.", | |
"properties": { | |
"principalId": { | |
"type": "string", | |
"description": "The principal id of virtual machine identity. This property will only be provided for a system assigned identity." | |
}, | |
"tenantId": { | |
"type": "string", | |
"description": "The tenant id associated with the virtual machine. This property will only be provided for a system assigned identity." | |
}, | |
"type": { | |
"type": "string", | |
"description": "The type of identity used for the virtual machine. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user assigned identities. The type 'None' will remove any identities from the virtual machine." | |
}, | |
"userAssignedIdentities": { | |
"type": "object", | |
"additionalProperties": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:UserAssignedIdentitiesResponseUserAssignedIdentities" | |
}, | |
"description": "The list of user identities associated with the Virtual Machine. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'." | |
} | |
}, | |
"type": "object", | |
"required": [ | |
"principalId", | |
"tenantId" | |
] | |
}, | |
"azure-native:compute:VirtualMachineInstanceViewResponse": { | |
"description": "The instance view of a virtual machine.", | |
"properties": { | |
"assignedHost": { | |
"type": "string", | |
"description": "Resource id of the dedicated host, on which the virtual machine is allocated through automatic placement, when the virtual machine is associated with a dedicated host group that has automatic placement enabled. Minimum api-version: 2020-06-01." | |
}, | |
"bootDiagnostics": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:BootDiagnosticsInstanceViewResponse", | |
"description": "Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status. You can easily view the output of your console log. Azure also enables you to see a screenshot of the VM from the hypervisor." | |
}, | |
"computerName": { | |
"type": "string", | |
"description": "The computer name assigned to the virtual machine." | |
}, | |
"disks": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:DiskInstanceViewResponse" | |
}, | |
"description": "The virtual machine disk information." | |
}, | |
"extensions": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:VirtualMachineExtensionInstanceViewResponse" | |
}, | |
"description": "The extensions information." | |
}, | |
"hyperVGeneration": { | |
"type": "string", | |
"description": "Specifies the HyperVGeneration Type associated with a resource" | |
}, | |
"maintenanceRedeployStatus": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:MaintenanceRedeployStatusResponse", | |
"description": "The Maintenance Operation status on the virtual machine." | |
}, | |
"osName": { | |
"type": "string", | |
"description": "The Operating System running on the virtual machine." | |
}, | |
"osVersion": { | |
"type": "string", | |
"description": "The version of Operating System running on the virtual machine." | |
}, | |
"patchStatus": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:VirtualMachinePatchStatusResponse", | |
"description": "[Preview Feature] The status of virtual machine patch operations." | |
}, | |
"platformFaultDomain": { | |
"type": "integer", | |
"description": "Specifies the fault domain of the virtual machine." | |
}, | |
"platformUpdateDomain": { | |
"type": "integer", | |
"description": "Specifies the update domain of the virtual machine." | |
}, | |
"rdpThumbPrint": { | |
"type": "string", | |
"description": "The Remote desktop certificate thumbprint." | |
}, | |
"statuses": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:InstanceViewStatusResponse" | |
}, | |
"description": "The resource status information." | |
}, | |
"vmAgent": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:VirtualMachineAgentInstanceViewResponse", | |
"description": "The VM Agent running on the virtual machine." | |
}, | |
"vmHealth": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:VirtualMachineHealthStatusResponse", | |
"description": "The health status for the VM." | |
} | |
}, | |
"type": "object", | |
"required": [ | |
"assignedHost", | |
"vmHealth" | |
] | |
}, | |
"azure-native:compute:VirtualMachineIpTag": { | |
"description": "Contains the IP tag associated with the public IP address.", | |
"properties": { | |
"ipTagType": { | |
"type": "string", | |
"description": "IP tag type. Example: FirstPartyUsage." | |
}, | |
"tag": { | |
"type": "string", | |
"description": "IP tag associated with the public IP. Example: SQL, Storage etc." | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:compute:VirtualMachineIpTagResponse": { | |
"description": "Contains the IP tag associated with the public IP address.", | |
"properties": { | |
"ipTagType": { | |
"type": "string", | |
"description": "IP tag type. Example: FirstPartyUsage." | |
}, | |
"tag": { | |
"type": "string", | |
"description": "IP tag associated with the public IP. Example: SQL, Storage etc." | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:compute:VirtualMachineNetworkInterfaceConfiguration": { | |
"description": "Describes a virtual machine network interface configurations.", | |
"properties": { | |
"deleteOption": { | |
"oneOf": [ | |
{ | |
"type": "string" | |
}, | |
{ | |
"$ref": "#/types/azure-native:compute:DeleteOptions" | |
} | |
], | |
"description": "Specify what happens to the network interface when the VM is deleted" | |
}, | |
"disableTcpStateTracking": { | |
"type": "boolean", | |
"description": "Specifies whether the network interface is disabled for tcp state tracking." | |
}, | |
"dnsSettings": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:VirtualMachineNetworkInterfaceDnsSettingsConfiguration", | |
"description": "The dns settings to be applied on the network interfaces." | |
}, | |
"dscpConfiguration": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:SubResource" | |
}, | |
"enableAcceleratedNetworking": { | |
"type": "boolean", | |
"description": "Specifies whether the network interface is accelerated networking-enabled." | |
}, | |
"enableFpga": { | |
"type": "boolean", | |
"description": "Specifies whether the network interface is FPGA networking-enabled." | |
}, | |
"enableIPForwarding": { | |
"type": "boolean", | |
"description": "Whether IP forwarding enabled on this NIC." | |
}, | |
"ipConfigurations": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:VirtualMachineNetworkInterfaceIPConfiguration" | |
}, | |
"description": "Specifies the IP configurations of the network interface." | |
}, | |
"name": { | |
"type": "string", | |
"description": "The network interface configuration name." | |
}, | |
"networkSecurityGroup": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:SubResource", | |
"description": "The network security group." | |
}, | |
"primary": { | |
"type": "boolean", | |
"description": "Specifies the primary network interface in case the virtual machine has more than 1 network interface." | |
} | |
}, | |
"type": "object", | |
"required": [ | |
"ipConfigurations", | |
"name" | |
] | |
}, | |
"azure-native:compute:VirtualMachineNetworkInterfaceConfigurationResponse": { | |
"description": "Describes a virtual machine network interface configurations.", | |
"properties": { | |
"deleteOption": { | |
"type": "string", | |
"description": "Specify what happens to the network interface when the VM is deleted" | |
}, | |
"disableTcpStateTracking": { | |
"type": "boolean", | |
"description": "Specifies whether the network interface is disabled for tcp state tracking." | |
}, | |
"dnsSettings": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:VirtualMachineNetworkInterfaceDnsSettingsConfigurationResponse", | |
"description": "The dns settings to be applied on the network interfaces." | |
}, | |
"dscpConfiguration": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:SubResourceResponse" | |
}, | |
"enableAcceleratedNetworking": { | |
"type": "boolean", | |
"description": "Specifies whether the network interface is accelerated networking-enabled." | |
}, | |
"enableFpga": { | |
"type": "boolean", | |
"description": "Specifies whether the network interface is FPGA networking-enabled." | |
}, | |
"enableIPForwarding": { | |
"type": "boolean", | |
"description": "Whether IP forwarding enabled on this NIC." | |
}, | |
"ipConfigurations": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:VirtualMachineNetworkInterfaceIPConfigurationResponse" | |
}, | |
"description": "Specifies the IP configurations of the network interface." | |
}, | |
"name": { | |
"type": "string", | |
"description": "The network interface configuration name." | |
}, | |
"networkSecurityGroup": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:SubResourceResponse", | |
"description": "The network security group." | |
}, | |
"primary": { | |
"type": "boolean", | |
"description": "Specifies the primary network interface in case the virtual machine has more than 1 network interface." | |
} | |
}, | |
"type": "object", | |
"required": [ | |
"ipConfigurations", | |
"name" | |
] | |
}, | |
"azure-native:compute:VirtualMachineNetworkInterfaceDnsSettingsConfiguration": { | |
"description": "Describes a virtual machines network configuration's DNS settings.", | |
"properties": { | |
"dnsServers": { | |
"type": "array", | |
"items": { | |
"type": "string" | |
}, | |
"description": "List of DNS servers IP addresses" | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:compute:VirtualMachineNetworkInterfaceDnsSettingsConfigurationResponse": { | |
"description": "Describes a virtual machines network configuration's DNS settings.", | |
"properties": { | |
"dnsServers": { | |
"type": "array", | |
"items": { | |
"type": "string" | |
}, | |
"description": "List of DNS servers IP addresses" | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:compute:VirtualMachineNetworkInterfaceIPConfiguration": { | |
"description": "Describes a virtual machine network profile's IP configuration.", | |
"properties": { | |
"applicationGatewayBackendAddressPools": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:SubResource" | |
}, | |
"description": "Specifies an array of references to backend address pools of application gateways. A virtual machine can reference backend address pools of multiple application gateways. Multiple virtual machines cannot use the same application gateway." | |
}, | |
"applicationSecurityGroups": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:SubResource" | |
}, | |
"description": "Specifies an array of references to application security group." | |
}, | |
"loadBalancerBackendAddressPools": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:SubResource" | |
}, | |
"description": "Specifies an array of references to backend address pools of load balancers. A virtual machine can reference backend address pools of one public and one internal load balancer. [Multiple virtual machines cannot use the same basic sku load balancer]." | |
}, | |
"name": { | |
"type": "string", | |
"description": "The IP configuration name." | |
}, | |
"primary": { | |
"type": "boolean", | |
"description": "Specifies the primary network interface in case the virtual machine has more than 1 network interface." | |
}, | |
"privateIPAddressVersion": { | |
"oneOf": [ | |
{ | |
"type": "string" | |
}, | |
{ | |
"$ref": "#/types/azure-native:compute:IPVersions" | |
} | |
], | |
"description": "Available from Api-Version 2017-03-30 onwards, it represents whether the specific ipconfiguration is IPv4 or IPv6. Default is taken as IPv4. Possible values are: 'IPv4' and 'IPv6'." | |
}, | |
"publicIPAddressConfiguration": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:VirtualMachinePublicIPAddressConfiguration", | |
"description": "The publicIPAddressConfiguration." | |
}, | |
"subnet": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:SubResource", | |
"description": "Specifies the identifier of the subnet." | |
} | |
}, | |
"type": "object", | |
"required": [ | |
"name" | |
] | |
}, | |
"azure-native:compute:VirtualMachineNetworkInterfaceIPConfigurationResponse": { | |
"description": "Describes a virtual machine network profile's IP configuration.", | |
"properties": { | |
"applicationGatewayBackendAddressPools": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:SubResourceResponse" | |
}, | |
"description": "Specifies an array of references to backend address pools of application gateways. A virtual machine can reference backend address pools of multiple application gateways. Multiple virtual machines cannot use the same application gateway." | |
}, | |
"applicationSecurityGroups": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:SubResourceResponse" | |
}, | |
"description": "Specifies an array of references to application security group." | |
}, | |
"loadBalancerBackendAddressPools": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:SubResourceResponse" | |
}, | |
"description": "Specifies an array of references to backend address pools of load balancers. A virtual machine can reference backend address pools of one public and one internal load balancer. [Multiple virtual machines cannot use the same basic sku load balancer]." | |
}, | |
"name": { | |
"type": "string", | |
"description": "The IP configuration name." | |
}, | |
"primary": { | |
"type": "boolean", | |
"description": "Specifies the primary network interface in case the virtual machine has more than 1 network interface." | |
}, | |
"privateIPAddressVersion": { | |
"type": "string", | |
"description": "Available from Api-Version 2017-03-30 onwards, it represents whether the specific ipconfiguration is IPv4 or IPv6. Default is taken as IPv4. Possible values are: 'IPv4' and 'IPv6'." | |
}, | |
"publicIPAddressConfiguration": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:VirtualMachinePublicIPAddressConfigurationResponse", | |
"description": "The publicIPAddressConfiguration." | |
}, | |
"subnet": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:SubResourceResponse", | |
"description": "Specifies the identifier of the subnet." | |
} | |
}, | |
"type": "object", | |
"required": [ | |
"name" | |
] | |
}, | |
"azure-native:compute:VirtualMachinePatchStatusResponse": { | |
"description": "The status of virtual machine patch operations.", | |
"properties": { | |
"availablePatchSummary": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:AvailablePatchSummaryResponse", | |
"description": "The available patch summary of the latest assessment operation for the virtual machine." | |
}, | |
"configurationStatuses": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:InstanceViewStatusResponse" | |
}, | |
"description": "The enablement status of the specified patchMode" | |
}, | |
"lastPatchInstallationSummary": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:LastPatchInstallationSummaryResponse", | |
"description": "The installation summary of the latest installation operation for the virtual machine." | |
} | |
}, | |
"type": "object", | |
"required": [ | |
"configurationStatuses" | |
] | |
}, | |
"azure-native:compute:VirtualMachinePriorityTypes": { | |
"description": "Specifies the priority for the virtual machines in the scale set. Minimum api-version: 2017-10-30-preview.", | |
"type": "string", | |
"enum": [ | |
{ | |
"value": "Regular" | |
}, | |
{ | |
"value": "Low" | |
}, | |
{ | |
"value": "Spot" | |
} | |
] | |
}, | |
"azure-native:compute:VirtualMachinePublicIPAddressConfiguration": { | |
"description": "Describes a virtual machines IP Configuration's PublicIPAddress configuration", | |
"properties": { | |
"deleteOption": { | |
"oneOf": [ | |
{ | |
"type": "string" | |
}, | |
{ | |
"$ref": "#/types/azure-native:compute:DeleteOptions" | |
} | |
], | |
"description": "Specify what happens to the public IP address when the VM is deleted" | |
}, | |
"dnsSettings": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:VirtualMachinePublicIPAddressDnsSettingsConfiguration", | |
"description": "The dns settings to be applied on the publicIP addresses ." | |
}, | |
"idleTimeoutInMinutes": { | |
"type": "integer", | |
"description": "The idle timeout of the public IP address." | |
}, | |
"ipTags": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:VirtualMachineIpTag" | |
}, | |
"description": "The list of IP tags associated with the public IP address." | |
}, | |
"name": { | |
"type": "string", | |
"description": "The publicIP address configuration name." | |
}, | |
"publicIPAddressVersion": { | |
"oneOf": [ | |
{ | |
"type": "string" | |
}, | |
{ | |
"$ref": "#/types/azure-native:compute:IPVersions" | |
} | |
], | |
"description": "Available from Api-Version 2019-07-01 onwards, it represents whether the specific ipconfiguration is IPv4 or IPv6. Default is taken as IPv4. Possible values are: 'IPv4' and 'IPv6'." | |
}, | |
"publicIPAllocationMethod": { | |
"oneOf": [ | |
{ | |
"type": "string" | |
}, | |
{ | |
"$ref": "#/types/azure-native:compute:PublicIPAllocationMethod" | |
} | |
], | |
"description": "Specify the public IP allocation type" | |
}, | |
"publicIPPrefix": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:SubResource", | |
"description": "The PublicIPPrefix from which to allocate publicIP addresses." | |
}, | |
"sku": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:PublicIPAddressSku", | |
"description": "Describes the public IP Sku. It can only be set with OrchestrationMode as Flexible." | |
} | |
}, | |
"type": "object", | |
"required": [ | |
"name" | |
] | |
}, | |
"azure-native:compute:VirtualMachinePublicIPAddressConfigurationResponse": { | |
"description": "Describes a virtual machines IP Configuration's PublicIPAddress configuration", | |
"properties": { | |
"deleteOption": { | |
"type": "string", | |
"description": "Specify what happens to the public IP address when the VM is deleted" | |
}, | |
"dnsSettings": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:VirtualMachinePublicIPAddressDnsSettingsConfigurationResponse", | |
"description": "The dns settings to be applied on the publicIP addresses ." | |
}, | |
"idleTimeoutInMinutes": { | |
"type": "integer", | |
"description": "The idle timeout of the public IP address." | |
}, | |
"ipTags": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:VirtualMachineIpTagResponse" | |
}, | |
"description": "The list of IP tags associated with the public IP address." | |
}, | |
"name": { | |
"type": "string", | |
"description": "The publicIP address configuration name." | |
}, | |
"publicIPAddressVersion": { | |
"type": "string", | |
"description": "Available from Api-Version 2019-07-01 onwards, it represents whether the specific ipconfiguration is IPv4 or IPv6. Default is taken as IPv4. Possible values are: 'IPv4' and 'IPv6'." | |
}, | |
"publicIPAllocationMethod": { | |
"type": "string", | |
"description": "Specify the public IP allocation type" | |
}, | |
"publicIPPrefix": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:SubResourceResponse", | |
"description": "The PublicIPPrefix from which to allocate publicIP addresses." | |
}, | |
"sku": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:PublicIPAddressSkuResponse", | |
"description": "Describes the public IP Sku. It can only be set with OrchestrationMode as Flexible." | |
} | |
}, | |
"type": "object", | |
"required": [ | |
"name" | |
] | |
}, | |
"azure-native:compute:VirtualMachinePublicIPAddressDnsSettingsConfiguration": { | |
"description": "Describes a virtual machines network configuration's DNS settings.", | |
"properties": { | |
"domainNameLabel": { | |
"type": "string", | |
"description": "The Domain name label prefix of the PublicIPAddress resources that will be created. The generated name label is the concatenation of the domain name label and vm network profile unique ID." | |
} | |
}, | |
"type": "object", | |
"required": [ | |
"domainNameLabel" | |
] | |
}, | |
"azure-native:compute:VirtualMachinePublicIPAddressDnsSettingsConfigurationResponse": { | |
"description": "Describes a virtual machines network configuration's DNS settings.", | |
"properties": { | |
"domainNameLabel": { | |
"type": "string", | |
"description": "The Domain name label prefix of the PublicIPAddress resources that will be created. The generated name label is the concatenation of the domain name label and vm network profile unique ID." | |
} | |
}, | |
"type": "object", | |
"required": [ | |
"domainNameLabel" | |
] | |
}, | |
"azure-native:compute:VirtualMachineSizeTypes": { | |
"description": "Specifies the size of the virtual machine. The enum data type is currently deprecated and will be removed by December 23rd 2023. The recommended way to get the list of available sizes is using these APIs: [List all available virtual machine sizes in an availability set](https://docs.microsoft.com/rest/api/compute/availabilitysets/listavailablesizes), [List all available virtual machine sizes in a region]( https://docs.microsoft.com/rest/api/compute/resourceskus/list), [List all available virtual machine sizes for resizing](https://docs.microsoft.com/rest/api/compute/virtualmachines/listavailablesizes). For more information about virtual machine sizes, see [Sizes for virtual machines](https://docs.microsoft.com/azure/virtual-machines/sizes). The available VM sizes depend on region and availability set.", | |
"type": "string", | |
"enum": [ | |
{ | |
"value": "Basic_A0" | |
}, | |
{ | |
"value": "Basic_A1" | |
}, | |
{ | |
"value": "Basic_A2" | |
}, | |
{ | |
"value": "Basic_A3" | |
}, | |
{ | |
"value": "Basic_A4" | |
}, | |
{ | |
"value": "Standard_A0" | |
}, | |
{ | |
"value": "Standard_A1" | |
}, | |
{ | |
"value": "Standard_A2" | |
}, | |
{ | |
"value": "Standard_A3" | |
}, | |
{ | |
"value": "Standard_A4" | |
}, | |
{ | |
"value": "Standard_A5" | |
}, | |
{ | |
"value": "Standard_A6" | |
}, | |
{ | |
"value": "Standard_A7" | |
}, | |
{ | |
"value": "Standard_A8" | |
}, | |
{ | |
"value": "Standard_A9" | |
}, | |
{ | |
"value": "Standard_A10" | |
}, | |
{ | |
"value": "Standard_A11" | |
}, | |
{ | |
"value": "Standard_A1_v2" | |
}, | |
{ | |
"value": "Standard_A2_v2" | |
}, | |
{ | |
"value": "Standard_A4_v2" | |
}, | |
{ | |
"value": "Standard_A8_v2" | |
}, | |
{ | |
"value": "Standard_A2m_v2" | |
}, | |
{ | |
"value": "Standard_A4m_v2" | |
}, | |
{ | |
"value": "Standard_A8m_v2" | |
}, | |
{ | |
"value": "Standard_B1s" | |
}, | |
{ | |
"value": "Standard_B1ms" | |
}, | |
{ | |
"value": "Standard_B2s" | |
}, | |
{ | |
"value": "Standard_B2ms" | |
}, | |
{ | |
"value": "Standard_B4ms" | |
}, | |
{ | |
"value": "Standard_B8ms" | |
}, | |
{ | |
"value": "Standard_D1" | |
}, | |
{ | |
"value": "Standard_D2" | |
}, | |
{ | |
"value": "Standard_D3" | |
}, | |
{ | |
"value": "Standard_D4" | |
}, | |
{ | |
"value": "Standard_D11" | |
}, | |
{ | |
"value": "Standard_D12" | |
}, | |
{ | |
"value": "Standard_D13" | |
}, | |
{ | |
"value": "Standard_D14" | |
}, | |
{ | |
"value": "Standard_D1_v2" | |
}, | |
{ | |
"value": "Standard_D2_v2" | |
}, | |
{ | |
"value": "Standard_D3_v2" | |
}, | |
{ | |
"value": "Standard_D4_v2" | |
}, | |
{ | |
"value": "Standard_D5_v2" | |
}, | |
{ | |
"value": "Standard_D2_v3" | |
}, | |
{ | |
"value": "Standard_D4_v3" | |
}, | |
{ | |
"value": "Standard_D8_v3" | |
}, | |
{ | |
"value": "Standard_D16_v3" | |
}, | |
{ | |
"value": "Standard_D32_v3" | |
}, | |
{ | |
"value": "Standard_D64_v3" | |
}, | |
{ | |
"value": "Standard_D2s_v3" | |
}, | |
{ | |
"value": "Standard_D4s_v3" | |
}, | |
{ | |
"value": "Standard_D8s_v3" | |
}, | |
{ | |
"value": "Standard_D16s_v3" | |
}, | |
{ | |
"value": "Standard_D32s_v3" | |
}, | |
{ | |
"value": "Standard_D64s_v3" | |
}, | |
{ | |
"value": "Standard_D11_v2" | |
}, | |
{ | |
"value": "Standard_D12_v2" | |
}, | |
{ | |
"value": "Standard_D13_v2" | |
}, | |
{ | |
"value": "Standard_D14_v2" | |
}, | |
{ | |
"value": "Standard_D15_v2" | |
}, | |
{ | |
"value": "Standard_DS1" | |
}, | |
{ | |
"value": "Standard_DS2" | |
}, | |
{ | |
"value": "Standard_DS3" | |
}, | |
{ | |
"value": "Standard_DS4" | |
}, | |
{ | |
"value": "Standard_DS11" | |
}, | |
{ | |
"value": "Standard_DS12" | |
}, | |
{ | |
"value": "Standard_DS13" | |
}, | |
{ | |
"value": "Standard_DS14" | |
}, | |
{ | |
"value": "Standard_DS1_v2" | |
}, | |
{ | |
"value": "Standard_DS2_v2" | |
}, | |
{ | |
"value": "Standard_DS3_v2" | |
}, | |
{ | |
"value": "Standard_DS4_v2" | |
}, | |
{ | |
"value": "Standard_DS5_v2" | |
}, | |
{ | |
"value": "Standard_DS11_v2" | |
}, | |
{ | |
"value": "Standard_DS12_v2" | |
}, | |
{ | |
"value": "Standard_DS13_v2" | |
}, | |
{ | |
"value": "Standard_DS14_v2" | |
}, | |
{ | |
"value": "Standard_DS15_v2" | |
}, | |
{ | |
"value": "Standard_DS13-4_v2" | |
}, | |
{ | |
"value": "Standard_DS13-2_v2" | |
}, | |
{ | |
"value": "Standard_DS14-8_v2" | |
}, | |
{ | |
"value": "Standard_DS14-4_v2" | |
}, | |
{ | |
"value": "Standard_E2_v3" | |
}, | |
{ | |
"value": "Standard_E4_v3" | |
}, | |
{ | |
"value": "Standard_E8_v3" | |
}, | |
{ | |
"value": "Standard_E16_v3" | |
}, | |
{ | |
"value": "Standard_E32_v3" | |
}, | |
{ | |
"value": "Standard_E64_v3" | |
}, | |
{ | |
"value": "Standard_E2s_v3" | |
}, | |
{ | |
"value": "Standard_E4s_v3" | |
}, | |
{ | |
"value": "Standard_E8s_v3" | |
}, | |
{ | |
"value": "Standard_E16s_v3" | |
}, | |
{ | |
"value": "Standard_E32s_v3" | |
}, | |
{ | |
"value": "Standard_E64s_v3" | |
}, | |
{ | |
"value": "Standard_E32-16_v3" | |
}, | |
{ | |
"value": "Standard_E32-8s_v3" | |
}, | |
{ | |
"value": "Standard_E64-32s_v3" | |
}, | |
{ | |
"value": "Standard_E64-16s_v3" | |
}, | |
{ | |
"value": "Standard_F1" | |
}, | |
{ | |
"value": "Standard_F2" | |
}, | |
{ | |
"value": "Standard_F4" | |
}, | |
{ | |
"value": "Standard_F8" | |
}, | |
{ | |
"value": "Standard_F16" | |
}, | |
{ | |
"value": "Standard_F1s" | |
}, | |
{ | |
"value": "Standard_F2s" | |
}, | |
{ | |
"value": "Standard_F4s" | |
}, | |
{ | |
"value": "Standard_F8s" | |
}, | |
{ | |
"value": "Standard_F16s" | |
}, | |
{ | |
"value": "Standard_F2s_v2" | |
}, | |
{ | |
"value": "Standard_F4s_v2" | |
}, | |
{ | |
"value": "Standard_F8s_v2" | |
}, | |
{ | |
"value": "Standard_F16s_v2" | |
}, | |
{ | |
"value": "Standard_F32s_v2" | |
}, | |
{ | |
"value": "Standard_F64s_v2" | |
}, | |
{ | |
"value": "Standard_F72s_v2" | |
}, | |
{ | |
"value": "Standard_G1" | |
}, | |
{ | |
"value": "Standard_G2" | |
}, | |
{ | |
"value": "Standard_G3" | |
}, | |
{ | |
"value": "Standard_G4" | |
}, | |
{ | |
"value": "Standard_G5" | |
}, | |
{ | |
"value": "Standard_GS1" | |
}, | |
{ | |
"value": "Standard_GS2" | |
}, | |
{ | |
"value": "Standard_GS3" | |
}, | |
{ | |
"value": "Standard_GS4" | |
}, | |
{ | |
"value": "Standard_GS5" | |
}, | |
{ | |
"value": "Standard_GS4-8" | |
}, | |
{ | |
"value": "Standard_GS4-4" | |
}, | |
{ | |
"value": "Standard_GS5-16" | |
}, | |
{ | |
"value": "Standard_GS5-8" | |
}, | |
{ | |
"value": "Standard_H8" | |
}, | |
{ | |
"value": "Standard_H16" | |
}, | |
{ | |
"value": "Standard_H8m" | |
}, | |
{ | |
"value": "Standard_H16m" | |
}, | |
{ | |
"value": "Standard_H16r" | |
}, | |
{ | |
"value": "Standard_H16mr" | |
}, | |
{ | |
"value": "Standard_L4s" | |
}, | |
{ | |
"value": "Standard_L8s" | |
}, | |
{ | |
"value": "Standard_L16s" | |
}, | |
{ | |
"value": "Standard_L32s" | |
}, | |
{ | |
"value": "Standard_M64s" | |
}, | |
{ | |
"value": "Standard_M64ms" | |
}, | |
{ | |
"value": "Standard_M128s" | |
}, | |
{ | |
"value": "Standard_M128ms" | |
}, | |
{ | |
"value": "Standard_M64-32ms" | |
}, | |
{ | |
"value": "Standard_M64-16ms" | |
}, | |
{ | |
"value": "Standard_M128-64ms" | |
}, | |
{ | |
"value": "Standard_M128-32ms" | |
}, | |
{ | |
"value": "Standard_NC6" | |
}, | |
{ | |
"value": "Standard_NC12" | |
}, | |
{ | |
"value": "Standard_NC24" | |
}, | |
{ | |
"value": "Standard_NC24r" | |
}, | |
{ | |
"value": "Standard_NC6s_v2" | |
}, | |
{ | |
"value": "Standard_NC12s_v2" | |
}, | |
{ | |
"value": "Standard_NC24s_v2" | |
}, | |
{ | |
"value": "Standard_NC24rs_v2" | |
}, | |
{ | |
"value": "Standard_NC6s_v3" | |
}, | |
{ | |
"value": "Standard_NC12s_v3" | |
}, | |
{ | |
"value": "Standard_NC24s_v3" | |
}, | |
{ | |
"value": "Standard_NC24rs_v3" | |
}, | |
{ | |
"value": "Standard_ND6s" | |
}, | |
{ | |
"value": "Standard_ND12s" | |
}, | |
{ | |
"value": "Standard_ND24s" | |
}, | |
{ | |
"value": "Standard_ND24rs" | |
}, | |
{ | |
"value": "Standard_NV6" | |
}, | |
{ | |
"value": "Standard_NV12" | |
}, | |
{ | |
"value": "Standard_NV24" | |
} | |
] | |
}, | |
"azure-native:compute:WinRMConfiguration": { | |
"description": "Describes Windows Remote Management configuration of the VM", | |
"properties": { | |
"listeners": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:WinRMListener" | |
}, | |
"description": "The list of Windows Remote Management listeners" | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:compute:WinRMConfigurationResponse": { | |
"description": "Describes Windows Remote Management configuration of the VM", | |
"properties": { | |
"listeners": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:WinRMListenerResponse" | |
}, | |
"description": "The list of Windows Remote Management listeners" | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:compute:WinRMListener": { | |
"description": "Describes Protocol and thumbprint of Windows Remote Management listener", | |
"properties": { | |
"certificateUrl": { | |
"type": "string", | |
"description": "This is the URL of a certificate that has been uploaded to Key Vault as a secret. For adding a secret to the Key Vault, see [Add a key or secret to the key vault](https://docs.microsoft.com/azure/key-vault/key-vault-get-started/#add). In this case, your certificate needs to be the Base64 encoding of the following JSON Object which is encoded in UTF-8: <br><br> {<br> \"data\":\"<Base64-encoded-certificate>\",<br> \"dataType\":\"pfx\",<br> \"password\":\"<pfx-file-password>\"<br>} <br> To install certificates on a virtual machine it is recommended to use the [Azure Key Vault virtual machine extension for Linux](https://docs.microsoft.com/azure/virtual-machines/extensions/key-vault-linux) or the [Azure Key Vault virtual machine extension for Windows](https://docs.microsoft.com/azure/virtual-machines/extensions/key-vault-windows)." | |
}, | |
"protocol": { | |
"$ref": "#/types/azure-native:compute:ProtocolTypes", | |
"description": "Specifies the protocol of WinRM listener. Possible values are: **http,** **https.**" | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:compute:WinRMListenerResponse": { | |
"description": "Describes Protocol and thumbprint of Windows Remote Management listener", | |
"properties": { | |
"certificateUrl": { | |
"type": "string", | |
"description": "This is the URL of a certificate that has been uploaded to Key Vault as a secret. For adding a secret to the Key Vault, see [Add a key or secret to the key vault](https://docs.microsoft.com/azure/key-vault/key-vault-get-started/#add). In this case, your certificate needs to be the Base64 encoding of the following JSON Object which is encoded in UTF-8: <br><br> {<br> \"data\":\"<Base64-encoded-certificate>\",<br> \"dataType\":\"pfx\",<br> \"password\":\"<pfx-file-password>\"<br>} <br> To install certificates on a virtual machine it is recommended to use the [Azure Key Vault virtual machine extension for Linux](https://docs.microsoft.com/azure/virtual-machines/extensions/key-vault-linux) or the [Azure Key Vault virtual machine extension for Windows](https://docs.microsoft.com/azure/virtual-machines/extensions/key-vault-windows)." | |
}, | |
"protocol": { | |
"type": "string", | |
"description": "Specifies the protocol of WinRM listener. Possible values are: **http,** **https.**" | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:compute:WindowsConfiguration": { | |
"description": "Specifies Windows operating system settings on the virtual machine.", | |
"properties": { | |
"additionalUnattendContent": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:AdditionalUnattendContent" | |
}, | |
"description": "Specifies additional base-64 encoded XML formatted information that can be included in the Unattend.xml file, which is used by Windows Setup." | |
}, | |
"enableAutomaticUpdates": { | |
"type": "boolean", | |
"description": "Indicates whether Automatic Updates is enabled for the Windows virtual machine. Default value is true. For virtual machine scale sets, this property can be updated and updates will take effect on OS reprovisioning." | |
}, | |
"enableVMAgentPlatformUpdates": { | |
"type": "boolean", | |
"description": "Indicates whether VMAgent Platform Updates is enabled for the Windows virtual machine. Default value is false." | |
}, | |
"patchSettings": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:PatchSettings", | |
"description": "[Preview Feature] Specifies settings related to VM Guest Patching on Windows." | |
}, | |
"provisionVMAgent": { | |
"type": "boolean", | |
"description": "Indicates whether virtual machine agent should be provisioned on the virtual machine. When this property is not specified in the request body, it is set to true by default. This will ensure that VM Agent is installed on the VM so that extensions can be added to the VM later." | |
}, | |
"timeZone": { | |
"type": "string", | |
"description": "Specifies the time zone of the virtual machine. e.g. \"Pacific Standard Time\". Possible values can be [TimeZoneInfo.Id](https://docs.microsoft.com/dotnet/api/system.timezoneinfo.id?#System_TimeZoneInfo_Id) value from time zones returned by [TimeZoneInfo.GetSystemTimeZones](https://docs.microsoft.com/dotnet/api/system.timezoneinfo.getsystemtimezones)." | |
}, | |
"winRM": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:WinRMConfiguration", | |
"description": "Specifies the Windows Remote Management listeners. This enables remote Windows PowerShell." | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:compute:WindowsConfigurationResponse": { | |
"description": "Specifies Windows operating system settings on the virtual machine.", | |
"properties": { | |
"additionalUnattendContent": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:AdditionalUnattendContentResponse" | |
}, | |
"description": "Specifies additional base-64 encoded XML formatted information that can be included in the Unattend.xml file, which is used by Windows Setup." | |
}, | |
"enableAutomaticUpdates": { | |
"type": "boolean", | |
"description": "Indicates whether Automatic Updates is enabled for the Windows virtual machine. Default value is true. For virtual machine scale sets, this property can be updated and updates will take effect on OS reprovisioning." | |
}, | |
"enableVMAgentPlatformUpdates": { | |
"type": "boolean", | |
"description": "Indicates whether VMAgent Platform Updates is enabled for the Windows virtual machine. Default value is false." | |
}, | |
"patchSettings": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:PatchSettingsResponse", | |
"description": "[Preview Feature] Specifies settings related to VM Guest Patching on Windows." | |
}, | |
"provisionVMAgent": { | |
"type": "boolean", | |
"description": "Indicates whether virtual machine agent should be provisioned on the virtual machine. When this property is not specified in the request body, it is set to true by default. This will ensure that VM Agent is installed on the VM so that extensions can be added to the VM later." | |
}, | |
"timeZone": { | |
"type": "string", | |
"description": "Specifies the time zone of the virtual machine. e.g. \"Pacific Standard Time\". Possible values can be [TimeZoneInfo.Id](https://docs.microsoft.com/dotnet/api/system.timezoneinfo.id?#System_TimeZoneInfo_Id) value from time zones returned by [TimeZoneInfo.GetSystemTimeZones](https://docs.microsoft.com/dotnet/api/system.timezoneinfo.getsystemtimezones)." | |
}, | |
"winRM": { | |
"type": "object", | |
"$ref": "#/types/azure-native:compute:WinRMConfigurationResponse", | |
"description": "Specifies the Windows Remote Management listeners. This enables remote Windows PowerShell." | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:compute:WindowsPatchAssessmentMode": { | |
"description": "Specifies the mode of VM Guest patch assessment for the IaaS virtual machine.<br /><br /> Possible values are:<br /><br /> **ImageDefault** - You control the timing of patch assessments on a virtual machine.<br /><br /> **AutomaticByPlatform** - The platform will trigger periodic patch assessments. The property provisionVMAgent must be true. ", | |
"type": "string", | |
"enum": [ | |
{ | |
"value": "ImageDefault" | |
}, | |
{ | |
"value": "AutomaticByPlatform" | |
} | |
] | |
}, | |
"azure-native:compute:WindowsVMGuestPatchAutomaticByPlatformRebootSetting": { | |
"description": "Specifies the reboot setting for all AutomaticByPlatform patch installation operations.", | |
"type": "string", | |
"enum": [ | |
{ | |
"value": "Unknown" | |
}, | |
{ | |
"value": "IfRequired" | |
}, | |
{ | |
"value": "Never" | |
}, | |
{ | |
"value": "Always" | |
} | |
] | |
}, | |
"azure-native:compute:WindowsVMGuestPatchAutomaticByPlatformSettings": { | |
"description": "Specifies additional settings to be applied when patch mode AutomaticByPlatform is selected in Windows patch settings.", | |
"properties": { | |
"bypassPlatformSafetyChecksOnUserSchedule": { | |
"type": "boolean", | |
"description": "Enables customer to schedule patching without accidental upgrades" | |
}, | |
"rebootSetting": { | |
"oneOf": [ | |
{ | |
"type": "string" | |
}, | |
{ | |
"$ref": "#/types/azure-native:compute:WindowsVMGuestPatchAutomaticByPlatformRebootSetting" | |
} | |
], | |
"description": "Specifies the reboot setting for all AutomaticByPlatform patch installation operations." | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:compute:WindowsVMGuestPatchAutomaticByPlatformSettingsResponse": { | |
"description": "Specifies additional settings to be applied when patch mode AutomaticByPlatform is selected in Windows patch settings.", | |
"properties": { | |
"bypassPlatformSafetyChecksOnUserSchedule": { | |
"type": "boolean", | |
"description": "Enables customer to schedule patching without accidental upgrades" | |
}, | |
"rebootSetting": { | |
"type": "string", | |
"description": "Specifies the reboot setting for all AutomaticByPlatform patch installation operations." | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:compute:WindowsVMGuestPatchMode": { | |
"description": "Specifies the mode of VM Guest Patching to IaaS virtual machine or virtual machines associated to virtual machine scale set with OrchestrationMode as Flexible.<br /><br /> Possible values are:<br /><br /> **Manual** - You control the application of patches to a virtual machine. You do this by applying patches manually inside the VM. In this mode, automatic updates are disabled; the property WindowsConfiguration.enableAutomaticUpdates must be false<br /><br /> **AutomaticByOS** - The virtual machine will automatically be updated by the OS. The property WindowsConfiguration.enableAutomaticUpdates must be true. <br /><br /> **AutomaticByPlatform** - the virtual machine will automatically updated by the platform. The properties provisionVMAgent and WindowsConfiguration.enableAutomaticUpdates must be true ", | |
"type": "string", | |
"enum": [ | |
{ | |
"value": "Manual" | |
}, | |
{ | |
"value": "AutomaticByOS" | |
}, | |
{ | |
"value": "AutomaticByPlatform" | |
} | |
] | |
}, | |
"azure-native:network:AddressSpace": { | |
"description": "AddressSpace contains an array of IP address ranges that can be used by subnets of the virtual network.", | |
"properties": { | |
"addressPrefixes": { | |
"type": "array", | |
"items": { | |
"type": "string" | |
}, | |
"description": "A list of address blocks reserved for this virtual network in CIDR notation." | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:network:AddressSpaceResponse": { | |
"description": "AddressSpace contains an array of IP address ranges that can be used by subnets of the virtual network.", | |
"properties": { | |
"addressPrefixes": { | |
"type": "array", | |
"items": { | |
"type": "string" | |
}, | |
"description": "A list of address blocks reserved for this virtual network in CIDR notation." | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:network:ApplicationGatewayBackendAddress": { | |
"description": "Backend address of an application gateway.", | |
"properties": { | |
"fqdn": { | |
"type": "string", | |
"description": "Fully qualified domain name (FQDN)." | |
}, | |
"ipAddress": { | |
"type": "string", | |
"description": "IP address." | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:network:ApplicationGatewayBackendAddressPool": { | |
"description": "Backend Address Pool of an application gateway.", | |
"properties": { | |
"backendAddresses": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:ApplicationGatewayBackendAddress" | |
}, | |
"description": "Backend addresses." | |
}, | |
"id": { | |
"type": "string", | |
"description": "Resource ID." | |
}, | |
"name": { | |
"type": "string", | |
"description": "Name of the backend address pool that is unique within an Application Gateway." | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:network:ApplicationGatewayBackendAddressPoolResponse": { | |
"description": "Backend Address Pool of an application gateway.", | |
"properties": { | |
"backendAddresses": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:ApplicationGatewayBackendAddressResponse" | |
}, | |
"description": "Backend addresses." | |
}, | |
"backendIPConfigurations": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:NetworkInterfaceIPConfigurationResponse" | |
}, | |
"description": "Collection of references to IPs defined in network interfaces." | |
}, | |
"etag": { | |
"type": "string", | |
"description": "A unique read-only string that changes whenever the resource is updated." | |
}, | |
"id": { | |
"type": "string", | |
"description": "Resource ID." | |
}, | |
"name": { | |
"type": "string", | |
"description": "Name of the backend address pool that is unique within an Application Gateway." | |
}, | |
"provisioningState": { | |
"type": "string", | |
"description": "The provisioning state of the backend address pool resource." | |
}, | |
"type": { | |
"type": "string", | |
"description": "Type of the resource." | |
} | |
}, | |
"type": "object", | |
"required": [ | |
"backendIPConfigurations", | |
"etag", | |
"provisioningState", | |
"type" | |
] | |
}, | |
"azure-native:network:ApplicationGatewayBackendAddressResponse": { | |
"description": "Backend address of an application gateway.", | |
"properties": { | |
"fqdn": { | |
"type": "string", | |
"description": "Fully qualified domain name (FQDN)." | |
}, | |
"ipAddress": { | |
"type": "string", | |
"description": "IP address." | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:network:ApplicationGatewayIPConfiguration": { | |
"description": "IP configuration of an application gateway. Currently 1 public and 1 private IP configuration is allowed.", | |
"properties": { | |
"id": { | |
"type": "string", | |
"description": "Resource ID." | |
}, | |
"name": { | |
"type": "string", | |
"description": "Name of the IP configuration that is unique within an Application Gateway." | |
}, | |
"subnet": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:SubResource", | |
"description": "Reference to the subnet resource. A subnet from where application gateway gets its private address." | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:network:ApplicationGatewayIPConfigurationResponse": { | |
"description": "IP configuration of an application gateway. Currently 1 public and 1 private IP configuration is allowed.", | |
"properties": { | |
"etag": { | |
"type": "string", | |
"description": "A unique read-only string that changes whenever the resource is updated." | |
}, | |
"id": { | |
"type": "string", | |
"description": "Resource ID." | |
}, | |
"name": { | |
"type": "string", | |
"description": "Name of the IP configuration that is unique within an Application Gateway." | |
}, | |
"provisioningState": { | |
"type": "string", | |
"description": "The provisioning state of the application gateway IP configuration resource." | |
}, | |
"subnet": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:SubResourceResponse", | |
"description": "Reference to the subnet resource. A subnet from where application gateway gets its private address." | |
}, | |
"type": { | |
"type": "string", | |
"description": "Type of the resource." | |
} | |
}, | |
"type": "object", | |
"required": [ | |
"etag", | |
"provisioningState", | |
"type" | |
] | |
}, | |
"azure-native:network:ApplicationSecurityGroup": { | |
"description": "An application security group in a resource group.", | |
"properties": { | |
"id": { | |
"type": "string", | |
"description": "Resource ID." | |
}, | |
"location": { | |
"type": "string", | |
"description": "Resource location." | |
}, | |
"tags": { | |
"type": "object", | |
"additionalProperties": { | |
"type": "string" | |
}, | |
"description": "Resource tags." | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:network:ApplicationSecurityGroupResponse": { | |
"description": "An application security group in a resource group.", | |
"properties": { | |
"etag": { | |
"type": "string", | |
"description": "A unique read-only string that changes whenever the resource is updated." | |
}, | |
"id": { | |
"type": "string", | |
"description": "Resource ID." | |
}, | |
"location": { | |
"type": "string", | |
"description": "Resource location." | |
}, | |
"name": { | |
"type": "string", | |
"description": "Resource name." | |
}, | |
"provisioningState": { | |
"type": "string", | |
"description": "The provisioning state of the application security group resource." | |
}, | |
"resourceGuid": { | |
"type": "string", | |
"description": "The resource GUID property of the application security group resource. It uniquely identifies a resource, even if the user changes its name or migrate the resource across subscriptions or resource groups." | |
}, | |
"tags": { | |
"type": "object", | |
"additionalProperties": { | |
"type": "string" | |
}, | |
"description": "Resource tags." | |
}, | |
"type": { | |
"type": "string", | |
"description": "Resource type." | |
} | |
}, | |
"type": "object", | |
"required": [ | |
"etag", | |
"name", | |
"provisioningState", | |
"resourceGuid", | |
"type" | |
] | |
}, | |
"azure-native:network:BackendAddressPool": { | |
"description": "Pool of backend IP addresses.", | |
"properties": { | |
"drainPeriodInSeconds": { | |
"type": "integer", | |
"description": "Amount of seconds Load Balancer waits for before sending RESET to client and backend address." | |
}, | |
"id": { | |
"type": "string", | |
"description": "Resource ID." | |
}, | |
"loadBalancerBackendAddresses": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:LoadBalancerBackendAddress" | |
}, | |
"description": "An array of backend addresses." | |
}, | |
"location": { | |
"type": "string", | |
"description": "The location of the backend address pool." | |
}, | |
"name": { | |
"type": "string", | |
"description": "The name of the resource that is unique within the set of backend address pools used by the load balancer. This name can be used to access the resource." | |
}, | |
"tunnelInterfaces": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:GatewayLoadBalancerTunnelInterface" | |
}, | |
"description": "An array of gateway load balancer tunnel interfaces." | |
}, | |
"virtualNetwork": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:SubResource", | |
"description": "A reference to a virtual network." | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:network:BackendAddressPoolResponse": { | |
"description": "Pool of backend IP addresses.", | |
"properties": { | |
"backendIPConfigurations": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:NetworkInterfaceIPConfigurationResponse" | |
}, | |
"description": "An array of references to IP addresses defined in network interfaces." | |
}, | |
"drainPeriodInSeconds": { | |
"type": "integer", | |
"description": "Amount of seconds Load Balancer waits for before sending RESET to client and backend address." | |
}, | |
"etag": { | |
"type": "string", | |
"description": "A unique read-only string that changes whenever the resource is updated." | |
}, | |
"id": { | |
"type": "string", | |
"description": "Resource ID." | |
}, | |
"inboundNatRules": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:SubResourceResponse" | |
}, | |
"description": "An array of references to inbound NAT rules that use this backend address pool." | |
}, | |
"loadBalancerBackendAddresses": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:LoadBalancerBackendAddressResponse" | |
}, | |
"description": "An array of backend addresses." | |
}, | |
"loadBalancingRules": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:SubResourceResponse" | |
}, | |
"description": "An array of references to load balancing rules that use this backend address pool." | |
}, | |
"location": { | |
"type": "string", | |
"description": "The location of the backend address pool." | |
}, | |
"name": { | |
"type": "string", | |
"description": "The name of the resource that is unique within the set of backend address pools used by the load balancer. This name can be used to access the resource." | |
}, | |
"outboundRule": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:SubResourceResponse", | |
"description": "A reference to an outbound rule that uses this backend address pool." | |
}, | |
"outboundRules": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:SubResourceResponse" | |
}, | |
"description": "An array of references to outbound rules that use this backend address pool." | |
}, | |
"provisioningState": { | |
"type": "string", | |
"description": "The provisioning state of the backend address pool resource." | |
}, | |
"tunnelInterfaces": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:GatewayLoadBalancerTunnelInterfaceResponse" | |
}, | |
"description": "An array of gateway load balancer tunnel interfaces." | |
}, | |
"type": { | |
"type": "string", | |
"description": "Type of the resource." | |
}, | |
"virtualNetwork": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:SubResourceResponse", | |
"description": "A reference to a virtual network." | |
} | |
}, | |
"type": "object", | |
"required": [ | |
"backendIPConfigurations", | |
"etag", | |
"inboundNatRules", | |
"loadBalancingRules", | |
"outboundRule", | |
"outboundRules", | |
"provisioningState", | |
"type" | |
] | |
}, | |
"azure-native:network:CustomDnsConfigPropertiesFormatResponse": { | |
"description": "Contains custom Dns resolution configuration from customer.", | |
"properties": { | |
"fqdn": { | |
"type": "string", | |
"description": "Fqdn that resolves to private endpoint ip address." | |
}, | |
"ipAddresses": { | |
"type": "array", | |
"items": { | |
"type": "string" | |
}, | |
"description": "A list of private ip addresses of the private endpoint." | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:network:DdosSettings": { | |
"description": "Contains the DDoS protection settings of the public IP.", | |
"properties": { | |
"ddosProtectionPlan": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:SubResource", | |
"description": "The DDoS protection plan associated with the public IP. Can only be set if ProtectionMode is Enabled" | |
}, | |
"protectionMode": { | |
"oneOf": [ | |
{ | |
"type": "string" | |
}, | |
{ | |
"$ref": "#/types/azure-native:network:DdosSettingsProtectionMode" | |
} | |
], | |
"description": "The DDoS protection mode of the public IP" | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:network:DdosSettingsProtectionMode": { | |
"description": "The DDoS protection mode of the public IP", | |
"type": "string", | |
"enum": [ | |
{ | |
"value": "VirtualNetworkInherited" | |
}, | |
{ | |
"value": "Enabled" | |
}, | |
{ | |
"value": "Disabled" | |
} | |
] | |
}, | |
"azure-native:network:DdosSettingsResponse": { | |
"description": "Contains the DDoS protection settings of the public IP.", | |
"properties": { | |
"ddosCustomPolicy": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:SubResourceResponse", | |
"description": "The DDoS custom policy associated with the public IP." | |
}, | |
"ddosProtectionPlan": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:SubResourceResponse", | |
"description": "The DDoS protection plan associated with the public IP. Can only be set if ProtectionMode is Enabled" | |
}, | |
"protectionCoverage": { | |
"type": "string", | |
"description": "The DDoS protection policy customizability of the public IP. Only standard coverage will have the ability to be customized." | |
}, | |
"protectionMode": { | |
"type": "string", | |
"description": "The DDoS protection mode of the public IP" | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:network:Delegation": { | |
"description": "Details the service to which the subnet is delegated.", | |
"properties": { | |
"actions": { | |
"type": "array", | |
"items": { | |
"type": "string" | |
}, | |
"description": "Describes the actions permitted to the service upon delegation" | |
}, | |
"etag": { | |
"type": "string", | |
"description": "A unique read-only string that changes whenever the resource is updated." | |
}, | |
"id": { | |
"type": "string", | |
"description": "Resource ID." | |
}, | |
"name": { | |
"type": "string", | |
"description": "The name of the resource that is unique within a subnet. This name can be used to access the resource." | |
}, | |
"serviceName": { | |
"type": "string", | |
"description": "The name of the service to whom the subnet should be delegated (e.g. Microsoft.Sql/servers)." | |
}, | |
"type": { | |
"type": "string", | |
"description": "Resource type." | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:network:DelegationResponse": { | |
"description": "Details the service to which the subnet is delegated.", | |
"properties": { | |
"actions": { | |
"type": "array", | |
"items": { | |
"type": "string" | |
}, | |
"description": "The actions permitted to the service upon delegation." | |
}, | |
"etag": { | |
"type": "string", | |
"description": "A unique read-only string that changes whenever the resource is updated." | |
}, | |
"id": { | |
"type": "string", | |
"description": "Resource ID." | |
}, | |
"name": { | |
"type": "string", | |
"description": "The name of the resource that is unique within a subnet. This name can be used to access the resource." | |
}, | |
"provisioningState": { | |
"type": "string", | |
"description": "The provisioning state of the service delegation resource." | |
}, | |
"serviceName": { | |
"type": "string", | |
"description": "The name of the service to whom the subnet should be delegated (e.g. Microsoft.Sql/servers)." | |
}, | |
"type": { | |
"type": "string", | |
"description": "Resource type." | |
} | |
}, | |
"type": "object", | |
"required": [ | |
"actions", | |
"etag", | |
"provisioningState" | |
] | |
}, | |
"azure-native:network:DeleteOptions": { | |
"description": "Specify what happens to the public IP address when the VM using it is deleted", | |
"type": "string", | |
"enum": [ | |
{ | |
"value": "Delete" | |
}, | |
{ | |
"value": "Detach" | |
} | |
] | |
}, | |
"azure-native:network:DhcpOptions": { | |
"description": "DhcpOptions contains an array of DNS servers available to VMs deployed in the virtual network. Standard DHCP option for a subnet overrides VNET DHCP options.", | |
"properties": { | |
"dnsServers": { | |
"type": "array", | |
"items": { | |
"type": "string" | |
}, | |
"description": "The list of DNS servers IP addresses." | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:network:DhcpOptionsResponse": { | |
"description": "DhcpOptions contains an array of DNS servers available to VMs deployed in the virtual network. Standard DHCP option for a subnet overrides VNET DHCP options.", | |
"properties": { | |
"dnsServers": { | |
"type": "array", | |
"items": { | |
"type": "string" | |
}, | |
"description": "The list of DNS servers IP addresses." | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:network:EndpointServiceResponse": { | |
"description": "Identifies the service being brought into the virtual network.", | |
"properties": { | |
"id": { | |
"type": "string", | |
"description": "A unique identifier of the service being referenced by the interface endpoint." | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:network:ExtendedLocation": { | |
"description": "ExtendedLocation complex type.", | |
"properties": { | |
"name": { | |
"type": "string", | |
"description": "The name of the extended location." | |
}, | |
"type": { | |
"oneOf": [ | |
{ | |
"type": "string" | |
}, | |
{ | |
"$ref": "#/types/azure-native:network:ExtendedLocationTypes" | |
} | |
], | |
"description": "The type of the extended location." | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:network:ExtendedLocationResponse": { | |
"description": "ExtendedLocation complex type.", | |
"properties": { | |
"name": { | |
"type": "string", | |
"description": "The name of the extended location." | |
}, | |
"type": { | |
"type": "string", | |
"description": "The type of the extended location." | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:network:ExtendedLocationTypes": { | |
"description": "The type of the extended location.", | |
"type": "string", | |
"enum": [ | |
{ | |
"value": "EdgeZone" | |
} | |
] | |
}, | |
"azure-native:network:FlowLogFormatParametersResponse": { | |
"description": "Parameters that define the flow log format.", | |
"properties": { | |
"type": { | |
"type": "string", | |
"description": "The file type of flow log." | |
}, | |
"version": { | |
"type": "integer", | |
"description": "The version (revision) of the flow log.", | |
"default": 0 | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:network:FlowLogResponse": { | |
"description": "A flow log resource.", | |
"properties": { | |
"enabled": { | |
"type": "boolean", | |
"description": "Flag to enable/disable flow logging." | |
}, | |
"etag": { | |
"type": "string", | |
"description": "A unique read-only string that changes whenever the resource is updated." | |
}, | |
"flowAnalyticsConfiguration": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:TrafficAnalyticsPropertiesResponse", | |
"description": "Parameters that define the configuration of traffic analytics." | |
}, | |
"format": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:FlowLogFormatParametersResponse", | |
"description": "Parameters that define the flow log format." | |
}, | |
"id": { | |
"type": "string", | |
"description": "Resource ID." | |
}, | |
"location": { | |
"type": "string", | |
"description": "Resource location." | |
}, | |
"name": { | |
"type": "string", | |
"description": "Resource name." | |
}, | |
"provisioningState": { | |
"type": "string", | |
"description": "The provisioning state of the flow log." | |
}, | |
"retentionPolicy": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:RetentionPolicyParametersResponse", | |
"description": "Parameters that define the retention policy for flow log." | |
}, | |
"storageId": { | |
"type": "string", | |
"description": "ID of the storage account which is used to store the flow log." | |
}, | |
"tags": { | |
"type": "object", | |
"additionalProperties": { | |
"type": "string" | |
}, | |
"description": "Resource tags." | |
}, | |
"targetResourceGuid": { | |
"type": "string", | |
"description": "Guid of network security group to which flow log will be applied." | |
}, | |
"targetResourceId": { | |
"type": "string", | |
"description": "ID of network security group to which flow log will be applied." | |
}, | |
"type": { | |
"type": "string", | |
"description": "Resource type." | |
} | |
}, | |
"type": "object", | |
"required": [ | |
"etag", | |
"name", | |
"provisioningState", | |
"storageId", | |
"targetResourceGuid", | |
"targetResourceId", | |
"type" | |
] | |
}, | |
"azure-native:network:FrontendIPConfiguration": { | |
"description": "Frontend IP address of the load balancer.", | |
"properties": { | |
"gatewayLoadBalancer": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:SubResource", | |
"description": "The reference to gateway load balancer frontend IP." | |
}, | |
"id": { | |
"type": "string", | |
"description": "Resource ID." | |
}, | |
"name": { | |
"type": "string", | |
"description": "The name of the resource that is unique within the set of frontend IP configurations used by the load balancer. This name can be used to access the resource." | |
}, | |
"privateIPAddress": { | |
"type": "string", | |
"description": "The private IP address of the IP configuration." | |
}, | |
"privateIPAddressVersion": { | |
"oneOf": [ | |
{ | |
"type": "string" | |
}, | |
{ | |
"$ref": "#/types/azure-native:network:IPVersion" | |
} | |
], | |
"description": "Whether the specific ipconfiguration is IPv4 or IPv6. Default is taken as IPv4." | |
}, | |
"privateIPAllocationMethod": { | |
"oneOf": [ | |
{ | |
"type": "string" | |
}, | |
{ | |
"$ref": "#/types/azure-native:network:IPAllocationMethod" | |
} | |
], | |
"description": "The Private IP allocation method." | |
}, | |
"publicIPAddress": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:PublicIPAddress", | |
"description": "The reference to the Public IP resource." | |
}, | |
"publicIPPrefix": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:SubResource", | |
"description": "The reference to the Public IP Prefix resource." | |
}, | |
"subnet": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:Subnet", | |
"description": "The reference to the subnet resource." | |
}, | |
"zones": { | |
"type": "array", | |
"items": { | |
"type": "string" | |
}, | |
"description": "A list of availability zones denoting the IP allocated for the resource needs to come from." | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:network:FrontendIPConfigurationResponse": { | |
"description": "Frontend IP address of the load balancer.", | |
"properties": { | |
"etag": { | |
"type": "string", | |
"description": "A unique read-only string that changes whenever the resource is updated." | |
}, | |
"gatewayLoadBalancer": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:SubResourceResponse", | |
"description": "The reference to gateway load balancer frontend IP." | |
}, | |
"id": { | |
"type": "string", | |
"description": "Resource ID." | |
}, | |
"inboundNatPools": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:SubResourceResponse" | |
}, | |
"description": "An array of references to inbound pools that use this frontend IP." | |
}, | |
"inboundNatRules": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:SubResourceResponse" | |
}, | |
"description": "An array of references to inbound rules that use this frontend IP." | |
}, | |
"loadBalancingRules": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:SubResourceResponse" | |
}, | |
"description": "An array of references to load balancing rules that use this frontend IP." | |
}, | |
"name": { | |
"type": "string", | |
"description": "The name of the resource that is unique within the set of frontend IP configurations used by the load balancer. This name can be used to access the resource." | |
}, | |
"outboundRules": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:SubResourceResponse" | |
}, | |
"description": "An array of references to outbound rules that use this frontend IP." | |
}, | |
"privateIPAddress": { | |
"type": "string", | |
"description": "The private IP address of the IP configuration." | |
}, | |
"privateIPAddressVersion": { | |
"type": "string", | |
"description": "Whether the specific ipconfiguration is IPv4 or IPv6. Default is taken as IPv4." | |
}, | |
"privateIPAllocationMethod": { | |
"type": "string", | |
"description": "The Private IP allocation method." | |
}, | |
"provisioningState": { | |
"type": "string", | |
"description": "The provisioning state of the frontend IP configuration resource." | |
}, | |
"publicIPAddress": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:PublicIPAddressResponse", | |
"description": "The reference to the Public IP resource." | |
}, | |
"publicIPPrefix": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:SubResourceResponse", | |
"description": "The reference to the Public IP Prefix resource." | |
}, | |
"subnet": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:SubnetResponse", | |
"description": "The reference to the subnet resource." | |
}, | |
"type": { | |
"type": "string", | |
"description": "Type of the resource." | |
}, | |
"zones": { | |
"type": "array", | |
"items": { | |
"type": "string" | |
}, | |
"description": "A list of availability zones denoting the IP allocated for the resource needs to come from." | |
} | |
}, | |
"type": "object", | |
"required": [ | |
"etag", | |
"inboundNatPools", | |
"inboundNatRules", | |
"loadBalancingRules", | |
"outboundRules", | |
"provisioningState", | |
"type" | |
] | |
}, | |
"azure-native:network:GatewayLoadBalancerTunnelInterface": { | |
"description": "Gateway load balancer tunnel interface of a load balancer backend address pool.", | |
"properties": { | |
"identifier": { | |
"type": "integer", | |
"description": "Identifier of gateway load balancer tunnel interface." | |
}, | |
"port": { | |
"type": "integer", | |
"description": "Port of gateway load balancer tunnel interface." | |
}, | |
"protocol": { | |
"oneOf": [ | |
{ | |
"type": "string" | |
}, | |
{ | |
"$ref": "#/types/azure-native:network:GatewayLoadBalancerTunnelProtocol" | |
} | |
], | |
"description": "Protocol of gateway load balancer tunnel interface." | |
}, | |
"type": { | |
"oneOf": [ | |
{ | |
"type": "string" | |
}, | |
{ | |
"$ref": "#/types/azure-native:network:GatewayLoadBalancerTunnelInterfaceType" | |
} | |
], | |
"description": "Traffic type of gateway load balancer tunnel interface." | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:network:GatewayLoadBalancerTunnelInterfaceResponse": { | |
"description": "Gateway load balancer tunnel interface of a load balancer backend address pool.", | |
"properties": { | |
"identifier": { | |
"type": "integer", | |
"description": "Identifier of gateway load balancer tunnel interface." | |
}, | |
"port": { | |
"type": "integer", | |
"description": "Port of gateway load balancer tunnel interface." | |
}, | |
"protocol": { | |
"type": "string", | |
"description": "Protocol of gateway load balancer tunnel interface." | |
}, | |
"type": { | |
"type": "string", | |
"description": "Traffic type of gateway load balancer tunnel interface." | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:network:GatewayLoadBalancerTunnelInterfaceType": { | |
"description": "Traffic type of gateway load balancer tunnel interface.", | |
"type": "string", | |
"enum": [ | |
{ | |
"value": "None" | |
}, | |
{ | |
"value": "Internal" | |
}, | |
{ | |
"value": "External" | |
} | |
] | |
}, | |
"azure-native:network:GatewayLoadBalancerTunnelProtocol": { | |
"description": "Protocol of gateway load balancer tunnel interface.", | |
"type": "string", | |
"enum": [ | |
{ | |
"value": "None" | |
}, | |
{ | |
"value": "Native" | |
}, | |
{ | |
"value": "VXLAN" | |
} | |
] | |
}, | |
"azure-native:network:IPAllocationMethod": { | |
"description": "The private IP address allocation method.", | |
"type": "string", | |
"enum": [ | |
{ | |
"value": "Static" | |
}, | |
{ | |
"value": "Dynamic" | |
} | |
] | |
}, | |
"azure-native:network:IPConfigurationProfileResponse": { | |
"description": "IP configuration profile child resource.", | |
"properties": { | |
"etag": { | |
"type": "string", | |
"description": "A unique read-only string that changes whenever the resource is updated." | |
}, | |
"id": { | |
"type": "string", | |
"description": "Resource ID." | |
}, | |
"name": { | |
"type": "string", | |
"description": "The name of the resource. This name can be used to access the resource." | |
}, | |
"provisioningState": { | |
"type": "string", | |
"description": "The provisioning state of the IP configuration profile resource." | |
}, | |
"subnet": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:SubnetResponse", | |
"description": "The reference to the subnet resource to create a container network interface ip configuration." | |
}, | |
"type": { | |
"type": "string", | |
"description": "Sub Resource type." | |
} | |
}, | |
"type": "object", | |
"required": [ | |
"etag", | |
"provisioningState", | |
"type" | |
] | |
}, | |
"azure-native:network:IPConfigurationResponse": { | |
"description": "IP configuration.", | |
"properties": { | |
"etag": { | |
"type": "string", | |
"description": "A unique read-only string that changes whenever the resource is updated." | |
}, | |
"id": { | |
"type": "string", | |
"description": "Resource ID." | |
}, | |
"name": { | |
"type": "string", | |
"description": "The name of the resource that is unique within a resource group. This name can be used to access the resource." | |
}, | |
"privateIPAddress": { | |
"type": "string", | |
"description": "The private IP address of the IP configuration." | |
}, | |
"privateIPAllocationMethod": { | |
"type": "string", | |
"description": "The private IP address allocation method.", | |
"default": "Dynamic" | |
}, | |
"provisioningState": { | |
"type": "string", | |
"description": "The provisioning state of the IP configuration resource." | |
}, | |
"publicIPAddress": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:PublicIPAddressResponse", | |
"description": "The reference to the public IP resource." | |
}, | |
"subnet": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:SubnetResponse", | |
"description": "The reference to the subnet resource." | |
} | |
}, | |
"type": "object", | |
"required": [ | |
"etag", | |
"provisioningState" | |
] | |
}, | |
"azure-native:network:IPVersion": { | |
"description": "Whether the specific IP configuration is IPv4 or IPv6. Default is IPv4.", | |
"type": "string", | |
"enum": [ | |
{ | |
"value": "IPv4" | |
}, | |
{ | |
"value": "IPv6" | |
} | |
] | |
}, | |
"azure-native:network:InboundNatRule": { | |
"description": "Inbound NAT rule of the load balancer.", | |
"properties": { | |
"backendAddressPool": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:SubResource", | |
"description": "A reference to backendAddressPool resource." | |
}, | |
"backendPort": { | |
"type": "integer", | |
"description": "The port used for the internal endpoint. Acceptable values range from 1 to 65535." | |
}, | |
"enableFloatingIP": { | |
"type": "boolean", | |
"description": "Configures a virtual machine's endpoint for the floating IP capability required to configure a SQL AlwaysOn Availability Group. This setting is required when using the SQL AlwaysOn Availability Groups in SQL server. This setting can't be changed after you create the endpoint." | |
}, | |
"enableTcpReset": { | |
"type": "boolean", | |
"description": "Receive bidirectional TCP Reset on TCP flow idle timeout or unexpected connection termination. This element is only used when the protocol is set to TCP." | |
}, | |
"frontendIPConfiguration": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:SubResource", | |
"description": "A reference to frontend IP addresses." | |
}, | |
"frontendPort": { | |
"type": "integer", | |
"description": "The port for the external endpoint. Port numbers for each rule must be unique within the Load Balancer. Acceptable values range from 1 to 65534." | |
}, | |
"frontendPortRangeEnd": { | |
"type": "integer", | |
"description": "The port range end for the external endpoint. This property is used together with BackendAddressPool and FrontendPortRangeStart. Individual inbound NAT rule port mappings will be created for each backend address from BackendAddressPool. Acceptable values range from 1 to 65534." | |
}, | |
"frontendPortRangeStart": { | |
"type": "integer", | |
"description": "The port range start for the external endpoint. This property is used together with BackendAddressPool and FrontendPortRangeEnd. Individual inbound NAT rule port mappings will be created for each backend address from BackendAddressPool. Acceptable values range from 1 to 65534." | |
}, | |
"id": { | |
"type": "string", | |
"description": "Resource ID." | |
}, | |
"idleTimeoutInMinutes": { | |
"type": "integer", | |
"description": "The timeout for the TCP idle connection. The value can be set between 4 and 30 minutes. The default value is 4 minutes. This element is only used when the protocol is set to TCP." | |
}, | |
"name": { | |
"type": "string", | |
"description": "The name of the resource that is unique within the set of inbound NAT rules used by the load balancer. This name can be used to access the resource." | |
}, | |
"protocol": { | |
"oneOf": [ | |
{ | |
"type": "string" | |
}, | |
{ | |
"$ref": "#/types/azure-native:network:TransportProtocol" | |
} | |
], | |
"description": "The reference to the transport protocol used by the load balancing rule." | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:network:InboundNatRuleResponse": { | |
"description": "Inbound NAT rule of the load balancer.", | |
"properties": { | |
"backendAddressPool": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:SubResourceResponse", | |
"description": "A reference to backendAddressPool resource." | |
}, | |
"backendIPConfiguration": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:NetworkInterfaceIPConfigurationResponse", | |
"description": "A reference to a private IP address defined on a network interface of a VM. Traffic sent to the frontend port of each of the frontend IP configurations is forwarded to the backend IP." | |
}, | |
"backendPort": { | |
"type": "integer", | |
"description": "The port used for the internal endpoint. Acceptable values range from 1 to 65535." | |
}, | |
"enableFloatingIP": { | |
"type": "boolean", | |
"description": "Configures a virtual machine's endpoint for the floating IP capability required to configure a SQL AlwaysOn Availability Group. This setting is required when using the SQL AlwaysOn Availability Groups in SQL server. This setting can't be changed after you create the endpoint." | |
}, | |
"enableTcpReset": { | |
"type": "boolean", | |
"description": "Receive bidirectional TCP Reset on TCP flow idle timeout or unexpected connection termination. This element is only used when the protocol is set to TCP." | |
}, | |
"etag": { | |
"type": "string", | |
"description": "A unique read-only string that changes whenever the resource is updated." | |
}, | |
"frontendIPConfiguration": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:SubResourceResponse", | |
"description": "A reference to frontend IP addresses." | |
}, | |
"frontendPort": { | |
"type": "integer", | |
"description": "The port for the external endpoint. Port numbers for each rule must be unique within the Load Balancer. Acceptable values range from 1 to 65534." | |
}, | |
"frontendPortRangeEnd": { | |
"type": "integer", | |
"description": "The port range end for the external endpoint. This property is used together with BackendAddressPool and FrontendPortRangeStart. Individual inbound NAT rule port mappings will be created for each backend address from BackendAddressPool. Acceptable values range from 1 to 65534." | |
}, | |
"frontendPortRangeStart": { | |
"type": "integer", | |
"description": "The port range start for the external endpoint. This property is used together with BackendAddressPool and FrontendPortRangeEnd. Individual inbound NAT rule port mappings will be created for each backend address from BackendAddressPool. Acceptable values range from 1 to 65534." | |
}, | |
"id": { | |
"type": "string", | |
"description": "Resource ID." | |
}, | |
"idleTimeoutInMinutes": { | |
"type": "integer", | |
"description": "The timeout for the TCP idle connection. The value can be set between 4 and 30 minutes. The default value is 4 minutes. This element is only used when the protocol is set to TCP." | |
}, | |
"name": { | |
"type": "string", | |
"description": "The name of the resource that is unique within the set of inbound NAT rules used by the load balancer. This name can be used to access the resource." | |
}, | |
"protocol": { | |
"type": "string", | |
"description": "The reference to the transport protocol used by the load balancing rule." | |
}, | |
"provisioningState": { | |
"type": "string", | |
"description": "The provisioning state of the inbound NAT rule resource." | |
}, | |
"type": { | |
"type": "string", | |
"description": "Type of the resource." | |
} | |
}, | |
"type": "object", | |
"required": [ | |
"backendIPConfiguration", | |
"etag", | |
"provisioningState", | |
"type" | |
] | |
}, | |
"azure-native:network:InterfaceEndpointResponse": { | |
"description": "Interface endpoint resource.", | |
"properties": { | |
"endpointService": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:EndpointServiceResponse", | |
"description": "A reference to the service being brought into the virtual network." | |
}, | |
"etag": { | |
"type": "string", | |
"description": "Gets a unique read-only string that changes whenever the resource is updated." | |
}, | |
"fqdn": { | |
"type": "string", | |
"description": "A first-party service's FQDN that is mapped to the private IP allocated via this interface endpoint." | |
}, | |
"id": { | |
"type": "string", | |
"description": "Resource ID." | |
}, | |
"location": { | |
"type": "string", | |
"description": "Resource location." | |
}, | |
"name": { | |
"type": "string", | |
"description": "Resource name." | |
}, | |
"networkInterfaces": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:NetworkInterfaceResponse" | |
}, | |
"description": "Gets an array of references to the network interfaces created for this interface endpoint." | |
}, | |
"owner": { | |
"type": "string", | |
"description": "A read-only property that identifies who created this interface endpoint." | |
}, | |
"provisioningState": { | |
"type": "string", | |
"description": "The provisioning state of the interface endpoint. Possible values are: 'Updating', 'Deleting', and 'Failed'." | |
}, | |
"subnet": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:SubnetResponse", | |
"description": "The ID of the subnet from which the private IP will be allocated." | |
}, | |
"tags": { | |
"type": "object", | |
"additionalProperties": { | |
"type": "string" | |
}, | |
"description": "Resource tags." | |
}, | |
"type": { | |
"type": "string", | |
"description": "Resource type." | |
} | |
}, | |
"type": "object", | |
"required": [ | |
"name", | |
"networkInterfaces", | |
"owner", | |
"provisioningState", | |
"type" | |
] | |
}, | |
"azure-native:network:IpAllocationMethod": { | |
"description": "Private IP address allocation method.", | |
"type": "string", | |
"enum": [ | |
{ | |
"value": "Static" | |
}, | |
{ | |
"value": "Dynamic" | |
} | |
] | |
}, | |
"azure-native:network:IpTag": { | |
"description": "Contains the IpTag associated with the object.", | |
"properties": { | |
"ipTagType": { | |
"type": "string", | |
"description": "The IP tag type. Example: FirstPartyUsage." | |
}, | |
"tag": { | |
"type": "string", | |
"description": "The value of the IP tag associated with the public IP. Example: SQL." | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:network:IpTagResponse": { | |
"description": "Contains the IpTag associated with the object.", | |
"properties": { | |
"ipTagType": { | |
"type": "string", | |
"description": "The IP tag type. Example: FirstPartyUsage." | |
}, | |
"tag": { | |
"type": "string", | |
"description": "The value of the IP tag associated with the public IP. Example: SQL." | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:network:LoadBalancerBackendAddress": { | |
"description": "Load balancer backend addresses.", | |
"properties": { | |
"adminState": { | |
"oneOf": [ | |
{ | |
"type": "string" | |
}, | |
{ | |
"$ref": "#/types/azure-native:network:LoadBalancerBackendAddressAdminState" | |
} | |
], | |
"description": "A list of administrative states which once set can override health probe so that Load Balancer will always forward new connections to backend, or deny new connections and reset existing connections." | |
}, | |
"ipAddress": { | |
"type": "string", | |
"description": "IP Address belonging to the referenced virtual network." | |
}, | |
"loadBalancerFrontendIPConfiguration": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:SubResource", | |
"description": "Reference to the frontend ip address configuration defined in regional loadbalancer." | |
}, | |
"name": { | |
"type": "string", | |
"description": "Name of the backend address." | |
}, | |
"subnet": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:SubResource", | |
"description": "Reference to an existing subnet." | |
}, | |
"virtualNetwork": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:SubResource", | |
"description": "Reference to an existing virtual network." | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:network:LoadBalancerBackendAddressAdminState": { | |
"description": "A list of administrative states which once set can override health probe so that Load Balancer will always forward new connections to backend, or deny new connections and reset existing connections.", | |
"type": "string", | |
"enum": [ | |
{ | |
"value": "None" | |
}, | |
{ | |
"value": "Up" | |
}, | |
{ | |
"value": "Down" | |
} | |
] | |
}, | |
"azure-native:network:LoadBalancerBackendAddressResponse": { | |
"description": "Load balancer backend addresses.", | |
"properties": { | |
"adminState": { | |
"type": "string", | |
"description": "A list of administrative states which once set can override health probe so that Load Balancer will always forward new connections to backend, or deny new connections and reset existing connections." | |
}, | |
"inboundNatRulesPortMapping": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:NatRulePortMappingResponse" | |
}, | |
"description": "Collection of inbound NAT rule port mappings." | |
}, | |
"ipAddress": { | |
"type": "string", | |
"description": "IP Address belonging to the referenced virtual network." | |
}, | |
"loadBalancerFrontendIPConfiguration": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:SubResourceResponse", | |
"description": "Reference to the frontend ip address configuration defined in regional loadbalancer." | |
}, | |
"name": { | |
"type": "string", | |
"description": "Name of the backend address." | |
}, | |
"networkInterfaceIPConfiguration": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:SubResourceResponse", | |
"description": "Reference to IP address defined in network interfaces." | |
}, | |
"subnet": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:SubResourceResponse", | |
"description": "Reference to an existing subnet." | |
}, | |
"virtualNetwork": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:SubResourceResponse", | |
"description": "Reference to an existing virtual network." | |
} | |
}, | |
"type": "object", | |
"required": [ | |
"inboundNatRulesPortMapping", | |
"networkInterfaceIPConfiguration" | |
] | |
}, | |
"azure-native:network:NatGateway": { | |
"description": "Nat Gateway resource.", | |
"properties": { | |
"id": { | |
"type": "string", | |
"description": "Resource ID." | |
}, | |
"idleTimeoutInMinutes": { | |
"type": "integer", | |
"description": "The idle timeout of the nat gateway." | |
}, | |
"location": { | |
"type": "string", | |
"description": "Resource location." | |
}, | |
"publicIpAddresses": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:SubResource" | |
}, | |
"description": "An array of public ip addresses associated with the nat gateway resource." | |
}, | |
"publicIpPrefixes": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:SubResource" | |
}, | |
"description": "An array of public ip prefixes associated with the nat gateway resource." | |
}, | |
"sku": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:NatGatewaySku", | |
"description": "The nat gateway SKU." | |
}, | |
"tags": { | |
"type": "object", | |
"additionalProperties": { | |
"type": "string" | |
}, | |
"description": "Resource tags." | |
}, | |
"zones": { | |
"type": "array", | |
"items": { | |
"type": "string" | |
}, | |
"description": "A list of availability zones denoting the zone in which Nat Gateway should be deployed." | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:network:NatGatewayResponse": { | |
"description": "Nat Gateway resource.", | |
"properties": { | |
"etag": { | |
"type": "string", | |
"description": "A unique read-only string that changes whenever the resource is updated." | |
}, | |
"id": { | |
"type": "string", | |
"description": "Resource ID." | |
}, | |
"idleTimeoutInMinutes": { | |
"type": "integer", | |
"description": "The idle timeout of the nat gateway." | |
}, | |
"location": { | |
"type": "string", | |
"description": "Resource location." | |
}, | |
"name": { | |
"type": "string", | |
"description": "Resource name." | |
}, | |
"provisioningState": { | |
"type": "string", | |
"description": "The provisioning state of the NAT gateway resource." | |
}, | |
"publicIpAddresses": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:SubResourceResponse" | |
}, | |
"description": "An array of public ip addresses associated with the nat gateway resource." | |
}, | |
"publicIpPrefixes": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:SubResourceResponse" | |
}, | |
"description": "An array of public ip prefixes associated with the nat gateway resource." | |
}, | |
"resourceGuid": { | |
"type": "string", | |
"description": "The resource GUID property of the NAT gateway resource." | |
}, | |
"sku": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:NatGatewaySkuResponse", | |
"description": "The nat gateway SKU." | |
}, | |
"subnets": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:SubResourceResponse" | |
}, | |
"description": "An array of references to the subnets using this nat gateway resource." | |
}, | |
"tags": { | |
"type": "object", | |
"additionalProperties": { | |
"type": "string" | |
}, | |
"description": "Resource tags." | |
}, | |
"type": { | |
"type": "string", | |
"description": "Resource type." | |
}, | |
"zones": { | |
"type": "array", | |
"items": { | |
"type": "string" | |
}, | |
"description": "A list of availability zones denoting the zone in which Nat Gateway should be deployed." | |
} | |
}, | |
"type": "object", | |
"required": [ | |
"etag", | |
"name", | |
"provisioningState", | |
"resourceGuid", | |
"subnets", | |
"type" | |
] | |
}, | |
"azure-native:network:NatGatewaySku": { | |
"description": "SKU of nat gateway.", | |
"properties": { | |
"name": { | |
"oneOf": [ | |
{ | |
"type": "string" | |
}, | |
{ | |
"$ref": "#/types/azure-native:network:NatGatewaySkuName" | |
} | |
], | |
"description": "Name of Nat Gateway SKU." | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:network:NatGatewaySkuName": { | |
"description": "Name of Nat Gateway SKU.", | |
"type": "string", | |
"enum": [ | |
{ | |
"value": "Standard" | |
} | |
] | |
}, | |
"azure-native:network:NatGatewaySkuResponse": { | |
"description": "SKU of nat gateway.", | |
"properties": { | |
"name": { | |
"type": "string", | |
"description": "Name of Nat Gateway SKU." | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:network:NatRulePortMappingResponse": { | |
"description": "Individual port mappings for inbound NAT rule created for backend pool.", | |
"properties": { | |
"backendPort": { | |
"type": "integer", | |
"description": "Backend port." | |
}, | |
"frontendPort": { | |
"type": "integer", | |
"description": "Frontend port." | |
}, | |
"inboundNatRuleName": { | |
"type": "string", | |
"description": "Name of inbound NAT rule." | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:network:NetworkInterfaceAuxiliaryMode": { | |
"description": "Auxiliary mode of Network Interface resource.", | |
"type": "string", | |
"enum": [ | |
{ | |
"value": "None" | |
}, | |
{ | |
"value": "MaxConnections" | |
}, | |
{ | |
"value": "Floating" | |
}, | |
{ | |
"value": "AcceleratedConnections" | |
} | |
] | |
}, | |
"azure-native:network:NetworkInterfaceAuxiliarySku": { | |
"description": "Auxiliary sku of Network Interface resource.", | |
"type": "string", | |
"enum": [ | |
{ | |
"value": "None" | |
}, | |
{ | |
"value": "A1" | |
}, | |
{ | |
"value": "A2" | |
}, | |
{ | |
"value": "A4" | |
}, | |
{ | |
"value": "A8" | |
} | |
] | |
}, | |
"azure-native:network:NetworkInterfaceDnsSettings": { | |
"description": "DNS settings of a network interface.", | |
"properties": { | |
"dnsServers": { | |
"type": "array", | |
"items": { | |
"type": "string" | |
}, | |
"description": "List of DNS servers IP addresses. Use 'AzureProvidedDNS' to switch to azure provided DNS resolution. 'AzureProvidedDNS' value cannot be combined with other IPs, it must be the only value in dnsServers collection." | |
}, | |
"internalDnsNameLabel": { | |
"type": "string", | |
"description": "Relative DNS name for this NIC used for internal communications between VMs in the same virtual network." | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:network:NetworkInterfaceDnsSettingsResponse": { | |
"description": "DNS settings of a network interface.", | |
"properties": { | |
"appliedDnsServers": { | |
"type": "array", | |
"items": { | |
"type": "string" | |
}, | |
"description": "If the VM that uses this NIC is part of an Availability Set, then this list will have the union of all DNS servers from all NICs that are part of the Availability Set. This property is what is configured on each of those VMs." | |
}, | |
"dnsServers": { | |
"type": "array", | |
"items": { | |
"type": "string" | |
}, | |
"description": "List of DNS servers IP addresses. Use 'AzureProvidedDNS' to switch to azure provided DNS resolution. 'AzureProvidedDNS' value cannot be combined with other IPs, it must be the only value in dnsServers collection." | |
}, | |
"internalDnsNameLabel": { | |
"type": "string", | |
"description": "Relative DNS name for this NIC used for internal communications between VMs in the same virtual network." | |
}, | |
"internalDomainNameSuffix": { | |
"type": "string", | |
"description": "Even if internalDnsNameLabel is not specified, a DNS entry is created for the primary NIC of the VM. This DNS name can be constructed by concatenating the VM name with the value of internalDomainNameSuffix." | |
}, | |
"internalFqdn": { | |
"type": "string", | |
"description": "Fully qualified DNS name supporting internal communications between VMs in the same virtual network." | |
} | |
}, | |
"type": "object", | |
"required": [ | |
"appliedDnsServers", | |
"internalDomainNameSuffix", | |
"internalFqdn" | |
] | |
}, | |
"azure-native:network:NetworkInterfaceIPConfiguration": { | |
"description": "IPConfiguration in a network interface.", | |
"properties": { | |
"applicationGatewayBackendAddressPools": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:ApplicationGatewayBackendAddressPool" | |
}, | |
"description": "The reference to ApplicationGatewayBackendAddressPool resource." | |
}, | |
"applicationSecurityGroups": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:ApplicationSecurityGroup" | |
}, | |
"description": "Application security groups in which the IP configuration is included." | |
}, | |
"gatewayLoadBalancer": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:SubResource", | |
"description": "The reference to gateway load balancer frontend IP." | |
}, | |
"id": { | |
"type": "string", | |
"description": "Resource ID." | |
}, | |
"loadBalancerBackendAddressPools": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:BackendAddressPool" | |
}, | |
"description": "The reference to LoadBalancerBackendAddressPool resource." | |
}, | |
"loadBalancerInboundNatRules": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:InboundNatRule" | |
}, | |
"description": "A list of references of LoadBalancerInboundNatRules." | |
}, | |
"name": { | |
"type": "string", | |
"description": "The name of the resource that is unique within a resource group. This name can be used to access the resource." | |
}, | |
"primary": { | |
"type": "boolean", | |
"description": "Whether this is a primary customer address on the network interface." | |
}, | |
"privateIPAddress": { | |
"type": "string", | |
"description": "Private IP address of the IP configuration." | |
}, | |
"privateIPAddressVersion": { | |
"oneOf": [ | |
{ | |
"type": "string" | |
}, | |
{ | |
"$ref": "#/types/azure-native:network:IPVersion" | |
} | |
], | |
"description": "Whether the specific IP configuration is IPv4 or IPv6. Default is IPv4." | |
}, | |
"privateIPAllocationMethod": { | |
"oneOf": [ | |
{ | |
"type": "string" | |
}, | |
{ | |
"$ref": "#/types/azure-native:network:IPAllocationMethod" | |
} | |
], | |
"description": "The private IP address allocation method." | |
}, | |
"publicIPAddress": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:PublicIPAddress", | |
"description": "Public IP address bound to the IP configuration." | |
}, | |
"subnet": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:Subnet", | |
"description": "Subnet bound to the IP configuration." | |
}, | |
"type": { | |
"type": "string", | |
"description": "Resource type." | |
}, | |
"virtualNetworkTaps": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:VirtualNetworkTap" | |
}, | |
"description": "The reference to Virtual Network Taps." | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:network:NetworkInterfaceIPConfigurationPrivateLinkConnectionPropertiesResponse": { | |
"description": "PrivateLinkConnection properties for the network interface.", | |
"properties": { | |
"fqdns": { | |
"type": "array", | |
"items": { | |
"type": "string" | |
}, | |
"description": "List of FQDNs for current private link connection." | |
}, | |
"groupId": { | |
"type": "string", | |
"description": "The group ID for current private link connection." | |
}, | |
"requiredMemberName": { | |
"type": "string", | |
"description": "The required member name for current private link connection." | |
} | |
}, | |
"type": "object", | |
"required": [ | |
"fqdns", | |
"groupId", | |
"requiredMemberName" | |
] | |
}, | |
"azure-native:network:NetworkInterfaceIPConfigurationResponse": { | |
"description": "IPConfiguration in a network interface.", | |
"properties": { | |
"applicationGatewayBackendAddressPools": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:ApplicationGatewayBackendAddressPoolResponse" | |
}, | |
"description": "The reference to ApplicationGatewayBackendAddressPool resource." | |
}, | |
"applicationSecurityGroups": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:ApplicationSecurityGroupResponse" | |
}, | |
"description": "Application security groups in which the IP configuration is included." | |
}, | |
"etag": { | |
"type": "string", | |
"description": "A unique read-only string that changes whenever the resource is updated." | |
}, | |
"gatewayLoadBalancer": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:SubResourceResponse", | |
"description": "The reference to gateway load balancer frontend IP." | |
}, | |
"id": { | |
"type": "string", | |
"description": "Resource ID." | |
}, | |
"loadBalancerBackendAddressPools": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:BackendAddressPoolResponse" | |
}, | |
"description": "The reference to LoadBalancerBackendAddressPool resource." | |
}, | |
"loadBalancerInboundNatRules": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:InboundNatRuleResponse" | |
}, | |
"description": "A list of references of LoadBalancerInboundNatRules." | |
}, | |
"name": { | |
"type": "string", | |
"description": "The name of the resource that is unique within a resource group. This name can be used to access the resource." | |
}, | |
"primary": { | |
"type": "boolean", | |
"description": "Whether this is a primary customer address on the network interface." | |
}, | |
"privateIPAddress": { | |
"type": "string", | |
"description": "Private IP address of the IP configuration." | |
}, | |
"privateIPAddressVersion": { | |
"type": "string", | |
"description": "Whether the specific IP configuration is IPv4 or IPv6. Default is IPv4." | |
}, | |
"privateIPAllocationMethod": { | |
"type": "string", | |
"description": "The private IP address allocation method." | |
}, | |
"privateLinkConnectionProperties": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:NetworkInterfaceIPConfigurationPrivateLinkConnectionPropertiesResponse", | |
"description": "PrivateLinkConnection properties for the network interface." | |
}, | |
"provisioningState": { | |
"type": "string", | |
"description": "The provisioning state of the network interface IP configuration." | |
}, | |
"publicIPAddress": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:PublicIPAddressResponse", | |
"description": "Public IP address bound to the IP configuration." | |
}, | |
"subnet": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:SubnetResponse", | |
"description": "Subnet bound to the IP configuration." | |
}, | |
"type": { | |
"type": "string", | |
"description": "Resource type." | |
}, | |
"virtualNetworkTaps": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:VirtualNetworkTapResponse" | |
}, | |
"description": "The reference to Virtual Network Taps." | |
} | |
}, | |
"type": "object", | |
"required": [ | |
"etag", | |
"privateLinkConnectionProperties", | |
"provisioningState" | |
] | |
}, | |
"azure-native:network:NetworkInterfaceMigrationPhase": { | |
"description": "Migration phase of Network Interface resource.", | |
"type": "string", | |
"enum": [ | |
{ | |
"value": "None" | |
}, | |
{ | |
"value": "Prepare" | |
}, | |
{ | |
"value": "Commit" | |
}, | |
{ | |
"value": "Abort" | |
}, | |
{ | |
"value": "Committed" | |
} | |
] | |
}, | |
"azure-native:network:NetworkInterfaceNicType": { | |
"description": "Type of Network Interface resource.", | |
"type": "string", | |
"enum": [ | |
{ | |
"value": "Standard" | |
}, | |
{ | |
"value": "Elastic" | |
} | |
] | |
}, | |
"azure-native:network:NetworkInterfaceResponse": { | |
"description": "A network interface in a resource group.", | |
"properties": { | |
"auxiliaryMode": { | |
"type": "string", | |
"description": "Auxiliary mode of Network Interface resource." | |
}, | |
"auxiliarySku": { | |
"type": "string", | |
"description": "Auxiliary sku of Network Interface resource." | |
}, | |
"disableTcpStateTracking": { | |
"type": "boolean", | |
"description": "Indicates whether to disable tcp state tracking." | |
}, | |
"dnsSettings": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:NetworkInterfaceDnsSettingsResponse", | |
"description": "The DNS settings in network interface." | |
}, | |
"dscpConfiguration": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:SubResourceResponse", | |
"description": "A reference to the dscp configuration to which the network interface is linked." | |
}, | |
"enableAcceleratedNetworking": { | |
"type": "boolean", | |
"description": "If the network interface is configured for accelerated networking. Not applicable to VM sizes which require accelerated networking." | |
}, | |
"enableIPForwarding": { | |
"type": "boolean", | |
"description": "Indicates whether IP forwarding is enabled on this network interface." | |
}, | |
"etag": { | |
"type": "string", | |
"description": "A unique read-only string that changes whenever the resource is updated." | |
}, | |
"extendedLocation": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:ExtendedLocationResponse", | |
"description": "The extended location of the network interface." | |
}, | |
"hostedWorkloads": { | |
"type": "array", | |
"items": { | |
"type": "string" | |
}, | |
"description": "A list of references to linked BareMetal resources." | |
}, | |
"id": { | |
"type": "string", | |
"description": "Resource ID." | |
}, | |
"interfaceEndpoint": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:InterfaceEndpointResponse", | |
"description": "A reference to the interface endpoint to which the network interface is linked." | |
}, | |
"ipConfigurations": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:NetworkInterfaceIPConfigurationResponse" | |
}, | |
"description": "A list of IPConfigurations of the network interface." | |
}, | |
"location": { | |
"type": "string", | |
"description": "Resource location." | |
}, | |
"macAddress": { | |
"type": "string", | |
"description": "The MAC address of the network interface." | |
}, | |
"migrationPhase": { | |
"type": "string", | |
"description": "Migration phase of Network Interface resource." | |
}, | |
"name": { | |
"type": "string", | |
"description": "Resource name." | |
}, | |
"networkSecurityGroup": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:NetworkSecurityGroupResponse", | |
"description": "The reference to the NetworkSecurityGroup resource." | |
}, | |
"nicType": { | |
"type": "string", | |
"description": "Type of Network Interface resource." | |
}, | |
"primary": { | |
"type": "boolean", | |
"description": "Whether this is a primary network interface on a virtual machine." | |
}, | |
"privateEndpoint": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:PrivateEndpointResponse", | |
"description": "A reference to the private endpoint to which the network interface is linked." | |
}, | |
"privateLinkService": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:PrivateLinkServiceResponse", | |
"description": "Privatelinkservice of the network interface resource." | |
}, | |
"provisioningState": { | |
"type": "string", | |
"description": "The provisioning state of the network interface resource." | |
}, | |
"resourceGuid": { | |
"type": "string", | |
"description": "The resource GUID property of the network interface resource." | |
}, | |
"tags": { | |
"type": "object", | |
"additionalProperties": { | |
"type": "string" | |
}, | |
"description": "Resource tags." | |
}, | |
"tapConfigurations": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:NetworkInterfaceTapConfigurationResponse" | |
}, | |
"description": "A list of TapConfigurations of the network interface." | |
}, | |
"type": { | |
"type": "string", | |
"description": "Resource type." | |
}, | |
"virtualMachine": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:SubResourceResponse", | |
"description": "The reference to a virtual machine." | |
}, | |
"vnetEncryptionSupported": { | |
"type": "boolean", | |
"description": "Whether the virtual machine this nic is attached to supports encryption." | |
}, | |
"workloadType": { | |
"type": "string", | |
"description": "WorkloadType of the NetworkInterface for BareMetal resources" | |
} | |
}, | |
"type": "object", | |
"required": [ | |
"dscpConfiguration", | |
"etag", | |
"hostedWorkloads", | |
"macAddress", | |
"name", | |
"primary", | |
"privateEndpoint", | |
"provisioningState", | |
"resourceGuid", | |
"tapConfigurations", | |
"type", | |
"virtualMachine", | |
"vnetEncryptionSupported" | |
] | |
}, | |
"azure-native:network:NetworkInterfaceTapConfigurationResponse": { | |
"description": "Tap configuration in a Network Interface.", | |
"properties": { | |
"etag": { | |
"type": "string", | |
"description": "A unique read-only string that changes whenever the resource is updated." | |
}, | |
"id": { | |
"type": "string", | |
"description": "Resource ID." | |
}, | |
"name": { | |
"type": "string", | |
"description": "The name of the resource that is unique within a resource group. This name can be used to access the resource." | |
}, | |
"provisioningState": { | |
"type": "string", | |
"description": "The provisioning state of the network interface tap configuration resource." | |
}, | |
"type": { | |
"type": "string", | |
"description": "Sub Resource type." | |
}, | |
"virtualNetworkTap": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:VirtualNetworkTapResponse", | |
"description": "The reference to the Virtual Network Tap resource." | |
} | |
}, | |
"type": "object", | |
"required": [ | |
"etag", | |
"provisioningState", | |
"type" | |
] | |
}, | |
"azure-native:network:NetworkSecurityGroup": { | |
"description": "NetworkSecurityGroup resource.", | |
"properties": { | |
"defaultSecurityRules": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:SecurityRule" | |
}, | |
"description": "The default security rules of network security group." | |
}, | |
"etag": { | |
"type": "string", | |
"description": "A unique read-only string that changes whenever the resource is updated." | |
}, | |
"flushConnection": { | |
"type": "boolean", | |
"description": "When enabled, flows created from Network Security Group connections will be re-evaluated when rules are updates. Initial enablement will trigger re-evaluation." | |
}, | |
"id": { | |
"type": "string", | |
"description": "Resource ID." | |
}, | |
"location": { | |
"type": "string", | |
"description": "Resource location." | |
}, | |
"provisioningState": { | |
"type": "string", | |
"description": "The provisioning state of the public IP resource. Possible values are: 'Updating', 'Deleting', and 'Failed'." | |
}, | |
"resourceGuid": { | |
"type": "string", | |
"description": "The resource GUID property of the network security group resource." | |
}, | |
"securityRules": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:SecurityRule" | |
}, | |
"description": "A collection of security rules of the network security group." | |
}, | |
"tags": { | |
"type": "object", | |
"additionalProperties": { | |
"type": "string" | |
}, | |
"description": "Resource tags." | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:network:NetworkSecurityGroupResponse": { | |
"description": "NetworkSecurityGroup resource.", | |
"properties": { | |
"defaultSecurityRules": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:SecurityRuleResponse" | |
}, | |
"description": "The default security rules of network security group." | |
}, | |
"etag": { | |
"type": "string", | |
"description": "A unique read-only string that changes whenever the resource is updated." | |
}, | |
"flowLogs": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:FlowLogResponse" | |
}, | |
"description": "A collection of references to flow log resources." | |
}, | |
"flushConnection": { | |
"type": "boolean", | |
"description": "When enabled, flows created from Network Security Group connections will be re-evaluated when rules are updates. Initial enablement will trigger re-evaluation." | |
}, | |
"id": { | |
"type": "string", | |
"description": "Resource ID." | |
}, | |
"location": { | |
"type": "string", | |
"description": "Resource location." | |
}, | |
"name": { | |
"type": "string", | |
"description": "Resource name." | |
}, | |
"networkInterfaces": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:NetworkInterfaceResponse" | |
}, | |
"description": "A collection of references to network interfaces." | |
}, | |
"provisioningState": { | |
"type": "string", | |
"description": "The provisioning state of the network security group resource." | |
}, | |
"resourceGuid": { | |
"type": "string", | |
"description": "The resource GUID property of the network security group resource." | |
}, | |
"securityRules": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:SecurityRuleResponse" | |
}, | |
"description": "A collection of security rules of the network security group." | |
}, | |
"subnets": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:SubnetResponse" | |
}, | |
"description": "A collection of references to subnets." | |
}, | |
"tags": { | |
"type": "object", | |
"additionalProperties": { | |
"type": "string" | |
}, | |
"description": "Resource tags." | |
}, | |
"type": { | |
"type": "string", | |
"description": "Resource type." | |
} | |
}, | |
"type": "object", | |
"required": [ | |
"defaultSecurityRules", | |
"etag", | |
"flowLogs", | |
"name", | |
"networkInterfaces", | |
"provisioningState", | |
"resourceGuid", | |
"subnets", | |
"type" | |
] | |
}, | |
"azure-native:network:PrivateEndpointConnectionResponse": { | |
"description": "PrivateEndpointConnection resource.", | |
"properties": { | |
"etag": { | |
"type": "string", | |
"description": "A unique read-only string that changes whenever the resource is updated." | |
}, | |
"id": { | |
"type": "string", | |
"description": "Resource ID." | |
}, | |
"linkIdentifier": { | |
"type": "string", | |
"description": "The consumer link id." | |
}, | |
"name": { | |
"type": "string", | |
"description": "The name of the resource that is unique within a resource group. This name can be used to access the resource." | |
}, | |
"privateEndpoint": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:PrivateEndpointResponse", | |
"description": "The resource of private end point." | |
}, | |
"privateEndpointLocation": { | |
"type": "string", | |
"description": "The location of the private endpoint." | |
}, | |
"privateLinkServiceConnectionState": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:PrivateLinkServiceConnectionStateResponse", | |
"description": "A collection of information about the state of the connection between service consumer and provider." | |
}, | |
"provisioningState": { | |
"type": "string", | |
"description": "The provisioning state of the private endpoint connection resource." | |
}, | |
"type": { | |
"type": "string", | |
"description": "The resource type." | |
} | |
}, | |
"type": "object", | |
"required": [ | |
"etag", | |
"linkIdentifier", | |
"privateEndpoint", | |
"privateEndpointLocation", | |
"provisioningState", | |
"type" | |
] | |
}, | |
"azure-native:network:PrivateEndpointIPConfigurationResponse": { | |
"description": "An IP Configuration of the private endpoint.", | |
"properties": { | |
"etag": { | |
"type": "string", | |
"description": "A unique read-only string that changes whenever the resource is updated." | |
}, | |
"groupId": { | |
"type": "string", | |
"description": "The ID of a group obtained from the remote resource that this private endpoint should connect to." | |
}, | |
"memberName": { | |
"type": "string", | |
"description": "The member name of a group obtained from the remote resource that this private endpoint should connect to." | |
}, | |
"name": { | |
"type": "string", | |
"description": "The name of the resource that is unique within a resource group." | |
}, | |
"privateIPAddress": { | |
"type": "string", | |
"description": "A private ip address obtained from the private endpoint's subnet." | |
}, | |
"type": { | |
"type": "string", | |
"description": "The resource type." | |
} | |
}, | |
"type": "object", | |
"required": [ | |
"etag", | |
"type" | |
] | |
}, | |
"azure-native:network:PrivateEndpointResponse": { | |
"description": "Private endpoint resource.", | |
"properties": { | |
"applicationSecurityGroups": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:ApplicationSecurityGroupResponse" | |
}, | |
"description": "Application security groups in which the private endpoint IP configuration is included." | |
}, | |
"customDnsConfigs": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:CustomDnsConfigPropertiesFormatResponse" | |
}, | |
"description": "An array of custom dns configurations." | |
}, | |
"customNetworkInterfaceName": { | |
"type": "string", | |
"description": "The custom name of the network interface attached to the private endpoint." | |
}, | |
"etag": { | |
"type": "string", | |
"description": "A unique read-only string that changes whenever the resource is updated." | |
}, | |
"extendedLocation": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:ExtendedLocationResponse", | |
"description": "The extended location of the load balancer." | |
}, | |
"id": { | |
"type": "string", | |
"description": "Resource ID." | |
}, | |
"ipConfigurations": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:PrivateEndpointIPConfigurationResponse" | |
}, | |
"description": "A list of IP configurations of the private endpoint. This will be used to map to the First Party Service's endpoints." | |
}, | |
"location": { | |
"type": "string", | |
"description": "Resource location." | |
}, | |
"manualPrivateLinkServiceConnections": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:PrivateLinkServiceConnectionResponse" | |
}, | |
"description": "A grouping of information about the connection to the remote resource. Used when the network admin does not have access to approve connections to the remote resource." | |
}, | |
"name": { | |
"type": "string", | |
"description": "Resource name." | |
}, | |
"networkInterfaces": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:NetworkInterfaceResponse" | |
}, | |
"description": "An array of references to the network interfaces created for this private endpoint." | |
}, | |
"privateLinkServiceConnections": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:PrivateLinkServiceConnectionResponse" | |
}, | |
"description": "A grouping of information about the connection to the remote resource." | |
}, | |
"provisioningState": { | |
"type": "string", | |
"description": "The provisioning state of the private endpoint resource." | |
}, | |
"subnet": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:SubnetResponse", | |
"description": "The ID of the subnet from which the private IP will be allocated." | |
}, | |
"tags": { | |
"type": "object", | |
"additionalProperties": { | |
"type": "string" | |
}, | |
"description": "Resource tags." | |
}, | |
"type": { | |
"type": "string", | |
"description": "Resource type." | |
} | |
}, | |
"type": "object", | |
"required": [ | |
"etag", | |
"name", | |
"networkInterfaces", | |
"provisioningState", | |
"type" | |
] | |
}, | |
"azure-native:network:PrivateLinkService": { | |
"description": "Private link service resource.", | |
"properties": { | |
"autoApproval": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:PrivateLinkServicePropertiesAutoApproval", | |
"description": "The auto-approval list of the private link service." | |
}, | |
"enableProxyProtocol": { | |
"type": "boolean", | |
"description": "Whether the private link service is enabled for proxy protocol or not." | |
}, | |
"extendedLocation": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:ExtendedLocation", | |
"description": "The extended location of the load balancer." | |
}, | |
"fqdns": { | |
"type": "array", | |
"items": { | |
"type": "string" | |
}, | |
"description": "The list of Fqdn." | |
}, | |
"id": { | |
"type": "string", | |
"description": "Resource ID." | |
}, | |
"ipConfigurations": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:PrivateLinkServiceIpConfiguration" | |
}, | |
"description": "An array of private link service IP configurations." | |
}, | |
"loadBalancerFrontendIpConfigurations": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:FrontendIPConfiguration" | |
}, | |
"description": "An array of references to the load balancer IP configurations." | |
}, | |
"location": { | |
"type": "string", | |
"description": "Resource location." | |
}, | |
"tags": { | |
"type": "object", | |
"additionalProperties": { | |
"type": "string" | |
}, | |
"description": "Resource tags." | |
}, | |
"visibility": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:PrivateLinkServicePropertiesVisibility", | |
"description": "The visibility list of the private link service." | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:network:PrivateLinkServiceConnectionResponse": { | |
"description": "PrivateLinkServiceConnection resource.", | |
"properties": { | |
"etag": { | |
"type": "string", | |
"description": "A unique read-only string that changes whenever the resource is updated." | |
}, | |
"groupIds": { | |
"type": "array", | |
"items": { | |
"type": "string" | |
}, | |
"description": "The ID(s) of the group(s) obtained from the remote resource that this private endpoint should connect to." | |
}, | |
"id": { | |
"type": "string", | |
"description": "Resource ID." | |
}, | |
"name": { | |
"type": "string", | |
"description": "The name of the resource that is unique within a resource group. This name can be used to access the resource." | |
}, | |
"privateLinkServiceConnectionState": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:PrivateLinkServiceConnectionStateResponse", | |
"description": "A collection of read-only information about the state of the connection to the remote resource." | |
}, | |
"privateLinkServiceId": { | |
"type": "string", | |
"description": "The resource id of private link service." | |
}, | |
"provisioningState": { | |
"type": "string", | |
"description": "The provisioning state of the private link service connection resource." | |
}, | |
"requestMessage": { | |
"type": "string", | |
"description": "A message passed to the owner of the remote resource with this connection request. Restricted to 140 chars." | |
}, | |
"type": { | |
"type": "string", | |
"description": "The resource type." | |
} | |
}, | |
"type": "object", | |
"required": [ | |
"etag", | |
"provisioningState", | |
"type" | |
] | |
}, | |
"azure-native:network:PrivateLinkServiceConnectionStateResponse": { | |
"description": "A collection of information about the state of the connection between service consumer and provider.", | |
"properties": { | |
"actionsRequired": { | |
"type": "string", | |
"description": "A message indicating if changes on the service provider require any updates on the consumer." | |
}, | |
"description": { | |
"type": "string", | |
"description": "The reason for approval/rejection of the connection." | |
}, | |
"status": { | |
"type": "string", | |
"description": "Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service." | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:network:PrivateLinkServiceIpConfiguration": { | |
"description": "The private link service ip configuration.", | |
"properties": { | |
"id": { | |
"type": "string", | |
"description": "Resource ID." | |
}, | |
"name": { | |
"type": "string", | |
"description": "The name of private link service ip configuration." | |
}, | |
"primary": { | |
"type": "boolean", | |
"description": "Whether the ip configuration is primary or not." | |
}, | |
"privateIPAddress": { | |
"type": "string", | |
"description": "The private IP address of the IP configuration." | |
}, | |
"privateIPAddressVersion": { | |
"oneOf": [ | |
{ | |
"type": "string" | |
}, | |
{ | |
"$ref": "#/types/azure-native:network:IPVersion" | |
} | |
], | |
"description": "Whether the specific IP configuration is IPv4 or IPv6. Default is IPv4." | |
}, | |
"privateIPAllocationMethod": { | |
"oneOf": [ | |
{ | |
"type": "string" | |
}, | |
{ | |
"$ref": "#/types/azure-native:network:IPAllocationMethod" | |
} | |
], | |
"description": "The private IP address allocation method." | |
}, | |
"subnet": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:Subnet", | |
"description": "The reference to the subnet resource." | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:network:PrivateLinkServiceIpConfigurationResponse": { | |
"description": "The private link service ip configuration.", | |
"properties": { | |
"etag": { | |
"type": "string", | |
"description": "A unique read-only string that changes whenever the resource is updated." | |
}, | |
"id": { | |
"type": "string", | |
"description": "Resource ID." | |
}, | |
"name": { | |
"type": "string", | |
"description": "The name of private link service ip configuration." | |
}, | |
"primary": { | |
"type": "boolean", | |
"description": "Whether the ip configuration is primary or not." | |
}, | |
"privateIPAddress": { | |
"type": "string", | |
"description": "The private IP address of the IP configuration." | |
}, | |
"privateIPAddressVersion": { | |
"type": "string", | |
"description": "Whether the specific IP configuration is IPv4 or IPv6. Default is IPv4." | |
}, | |
"privateIPAllocationMethod": { | |
"type": "string", | |
"description": "The private IP address allocation method." | |
}, | |
"provisioningState": { | |
"type": "string", | |
"description": "The provisioning state of the private link service IP configuration resource." | |
}, | |
"subnet": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:SubnetResponse", | |
"description": "The reference to the subnet resource." | |
}, | |
"type": { | |
"type": "string", | |
"description": "The resource type." | |
} | |
}, | |
"type": "object", | |
"required": [ | |
"etag", | |
"provisioningState", | |
"type" | |
] | |
}, | |
"azure-native:network:PrivateLinkServicePropertiesAutoApproval": { | |
"description": "The auto-approval list of the private link service.", | |
"properties": { | |
"subscriptions": { | |
"type": "array", | |
"items": { | |
"type": "string" | |
}, | |
"description": "The list of subscriptions." | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:network:PrivateLinkServicePropertiesResponseAutoApproval": { | |
"description": "The auto-approval list of the private link service.", | |
"properties": { | |
"subscriptions": { | |
"type": "array", | |
"items": { | |
"type": "string" | |
}, | |
"description": "The list of subscriptions." | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:network:PrivateLinkServicePropertiesResponseVisibility": { | |
"description": "The visibility list of the private link service.", | |
"properties": { | |
"subscriptions": { | |
"type": "array", | |
"items": { | |
"type": "string" | |
}, | |
"description": "The list of subscriptions." | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:network:PrivateLinkServicePropertiesVisibility": { | |
"description": "The visibility list of the private link service.", | |
"properties": { | |
"subscriptions": { | |
"type": "array", | |
"items": { | |
"type": "string" | |
}, | |
"description": "The list of subscriptions." | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:network:PrivateLinkServiceResponse": { | |
"description": "Private link service resource.", | |
"properties": { | |
"alias": { | |
"type": "string", | |
"description": "The alias of the private link service." | |
}, | |
"autoApproval": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:PrivateLinkServicePropertiesResponseAutoApproval", | |
"description": "The auto-approval list of the private link service." | |
}, | |
"enableProxyProtocol": { | |
"type": "boolean", | |
"description": "Whether the private link service is enabled for proxy protocol or not." | |
}, | |
"etag": { | |
"type": "string", | |
"description": "A unique read-only string that changes whenever the resource is updated." | |
}, | |
"extendedLocation": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:ExtendedLocationResponse", | |
"description": "The extended location of the load balancer." | |
}, | |
"fqdns": { | |
"type": "array", | |
"items": { | |
"type": "string" | |
}, | |
"description": "The list of Fqdn." | |
}, | |
"id": { | |
"type": "string", | |
"description": "Resource ID." | |
}, | |
"ipConfigurations": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:PrivateLinkServiceIpConfigurationResponse" | |
}, | |
"description": "An array of private link service IP configurations." | |
}, | |
"loadBalancerFrontendIpConfigurations": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:FrontendIPConfigurationResponse" | |
}, | |
"description": "An array of references to the load balancer IP configurations." | |
}, | |
"location": { | |
"type": "string", | |
"description": "Resource location." | |
}, | |
"name": { | |
"type": "string", | |
"description": "Resource name." | |
}, | |
"networkInterfaces": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:NetworkInterfaceResponse" | |
}, | |
"description": "An array of references to the network interfaces created for this private link service." | |
}, | |
"privateEndpointConnections": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:PrivateEndpointConnectionResponse" | |
}, | |
"description": "An array of list about connections to the private endpoint." | |
}, | |
"provisioningState": { | |
"type": "string", | |
"description": "The provisioning state of the private link service resource." | |
}, | |
"tags": { | |
"type": "object", | |
"additionalProperties": { | |
"type": "string" | |
}, | |
"description": "Resource tags." | |
}, | |
"type": { | |
"type": "string", | |
"description": "Resource type." | |
}, | |
"visibility": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:PrivateLinkServicePropertiesResponseVisibility", | |
"description": "The visibility list of the private link service." | |
} | |
}, | |
"type": "object", | |
"required": [ | |
"alias", | |
"etag", | |
"name", | |
"networkInterfaces", | |
"privateEndpointConnections", | |
"provisioningState", | |
"type" | |
] | |
}, | |
"azure-native:network:PublicIPAddress": { | |
"description": "Public IP address resource.", | |
"properties": { | |
"ddosSettings": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:DdosSettings", | |
"description": "The DDoS protection custom policy associated with the public IP address." | |
}, | |
"deleteOption": { | |
"oneOf": [ | |
{ | |
"type": "string" | |
}, | |
{ | |
"$ref": "#/types/azure-native:network:DeleteOptions" | |
} | |
], | |
"description": "Specify what happens to the public IP address when the VM using it is deleted" | |
}, | |
"dnsSettings": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:PublicIPAddressDnsSettings", | |
"description": "The FQDN of the DNS record associated with the public IP address." | |
}, | |
"extendedLocation": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:ExtendedLocation", | |
"description": "The extended location of the public ip address." | |
}, | |
"id": { | |
"type": "string", | |
"description": "Resource ID." | |
}, | |
"idleTimeoutInMinutes": { | |
"type": "integer", | |
"description": "The idle timeout of the public IP address." | |
}, | |
"ipAddress": { | |
"type": "string", | |
"description": "The IP address associated with the public IP address resource." | |
}, | |
"ipTags": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:IpTag" | |
}, | |
"description": "The list of tags associated with the public IP address." | |
}, | |
"linkedPublicIPAddress": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:PublicIPAddress", | |
"description": "The linked public IP address of the public IP address resource." | |
}, | |
"location": { | |
"type": "string", | |
"description": "Resource location." | |
}, | |
"migrationPhase": { | |
"oneOf": [ | |
{ | |
"type": "string" | |
}, | |
{ | |
"$ref": "#/types/azure-native:network:PublicIPAddressMigrationPhase" | |
} | |
], | |
"description": "Migration phase of Public IP Address." | |
}, | |
"natGateway": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:NatGateway", | |
"description": "The NatGateway for the Public IP address." | |
}, | |
"publicIPAddressVersion": { | |
"oneOf": [ | |
{ | |
"type": "string" | |
}, | |
{ | |
"$ref": "#/types/azure-native:network:IPVersion" | |
} | |
], | |
"description": "The public IP address version." | |
}, | |
"publicIPAllocationMethod": { | |
"oneOf": [ | |
{ | |
"type": "string" | |
}, | |
{ | |
"$ref": "#/types/azure-native:network:IPAllocationMethod" | |
} | |
], | |
"description": "The public IP address allocation method." | |
}, | |
"publicIPPrefix": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:SubResource", | |
"description": "The Public IP Prefix this Public IP Address should be allocated from." | |
}, | |
"servicePublicIPAddress": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:PublicIPAddress", | |
"description": "The service public IP address of the public IP address resource." | |
}, | |
"sku": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:PublicIPAddressSku", | |
"description": "The public IP address SKU." | |
}, | |
"tags": { | |
"type": "object", | |
"additionalProperties": { | |
"type": "string" | |
}, | |
"description": "Resource tags." | |
}, | |
"zones": { | |
"type": "array", | |
"items": { | |
"type": "string" | |
}, | |
"description": "A list of availability zones denoting the IP allocated for the resource needs to come from." | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:network:PublicIPAddressDnsSettings": { | |
"description": "Contains FQDN of the DNS record associated with the public IP address.", | |
"properties": { | |
"domainNameLabel": { | |
"type": "string", | |
"description": "The domain name label. The concatenation of the domain name label and the regionalized DNS zone make up the fully qualified domain name associated with the public IP address. If a domain name label is specified, an A DNS record is created for the public IP in the Microsoft Azure DNS system." | |
}, | |
"domainNameLabelScope": { | |
"$ref": "#/types/azure-native:network:PublicIpAddressDnsSettingsDomainNameLabelScope", | |
"description": "The domain name label scope. If a domain name label and a domain name label scope are specified, an A DNS record is created for the public IP in the Microsoft Azure DNS system with a hashed value includes in FQDN." | |
}, | |
"fqdn": { | |
"type": "string", | |
"description": "The Fully Qualified Domain Name of the A DNS record associated with the public IP. This is the concatenation of the domainNameLabel and the regionalized DNS zone." | |
}, | |
"reverseFqdn": { | |
"type": "string", | |
"description": "The reverse FQDN. A user-visible, fully qualified domain name that resolves to this public IP address. If the reverseFqdn is specified, then a PTR DNS record is created pointing from the IP address in the in-addr.arpa domain to the reverse FQDN." | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:network:PublicIPAddressDnsSettingsResponse": { | |
"description": "Contains FQDN of the DNS record associated with the public IP address.", | |
"properties": { | |
"domainNameLabel": { | |
"type": "string", | |
"description": "The domain name label. The concatenation of the domain name label and the regionalized DNS zone make up the fully qualified domain name associated with the public IP address. If a domain name label is specified, an A DNS record is created for the public IP in the Microsoft Azure DNS system." | |
}, | |
"domainNameLabelScope": { | |
"type": "string", | |
"description": "The domain name label scope. If a domain name label and a domain name label scope are specified, an A DNS record is created for the public IP in the Microsoft Azure DNS system with a hashed value includes in FQDN." | |
}, | |
"fqdn": { | |
"type": "string", | |
"description": "The Fully Qualified Domain Name of the A DNS record associated with the public IP. This is the concatenation of the domainNameLabel and the regionalized DNS zone." | |
}, | |
"reverseFqdn": { | |
"type": "string", | |
"description": "The reverse FQDN. A user-visible, fully qualified domain name that resolves to this public IP address. If the reverseFqdn is specified, then a PTR DNS record is created pointing from the IP address in the in-addr.arpa domain to the reverse FQDN." | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:network:PublicIPAddressMigrationPhase": { | |
"description": "Migration phase of Public IP Address.", | |
"type": "string", | |
"enum": [ | |
{ | |
"value": "None" | |
}, | |
{ | |
"value": "Prepare" | |
}, | |
{ | |
"value": "Commit" | |
}, | |
{ | |
"value": "Abort" | |
}, | |
{ | |
"value": "Committed" | |
} | |
] | |
}, | |
"azure-native:network:PublicIPAddressResponse": { | |
"description": "Public IP address resource.", | |
"properties": { | |
"ddosSettings": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:DdosSettingsResponse", | |
"description": "The DDoS protection custom policy associated with the public IP address." | |
}, | |
"deleteOption": { | |
"type": "string", | |
"description": "Specify what happens to the public IP address when the VM using it is deleted" | |
}, | |
"dnsSettings": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:PublicIPAddressDnsSettingsResponse", | |
"description": "The FQDN of the DNS record associated with the public IP address." | |
}, | |
"etag": { | |
"type": "string", | |
"description": "A unique read-only string that changes whenever the resource is updated." | |
}, | |
"extendedLocation": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:ExtendedLocationResponse", | |
"description": "The extended location of the public ip address." | |
}, | |
"id": { | |
"type": "string", | |
"description": "Resource ID." | |
}, | |
"idleTimeoutInMinutes": { | |
"type": "integer", | |
"description": "The idle timeout of the public IP address." | |
}, | |
"ipAddress": { | |
"type": "string", | |
"description": "The IP address associated with the public IP address resource." | |
}, | |
"ipConfiguration": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:IPConfigurationResponse", | |
"description": "The IP configuration associated with the public IP address." | |
}, | |
"ipTags": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:IpTagResponse" | |
}, | |
"description": "The list of tags associated with the public IP address." | |
}, | |
"linkedPublicIPAddress": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:PublicIPAddressResponse", | |
"description": "The linked public IP address of the public IP address resource." | |
}, | |
"location": { | |
"type": "string", | |
"description": "Resource location." | |
}, | |
"migrationPhase": { | |
"type": "string", | |
"description": "Migration phase of Public IP Address." | |
}, | |
"name": { | |
"type": "string", | |
"description": "Resource name." | |
}, | |
"natGateway": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:NatGatewayResponse", | |
"description": "The NatGateway for the Public IP address." | |
}, | |
"provisioningState": { | |
"type": "string", | |
"description": "The provisioning state of the public IP address resource." | |
}, | |
"publicIPAddressVersion": { | |
"type": "string", | |
"description": "The public IP address version." | |
}, | |
"publicIPAllocationMethod": { | |
"type": "string", | |
"description": "The public IP address allocation method." | |
}, | |
"publicIPPrefix": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:SubResourceResponse", | |
"description": "The Public IP Prefix this Public IP Address should be allocated from." | |
}, | |
"resourceGuid": { | |
"type": "string", | |
"description": "The resource GUID property of the public IP address resource." | |
}, | |
"servicePublicIPAddress": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:PublicIPAddressResponse", | |
"description": "The service public IP address of the public IP address resource." | |
}, | |
"sku": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:PublicIPAddressSkuResponse", | |
"description": "The public IP address SKU." | |
}, | |
"tags": { | |
"type": "object", | |
"additionalProperties": { | |
"type": "string" | |
}, | |
"description": "Resource tags." | |
}, | |
"type": { | |
"type": "string", | |
"description": "Resource type." | |
}, | |
"zones": { | |
"type": "array", | |
"items": { | |
"type": "string" | |
}, | |
"description": "A list of availability zones denoting the IP allocated for the resource needs to come from." | |
} | |
}, | |
"type": "object", | |
"required": [ | |
"etag", | |
"ipConfiguration", | |
"name", | |
"provisioningState", | |
"resourceGuid", | |
"type" | |
] | |
}, | |
"azure-native:network:PublicIPAddressSku": { | |
"description": "SKU of a public IP address.", | |
"properties": { | |
"name": { | |
"oneOf": [ | |
{ | |
"type": "string" | |
}, | |
{ | |
"$ref": "#/types/azure-native:network:PublicIPAddressSkuName" | |
} | |
], | |
"description": "Name of a public IP address SKU." | |
}, | |
"tier": { | |
"oneOf": [ | |
{ | |
"type": "string" | |
}, | |
{ | |
"$ref": "#/types/azure-native:network:PublicIPAddressSkuTier" | |
} | |
], | |
"description": "Tier of a public IP address SKU." | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:network:PublicIPAddressSkuName": { | |
"description": "Name of a public IP address SKU.", | |
"type": "string", | |
"enum": [ | |
{ | |
"value": "Basic" | |
}, | |
{ | |
"value": "Standard" | |
} | |
] | |
}, | |
"azure-native:network:PublicIPAddressSkuResponse": { | |
"description": "SKU of a public IP address.", | |
"properties": { | |
"name": { | |
"type": "string", | |
"description": "Name of a public IP address SKU." | |
}, | |
"tier": { | |
"type": "string", | |
"description": "Tier of a public IP address SKU." | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:network:PublicIPAddressSkuTier": { | |
"description": "Tier of a public IP address SKU.", | |
"type": "string", | |
"enum": [ | |
{ | |
"value": "Regional" | |
}, | |
{ | |
"value": "Global" | |
} | |
] | |
}, | |
"azure-native:network:PublicIpAddressDnsSettingsDomainNameLabelScope": { | |
"description": "The domain name label scope. If a domain name label and a domain name label scope are specified, an A DNS record is created for the public IP in the Microsoft Azure DNS system with a hashed value includes in FQDN.", | |
"type": "string", | |
"enum": [ | |
{ | |
"value": "TenantReuse" | |
}, | |
{ | |
"value": "SubscriptionReuse" | |
}, | |
{ | |
"value": "ResourceGroupReuse" | |
}, | |
{ | |
"value": "NoReuse" | |
} | |
] | |
}, | |
"azure-native:network:ResourceNavigationLink": { | |
"description": "ResourceNavigationLink resource.", | |
"properties": { | |
"id": { | |
"type": "string", | |
"description": "Resource ID." | |
}, | |
"link": { | |
"type": "string", | |
"description": "Link to the external resource" | |
}, | |
"linkedResourceType": { | |
"type": "string", | |
"description": "Resource type of the linked resource." | |
}, | |
"name": { | |
"type": "string", | |
"description": "Name of the resource that is unique within a resource group. This name can be used to access the resource." | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:network:ResourceNavigationLinkResponse": { | |
"description": "ResourceNavigationLink resource.", | |
"properties": { | |
"etag": { | |
"type": "string", | |
"description": "A unique read-only string that changes whenever the resource is updated." | |
}, | |
"id": { | |
"type": "string", | |
"description": "Resource ID." | |
}, | |
"link": { | |
"type": "string", | |
"description": "Link to the external resource." | |
}, | |
"linkedResourceType": { | |
"type": "string", | |
"description": "Resource type of the linked resource." | |
}, | |
"name": { | |
"type": "string", | |
"description": "Name of the resource that is unique within a resource group. This name can be used to access the resource." | |
}, | |
"provisioningState": { | |
"type": "string", | |
"description": "The provisioning state of the resource navigation link resource." | |
}, | |
"type": { | |
"type": "string", | |
"description": "Resource type." | |
} | |
}, | |
"type": "object", | |
"required": [ | |
"etag", | |
"id", | |
"provisioningState", | |
"type" | |
] | |
}, | |
"azure-native:network:RetentionPolicyParametersResponse": { | |
"description": "Parameters that define the retention policy for flow log.", | |
"properties": { | |
"days": { | |
"type": "integer", | |
"description": "Number of days to retain flow log records.", | |
"default": 0 | |
}, | |
"enabled": { | |
"type": "boolean", | |
"description": "Flag to enable/disable retention.", | |
"default": false | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:network:Route": { | |
"description": "Route resource.", | |
"properties": { | |
"addressPrefix": { | |
"type": "string", | |
"description": "The destination CIDR to which the route applies." | |
}, | |
"etag": { | |
"type": "string", | |
"description": "A unique read-only string that changes whenever the resource is updated." | |
}, | |
"hasBgpOverride": { | |
"type": "boolean", | |
"description": "A value indicating whether this route overrides overlapping BGP routes regardless of LPM." | |
}, | |
"id": { | |
"type": "string", | |
"description": "Resource ID." | |
}, | |
"name": { | |
"type": "string", | |
"description": "The name of the resource that is unique within a resource group. This name can be used to access the resource." | |
}, | |
"nextHopIpAddress": { | |
"type": "string", | |
"description": "The IP address packets should be forwarded to. Next hop values are only allowed in routes where the next hop type is VirtualAppliance." | |
}, | |
"nextHopType": { | |
"oneOf": [ | |
{ | |
"type": "string" | |
}, | |
{ | |
"$ref": "#/types/azure-native:network:RouteNextHopType" | |
} | |
], | |
"description": "The type of Azure hop the packet should be sent to." | |
}, | |
"provisioningState": { | |
"type": "string", | |
"description": "The provisioning state of the resource. Possible values are: 'Updating', 'Deleting', and 'Failed'." | |
}, | |
"type": { | |
"type": "string", | |
"description": "The type of the resource." | |
} | |
}, | |
"type": "object", | |
"required": [ | |
"nextHopType" | |
] | |
}, | |
"azure-native:network:RouteNextHopType": { | |
"description": "The type of Azure hop the packet should be sent to.", | |
"type": "string", | |
"enum": [ | |
{ | |
"value": "VirtualNetworkGateway" | |
}, | |
{ | |
"value": "VnetLocal" | |
}, | |
{ | |
"value": "Internet" | |
}, | |
{ | |
"value": "VirtualAppliance" | |
}, | |
{ | |
"value": "None" | |
} | |
] | |
}, | |
"azure-native:network:RouteResponse": { | |
"description": "Route resource.", | |
"properties": { | |
"addressPrefix": { | |
"type": "string", | |
"description": "The destination CIDR to which the route applies." | |
}, | |
"etag": { | |
"type": "string", | |
"description": "A unique read-only string that changes whenever the resource is updated." | |
}, | |
"hasBgpOverride": { | |
"type": "boolean", | |
"description": "A value indicating whether this route overrides overlapping BGP routes regardless of LPM." | |
}, | |
"id": { | |
"type": "string", | |
"description": "Resource ID." | |
}, | |
"name": { | |
"type": "string", | |
"description": "The name of the resource that is unique within a resource group. This name can be used to access the resource." | |
}, | |
"nextHopIpAddress": { | |
"type": "string", | |
"description": "The IP address packets should be forwarded to. Next hop values are only allowed in routes where the next hop type is VirtualAppliance." | |
}, | |
"nextHopType": { | |
"type": "string", | |
"description": "The type of Azure hop the packet should be sent to." | |
}, | |
"provisioningState": { | |
"type": "string", | |
"description": "The provisioning state of the route resource." | |
}, | |
"type": { | |
"type": "string", | |
"description": "The type of the resource." | |
} | |
}, | |
"type": "object", | |
"required": [ | |
"etag", | |
"nextHopType", | |
"provisioningState" | |
] | |
}, | |
"azure-native:network:RouteTable": { | |
"description": "Route table resource.", | |
"properties": { | |
"disableBgpRoutePropagation": { | |
"type": "boolean", | |
"description": "Whether to disable the routes learned by BGP on that route table. True means disable." | |
}, | |
"etag": { | |
"type": "string", | |
"description": "Gets a unique read-only string that changes whenever the resource is updated." | |
}, | |
"id": { | |
"type": "string", | |
"description": "Resource ID." | |
}, | |
"location": { | |
"type": "string", | |
"description": "Resource location." | |
}, | |
"provisioningState": { | |
"type": "string", | |
"description": "The provisioning state of the resource. Possible values are: 'Updating', 'Deleting', and 'Failed'." | |
}, | |
"routes": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:Route" | |
}, | |
"description": "Collection of routes contained within a route table." | |
}, | |
"tags": { | |
"type": "object", | |
"additionalProperties": { | |
"type": "string" | |
}, | |
"description": "Resource tags." | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:network:RouteTableResponse": { | |
"description": "Route table resource.", | |
"properties": { | |
"disableBgpRoutePropagation": { | |
"type": "boolean", | |
"description": "Whether to disable the routes learned by BGP on that route table. True means disable." | |
}, | |
"etag": { | |
"type": "string", | |
"description": "A unique read-only string that changes whenever the resource is updated." | |
}, | |
"id": { | |
"type": "string", | |
"description": "Resource ID." | |
}, | |
"location": { | |
"type": "string", | |
"description": "Resource location." | |
}, | |
"name": { | |
"type": "string", | |
"description": "Resource name." | |
}, | |
"provisioningState": { | |
"type": "string", | |
"description": "The provisioning state of the route table resource." | |
}, | |
"resourceGuid": { | |
"type": "string", | |
"description": "The resource GUID property of the route table." | |
}, | |
"routes": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:RouteResponse" | |
}, | |
"description": "Collection of routes contained within a route table." | |
}, | |
"subnets": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:SubnetResponse" | |
}, | |
"description": "A collection of references to subnets." | |
}, | |
"tags": { | |
"type": "object", | |
"additionalProperties": { | |
"type": "string" | |
}, | |
"description": "Resource tags." | |
}, | |
"type": { | |
"type": "string", | |
"description": "Resource type." | |
} | |
}, | |
"type": "object", | |
"required": [ | |
"etag", | |
"name", | |
"provisioningState", | |
"resourceGuid", | |
"subnets", | |
"type" | |
] | |
}, | |
"azure-native:network:SecurityRule": { | |
"description": "Network security rule.", | |
"properties": { | |
"access": { | |
"oneOf": [ | |
{ | |
"type": "string" | |
}, | |
{ | |
"$ref": "#/types/azure-native:network:SecurityRuleAccess" | |
} | |
], | |
"description": "The network traffic is allowed or denied." | |
}, | |
"description": { | |
"type": "string", | |
"description": "A description for this rule. Restricted to 140 chars." | |
}, | |
"destinationAddressPrefix": { | |
"type": "string", | |
"description": "The destination address prefix. CIDR or destination IP range. Asterisk '*' can also be used to match all source IPs. Default tags such as 'VirtualNetwork', 'AzureLoadBalancer' and 'Internet' can also be used." | |
}, | |
"destinationAddressPrefixes": { | |
"type": "array", | |
"items": { | |
"type": "string" | |
}, | |
"description": "The destination address prefixes. CIDR or destination IP ranges." | |
}, | |
"destinationApplicationSecurityGroups": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:ApplicationSecurityGroup" | |
}, | |
"description": "The application security group specified as destination." | |
}, | |
"destinationPortRange": { | |
"type": "string", | |
"description": "The destination port or range. Integer or range between 0 and 65535. Asterisk '*' can also be used to match all ports." | |
}, | |
"destinationPortRanges": { | |
"type": "array", | |
"items": { | |
"type": "string" | |
}, | |
"description": "The destination port ranges." | |
}, | |
"direction": { | |
"oneOf": [ | |
{ | |
"type": "string" | |
}, | |
{ | |
"$ref": "#/types/azure-native:network:SecurityRuleDirection" | |
} | |
], | |
"description": "The direction of the rule. The direction specifies if rule will be evaluated on incoming or outgoing traffic." | |
}, | |
"etag": { | |
"type": "string", | |
"description": "A unique read-only string that changes whenever the resource is updated." | |
}, | |
"id": { | |
"type": "string", | |
"description": "Resource ID." | |
}, | |
"name": { | |
"type": "string", | |
"description": "The name of the resource that is unique within a resource group. This name can be used to access the resource." | |
}, | |
"priority": { | |
"type": "integer", | |
"description": "The priority of the rule. The value can be between 100 and 4096. The priority number must be unique for each rule in the collection. The lower the priority number, the higher the priority of the rule." | |
}, | |
"protocol": { | |
"oneOf": [ | |
{ | |
"type": "string" | |
}, | |
{ | |
"$ref": "#/types/azure-native:network:SecurityRuleProtocol" | |
} | |
], | |
"description": "Network protocol this rule applies to." | |
}, | |
"provisioningState": { | |
"type": "string", | |
"description": "The provisioning state of the public IP resource. Possible values are: 'Updating', 'Deleting', and 'Failed'." | |
}, | |
"sourceAddressPrefix": { | |
"type": "string", | |
"description": "The CIDR or source IP range. Asterisk '*' can also be used to match all source IPs. Default tags such as 'VirtualNetwork', 'AzureLoadBalancer' and 'Internet' can also be used. If this is an ingress rule, specifies where network traffic originates from." | |
}, | |
"sourceAddressPrefixes": { | |
"type": "array", | |
"items": { | |
"type": "string" | |
}, | |
"description": "The CIDR or source IP ranges." | |
}, | |
"sourceApplicationSecurityGroups": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:ApplicationSecurityGroup" | |
}, | |
"description": "The application security group specified as source." | |
}, | |
"sourcePortRange": { | |
"type": "string", | |
"description": "The source port or range. Integer or range between 0 and 65535. Asterisk '*' can also be used to match all ports." | |
}, | |
"sourcePortRanges": { | |
"type": "array", | |
"items": { | |
"type": "string" | |
}, | |
"description": "The source port ranges." | |
}, | |
"type": { | |
"type": "string", | |
"description": "The type of the resource." | |
} | |
}, | |
"type": "object", | |
"required": [ | |
"access", | |
"direction", | |
"protocol" | |
] | |
}, | |
"azure-native:network:SecurityRuleAccess": { | |
"description": "The network traffic is allowed or denied.", | |
"type": "string", | |
"enum": [ | |
{ | |
"value": "Allow" | |
}, | |
{ | |
"value": "Deny" | |
} | |
] | |
}, | |
"azure-native:network:SecurityRuleDirection": { | |
"description": "The direction of the rule. The direction specifies if rule will be evaluated on incoming or outgoing traffic.", | |
"type": "string", | |
"enum": [ | |
{ | |
"value": "Inbound" | |
}, | |
{ | |
"value": "Outbound" | |
} | |
] | |
}, | |
"azure-native:network:SecurityRuleProtocol": { | |
"description": "Network protocol this rule applies to.", | |
"type": "string", | |
"enum": [ | |
{ | |
"value": "Tcp" | |
}, | |
{ | |
"value": "Udp" | |
}, | |
{ | |
"value": "Icmp" | |
}, | |
{ | |
"value": "Esp" | |
}, | |
{ | |
"value": "*" | |
}, | |
{ | |
"value": "Ah" | |
} | |
] | |
}, | |
"azure-native:network:SecurityRuleResponse": { | |
"description": "Network security rule.", | |
"properties": { | |
"access": { | |
"type": "string", | |
"description": "The network traffic is allowed or denied." | |
}, | |
"description": { | |
"type": "string", | |
"description": "A description for this rule. Restricted to 140 chars." | |
}, | |
"destinationAddressPrefix": { | |
"type": "string", | |
"description": "The destination address prefix. CIDR or destination IP range. Asterisk '*' can also be used to match all source IPs. Default tags such as 'VirtualNetwork', 'AzureLoadBalancer' and 'Internet' can also be used." | |
}, | |
"destinationAddressPrefixes": { | |
"type": "array", | |
"items": { | |
"type": "string" | |
}, | |
"description": "The destination address prefixes. CIDR or destination IP ranges." | |
}, | |
"destinationApplicationSecurityGroups": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:ApplicationSecurityGroupResponse" | |
}, | |
"description": "The application security group specified as destination." | |
}, | |
"destinationPortRange": { | |
"type": "string", | |
"description": "The destination port or range. Integer or range between 0 and 65535. Asterisk '*' can also be used to match all ports." | |
}, | |
"destinationPortRanges": { | |
"type": "array", | |
"items": { | |
"type": "string" | |
}, | |
"description": "The destination port ranges." | |
}, | |
"direction": { | |
"type": "string", | |
"description": "The direction of the rule. The direction specifies if rule will be evaluated on incoming or outgoing traffic." | |
}, | |
"etag": { | |
"type": "string", | |
"description": "A unique read-only string that changes whenever the resource is updated." | |
}, | |
"id": { | |
"type": "string", | |
"description": "Resource ID." | |
}, | |
"name": { | |
"type": "string", | |
"description": "The name of the resource that is unique within a resource group. This name can be used to access the resource." | |
}, | |
"priority": { | |
"type": "integer", | |
"description": "The priority of the rule. The value can be between 100 and 4096. The priority number must be unique for each rule in the collection. The lower the priority number, the higher the priority of the rule." | |
}, | |
"protocol": { | |
"type": "string", | |
"description": "Network protocol this rule applies to." | |
}, | |
"provisioningState": { | |
"type": "string", | |
"description": "The provisioning state of the security rule resource." | |
}, | |
"sourceAddressPrefix": { | |
"type": "string", | |
"description": "The CIDR or source IP range. Asterisk '*' can also be used to match all source IPs. Default tags such as 'VirtualNetwork', 'AzureLoadBalancer' and 'Internet' can also be used. If this is an ingress rule, specifies where network traffic originates from." | |
}, | |
"sourceAddressPrefixes": { | |
"type": "array", | |
"items": { | |
"type": "string" | |
}, | |
"description": "The CIDR or source IP ranges." | |
}, | |
"sourceApplicationSecurityGroups": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:ApplicationSecurityGroupResponse" | |
}, | |
"description": "The application security group specified as source." | |
}, | |
"sourcePortRange": { | |
"type": "string", | |
"description": "The source port or range. Integer or range between 0 and 65535. Asterisk '*' can also be used to match all ports." | |
}, | |
"sourcePortRanges": { | |
"type": "array", | |
"items": { | |
"type": "string" | |
}, | |
"description": "The source port ranges." | |
}, | |
"type": { | |
"type": "string", | |
"description": "The type of the resource." | |
} | |
}, | |
"type": "object", | |
"required": [ | |
"access", | |
"direction", | |
"etag", | |
"priority", | |
"protocol", | |
"provisioningState" | |
] | |
}, | |
"azure-native:network:ServiceAssociationLink": { | |
"description": "ServiceAssociationLink resource.", | |
"properties": { | |
"id": { | |
"type": "string", | |
"description": "Resource ID." | |
}, | |
"link": { | |
"type": "string", | |
"description": "Link to the external resource." | |
}, | |
"linkedResourceType": { | |
"type": "string", | |
"description": "Resource type of the linked resource." | |
}, | |
"name": { | |
"type": "string", | |
"description": "Name of the resource that is unique within a resource group. This name can be used to access the resource." | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:network:ServiceAssociationLinkResponse": { | |
"description": "ServiceAssociationLink resource.", | |
"properties": { | |
"allowDelete": { | |
"type": "boolean", | |
"description": "If true, the resource can be deleted." | |
}, | |
"etag": { | |
"type": "string", | |
"description": "A unique read-only string that changes whenever the resource is updated." | |
}, | |
"id": { | |
"type": "string", | |
"description": "Resource ID." | |
}, | |
"link": { | |
"type": "string", | |
"description": "Link to the external resource." | |
}, | |
"linkedResourceType": { | |
"type": "string", | |
"description": "Resource type of the linked resource." | |
}, | |
"locations": { | |
"type": "array", | |
"items": { | |
"type": "string" | |
}, | |
"description": "A list of locations." | |
}, | |
"name": { | |
"type": "string", | |
"description": "Name of the resource that is unique within a resource group. This name can be used to access the resource." | |
}, | |
"provisioningState": { | |
"type": "string", | |
"description": "The provisioning state of the service association link resource." | |
}, | |
"type": { | |
"type": "string", | |
"description": "Resource type." | |
} | |
}, | |
"type": "object", | |
"required": [ | |
"etag", | |
"provisioningState", | |
"type" | |
] | |
}, | |
"azure-native:network:ServiceEndpointPolicy": { | |
"description": "Service End point policy resource.", | |
"properties": { | |
"contextualServiceEndpointPolicies": { | |
"type": "array", | |
"items": { | |
"type": "string" | |
}, | |
"description": "A collection of contextual service endpoint policy." | |
}, | |
"etag": { | |
"type": "string", | |
"description": "A unique read-only string that changes whenever the resource is updated." | |
}, | |
"id": { | |
"type": "string", | |
"description": "Resource ID." | |
}, | |
"location": { | |
"type": "string", | |
"description": "Resource location." | |
}, | |
"serviceAlias": { | |
"type": "string", | |
"description": "The alias indicating if the policy belongs to a service" | |
}, | |
"serviceEndpointPolicyDefinitions": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:ServiceEndpointPolicyDefinition" | |
}, | |
"description": "A collection of service endpoint policy definitions of the service endpoint policy." | |
}, | |
"tags": { | |
"type": "object", | |
"additionalProperties": { | |
"type": "string" | |
}, | |
"description": "Resource tags." | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:network:ServiceEndpointPolicyDefinition": { | |
"description": "Service Endpoint policy definitions.", | |
"properties": { | |
"description": { | |
"type": "string", | |
"description": "A description for this rule. Restricted to 140 chars." | |
}, | |
"etag": { | |
"type": "string", | |
"description": "A unique read-only string that changes whenever the resource is updated." | |
}, | |
"id": { | |
"type": "string", | |
"description": "Resource ID." | |
}, | |
"name": { | |
"type": "string", | |
"description": "The name of the resource that is unique within a resource group. This name can be used to access the resource." | |
}, | |
"service": { | |
"type": "string", | |
"description": "Service endpoint name." | |
}, | |
"serviceResources": { | |
"type": "array", | |
"items": { | |
"type": "string" | |
}, | |
"description": "A list of service resources." | |
}, | |
"type": { | |
"type": "string", | |
"description": "The type of the resource." | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:network:ServiceEndpointPolicyDefinitionResponse": { | |
"description": "Service Endpoint policy definitions.", | |
"properties": { | |
"description": { | |
"type": "string", | |
"description": "A description for this rule. Restricted to 140 chars." | |
}, | |
"etag": { | |
"type": "string", | |
"description": "A unique read-only string that changes whenever the resource is updated." | |
}, | |
"id": { | |
"type": "string", | |
"description": "Resource ID." | |
}, | |
"name": { | |
"type": "string", | |
"description": "The name of the resource that is unique within a resource group. This name can be used to access the resource." | |
}, | |
"provisioningState": { | |
"type": "string", | |
"description": "The provisioning state of the service endpoint policy definition resource." | |
}, | |
"service": { | |
"type": "string", | |
"description": "Service endpoint name." | |
}, | |
"serviceResources": { | |
"type": "array", | |
"items": { | |
"type": "string" | |
}, | |
"description": "A list of service resources." | |
}, | |
"type": { | |
"type": "string", | |
"description": "The type of the resource." | |
} | |
}, | |
"type": "object", | |
"required": [ | |
"etag", | |
"provisioningState" | |
] | |
}, | |
"azure-native:network:ServiceEndpointPolicyResponse": { | |
"description": "Service End point policy resource.", | |
"properties": { | |
"contextualServiceEndpointPolicies": { | |
"type": "array", | |
"items": { | |
"type": "string" | |
}, | |
"description": "A collection of contextual service endpoint policy." | |
}, | |
"etag": { | |
"type": "string", | |
"description": "A unique read-only string that changes whenever the resource is updated." | |
}, | |
"id": { | |
"type": "string", | |
"description": "Resource ID." | |
}, | |
"kind": { | |
"type": "string", | |
"description": "Kind of service endpoint policy. This is metadata used for the Azure portal experience." | |
}, | |
"location": { | |
"type": "string", | |
"description": "Resource location." | |
}, | |
"name": { | |
"type": "string", | |
"description": "Resource name." | |
}, | |
"provisioningState": { | |
"type": "string", | |
"description": "The provisioning state of the service endpoint policy resource." | |
}, | |
"resourceGuid": { | |
"type": "string", | |
"description": "The resource GUID property of the service endpoint policy resource." | |
}, | |
"serviceAlias": { | |
"type": "string", | |
"description": "The alias indicating if the policy belongs to a service" | |
}, | |
"serviceEndpointPolicyDefinitions": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:ServiceEndpointPolicyDefinitionResponse" | |
}, | |
"description": "A collection of service endpoint policy definitions of the service endpoint policy." | |
}, | |
"subnets": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:SubnetResponse" | |
}, | |
"description": "A collection of references to subnets." | |
}, | |
"tags": { | |
"type": "object", | |
"additionalProperties": { | |
"type": "string" | |
}, | |
"description": "Resource tags." | |
}, | |
"type": { | |
"type": "string", | |
"description": "Resource type." | |
} | |
}, | |
"type": "object", | |
"required": [ | |
"etag", | |
"kind", | |
"name", | |
"provisioningState", | |
"resourceGuid", | |
"subnets", | |
"type" | |
] | |
}, | |
"azure-native:network:ServiceEndpointPropertiesFormat": { | |
"description": "The service endpoint properties.", | |
"properties": { | |
"locations": { | |
"type": "array", | |
"items": { | |
"type": "string" | |
}, | |
"description": "A list of locations." | |
}, | |
"provisioningState": { | |
"type": "string", | |
"description": "The provisioning state of the resource." | |
}, | |
"service": { | |
"type": "string", | |
"description": "The type of the endpoint service." | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:network:ServiceEndpointPropertiesFormatResponse": { | |
"description": "The service endpoint properties.", | |
"properties": { | |
"locations": { | |
"type": "array", | |
"items": { | |
"type": "string" | |
}, | |
"description": "A list of locations." | |
}, | |
"provisioningState": { | |
"type": "string", | |
"description": "The provisioning state of the service endpoint resource." | |
}, | |
"service": { | |
"type": "string", | |
"description": "The type of the endpoint service." | |
} | |
}, | |
"type": "object", | |
"required": [ | |
"provisioningState" | |
] | |
}, | |
"azure-native:network:SubResource": { | |
"description": "A reference to a another resource", | |
"properties": { | |
"id": { | |
"type": "string", | |
"description": "Sub-resource ID. Both absolute resource ID and a relative resource ID are accepted.\nAn absolute ID starts with /subscriptions/ and contains the entire ID of the parent resource and the ID of the sub-resource in the end.\nA relative ID replaces the ID of the parent resource with a token '$self', followed by the sub-resource ID itself.\nExample of a relative ID: $self/frontEndConfigurations/my-frontend." | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:network:SubResourceResponse": { | |
"description": "Reference to another ARM resource.", | |
"properties": { | |
"id": { | |
"type": "string", | |
"description": "Resource ID." | |
} | |
}, | |
"type": "object", | |
"required": [ | |
"id" | |
] | |
}, | |
"azure-native:network:Subnet": { | |
"description": "Subnet in a virtual network resource.", | |
"properties": { | |
"addressPrefix": { | |
"type": "string", | |
"description": "The address prefix for the subnet." | |
}, | |
"addressPrefixes": { | |
"type": "array", | |
"items": { | |
"type": "string" | |
}, | |
"description": "List of address prefixes for the subnet." | |
}, | |
"applicationGatewayIPConfigurations": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:ApplicationGatewayIPConfiguration" | |
}, | |
"description": "Application gateway IP configurations of virtual network resource." | |
}, | |
"delegations": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:Delegation" | |
}, | |
"description": "An array of references to the delegations on the subnet." | |
}, | |
"etag": { | |
"type": "string", | |
"description": "A unique read-only string that changes whenever the resource is updated." | |
}, | |
"id": { | |
"type": "string", | |
"description": "Resource ID." | |
}, | |
"ipAllocations": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:SubResource" | |
}, | |
"description": "Array of IpAllocation which reference this subnet." | |
}, | |
"name": { | |
"type": "string", | |
"description": "The name of the resource that is unique within a resource group. This name can be used to access the resource." | |
}, | |
"natGateway": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:SubResource", | |
"description": "Nat gateway associated with this subnet." | |
}, | |
"networkSecurityGroup": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:NetworkSecurityGroup", | |
"description": "The reference to the NetworkSecurityGroup resource." | |
}, | |
"privateEndpointNetworkPolicies": { | |
"oneOf": [ | |
{ | |
"type": "string" | |
}, | |
{ | |
"$ref": "#/types/azure-native:network:VirtualNetworkPrivateEndpointNetworkPolicies" | |
} | |
], | |
"description": "Enable or Disable apply network policies on private end point in the subnet.", | |
"default": "Disabled" | |
}, | |
"privateLinkServiceNetworkPolicies": { | |
"oneOf": [ | |
{ | |
"type": "string" | |
}, | |
{ | |
"$ref": "#/types/azure-native:network:VirtualNetworkPrivateLinkServiceNetworkPolicies" | |
} | |
], | |
"description": "Enable or Disable apply network policies on private link service in the subnet.", | |
"default": "Enabled" | |
}, | |
"provisioningState": { | |
"type": "string", | |
"description": "The provisioning state of the resource." | |
}, | |
"resourceNavigationLinks": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:ResourceNavigationLink" | |
}, | |
"description": "Gets an array of references to the external resources using subnet." | |
}, | |
"routeTable": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:RouteTable", | |
"description": "The reference to the RouteTable resource." | |
}, | |
"serviceAssociationLinks": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:ServiceAssociationLink" | |
}, | |
"description": "Gets an array of references to services injecting into this subnet." | |
}, | |
"serviceEndpointPolicies": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:ServiceEndpointPolicy" | |
}, | |
"description": "An array of service endpoint policies." | |
}, | |
"serviceEndpoints": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:ServiceEndpointPropertiesFormat" | |
}, | |
"description": "An array of service endpoints." | |
}, | |
"type": { | |
"type": "string", | |
"description": "Resource type." | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:network:SubnetResponse": { | |
"description": "Subnet in a virtual network resource.", | |
"properties": { | |
"addressPrefix": { | |
"type": "string", | |
"description": "The address prefix for the subnet." | |
}, | |
"addressPrefixes": { | |
"type": "array", | |
"items": { | |
"type": "string" | |
}, | |
"description": "List of address prefixes for the subnet." | |
}, | |
"applicationGatewayIPConfigurations": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:ApplicationGatewayIPConfigurationResponse" | |
}, | |
"description": "Application gateway IP configurations of virtual network resource." | |
}, | |
"delegations": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:DelegationResponse" | |
}, | |
"description": "An array of references to the delegations on the subnet." | |
}, | |
"etag": { | |
"type": "string", | |
"description": "A unique read-only string that changes whenever the resource is updated." | |
}, | |
"id": { | |
"type": "string", | |
"description": "Resource ID." | |
}, | |
"interfaceEndpoints": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:InterfaceEndpointResponse" | |
}, | |
"description": "An array of references to interface endpoints " | |
}, | |
"ipAllocations": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:SubResourceResponse" | |
}, | |
"description": "Array of IpAllocation which reference this subnet." | |
}, | |
"ipConfigurationProfiles": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:IPConfigurationProfileResponse" | |
}, | |
"description": "Array of IP configuration profiles which reference this subnet." | |
}, | |
"ipConfigurations": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:IPConfigurationResponse" | |
}, | |
"description": "An array of references to the network interface IP configurations using subnet." | |
}, | |
"name": { | |
"type": "string", | |
"description": "The name of the resource that is unique within a resource group. This name can be used to access the resource." | |
}, | |
"natGateway": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:SubResourceResponse", | |
"description": "Nat gateway associated with this subnet." | |
}, | |
"networkSecurityGroup": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:NetworkSecurityGroupResponse", | |
"description": "The reference to the NetworkSecurityGroup resource." | |
}, | |
"privateEndpointNetworkPolicies": { | |
"type": "string", | |
"description": "Enable or Disable apply network policies on private end point in the subnet.", | |
"default": "Disabled" | |
}, | |
"privateEndpoints": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:PrivateEndpointResponse" | |
}, | |
"description": "An array of references to private endpoints." | |
}, | |
"privateLinkServiceNetworkPolicies": { | |
"type": "string", | |
"description": "Enable or Disable apply network policies on private link service in the subnet.", | |
"default": "Enabled" | |
}, | |
"provisioningState": { | |
"type": "string", | |
"description": "The provisioning state of the subnet resource." | |
}, | |
"purpose": { | |
"type": "string", | |
"description": "A read-only string identifying the intention of use for this subnet based on delegations and other user-defined properties." | |
}, | |
"resourceNavigationLinks": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:ResourceNavigationLinkResponse" | |
}, | |
"description": "An array of references to the external resources using subnet." | |
}, | |
"routeTable": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:RouteTableResponse", | |
"description": "The reference to the RouteTable resource." | |
}, | |
"serviceAssociationLinks": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:ServiceAssociationLinkResponse" | |
}, | |
"description": "An array of references to services injecting into this subnet." | |
}, | |
"serviceEndpointPolicies": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:ServiceEndpointPolicyResponse" | |
}, | |
"description": "An array of service endpoint policies." | |
}, | |
"serviceEndpoints": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:ServiceEndpointPropertiesFormatResponse" | |
}, | |
"description": "An array of service endpoints." | |
}, | |
"type": { | |
"type": "string", | |
"description": "Resource type." | |
} | |
}, | |
"type": "object", | |
"required": [ | |
"etag", | |
"ipConfigurationProfiles", | |
"ipConfigurations", | |
"privateEndpoints", | |
"provisioningState", | |
"purpose", | |
"resourceNavigationLinks", | |
"serviceAssociationLinks" | |
] | |
}, | |
"azure-native:network:TrafficAnalyticsConfigurationPropertiesResponse": { | |
"description": "Parameters that define the configuration of traffic analytics.", | |
"properties": { | |
"enabled": { | |
"type": "boolean", | |
"description": "Flag to enable/disable traffic analytics." | |
}, | |
"trafficAnalyticsInterval": { | |
"type": "integer", | |
"description": "The interval in minutes which would decide how frequently TA service should do flow analytics." | |
}, | |
"workspaceId": { | |
"type": "string", | |
"description": "The resource guid of the attached workspace." | |
}, | |
"workspaceRegion": { | |
"type": "string", | |
"description": "The location of the attached workspace." | |
}, | |
"workspaceResourceId": { | |
"type": "string", | |
"description": "Resource Id of the attached workspace." | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:network:TrafficAnalyticsPropertiesResponse": { | |
"description": "Parameters that define the configuration of traffic analytics.", | |
"properties": { | |
"networkWatcherFlowAnalyticsConfiguration": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:TrafficAnalyticsConfigurationPropertiesResponse", | |
"description": "Parameters that define the configuration of traffic analytics." | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:network:TransportProtocol": { | |
"description": "The reference to the transport protocol used by the load balancing rule.", | |
"type": "string", | |
"enum": [ | |
{ | |
"value": "Udp" | |
}, | |
{ | |
"value": "Tcp" | |
}, | |
{ | |
"value": "All" | |
} | |
] | |
}, | |
"azure-native:network:VirtualNetworkBgpCommunities": { | |
"description": "Bgp Communities sent over ExpressRoute with each route corresponding to a prefix in this VNET.", | |
"properties": { | |
"virtualNetworkCommunity": { | |
"type": "string", | |
"description": "The BGP community associated with the virtual network." | |
} | |
}, | |
"type": "object", | |
"required": [ | |
"virtualNetworkCommunity" | |
] | |
}, | |
"azure-native:network:VirtualNetworkBgpCommunitiesResponse": { | |
"description": "Bgp Communities sent over ExpressRoute with each route corresponding to a prefix in this VNET.", | |
"properties": { | |
"regionalCommunity": { | |
"type": "string", | |
"description": "The BGP community associated with the region of the virtual network." | |
}, | |
"virtualNetworkCommunity": { | |
"type": "string", | |
"description": "The BGP community associated with the virtual network." | |
} | |
}, | |
"type": "object", | |
"required": [ | |
"regionalCommunity", | |
"virtualNetworkCommunity" | |
] | |
}, | |
"azure-native:network:VirtualNetworkEncryption": { | |
"description": "Indicates if encryption is enabled on virtual network and if VM without encryption is allowed in encrypted VNet.", | |
"properties": { | |
"enabled": { | |
"type": "boolean", | |
"description": "Indicates if encryption is enabled on the virtual network." | |
}, | |
"enforcement": { | |
"oneOf": [ | |
{ | |
"type": "string" | |
}, | |
{ | |
"$ref": "#/types/azure-native:network:VirtualNetworkEncryptionEnforcement" | |
} | |
], | |
"description": "If the encrypted VNet allows VM that does not support encryption" | |
} | |
}, | |
"type": "object", | |
"required": [ | |
"enabled" | |
] | |
}, | |
"azure-native:network:VirtualNetworkEncryptionEnforcement": { | |
"description": "If the encrypted VNet allows VM that does not support encryption", | |
"type": "string", | |
"enum": [ | |
{ | |
"value": "DropUnencrypted" | |
}, | |
{ | |
"value": "AllowUnencrypted" | |
} | |
] | |
}, | |
"azure-native:network:VirtualNetworkEncryptionResponse": { | |
"description": "Indicates if encryption is enabled on virtual network and if VM without encryption is allowed in encrypted VNet.", | |
"properties": { | |
"enabled": { | |
"type": "boolean", | |
"description": "Indicates if encryption is enabled on the virtual network." | |
}, | |
"enforcement": { | |
"type": "string", | |
"description": "If the encrypted VNet allows VM that does not support encryption" | |
} | |
}, | |
"type": "object", | |
"required": [ | |
"enabled" | |
] | |
}, | |
"azure-native:network:VirtualNetworkPeering": { | |
"description": "Peerings in a virtual network resource.", | |
"properties": { | |
"allowForwardedTraffic": { | |
"type": "boolean", | |
"description": "Whether the forwarded traffic from the VMs in the local virtual network will be allowed/disallowed in remote virtual network." | |
}, | |
"allowGatewayTransit": { | |
"type": "boolean", | |
"description": "If gateway links can be used in remote virtual networking to link to this virtual network." | |
}, | |
"allowVirtualNetworkAccess": { | |
"type": "boolean", | |
"description": "Whether the VMs in the local virtual network space would be able to access the VMs in remote virtual network space." | |
}, | |
"doNotVerifyRemoteGateways": { | |
"type": "boolean", | |
"description": "If we need to verify the provisioning state of the remote gateway." | |
}, | |
"id": { | |
"type": "string", | |
"description": "Resource ID." | |
}, | |
"name": { | |
"type": "string", | |
"description": "The name of the resource that is unique within a resource group. This name can be used to access the resource." | |
}, | |
"peeringState": { | |
"oneOf": [ | |
{ | |
"type": "string" | |
}, | |
{ | |
"$ref": "#/types/azure-native:network:VirtualNetworkPeeringState" | |
} | |
], | |
"description": "The status of the virtual network peering." | |
}, | |
"peeringSyncLevel": { | |
"oneOf": [ | |
{ | |
"type": "string" | |
}, | |
{ | |
"$ref": "#/types/azure-native:network:VirtualNetworkPeeringLevel" | |
} | |
], | |
"description": "The peering sync status of the virtual network peering." | |
}, | |
"remoteAddressSpace": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:AddressSpace", | |
"description": "The reference to the address space peered with the remote virtual network." | |
}, | |
"remoteBgpCommunities": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:VirtualNetworkBgpCommunities", | |
"description": "The reference to the remote virtual network's Bgp Communities." | |
}, | |
"remoteVirtualNetwork": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:SubResource", | |
"description": "The reference to the remote virtual network. The remote virtual network can be in the same or different region (preview). See here to register for the preview and learn more (https://docs.microsoft.com/en-us/azure/virtual-network/virtual-network-create-peering)." | |
}, | |
"remoteVirtualNetworkAddressSpace": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:AddressSpace", | |
"description": "The reference to the current address space of the remote virtual network." | |
}, | |
"type": { | |
"type": "string", | |
"description": "Resource type." | |
}, | |
"useRemoteGateways": { | |
"type": "boolean", | |
"description": "If remote gateways can be used on this virtual network. If the flag is set to true, and allowGatewayTransit on remote peering is also true, virtual network will use gateways of remote virtual network for transit. Only one peering can have this flag set to true. This flag cannot be set if virtual network already has a gateway." | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:network:VirtualNetworkPeeringLevel": { | |
"description": "The peering sync status of the virtual network peering.", | |
"type": "string", | |
"enum": [ | |
{ | |
"value": "FullyInSync" | |
}, | |
{ | |
"value": "RemoteNotInSync" | |
}, | |
{ | |
"value": "LocalNotInSync" | |
}, | |
{ | |
"value": "LocalAndRemoteNotInSync" | |
} | |
] | |
}, | |
"azure-native:network:VirtualNetworkPeeringResponse": { | |
"description": "Peerings in a virtual network resource.", | |
"properties": { | |
"allowForwardedTraffic": { | |
"type": "boolean", | |
"description": "Whether the forwarded traffic from the VMs in the local virtual network will be allowed/disallowed in remote virtual network." | |
}, | |
"allowGatewayTransit": { | |
"type": "boolean", | |
"description": "If gateway links can be used in remote virtual networking to link to this virtual network." | |
}, | |
"allowVirtualNetworkAccess": { | |
"type": "boolean", | |
"description": "Whether the VMs in the local virtual network space would be able to access the VMs in remote virtual network space." | |
}, | |
"doNotVerifyRemoteGateways": { | |
"type": "boolean", | |
"description": "If we need to verify the provisioning state of the remote gateway." | |
}, | |
"etag": { | |
"type": "string", | |
"description": "A unique read-only string that changes whenever the resource is updated." | |
}, | |
"id": { | |
"type": "string", | |
"description": "Resource ID." | |
}, | |
"name": { | |
"type": "string", | |
"description": "The name of the resource that is unique within a resource group. This name can be used to access the resource." | |
}, | |
"peeringState": { | |
"type": "string", | |
"description": "The status of the virtual network peering." | |
}, | |
"peeringSyncLevel": { | |
"type": "string", | |
"description": "The peering sync status of the virtual network peering." | |
}, | |
"provisioningState": { | |
"type": "string", | |
"description": "The provisioning state of the virtual network peering resource." | |
}, | |
"remoteAddressSpace": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:AddressSpaceResponse", | |
"description": "The reference to the address space peered with the remote virtual network." | |
}, | |
"remoteBgpCommunities": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:VirtualNetworkBgpCommunitiesResponse", | |
"description": "The reference to the remote virtual network's Bgp Communities." | |
}, | |
"remoteVirtualNetwork": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:SubResourceResponse", | |
"description": "The reference to the remote virtual network. The remote virtual network can be in the same or different region (preview). See here to register for the preview and learn more (https://docs.microsoft.com/en-us/azure/virtual-network/virtual-network-create-peering)." | |
}, | |
"remoteVirtualNetworkAddressSpace": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:AddressSpaceResponse", | |
"description": "The reference to the current address space of the remote virtual network." | |
}, | |
"remoteVirtualNetworkEncryption": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:VirtualNetworkEncryptionResponse", | |
"description": "The reference to the remote virtual network's encryption" | |
}, | |
"resourceGuid": { | |
"type": "string", | |
"description": "The resourceGuid property of the Virtual Network peering resource." | |
}, | |
"type": { | |
"type": "string", | |
"description": "Resource type." | |
}, | |
"useRemoteGateways": { | |
"type": "boolean", | |
"description": "If remote gateways can be used on this virtual network. If the flag is set to true, and allowGatewayTransit on remote peering is also true, virtual network will use gateways of remote virtual network for transit. Only one peering can have this flag set to true. This flag cannot be set if virtual network already has a gateway." | |
} | |
}, | |
"type": "object", | |
"required": [ | |
"etag", | |
"provisioningState", | |
"remoteVirtualNetworkEncryption", | |
"resourceGuid" | |
] | |
}, | |
"azure-native:network:VirtualNetworkPeeringState": { | |
"description": "The status of the virtual network peering.", | |
"type": "string", | |
"enum": [ | |
{ | |
"value": "Initiated" | |
}, | |
{ | |
"value": "Connected" | |
}, | |
{ | |
"value": "Disconnected" | |
} | |
] | |
}, | |
"azure-native:network:VirtualNetworkPrivateEndpointNetworkPolicies": { | |
"description": "Enable or Disable apply network policies on private end point in the subnet.", | |
"type": "string", | |
"enum": [ | |
{ | |
"value": "Enabled" | |
}, | |
{ | |
"value": "Disabled" | |
} | |
] | |
}, | |
"azure-native:network:VirtualNetworkPrivateLinkServiceNetworkPolicies": { | |
"description": "Enable or Disable apply network policies on private link service in the subnet.", | |
"type": "string", | |
"enum": [ | |
{ | |
"value": "Enabled" | |
}, | |
{ | |
"value": "Disabled" | |
} | |
] | |
}, | |
"azure-native:network:VirtualNetworkTap": { | |
"description": "Virtual Network Tap resource.", | |
"properties": { | |
"destinationLoadBalancerFrontEndIPConfiguration": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:FrontendIPConfiguration", | |
"description": "The reference to the private IP address on the internal Load Balancer that will receive the tap." | |
}, | |
"destinationNetworkInterfaceIPConfiguration": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:NetworkInterfaceIPConfiguration", | |
"description": "The reference to the private IP Address of the collector nic that will receive the tap." | |
}, | |
"destinationPort": { | |
"type": "integer", | |
"description": "The VXLAN destination port that will receive the tapped traffic." | |
}, | |
"id": { | |
"type": "string", | |
"description": "Resource ID." | |
}, | |
"location": { | |
"type": "string", | |
"description": "Resource location." | |
}, | |
"tags": { | |
"type": "object", | |
"additionalProperties": { | |
"type": "string" | |
}, | |
"description": "Resource tags." | |
} | |
}, | |
"type": "object" | |
}, | |
"azure-native:network:VirtualNetworkTapResponse": { | |
"description": "Virtual Network Tap resource.", | |
"properties": { | |
"destinationLoadBalancerFrontEndIPConfiguration": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:FrontendIPConfigurationResponse", | |
"description": "The reference to the private IP address on the internal Load Balancer that will receive the tap." | |
}, | |
"destinationNetworkInterfaceIPConfiguration": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:NetworkInterfaceIPConfigurationResponse", | |
"description": "The reference to the private IP Address of the collector nic that will receive the tap." | |
}, | |
"destinationPort": { | |
"type": "integer", | |
"description": "The VXLAN destination port that will receive the tapped traffic." | |
}, | |
"etag": { | |
"type": "string", | |
"description": "A unique read-only string that changes whenever the resource is updated." | |
}, | |
"id": { | |
"type": "string", | |
"description": "Resource ID." | |
}, | |
"location": { | |
"type": "string", | |
"description": "Resource location." | |
}, | |
"name": { | |
"type": "string", | |
"description": "Resource name." | |
}, | |
"networkInterfaceTapConfigurations": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"$ref": "#/types/azure-native:network:NetworkInterfaceTapConfigurationResponse" | |
}, | |
"description": "Specifies the list of resource IDs for the network interface IP configuration that needs to be tapped." | |
}, | |
"provisioningState": { | |
"type": "string", | |
"description": "The provisioning state of the virtual network tap resource." | |
}, | |
"resourceGuid": { | |
"type": "string", | |
"description": "The resource GUID property of the virtual network tap resource." | |
}, | |
"tags": { | |
"type": "object", | |
"additionalProperties": { | |
"type": "string" | |
}, | |
"description": "Resource tags." | |
}, | |
"type": { | |
"type": "string", | |
"description": "Resource type." | |
} | |
}, | |
"type": "object", | |
"required": [ | |
"etag", | |
"name", | |
"networkInterfaceTapConfigurations", | |
"provisioningState", | |
"resourceGuid", | |
"type" | |
] | |
}, | |
"azure-native:resources:ResourceGroupPropertiesResponse": { | |
"description": "The resource group properties.", | |
"properties": { | |
"provisioningState": { | |
"type": "string", | |
"description": "The provisioning state. " | |
} | |
}, | |
"type": "object", | |
"required": [ | |
"provisioningState" | |
] | |
} | |
}, | |
"resources": { | |
"azure-native:compute:VirtualMachine": { | |
"description": "Describes a Virtual Machine.\nAzure REST API version: 2023-03-01. Prior API version in Azure Native 1.x: 2021-03-01.\n\nOther available API versions: 2023-07-01, 2023-09-01, 2024-03-01, 2024-07-01.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n### Create a Linux vm with a patch setting assessmentMode of ImageDefault.\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing AzureNative = Pulumi.AzureNative;\n\nreturn await Deployment.RunAsync(() => \n{\n var virtualMachine = new AzureNative.Compute.VirtualMachine(\"virtualMachine\", new()\n {\n HardwareProfile = new AzureNative.Compute.Inputs.HardwareProfileArgs\n {\n VmSize = AzureNative.Compute.VirtualMachineSizeTypes.Standard_D2s_v3,\n },\n Location = \"westus\",\n NetworkProfile = new AzureNative.Compute.Inputs.NetworkProfileArgs\n {\n NetworkInterfaces = new[]\n {\n new AzureNative.Compute.Inputs.NetworkInterfaceReferenceArgs\n {\n Id = \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\",\n Primary = true,\n },\n },\n },\n OsProfile = new AzureNative.Compute.Inputs.OSProfileArgs\n {\n AdminPassword = \"{your-password}\",\n AdminUsername = \"{your-username}\",\n ComputerName = \"myVM\",\n LinuxConfiguration = new AzureNative.Compute.Inputs.LinuxConfigurationArgs\n {\n PatchSettings = new AzureNative.Compute.Inputs.LinuxPatchSettingsArgs\n {\n AssessmentMode = AzureNative.Compute.LinuxPatchAssessmentMode.ImageDefault,\n },\n ProvisionVMAgent = true,\n },\n },\n ResourceGroupName = \"myResourceGroup\",\n StorageProfile = new AzureNative.Compute.Inputs.StorageProfileArgs\n {\n ImageReference = new AzureNative.Compute.Inputs.ImageReferenceArgs\n {\n Offer = \"UbuntuServer\",\n Publisher = \"Canonical\",\n Sku = \"16.04-LTS\",\n Version = \"latest\",\n },\n OsDisk = new AzureNative.Compute.Inputs.OSDiskArgs\n {\n Caching = AzureNative.Compute.CachingTypes.ReadWrite,\n CreateOption = AzureNative.Compute.DiskCreateOptionTypes.FromImage,\n ManagedDisk = new AzureNative.Compute.Inputs.ManagedDiskParametersArgs\n {\n StorageAccountType = AzureNative.Compute.StorageAccountTypes.Premium_LRS,\n },\n Name = \"myVMosdisk\",\n },\n },\n VmName = \"myVM\",\n });\n\n});\n\n\n```\n\n```go\npackage main\n\nimport (\n\tcompute \"github.com/pulumi/pulumi-azure-native-sdk/compute/v2\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := compute.NewVirtualMachine(ctx, \"virtualMachine\", &compute.VirtualMachineArgs{\n\t\t\tHardwareProfile: &compute.HardwareProfileArgs{\n\t\t\t\tVmSize: pulumi.String(compute.VirtualMachineSizeTypes_Standard_D2s_v3),\n\t\t\t},\n\t\t\tLocation: pulumi.String(\"westus\"),\n\t\t\tNetworkProfile: &compute.NetworkProfileArgs{\n\t\t\t\tNetworkInterfaces: compute.NetworkInterfaceReferenceArray{\n\t\t\t\t\t&compute.NetworkInterfaceReferenceArgs{\n\t\t\t\t\t\tId: pulumi.String(\"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\"),\n\t\t\t\t\t\tPrimary: pulumi.Bool(true),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tOsProfile: &compute.OSProfileArgs{\n\t\t\t\tAdminPassword: pulumi.String(\"{your-password}\"),\n\t\t\t\tAdminUsername: pulumi.String(\"{your-username}\"),\n\t\t\t\tComputerName: pulumi.String(\"myVM\"),\n\t\t\t\tLinuxConfiguration: &compute.LinuxConfigurationArgs{\n\t\t\t\t\tPatchSettings: &compute.LinuxPatchSettingsArgs{\n\t\t\t\t\t\tAssessmentMode: pulumi.String(compute.LinuxPatchAssessmentModeImageDefault),\n\t\t\t\t\t},\n\t\t\t\t\tProvisionVMAgent: pulumi.Bool(true),\n\t\t\t\t},\n\t\t\t},\n\t\t\tResourceGroupName: pulumi.String(\"myResourceGroup\"),\n\t\t\tStorageProfile: &compute.StorageProfileArgs{\n\t\t\t\tImageReference: &compute.ImageReferenceArgs{\n\t\t\t\t\tOffer: pulumi.String(\"UbuntuServer\"),\n\t\t\t\t\tPublisher: pulumi.String(\"Canonical\"),\n\t\t\t\t\tSku: pulumi.String(\"16.04-LTS\"),\n\t\t\t\t\tVersion: pulumi.String(\"latest\"),\n\t\t\t\t},\n\t\t\t\tOsDisk: &compute.OSDiskArgs{\n\t\t\t\t\tCaching: compute.CachingTypesReadWrite,\n\t\t\t\t\tCreateOption: pulumi.String(compute.DiskCreateOptionTypesFromImage),\n\t\t\t\t\tManagedDisk: &compute.ManagedDiskParametersArgs{\n\t\t\t\t\t\tStorageAccountType: pulumi.String(compute.StorageAccountTypes_Premium_LRS),\n\t\t\t\t\t},\n\t\t\t\t\tName: pulumi.String(\"myVMosdisk\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tVmName: pulumi.String(\"myVM\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n\n```\n\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azurenative.compute.VirtualMachine;\nimport com.pulumi.azurenative.compute.VirtualMachineArgs;\nimport com.pulumi.azurenative.compute.inputs.HardwareProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.NetworkProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.OSProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.LinuxConfigurationArgs;\nimport com.pulumi.azurenative.compute.inputs.LinuxPatchSettingsArgs;\nimport com.pulumi.azurenative.compute.inputs.StorageProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.ImageReferenceArgs;\nimport com.pulumi.azurenative.compute.inputs.OSDiskArgs;\nimport com.pulumi.azurenative.compute.inputs.ManagedDiskParametersArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var virtualMachine = new VirtualMachine(\"virtualMachine\", VirtualMachineArgs.builder()\n .hardwareProfile(HardwareProfileArgs.builder()\n .vmSize(\"Standard_D2s_v3\")\n .build())\n .location(\"westus\")\n .networkProfile(NetworkProfileArgs.builder()\n .networkInterfaces(NetworkInterfaceReferenceArgs.builder()\n .id(\"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\")\n .primary(true)\n .build())\n .build())\n .osProfile(OSProfileArgs.builder()\n .adminPassword(\"{your-password}\")\n .adminUsername(\"{your-username}\")\n .computerName(\"myVM\")\n .linuxConfiguration(LinuxConfigurationArgs.builder()\n .patchSettings(LinuxPatchSettingsArgs.builder()\n .assessmentMode(\"ImageDefault\")\n .build())\n .provisionVMAgent(true)\n .build())\n .build())\n .resourceGroupName(\"myResourceGroup\")\n .storageProfile(StorageProfileArgs.builder()\n .imageReference(ImageReferenceArgs.builder()\n .offer(\"UbuntuServer\")\n .publisher(\"Canonical\")\n .sku(\"16.04-LTS\")\n .version(\"latest\")\n .build())\n .osDisk(OSDiskArgs.builder()\n .caching(\"ReadWrite\")\n .createOption(\"FromImage\")\n .managedDisk(ManagedDiskParametersArgs.builder()\n .storageAccountType(\"Premium_LRS\")\n .build())\n .name(\"myVMosdisk\")\n .build())\n .build())\n .vmName(\"myVM\")\n .build());\n\n }\n}\n\n```\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azure_native from \"@pulumi/azure-native\";\n\nconst virtualMachine = new azure_native.compute.VirtualMachine(\"virtualMachine\", {\n hardwareProfile: {\n vmSize: azure_native.compute.VirtualMachineSizeTypes.Standard_D2s_v3,\n },\n location: \"westus\",\n networkProfile: {\n networkInterfaces: [{\n id: \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\",\n primary: true,\n }],\n },\n osProfile: {\n adminPassword: \"{your-password}\",\n adminUsername: \"{your-username}\",\n computerName: \"myVM\",\n linuxConfiguration: {\n patchSettings: {\n assessmentMode: azure_native.compute.LinuxPatchAssessmentMode.ImageDefault,\n },\n provisionVMAgent: true,\n },\n },\n resourceGroupName: \"myResourceGroup\",\n storageProfile: {\n imageReference: {\n offer: \"UbuntuServer\",\n publisher: \"Canonical\",\n sku: \"16.04-LTS\",\n version: \"latest\",\n },\n osDisk: {\n caching: azure_native.compute.CachingTypes.ReadWrite,\n createOption: azure_native.compute.DiskCreateOptionTypes.FromImage,\n managedDisk: {\n storageAccountType: azure_native.compute.StorageAccountTypes.Premium_LRS,\n },\n name: \"myVMosdisk\",\n },\n },\n vmName: \"myVM\",\n});\n\n```\n\n```python\nimport pulumi\nimport pulumi_azure_native as azure_native\n\nvirtual_machine = azure_native.compute.VirtualMachine(\"virtualMachine\",\n hardware_profile={\n \"vm_size\": azure_native.compute.VirtualMachineSizeTypes.STANDARD_D2S_V3,\n },\n location=\"westus\",\n network_profile={\n \"network_interfaces\": [{\n \"id\": \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\",\n \"primary\": True,\n }],\n },\n os_profile={\n \"admin_password\": \"{your-password}\",\n \"admin_username\": \"{your-username}\",\n \"computer_name\": \"myVM\",\n \"linux_configuration\": {\n \"patch_settings\": {\n \"assessment_mode\": azure_native.compute.LinuxPatchAssessmentMode.IMAGE_DEFAULT,\n },\n \"provision_vm_agent\": True,\n },\n },\n resource_group_name=\"myResourceGroup\",\n storage_profile={\n \"image_reference\": {\n \"offer\": \"UbuntuServer\",\n \"publisher\": \"Canonical\",\n \"sku\": \"16.04-LTS\",\n \"version\": \"latest\",\n },\n \"os_disk\": {\n \"caching\": azure_native.compute.CachingTypes.READ_WRITE,\n \"create_option\": azure_native.compute.DiskCreateOptionTypes.FROM_IMAGE,\n \"managed_disk\": {\n \"storage_account_type\": azure_native.compute.StorageAccountTypes.PREMIUM_LRS,\n },\n \"name\": \"myVMosdisk\",\n },\n },\n vm_name=\"myVM\")\n\n```\n\n```yaml\nresources:\n virtualMachine:\n type: azure-native:compute:VirtualMachine\n properties:\n hardwareProfile:\n vmSize: Standard_D2s_v3\n location: westus\n networkProfile:\n networkInterfaces:\n - id: /subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\n primary: true\n osProfile:\n adminPassword: '{your-password}'\n adminUsername: '{your-username}'\n computerName: myVM\n linuxConfiguration:\n patchSettings:\n assessmentMode: ImageDefault\n provisionVMAgent: true\n resourceGroupName: myResourceGroup\n storageProfile:\n imageReference:\n offer: UbuntuServer\n publisher: Canonical\n sku: 16.04-LTS\n version: latest\n osDisk:\n caching: ReadWrite\n createOption: FromImage\n managedDisk:\n storageAccountType: Premium_LRS\n name: myVMosdisk\n vmName: myVM\n\n```\n\n{{% /example %}}\n{{% example %}}\n### Create a Linux vm with a patch setting patchMode of AutomaticByPlatform and AutomaticByPlatformSettings.\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing AzureNative = Pulumi.AzureNative;\n\nreturn await Deployment.RunAsync(() => \n{\n var virtualMachine = new AzureNative.Compute.VirtualMachine(\"virtualMachine\", new()\n {\n HardwareProfile = new AzureNative.Compute.Inputs.HardwareProfileArgs\n {\n VmSize = AzureNative.Compute.VirtualMachineSizeTypes.Standard_D2s_v3,\n },\n Location = \"westus\",\n NetworkProfile = new AzureNative.Compute.Inputs.NetworkProfileArgs\n {\n NetworkInterfaces = new[]\n {\n new AzureNative.Compute.Inputs.NetworkInterfaceReferenceArgs\n {\n Id = \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\",\n Primary = true,\n },\n },\n },\n OsProfile = new AzureNative.Compute.Inputs.OSProfileArgs\n {\n AdminPassword = \"{your-password}\",\n AdminUsername = \"{your-username}\",\n ComputerName = \"myVM\",\n LinuxConfiguration = new AzureNative.Compute.Inputs.LinuxConfigurationArgs\n {\n PatchSettings = new AzureNative.Compute.Inputs.LinuxPatchSettingsArgs\n {\n AssessmentMode = AzureNative.Compute.LinuxPatchAssessmentMode.AutomaticByPlatform,\n AutomaticByPlatformSettings = new AzureNative.Compute.Inputs.LinuxVMGuestPatchAutomaticByPlatformSettingsArgs\n {\n BypassPlatformSafetyChecksOnUserSchedule = true,\n RebootSetting = AzureNative.Compute.LinuxVMGuestPatchAutomaticByPlatformRebootSetting.Never,\n },\n PatchMode = AzureNative.Compute.LinuxVMGuestPatchMode.AutomaticByPlatform,\n },\n ProvisionVMAgent = true,\n },\n },\n ResourceGroupName = \"myResourceGroup\",\n StorageProfile = new AzureNative.Compute.Inputs.StorageProfileArgs\n {\n ImageReference = new AzureNative.Compute.Inputs.ImageReferenceArgs\n {\n Offer = \"UbuntuServer\",\n Publisher = \"Canonical\",\n Sku = \"16.04-LTS\",\n Version = \"latest\",\n },\n OsDisk = new AzureNative.Compute.Inputs.OSDiskArgs\n {\n Caching = AzureNative.Compute.CachingTypes.ReadWrite,\n CreateOption = AzureNative.Compute.DiskCreateOptionTypes.FromImage,\n ManagedDisk = new AzureNative.Compute.Inputs.ManagedDiskParametersArgs\n {\n StorageAccountType = AzureNative.Compute.StorageAccountTypes.Premium_LRS,\n },\n Name = \"myVMosdisk\",\n },\n },\n VmName = \"myVM\",\n });\n\n});\n\n\n```\n\n```go\npackage main\n\nimport (\n\tcompute \"github.com/pulumi/pulumi-azure-native-sdk/compute/v2\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := compute.NewVirtualMachine(ctx, \"virtualMachine\", &compute.VirtualMachineArgs{\n\t\t\tHardwareProfile: &compute.HardwareProfileArgs{\n\t\t\t\tVmSize: pulumi.String(compute.VirtualMachineSizeTypes_Standard_D2s_v3),\n\t\t\t},\n\t\t\tLocation: pulumi.String(\"westus\"),\n\t\t\tNetworkProfile: &compute.NetworkProfileArgs{\n\t\t\t\tNetworkInterfaces: compute.NetworkInterfaceReferenceArray{\n\t\t\t\t\t&compute.NetworkInterfaceReferenceArgs{\n\t\t\t\t\t\tId: pulumi.String(\"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\"),\n\t\t\t\t\t\tPrimary: pulumi.Bool(true),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tOsProfile: &compute.OSProfileArgs{\n\t\t\t\tAdminPassword: pulumi.String(\"{your-password}\"),\n\t\t\t\tAdminUsername: pulumi.String(\"{your-username}\"),\n\t\t\t\tComputerName: pulumi.String(\"myVM\"),\n\t\t\t\tLinuxConfiguration: &compute.LinuxConfigurationArgs{\n\t\t\t\t\tPatchSettings: &compute.LinuxPatchSettingsArgs{\n\t\t\t\t\t\tAssessmentMode: pulumi.String(compute.LinuxPatchAssessmentModeAutomaticByPlatform),\n\t\t\t\t\t\tAutomaticByPlatformSettings: &compute.LinuxVMGuestPatchAutomaticByPlatformSettingsArgs{\n\t\t\t\t\t\t\tBypassPlatformSafetyChecksOnUserSchedule: pulumi.Bool(true),\n\t\t\t\t\t\t\tRebootSetting: pulumi.String(compute.LinuxVMGuestPatchAutomaticByPlatformRebootSettingNever),\n\t\t\t\t\t\t},\n\t\t\t\t\t\tPatchMode: pulumi.String(compute.LinuxVMGuestPatchModeAutomaticByPlatform),\n\t\t\t\t\t},\n\t\t\t\t\tProvisionVMAgent: pulumi.Bool(true),\n\t\t\t\t},\n\t\t\t},\n\t\t\tResourceGroupName: pulumi.String(\"myResourceGroup\"),\n\t\t\tStorageProfile: &compute.StorageProfileArgs{\n\t\t\t\tImageReference: &compute.ImageReferenceArgs{\n\t\t\t\t\tOffer: pulumi.String(\"UbuntuServer\"),\n\t\t\t\t\tPublisher: pulumi.String(\"Canonical\"),\n\t\t\t\t\tSku: pulumi.String(\"16.04-LTS\"),\n\t\t\t\t\tVersion: pulumi.String(\"latest\"),\n\t\t\t\t},\n\t\t\t\tOsDisk: &compute.OSDiskArgs{\n\t\t\t\t\tCaching: compute.CachingTypesReadWrite,\n\t\t\t\t\tCreateOption: pulumi.String(compute.DiskCreateOptionTypesFromImage),\n\t\t\t\t\tManagedDisk: &compute.ManagedDiskParametersArgs{\n\t\t\t\t\t\tStorageAccountType: pulumi.String(compute.StorageAccountTypes_Premium_LRS),\n\t\t\t\t\t},\n\t\t\t\t\tName: pulumi.String(\"myVMosdisk\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tVmName: pulumi.String(\"myVM\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n\n```\n\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azurenative.compute.VirtualMachine;\nimport com.pulumi.azurenative.compute.VirtualMachineArgs;\nimport com.pulumi.azurenative.compute.inputs.HardwareProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.NetworkProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.OSProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.LinuxConfigurationArgs;\nimport com.pulumi.azurenative.compute.inputs.LinuxPatchSettingsArgs;\nimport com.pulumi.azurenative.compute.inputs.LinuxVMGuestPatchAutomaticByPlatformSettingsArgs;\nimport com.pulumi.azurenative.compute.inputs.StorageProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.ImageReferenceArgs;\nimport com.pulumi.azurenative.compute.inputs.OSDiskArgs;\nimport com.pulumi.azurenative.compute.inputs.ManagedDiskParametersArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var virtualMachine = new VirtualMachine(\"virtualMachine\", VirtualMachineArgs.builder()\n .hardwareProfile(HardwareProfileArgs.builder()\n .vmSize(\"Standard_D2s_v3\")\n .build())\n .location(\"westus\")\n .networkProfile(NetworkProfileArgs.builder()\n .networkInterfaces(NetworkInterfaceReferenceArgs.builder()\n .id(\"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\")\n .primary(true)\n .build())\n .build())\n .osProfile(OSProfileArgs.builder()\n .adminPassword(\"{your-password}\")\n .adminUsername(\"{your-username}\")\n .computerName(\"myVM\")\n .linuxConfiguration(LinuxConfigurationArgs.builder()\n .patchSettings(LinuxPatchSettingsArgs.builder()\n .assessmentMode(\"AutomaticByPlatform\")\n .automaticByPlatformSettings(LinuxVMGuestPatchAutomaticByPlatformSettingsArgs.builder()\n .bypassPlatformSafetyChecksOnUserSchedule(true)\n .rebootSetting(\"Never\")\n .build())\n .patchMode(\"AutomaticByPlatform\")\n .build())\n .provisionVMAgent(true)\n .build())\n .build())\n .resourceGroupName(\"myResourceGroup\")\n .storageProfile(StorageProfileArgs.builder()\n .imageReference(ImageReferenceArgs.builder()\n .offer(\"UbuntuServer\")\n .publisher(\"Canonical\")\n .sku(\"16.04-LTS\")\n .version(\"latest\")\n .build())\n .osDisk(OSDiskArgs.builder()\n .caching(\"ReadWrite\")\n .createOption(\"FromImage\")\n .managedDisk(ManagedDiskParametersArgs.builder()\n .storageAccountType(\"Premium_LRS\")\n .build())\n .name(\"myVMosdisk\")\n .build())\n .build())\n .vmName(\"myVM\")\n .build());\n\n }\n}\n\n```\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azure_native from \"@pulumi/azure-native\";\n\nconst virtualMachine = new azure_native.compute.VirtualMachine(\"virtualMachine\", {\n hardwareProfile: {\n vmSize: azure_native.compute.VirtualMachineSizeTypes.Standard_D2s_v3,\n },\n location: \"westus\",\n networkProfile: {\n networkInterfaces: [{\n id: \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\",\n primary: true,\n }],\n },\n osProfile: {\n adminPassword: \"{your-password}\",\n adminUsername: \"{your-username}\",\n computerName: \"myVM\",\n linuxConfiguration: {\n patchSettings: {\n assessmentMode: azure_native.compute.LinuxPatchAssessmentMode.AutomaticByPlatform,\n automaticByPlatformSettings: {\n bypassPlatformSafetyChecksOnUserSchedule: true,\n rebootSetting: azure_native.compute.LinuxVMGuestPatchAutomaticByPlatformRebootSetting.Never,\n },\n patchMode: azure_native.compute.LinuxVMGuestPatchMode.AutomaticByPlatform,\n },\n provisionVMAgent: true,\n },\n },\n resourceGroupName: \"myResourceGroup\",\n storageProfile: {\n imageReference: {\n offer: \"UbuntuServer\",\n publisher: \"Canonical\",\n sku: \"16.04-LTS\",\n version: \"latest\",\n },\n osDisk: {\n caching: azure_native.compute.CachingTypes.ReadWrite,\n createOption: azure_native.compute.DiskCreateOptionTypes.FromImage,\n managedDisk: {\n storageAccountType: azure_native.compute.StorageAccountTypes.Premium_LRS,\n },\n name: \"myVMosdisk\",\n },\n },\n vmName: \"myVM\",\n});\n\n```\n\n```python\nimport pulumi\nimport pulumi_azure_native as azure_native\n\nvirtual_machine = azure_native.compute.VirtualMachine(\"virtualMachine\",\n hardware_profile={\n \"vm_size\": azure_native.compute.VirtualMachineSizeTypes.STANDARD_D2S_V3,\n },\n location=\"westus\",\n network_profile={\n \"network_interfaces\": [{\n \"id\": \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\",\n \"primary\": True,\n }],\n },\n os_profile={\n \"admin_password\": \"{your-password}\",\n \"admin_username\": \"{your-username}\",\n \"computer_name\": \"myVM\",\n \"linux_configuration\": {\n \"patch_settings\": {\n \"assessment_mode\": azure_native.compute.LinuxPatchAssessmentMode.AUTOMATIC_BY_PLATFORM,\n \"automatic_by_platform_settings\": {\n \"bypass_platform_safety_checks_on_user_schedule\": True,\n \"reboot_setting\": azure_native.compute.LinuxVMGuestPatchAutomaticByPlatformRebootSetting.NEVER,\n },\n \"patch_mode\": azure_native.compute.LinuxVMGuestPatchMode.AUTOMATIC_BY_PLATFORM,\n },\n \"provision_vm_agent\": True,\n },\n },\n resource_group_name=\"myResourceGroup\",\n storage_profile={\n \"image_reference\": {\n \"offer\": \"UbuntuServer\",\n \"publisher\": \"Canonical\",\n \"sku\": \"16.04-LTS\",\n \"version\": \"latest\",\n },\n \"os_disk\": {\n \"caching\": azure_native.compute.CachingTypes.READ_WRITE,\n \"create_option\": azure_native.compute.DiskCreateOptionTypes.FROM_IMAGE,\n \"managed_disk\": {\n \"storage_account_type\": azure_native.compute.StorageAccountTypes.PREMIUM_LRS,\n },\n \"name\": \"myVMosdisk\",\n },\n },\n vm_name=\"myVM\")\n\n```\n\n```yaml\nresources:\n virtualMachine:\n type: azure-native:compute:VirtualMachine\n properties:\n hardwareProfile:\n vmSize: Standard_D2s_v3\n location: westus\n networkProfile:\n networkInterfaces:\n - id: /subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\n primary: true\n osProfile:\n adminPassword: '{your-password}'\n adminUsername: '{your-username}'\n computerName: myVM\n linuxConfiguration:\n patchSettings:\n assessmentMode: AutomaticByPlatform\n automaticByPlatformSettings:\n bypassPlatformSafetyChecksOnUserSchedule: true\n rebootSetting: Never\n patchMode: AutomaticByPlatform\n provisionVMAgent: true\n resourceGroupName: myResourceGroup\n storageProfile:\n imageReference:\n offer: UbuntuServer\n publisher: Canonical\n sku: 16.04-LTS\n version: latest\n osDisk:\n caching: ReadWrite\n createOption: FromImage\n managedDisk:\n storageAccountType: Premium_LRS\n name: myVMosdisk\n vmName: myVM\n\n```\n\n{{% /example %}}\n{{% example %}}\n### Create a Linux vm with a patch setting patchMode of ImageDefault.\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing AzureNative = Pulumi.AzureNative;\n\nreturn await Deployment.RunAsync(() => \n{\n var virtualMachine = new AzureNative.Compute.VirtualMachine(\"virtualMachine\", new()\n {\n HardwareProfile = new AzureNative.Compute.Inputs.HardwareProfileArgs\n {\n VmSize = AzureNative.Compute.VirtualMachineSizeTypes.Standard_D2s_v3,\n },\n Location = \"westus\",\n NetworkProfile = new AzureNative.Compute.Inputs.NetworkProfileArgs\n {\n NetworkInterfaces = new[]\n {\n new AzureNative.Compute.Inputs.NetworkInterfaceReferenceArgs\n {\n Id = \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\",\n Primary = true,\n },\n },\n },\n OsProfile = new AzureNative.Compute.Inputs.OSProfileArgs\n {\n AdminPassword = \"{your-password}\",\n AdminUsername = \"{your-username}\",\n ComputerName = \"myVM\",\n LinuxConfiguration = new AzureNative.Compute.Inputs.LinuxConfigurationArgs\n {\n PatchSettings = new AzureNative.Compute.Inputs.LinuxPatchSettingsArgs\n {\n PatchMode = AzureNative.Compute.LinuxVMGuestPatchMode.ImageDefault,\n },\n ProvisionVMAgent = true,\n },\n },\n ResourceGroupName = \"myResourceGroup\",\n StorageProfile = new AzureNative.Compute.Inputs.StorageProfileArgs\n {\n ImageReference = new AzureNative.Compute.Inputs.ImageReferenceArgs\n {\n Offer = \"UbuntuServer\",\n Publisher = \"Canonical\",\n Sku = \"16.04-LTS\",\n Version = \"latest\",\n },\n OsDisk = new AzureNative.Compute.Inputs.OSDiskArgs\n {\n Caching = AzureNative.Compute.CachingTypes.ReadWrite,\n CreateOption = AzureNative.Compute.DiskCreateOptionTypes.FromImage,\n ManagedDisk = new AzureNative.Compute.Inputs.ManagedDiskParametersArgs\n {\n StorageAccountType = AzureNative.Compute.StorageAccountTypes.Premium_LRS,\n },\n Name = \"myVMosdisk\",\n },\n },\n VmName = \"myVM\",\n });\n\n});\n\n\n```\n\n```go\npackage main\n\nimport (\n\tcompute \"github.com/pulumi/pulumi-azure-native-sdk/compute/v2\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := compute.NewVirtualMachine(ctx, \"virtualMachine\", &compute.VirtualMachineArgs{\n\t\t\tHardwareProfile: &compute.HardwareProfileArgs{\n\t\t\t\tVmSize: pulumi.String(compute.VirtualMachineSizeTypes_Standard_D2s_v3),\n\t\t\t},\n\t\t\tLocation: pulumi.String(\"westus\"),\n\t\t\tNetworkProfile: &compute.NetworkProfileArgs{\n\t\t\t\tNetworkInterfaces: compute.NetworkInterfaceReferenceArray{\n\t\t\t\t\t&compute.NetworkInterfaceReferenceArgs{\n\t\t\t\t\t\tId: pulumi.String(\"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\"),\n\t\t\t\t\t\tPrimary: pulumi.Bool(true),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tOsProfile: &compute.OSProfileArgs{\n\t\t\t\tAdminPassword: pulumi.String(\"{your-password}\"),\n\t\t\t\tAdminUsername: pulumi.String(\"{your-username}\"),\n\t\t\t\tComputerName: pulumi.String(\"myVM\"),\n\t\t\t\tLinuxConfiguration: &compute.LinuxConfigurationArgs{\n\t\t\t\t\tPatchSettings: &compute.LinuxPatchSettingsArgs{\n\t\t\t\t\t\tPatchMode: pulumi.String(compute.LinuxVMGuestPatchModeImageDefault),\n\t\t\t\t\t},\n\t\t\t\t\tProvisionVMAgent: pulumi.Bool(true),\n\t\t\t\t},\n\t\t\t},\n\t\t\tResourceGroupName: pulumi.String(\"myResourceGroup\"),\n\t\t\tStorageProfile: &compute.StorageProfileArgs{\n\t\t\t\tImageReference: &compute.ImageReferenceArgs{\n\t\t\t\t\tOffer: pulumi.String(\"UbuntuServer\"),\n\t\t\t\t\tPublisher: pulumi.String(\"Canonical\"),\n\t\t\t\t\tSku: pulumi.String(\"16.04-LTS\"),\n\t\t\t\t\tVersion: pulumi.String(\"latest\"),\n\t\t\t\t},\n\t\t\t\tOsDisk: &compute.OSDiskArgs{\n\t\t\t\t\tCaching: compute.CachingTypesReadWrite,\n\t\t\t\t\tCreateOption: pulumi.String(compute.DiskCreateOptionTypesFromImage),\n\t\t\t\t\tManagedDisk: &compute.ManagedDiskParametersArgs{\n\t\t\t\t\t\tStorageAccountType: pulumi.String(compute.StorageAccountTypes_Premium_LRS),\n\t\t\t\t\t},\n\t\t\t\t\tName: pulumi.String(\"myVMosdisk\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tVmName: pulumi.String(\"myVM\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n\n```\n\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azurenative.compute.VirtualMachine;\nimport com.pulumi.azurenative.compute.VirtualMachineArgs;\nimport com.pulumi.azurenative.compute.inputs.HardwareProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.NetworkProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.OSProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.LinuxConfigurationArgs;\nimport com.pulumi.azurenative.compute.inputs.LinuxPatchSettingsArgs;\nimport com.pulumi.azurenative.compute.inputs.StorageProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.ImageReferenceArgs;\nimport com.pulumi.azurenative.compute.inputs.OSDiskArgs;\nimport com.pulumi.azurenative.compute.inputs.ManagedDiskParametersArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var virtualMachine = new VirtualMachine(\"virtualMachine\", VirtualMachineArgs.builder()\n .hardwareProfile(HardwareProfileArgs.builder()\n .vmSize(\"Standard_D2s_v3\")\n .build())\n .location(\"westus\")\n .networkProfile(NetworkProfileArgs.builder()\n .networkInterfaces(NetworkInterfaceReferenceArgs.builder()\n .id(\"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\")\n .primary(true)\n .build())\n .build())\n .osProfile(OSProfileArgs.builder()\n .adminPassword(\"{your-password}\")\n .adminUsername(\"{your-username}\")\n .computerName(\"myVM\")\n .linuxConfiguration(LinuxConfigurationArgs.builder()\n .patchSettings(LinuxPatchSettingsArgs.builder()\n .patchMode(\"ImageDefault\")\n .build())\n .provisionVMAgent(true)\n .build())\n .build())\n .resourceGroupName(\"myResourceGroup\")\n .storageProfile(StorageProfileArgs.builder()\n .imageReference(ImageReferenceArgs.builder()\n .offer(\"UbuntuServer\")\n .publisher(\"Canonical\")\n .sku(\"16.04-LTS\")\n .version(\"latest\")\n .build())\n .osDisk(OSDiskArgs.builder()\n .caching(\"ReadWrite\")\n .createOption(\"FromImage\")\n .managedDisk(ManagedDiskParametersArgs.builder()\n .storageAccountType(\"Premium_LRS\")\n .build())\n .name(\"myVMosdisk\")\n .build())\n .build())\n .vmName(\"myVM\")\n .build());\n\n }\n}\n\n```\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azure_native from \"@pulumi/azure-native\";\n\nconst virtualMachine = new azure_native.compute.VirtualMachine(\"virtualMachine\", {\n hardwareProfile: {\n vmSize: azure_native.compute.VirtualMachineSizeTypes.Standard_D2s_v3,\n },\n location: \"westus\",\n networkProfile: {\n networkInterfaces: [{\n id: \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\",\n primary: true,\n }],\n },\n osProfile: {\n adminPassword: \"{your-password}\",\n adminUsername: \"{your-username}\",\n computerName: \"myVM\",\n linuxConfiguration: {\n patchSettings: {\n patchMode: azure_native.compute.LinuxVMGuestPatchMode.ImageDefault,\n },\n provisionVMAgent: true,\n },\n },\n resourceGroupName: \"myResourceGroup\",\n storageProfile: {\n imageReference: {\n offer: \"UbuntuServer\",\n publisher: \"Canonical\",\n sku: \"16.04-LTS\",\n version: \"latest\",\n },\n osDisk: {\n caching: azure_native.compute.CachingTypes.ReadWrite,\n createOption: azure_native.compute.DiskCreateOptionTypes.FromImage,\n managedDisk: {\n storageAccountType: azure_native.compute.StorageAccountTypes.Premium_LRS,\n },\n name: \"myVMosdisk\",\n },\n },\n vmName: \"myVM\",\n});\n\n```\n\n```python\nimport pulumi\nimport pulumi_azure_native as azure_native\n\nvirtual_machine = azure_native.compute.VirtualMachine(\"virtualMachine\",\n hardware_profile={\n \"vm_size\": azure_native.compute.VirtualMachineSizeTypes.STANDARD_D2S_V3,\n },\n location=\"westus\",\n network_profile={\n \"network_interfaces\": [{\n \"id\": \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\",\n \"primary\": True,\n }],\n },\n os_profile={\n \"admin_password\": \"{your-password}\",\n \"admin_username\": \"{your-username}\",\n \"computer_name\": \"myVM\",\n \"linux_configuration\": {\n \"patch_settings\": {\n \"patch_mode\": azure_native.compute.LinuxVMGuestPatchMode.IMAGE_DEFAULT,\n },\n \"provision_vm_agent\": True,\n },\n },\n resource_group_name=\"myResourceGroup\",\n storage_profile={\n \"image_reference\": {\n \"offer\": \"UbuntuServer\",\n \"publisher\": \"Canonical\",\n \"sku\": \"16.04-LTS\",\n \"version\": \"latest\",\n },\n \"os_disk\": {\n \"caching\": azure_native.compute.CachingTypes.READ_WRITE,\n \"create_option\": azure_native.compute.DiskCreateOptionTypes.FROM_IMAGE,\n \"managed_disk\": {\n \"storage_account_type\": azure_native.compute.StorageAccountTypes.PREMIUM_LRS,\n },\n \"name\": \"myVMosdisk\",\n },\n },\n vm_name=\"myVM\")\n\n```\n\n```yaml\nresources:\n virtualMachine:\n type: azure-native:compute:VirtualMachine\n properties:\n hardwareProfile:\n vmSize: Standard_D2s_v3\n location: westus\n networkProfile:\n networkInterfaces:\n - id: /subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\n primary: true\n osProfile:\n adminPassword: '{your-password}'\n adminUsername: '{your-username}'\n computerName: myVM\n linuxConfiguration:\n patchSettings:\n patchMode: ImageDefault\n provisionVMAgent: true\n resourceGroupName: myResourceGroup\n storageProfile:\n imageReference:\n offer: UbuntuServer\n publisher: Canonical\n sku: 16.04-LTS\n version: latest\n osDisk:\n caching: ReadWrite\n createOption: FromImage\n managedDisk:\n storageAccountType: Premium_LRS\n name: myVMosdisk\n vmName: myVM\n\n```\n\n{{% /example %}}\n{{% example %}}\n### Create a Linux vm with a patch settings patchMode and assessmentMode set to AutomaticByPlatform.\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing AzureNative = Pulumi.AzureNative;\n\nreturn await Deployment.RunAsync(() => \n{\n var virtualMachine = new AzureNative.Compute.VirtualMachine(\"virtualMachine\", new()\n {\n HardwareProfile = new AzureNative.Compute.Inputs.HardwareProfileArgs\n {\n VmSize = AzureNative.Compute.VirtualMachineSizeTypes.Standard_D2s_v3,\n },\n Location = \"westus\",\n NetworkProfile = new AzureNative.Compute.Inputs.NetworkProfileArgs\n {\n NetworkInterfaces = new[]\n {\n new AzureNative.Compute.Inputs.NetworkInterfaceReferenceArgs\n {\n Id = \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\",\n Primary = true,\n },\n },\n },\n OsProfile = new AzureNative.Compute.Inputs.OSProfileArgs\n {\n AdminPassword = \"{your-password}\",\n AdminUsername = \"{your-username}\",\n ComputerName = \"myVM\",\n LinuxConfiguration = new AzureNative.Compute.Inputs.LinuxConfigurationArgs\n {\n PatchSettings = new AzureNative.Compute.Inputs.LinuxPatchSettingsArgs\n {\n AssessmentMode = AzureNative.Compute.LinuxPatchAssessmentMode.AutomaticByPlatform,\n PatchMode = AzureNative.Compute.LinuxVMGuestPatchMode.AutomaticByPlatform,\n },\n ProvisionVMAgent = true,\n },\n },\n ResourceGroupName = \"myResourceGroup\",\n StorageProfile = new AzureNative.Compute.Inputs.StorageProfileArgs\n {\n ImageReference = new AzureNative.Compute.Inputs.ImageReferenceArgs\n {\n Offer = \"UbuntuServer\",\n Publisher = \"Canonical\",\n Sku = \"16.04-LTS\",\n Version = \"latest\",\n },\n OsDisk = new AzureNative.Compute.Inputs.OSDiskArgs\n {\n Caching = AzureNative.Compute.CachingTypes.ReadWrite,\n CreateOption = AzureNative.Compute.DiskCreateOptionTypes.FromImage,\n ManagedDisk = new AzureNative.Compute.Inputs.ManagedDiskParametersArgs\n {\n StorageAccountType = AzureNative.Compute.StorageAccountTypes.Premium_LRS,\n },\n Name = \"myVMosdisk\",\n },\n },\n VmName = \"myVM\",\n });\n\n});\n\n\n```\n\n```go\npackage main\n\nimport (\n\tcompute \"github.com/pulumi/pulumi-azure-native-sdk/compute/v2\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := compute.NewVirtualMachine(ctx, \"virtualMachine\", &compute.VirtualMachineArgs{\n\t\t\tHardwareProfile: &compute.HardwareProfileArgs{\n\t\t\t\tVmSize: pulumi.String(compute.VirtualMachineSizeTypes_Standard_D2s_v3),\n\t\t\t},\n\t\t\tLocation: pulumi.String(\"westus\"),\n\t\t\tNetworkProfile: &compute.NetworkProfileArgs{\n\t\t\t\tNetworkInterfaces: compute.NetworkInterfaceReferenceArray{\n\t\t\t\t\t&compute.NetworkInterfaceReferenceArgs{\n\t\t\t\t\t\tId: pulumi.String(\"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\"),\n\t\t\t\t\t\tPrimary: pulumi.Bool(true),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tOsProfile: &compute.OSProfileArgs{\n\t\t\t\tAdminPassword: pulumi.String(\"{your-password}\"),\n\t\t\t\tAdminUsername: pulumi.String(\"{your-username}\"),\n\t\t\t\tComputerName: pulumi.String(\"myVM\"),\n\t\t\t\tLinuxConfiguration: &compute.LinuxConfigurationArgs{\n\t\t\t\t\tPatchSettings: &compute.LinuxPatchSettingsArgs{\n\t\t\t\t\t\tAssessmentMode: pulumi.String(compute.LinuxPatchAssessmentModeAutomaticByPlatform),\n\t\t\t\t\t\tPatchMode: pulumi.String(compute.LinuxVMGuestPatchModeAutomaticByPlatform),\n\t\t\t\t\t},\n\t\t\t\t\tProvisionVMAgent: pulumi.Bool(true),\n\t\t\t\t},\n\t\t\t},\n\t\t\tResourceGroupName: pulumi.String(\"myResourceGroup\"),\n\t\t\tStorageProfile: &compute.StorageProfileArgs{\n\t\t\t\tImageReference: &compute.ImageReferenceArgs{\n\t\t\t\t\tOffer: pulumi.String(\"UbuntuServer\"),\n\t\t\t\t\tPublisher: pulumi.String(\"Canonical\"),\n\t\t\t\t\tSku: pulumi.String(\"16.04-LTS\"),\n\t\t\t\t\tVersion: pulumi.String(\"latest\"),\n\t\t\t\t},\n\t\t\t\tOsDisk: &compute.OSDiskArgs{\n\t\t\t\t\tCaching: compute.CachingTypesReadWrite,\n\t\t\t\t\tCreateOption: pulumi.String(compute.DiskCreateOptionTypesFromImage),\n\t\t\t\t\tManagedDisk: &compute.ManagedDiskParametersArgs{\n\t\t\t\t\t\tStorageAccountType: pulumi.String(compute.StorageAccountTypes_Premium_LRS),\n\t\t\t\t\t},\n\t\t\t\t\tName: pulumi.String(\"myVMosdisk\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tVmName: pulumi.String(\"myVM\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n\n```\n\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azurenative.compute.VirtualMachine;\nimport com.pulumi.azurenative.compute.VirtualMachineArgs;\nimport com.pulumi.azurenative.compute.inputs.HardwareProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.NetworkProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.OSProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.LinuxConfigurationArgs;\nimport com.pulumi.azurenative.compute.inputs.LinuxPatchSettingsArgs;\nimport com.pulumi.azurenative.compute.inputs.StorageProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.ImageReferenceArgs;\nimport com.pulumi.azurenative.compute.inputs.OSDiskArgs;\nimport com.pulumi.azurenative.compute.inputs.ManagedDiskParametersArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var virtualMachine = new VirtualMachine(\"virtualMachine\", VirtualMachineArgs.builder()\n .hardwareProfile(HardwareProfileArgs.builder()\n .vmSize(\"Standard_D2s_v3\")\n .build())\n .location(\"westus\")\n .networkProfile(NetworkProfileArgs.builder()\n .networkInterfaces(NetworkInterfaceReferenceArgs.builder()\n .id(\"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\")\n .primary(true)\n .build())\n .build())\n .osProfile(OSProfileArgs.builder()\n .adminPassword(\"{your-password}\")\n .adminUsername(\"{your-username}\")\n .computerName(\"myVM\")\n .linuxConfiguration(LinuxConfigurationArgs.builder()\n .patchSettings(LinuxPatchSettingsArgs.builder()\n .assessmentMode(\"AutomaticByPlatform\")\n .patchMode(\"AutomaticByPlatform\")\n .build())\n .provisionVMAgent(true)\n .build())\n .build())\n .resourceGroupName(\"myResourceGroup\")\n .storageProfile(StorageProfileArgs.builder()\n .imageReference(ImageReferenceArgs.builder()\n .offer(\"UbuntuServer\")\n .publisher(\"Canonical\")\n .sku(\"16.04-LTS\")\n .version(\"latest\")\n .build())\n .osDisk(OSDiskArgs.builder()\n .caching(\"ReadWrite\")\n .createOption(\"FromImage\")\n .managedDisk(ManagedDiskParametersArgs.builder()\n .storageAccountType(\"Premium_LRS\")\n .build())\n .name(\"myVMosdisk\")\n .build())\n .build())\n .vmName(\"myVM\")\n .build());\n\n }\n}\n\n```\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azure_native from \"@pulumi/azure-native\";\n\nconst virtualMachine = new azure_native.compute.VirtualMachine(\"virtualMachine\", {\n hardwareProfile: {\n vmSize: azure_native.compute.VirtualMachineSizeTypes.Standard_D2s_v3,\n },\n location: \"westus\",\n networkProfile: {\n networkInterfaces: [{\n id: \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\",\n primary: true,\n }],\n },\n osProfile: {\n adminPassword: \"{your-password}\",\n adminUsername: \"{your-username}\",\n computerName: \"myVM\",\n linuxConfiguration: {\n patchSettings: {\n assessmentMode: azure_native.compute.LinuxPatchAssessmentMode.AutomaticByPlatform,\n patchMode: azure_native.compute.LinuxVMGuestPatchMode.AutomaticByPlatform,\n },\n provisionVMAgent: true,\n },\n },\n resourceGroupName: \"myResourceGroup\",\n storageProfile: {\n imageReference: {\n offer: \"UbuntuServer\",\n publisher: \"Canonical\",\n sku: \"16.04-LTS\",\n version: \"latest\",\n },\n osDisk: {\n caching: azure_native.compute.CachingTypes.ReadWrite,\n createOption: azure_native.compute.DiskCreateOptionTypes.FromImage,\n managedDisk: {\n storageAccountType: azure_native.compute.StorageAccountTypes.Premium_LRS,\n },\n name: \"myVMosdisk\",\n },\n },\n vmName: \"myVM\",\n});\n\n```\n\n```python\nimport pulumi\nimport pulumi_azure_native as azure_native\n\nvirtual_machine = azure_native.compute.VirtualMachine(\"virtualMachine\",\n hardware_profile={\n \"vm_size\": azure_native.compute.VirtualMachineSizeTypes.STANDARD_D2S_V3,\n },\n location=\"westus\",\n network_profile={\n \"network_interfaces\": [{\n \"id\": \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\",\n \"primary\": True,\n }],\n },\n os_profile={\n \"admin_password\": \"{your-password}\",\n \"admin_username\": \"{your-username}\",\n \"computer_name\": \"myVM\",\n \"linux_configuration\": {\n \"patch_settings\": {\n \"assessment_mode\": azure_native.compute.LinuxPatchAssessmentMode.AUTOMATIC_BY_PLATFORM,\n \"patch_mode\": azure_native.compute.LinuxVMGuestPatchMode.AUTOMATIC_BY_PLATFORM,\n },\n \"provision_vm_agent\": True,\n },\n },\n resource_group_name=\"myResourceGroup\",\n storage_profile={\n \"image_reference\": {\n \"offer\": \"UbuntuServer\",\n \"publisher\": \"Canonical\",\n \"sku\": \"16.04-LTS\",\n \"version\": \"latest\",\n },\n \"os_disk\": {\n \"caching\": azure_native.compute.CachingTypes.READ_WRITE,\n \"create_option\": azure_native.compute.DiskCreateOptionTypes.FROM_IMAGE,\n \"managed_disk\": {\n \"storage_account_type\": azure_native.compute.StorageAccountTypes.PREMIUM_LRS,\n },\n \"name\": \"myVMosdisk\",\n },\n },\n vm_name=\"myVM\")\n\n```\n\n```yaml\nresources:\n virtualMachine:\n type: azure-native:compute:VirtualMachine\n properties:\n hardwareProfile:\n vmSize: Standard_D2s_v3\n location: westus\n networkProfile:\n networkInterfaces:\n - id: /subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\n primary: true\n osProfile:\n adminPassword: '{your-password}'\n adminUsername: '{your-username}'\n computerName: myVM\n linuxConfiguration:\n patchSettings:\n assessmentMode: AutomaticByPlatform\n patchMode: AutomaticByPlatform\n provisionVMAgent: true\n resourceGroupName: myResourceGroup\n storageProfile:\n imageReference:\n offer: UbuntuServer\n publisher: Canonical\n sku: 16.04-LTS\n version: latest\n osDisk:\n caching: ReadWrite\n createOption: FromImage\n managedDisk:\n storageAccountType: Premium_LRS\n name: myVMosdisk\n vmName: myVM\n\n```\n\n{{% /example %}}\n{{% example %}}\n### Create a VM from a community gallery image\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing AzureNative = Pulumi.AzureNative;\n\nreturn await Deployment.RunAsync(() => \n{\n var virtualMachine = new AzureNative.Compute.VirtualMachine(\"virtualMachine\", new()\n {\n HardwareProfile = new AzureNative.Compute.Inputs.HardwareProfileArgs\n {\n VmSize = AzureNative.Compute.VirtualMachineSizeTypes.Standard_D1_v2,\n },\n Location = \"westus\",\n NetworkProfile = new AzureNative.Compute.Inputs.NetworkProfileArgs\n {\n NetworkInterfaces = new[]\n {\n new AzureNative.Compute.Inputs.NetworkInterfaceReferenceArgs\n {\n Id = \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\",\n Primary = true,\n },\n },\n },\n OsProfile = new AzureNative.Compute.Inputs.OSProfileArgs\n {\n AdminPassword = \"{your-password}\",\n AdminUsername = \"{your-username}\",\n ComputerName = \"myVM\",\n },\n ResourceGroupName = \"myResourceGroup\",\n StorageProfile = new AzureNative.Compute.Inputs.StorageProfileArgs\n {\n ImageReference = new AzureNative.Compute.Inputs.ImageReferenceArgs\n {\n CommunityGalleryImageId = \"/CommunityGalleries/galleryPublicName/Images/communityGalleryImageName/Versions/communityGalleryImageVersionName\",\n },\n OsDisk = new AzureNative.Compute.Inputs.OSDiskArgs\n {\n Caching = AzureNative.Compute.CachingTypes.ReadWrite,\n CreateOption = AzureNative.Compute.DiskCreateOptionTypes.FromImage,\n ManagedDisk = new AzureNative.Compute.Inputs.ManagedDiskParametersArgs\n {\n StorageAccountType = AzureNative.Compute.StorageAccountTypes.Standard_LRS,\n },\n Name = \"myVMosdisk\",\n },\n },\n VmName = \"myVM\",\n });\n\n});\n\n\n```\n\n```go\npackage main\n\nimport (\n\tcompute \"github.com/pulumi/pulumi-azure-native-sdk/compute/v2\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := compute.NewVirtualMachine(ctx, \"virtualMachine\", &compute.VirtualMachineArgs{\n\t\t\tHardwareProfile: &compute.HardwareProfileArgs{\n\t\t\t\tVmSize: pulumi.String(compute.VirtualMachineSizeTypes_Standard_D1_v2),\n\t\t\t},\n\t\t\tLocation: pulumi.String(\"westus\"),\n\t\t\tNetworkProfile: &compute.NetworkProfileArgs{\n\t\t\t\tNetworkInterfaces: compute.NetworkInterfaceReferenceArray{\n\t\t\t\t\t&compute.NetworkInterfaceReferenceArgs{\n\t\t\t\t\t\tId: pulumi.String(\"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\"),\n\t\t\t\t\t\tPrimary: pulumi.Bool(true),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tOsProfile: &compute.OSProfileArgs{\n\t\t\t\tAdminPassword: pulumi.String(\"{your-password}\"),\n\t\t\t\tAdminUsername: pulumi.String(\"{your-username}\"),\n\t\t\t\tComputerName: pulumi.String(\"myVM\"),\n\t\t\t},\n\t\t\tResourceGroupName: pulumi.String(\"myResourceGroup\"),\n\t\t\tStorageProfile: &compute.StorageProfileArgs{\n\t\t\t\tImageReference: &compute.ImageReferenceArgs{\n\t\t\t\t\tCommunityGalleryImageId: pulumi.String(\"/CommunityGalleries/galleryPublicName/Images/communityGalleryImageName/Versions/communityGalleryImageVersionName\"),\n\t\t\t\t},\n\t\t\t\tOsDisk: &compute.OSDiskArgs{\n\t\t\t\t\tCaching: compute.CachingTypesReadWrite,\n\t\t\t\t\tCreateOption: pulumi.String(compute.DiskCreateOptionTypesFromImage),\n\t\t\t\t\tManagedDisk: &compute.ManagedDiskParametersArgs{\n\t\t\t\t\t\tStorageAccountType: pulumi.String(compute.StorageAccountTypes_Standard_LRS),\n\t\t\t\t\t},\n\t\t\t\t\tName: pulumi.String(\"myVMosdisk\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tVmName: pulumi.String(\"myVM\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n\n```\n\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azurenative.compute.VirtualMachine;\nimport com.pulumi.azurenative.compute.VirtualMachineArgs;\nimport com.pulumi.azurenative.compute.inputs.HardwareProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.NetworkProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.OSProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.StorageProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.ImageReferenceArgs;\nimport com.pulumi.azurenative.compute.inputs.OSDiskArgs;\nimport com.pulumi.azurenative.compute.inputs.ManagedDiskParametersArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var virtualMachine = new VirtualMachine(\"virtualMachine\", VirtualMachineArgs.builder()\n .hardwareProfile(HardwareProfileArgs.builder()\n .vmSize(\"Standard_D1_v2\")\n .build())\n .location(\"westus\")\n .networkProfile(NetworkProfileArgs.builder()\n .networkInterfaces(NetworkInterfaceReferenceArgs.builder()\n .id(\"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\")\n .primary(true)\n .build())\n .build())\n .osProfile(OSProfileArgs.builder()\n .adminPassword(\"{your-password}\")\n .adminUsername(\"{your-username}\")\n .computerName(\"myVM\")\n .build())\n .resourceGroupName(\"myResourceGroup\")\n .storageProfile(StorageProfileArgs.builder()\n .imageReference(ImageReferenceArgs.builder()\n .communityGalleryImageId(\"/CommunityGalleries/galleryPublicName/Images/communityGalleryImageName/Versions/communityGalleryImageVersionName\")\n .build())\n .osDisk(OSDiskArgs.builder()\n .caching(\"ReadWrite\")\n .createOption(\"FromImage\")\n .managedDisk(ManagedDiskParametersArgs.builder()\n .storageAccountType(\"Standard_LRS\")\n .build())\n .name(\"myVMosdisk\")\n .build())\n .build())\n .vmName(\"myVM\")\n .build());\n\n }\n}\n\n```\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azure_native from \"@pulumi/azure-native\";\n\nconst virtualMachine = new azure_native.compute.VirtualMachine(\"virtualMachine\", {\n hardwareProfile: {\n vmSize: azure_native.compute.VirtualMachineSizeTypes.Standard_D1_v2,\n },\n location: \"westus\",\n networkProfile: {\n networkInterfaces: [{\n id: \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\",\n primary: true,\n }],\n },\n osProfile: {\n adminPassword: \"{your-password}\",\n adminUsername: \"{your-username}\",\n computerName: \"myVM\",\n },\n resourceGroupName: \"myResourceGroup\",\n storageProfile: {\n imageReference: {\n communityGalleryImageId: \"/CommunityGalleries/galleryPublicName/Images/communityGalleryImageName/Versions/communityGalleryImageVersionName\",\n },\n osDisk: {\n caching: azure_native.compute.CachingTypes.ReadWrite,\n createOption: azure_native.compute.DiskCreateOptionTypes.FromImage,\n managedDisk: {\n storageAccountType: azure_native.compute.StorageAccountTypes.Standard_LRS,\n },\n name: \"myVMosdisk\",\n },\n },\n vmName: \"myVM\",\n});\n\n```\n\n```python\nimport pulumi\nimport pulumi_azure_native as azure_native\n\nvirtual_machine = azure_native.compute.VirtualMachine(\"virtualMachine\",\n hardware_profile={\n \"vm_size\": azure_native.compute.VirtualMachineSizeTypes.STANDARD_D1_V2,\n },\n location=\"westus\",\n network_profile={\n \"network_interfaces\": [{\n \"id\": \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\",\n \"primary\": True,\n }],\n },\n os_profile={\n \"admin_password\": \"{your-password}\",\n \"admin_username\": \"{your-username}\",\n \"computer_name\": \"myVM\",\n },\n resource_group_name=\"myResourceGroup\",\n storage_profile={\n \"image_reference\": {\n \"community_gallery_image_id\": \"/CommunityGalleries/galleryPublicName/Images/communityGalleryImageName/Versions/communityGalleryImageVersionName\",\n },\n \"os_disk\": {\n \"caching\": azure_native.compute.CachingTypes.READ_WRITE,\n \"create_option\": azure_native.compute.DiskCreateOptionTypes.FROM_IMAGE,\n \"managed_disk\": {\n \"storage_account_type\": azure_native.compute.StorageAccountTypes.STANDARD_LRS,\n },\n \"name\": \"myVMosdisk\",\n },\n },\n vm_name=\"myVM\")\n\n```\n\n```yaml\nresources:\n virtualMachine:\n type: azure-native:compute:VirtualMachine\n properties:\n hardwareProfile:\n vmSize: Standard_D1_v2\n location: westus\n networkProfile:\n networkInterfaces:\n - id: /subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\n primary: true\n osProfile:\n adminPassword: '{your-password}'\n adminUsername: '{your-username}'\n computerName: myVM\n resourceGroupName: myResourceGroup\n storageProfile:\n imageReference:\n communityGalleryImageId: /CommunityGalleries/galleryPublicName/Images/communityGalleryImageName/Versions/communityGalleryImageVersionName\n osDisk:\n caching: ReadWrite\n createOption: FromImage\n managedDisk:\n storageAccountType: Standard_LRS\n name: myVMosdisk\n vmName: myVM\n\n```\n\n{{% /example %}}\n{{% example %}}\n### Create a VM from a shared gallery image\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing AzureNative = Pulumi.AzureNative;\n\nreturn await Deployment.RunAsync(() => \n{\n var virtualMachine = new AzureNative.Compute.VirtualMachine(\"virtualMachine\", new()\n {\n HardwareProfile = new AzureNative.Compute.Inputs.HardwareProfileArgs\n {\n VmSize = AzureNative.Compute.VirtualMachineSizeTypes.Standard_D1_v2,\n },\n Location = \"westus\",\n NetworkProfile = new AzureNative.Compute.Inputs.NetworkProfileArgs\n {\n NetworkInterfaces = new[]\n {\n new AzureNative.Compute.Inputs.NetworkInterfaceReferenceArgs\n {\n Id = \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\",\n Primary = true,\n },\n },\n },\n OsProfile = new AzureNative.Compute.Inputs.OSProfileArgs\n {\n AdminPassword = \"{your-password}\",\n AdminUsername = \"{your-username}\",\n ComputerName = \"myVM\",\n },\n ResourceGroupName = \"myResourceGroup\",\n StorageProfile = new AzureNative.Compute.Inputs.StorageProfileArgs\n {\n ImageReference = new AzureNative.Compute.Inputs.ImageReferenceArgs\n {\n SharedGalleryImageId = \"/SharedGalleries/sharedGalleryName/Images/sharedGalleryImageName/Versions/sharedGalleryImageVersionName\",\n },\n OsDisk = new AzureNative.Compute.Inputs.OSDiskArgs\n {\n Caching = AzureNative.Compute.CachingTypes.ReadWrite,\n CreateOption = AzureNative.Compute.DiskCreateOptionTypes.FromImage,\n ManagedDisk = new AzureNative.Compute.Inputs.ManagedDiskParametersArgs\n {\n StorageAccountType = AzureNative.Compute.StorageAccountTypes.Standard_LRS,\n },\n Name = \"myVMosdisk\",\n },\n },\n VmName = \"myVM\",\n });\n\n});\n\n\n```\n\n```go\npackage main\n\nimport (\n\tcompute \"github.com/pulumi/pulumi-azure-native-sdk/compute/v2\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := compute.NewVirtualMachine(ctx, \"virtualMachine\", &compute.VirtualMachineArgs{\n\t\t\tHardwareProfile: &compute.HardwareProfileArgs{\n\t\t\t\tVmSize: pulumi.String(compute.VirtualMachineSizeTypes_Standard_D1_v2),\n\t\t\t},\n\t\t\tLocation: pulumi.String(\"westus\"),\n\t\t\tNetworkProfile: &compute.NetworkProfileArgs{\n\t\t\t\tNetworkInterfaces: compute.NetworkInterfaceReferenceArray{\n\t\t\t\t\t&compute.NetworkInterfaceReferenceArgs{\n\t\t\t\t\t\tId: pulumi.String(\"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\"),\n\t\t\t\t\t\tPrimary: pulumi.Bool(true),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tOsProfile: &compute.OSProfileArgs{\n\t\t\t\tAdminPassword: pulumi.String(\"{your-password}\"),\n\t\t\t\tAdminUsername: pulumi.String(\"{your-username}\"),\n\t\t\t\tComputerName: pulumi.String(\"myVM\"),\n\t\t\t},\n\t\t\tResourceGroupName: pulumi.String(\"myResourceGroup\"),\n\t\t\tStorageProfile: &compute.StorageProfileArgs{\n\t\t\t\tImageReference: &compute.ImageReferenceArgs{\n\t\t\t\t\tSharedGalleryImageId: pulumi.String(\"/SharedGalleries/sharedGalleryName/Images/sharedGalleryImageName/Versions/sharedGalleryImageVersionName\"),\n\t\t\t\t},\n\t\t\t\tOsDisk: &compute.OSDiskArgs{\n\t\t\t\t\tCaching: compute.CachingTypesReadWrite,\n\t\t\t\t\tCreateOption: pulumi.String(compute.DiskCreateOptionTypesFromImage),\n\t\t\t\t\tManagedDisk: &compute.ManagedDiskParametersArgs{\n\t\t\t\t\t\tStorageAccountType: pulumi.String(compute.StorageAccountTypes_Standard_LRS),\n\t\t\t\t\t},\n\t\t\t\t\tName: pulumi.String(\"myVMosdisk\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tVmName: pulumi.String(\"myVM\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n\n```\n\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azurenative.compute.VirtualMachine;\nimport com.pulumi.azurenative.compute.VirtualMachineArgs;\nimport com.pulumi.azurenative.compute.inputs.HardwareProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.NetworkProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.OSProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.StorageProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.ImageReferenceArgs;\nimport com.pulumi.azurenative.compute.inputs.OSDiskArgs;\nimport com.pulumi.azurenative.compute.inputs.ManagedDiskParametersArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var virtualMachine = new VirtualMachine(\"virtualMachine\", VirtualMachineArgs.builder()\n .hardwareProfile(HardwareProfileArgs.builder()\n .vmSize(\"Standard_D1_v2\")\n .build())\n .location(\"westus\")\n .networkProfile(NetworkProfileArgs.builder()\n .networkInterfaces(NetworkInterfaceReferenceArgs.builder()\n .id(\"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\")\n .primary(true)\n .build())\n .build())\n .osProfile(OSProfileArgs.builder()\n .adminPassword(\"{your-password}\")\n .adminUsername(\"{your-username}\")\n .computerName(\"myVM\")\n .build())\n .resourceGroupName(\"myResourceGroup\")\n .storageProfile(StorageProfileArgs.builder()\n .imageReference(ImageReferenceArgs.builder()\n .sharedGalleryImageId(\"/SharedGalleries/sharedGalleryName/Images/sharedGalleryImageName/Versions/sharedGalleryImageVersionName\")\n .build())\n .osDisk(OSDiskArgs.builder()\n .caching(\"ReadWrite\")\n .createOption(\"FromImage\")\n .managedDisk(ManagedDiskParametersArgs.builder()\n .storageAccountType(\"Standard_LRS\")\n .build())\n .name(\"myVMosdisk\")\n .build())\n .build())\n .vmName(\"myVM\")\n .build());\n\n }\n}\n\n```\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azure_native from \"@pulumi/azure-native\";\n\nconst virtualMachine = new azure_native.compute.VirtualMachine(\"virtualMachine\", {\n hardwareProfile: {\n vmSize: azure_native.compute.VirtualMachineSizeTypes.Standard_D1_v2,\n },\n location: \"westus\",\n networkProfile: {\n networkInterfaces: [{\n id: \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\",\n primary: true,\n }],\n },\n osProfile: {\n adminPassword: \"{your-password}\",\n adminUsername: \"{your-username}\",\n computerName: \"myVM\",\n },\n resourceGroupName: \"myResourceGroup\",\n storageProfile: {\n imageReference: {\n sharedGalleryImageId: \"/SharedGalleries/sharedGalleryName/Images/sharedGalleryImageName/Versions/sharedGalleryImageVersionName\",\n },\n osDisk: {\n caching: azure_native.compute.CachingTypes.ReadWrite,\n createOption: azure_native.compute.DiskCreateOptionTypes.FromImage,\n managedDisk: {\n storageAccountType: azure_native.compute.StorageAccountTypes.Standard_LRS,\n },\n name: \"myVMosdisk\",\n },\n },\n vmName: \"myVM\",\n});\n\n```\n\n```python\nimport pulumi\nimport pulumi_azure_native as azure_native\n\nvirtual_machine = azure_native.compute.VirtualMachine(\"virtualMachine\",\n hardware_profile={\n \"vm_size\": azure_native.compute.VirtualMachineSizeTypes.STANDARD_D1_V2,\n },\n location=\"westus\",\n network_profile={\n \"network_interfaces\": [{\n \"id\": \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\",\n \"primary\": True,\n }],\n },\n os_profile={\n \"admin_password\": \"{your-password}\",\n \"admin_username\": \"{your-username}\",\n \"computer_name\": \"myVM\",\n },\n resource_group_name=\"myResourceGroup\",\n storage_profile={\n \"image_reference\": {\n \"shared_gallery_image_id\": \"/SharedGalleries/sharedGalleryName/Images/sharedGalleryImageName/Versions/sharedGalleryImageVersionName\",\n },\n \"os_disk\": {\n \"caching\": azure_native.compute.CachingTypes.READ_WRITE,\n \"create_option\": azure_native.compute.DiskCreateOptionTypes.FROM_IMAGE,\n \"managed_disk\": {\n \"storage_account_type\": azure_native.compute.StorageAccountTypes.STANDARD_LRS,\n },\n \"name\": \"myVMosdisk\",\n },\n },\n vm_name=\"myVM\")\n\n```\n\n```yaml\nresources:\n virtualMachine:\n type: azure-native:compute:VirtualMachine\n properties:\n hardwareProfile:\n vmSize: Standard_D1_v2\n location: westus\n networkProfile:\n networkInterfaces:\n - id: /subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\n primary: true\n osProfile:\n adminPassword: '{your-password}'\n adminUsername: '{your-username}'\n computerName: myVM\n resourceGroupName: myResourceGroup\n storageProfile:\n imageReference:\n sharedGalleryImageId: /SharedGalleries/sharedGalleryName/Images/sharedGalleryImageName/Versions/sharedGalleryImageVersionName\n osDisk:\n caching: ReadWrite\n createOption: FromImage\n managedDisk:\n storageAccountType: Standard_LRS\n name: myVMosdisk\n vmName: myVM\n\n```\n\n{{% /example %}}\n{{% example %}}\n### Create a VM with Disk Controller Type\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing AzureNative = Pulumi.AzureNative;\n\nreturn await Deployment.RunAsync(() => \n{\n var virtualMachine = new AzureNative.Compute.VirtualMachine(\"virtualMachine\", new()\n {\n DiagnosticsProfile = new AzureNative.Compute.Inputs.DiagnosticsProfileArgs\n {\n BootDiagnostics = new AzureNative.Compute.Inputs.BootDiagnosticsArgs\n {\n Enabled = true,\n StorageUri = \"http://{existing-storage-account-name}.blob.core.windows.net\",\n },\n },\n HardwareProfile = new AzureNative.Compute.Inputs.HardwareProfileArgs\n {\n VmSize = AzureNative.Compute.VirtualMachineSizeTypes.Standard_D4_v3,\n },\n Location = \"westus\",\n NetworkProfile = new AzureNative.Compute.Inputs.NetworkProfileArgs\n {\n NetworkInterfaces = new[]\n {\n new AzureNative.Compute.Inputs.NetworkInterfaceReferenceArgs\n {\n Id = \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\",\n Primary = true,\n },\n },\n },\n OsProfile = new AzureNative.Compute.Inputs.OSProfileArgs\n {\n AdminPassword = \"{your-password}\",\n AdminUsername = \"{your-username}\",\n ComputerName = \"myVM\",\n },\n ResourceGroupName = \"myResourceGroup\",\n StorageProfile = new AzureNative.Compute.Inputs.StorageProfileArgs\n {\n DiskControllerType = AzureNative.Compute.DiskControllerTypes.NVMe,\n ImageReference = new AzureNative.Compute.Inputs.ImageReferenceArgs\n {\n Offer = \"WindowsServer\",\n Publisher = \"MicrosoftWindowsServer\",\n Sku = \"2016-Datacenter\",\n Version = \"latest\",\n },\n OsDisk = new AzureNative.Compute.Inputs.OSDiskArgs\n {\n Caching = AzureNative.Compute.CachingTypes.ReadWrite,\n CreateOption = AzureNative.Compute.DiskCreateOptionTypes.FromImage,\n ManagedDisk = new AzureNative.Compute.Inputs.ManagedDiskParametersArgs\n {\n StorageAccountType = AzureNative.Compute.StorageAccountTypes.Standard_LRS,\n },\n Name = \"myVMosdisk\",\n },\n },\n UserData = \"U29tZSBDdXN0b20gRGF0YQ==\",\n VmName = \"myVM\",\n });\n\n});\n\n\n```\n\n```go\npackage main\n\nimport (\n\tcompute \"github.com/pulumi/pulumi-azure-native-sdk/compute/v2\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := compute.NewVirtualMachine(ctx, \"virtualMachine\", &compute.VirtualMachineArgs{\n\t\t\tDiagnosticsProfile: &compute.DiagnosticsProfileArgs{\n\t\t\t\tBootDiagnostics: &compute.BootDiagnosticsArgs{\n\t\t\t\t\tEnabled: pulumi.Bool(true),\n\t\t\t\t\tStorageUri: pulumi.String(\"http://{existing-storage-account-name}.blob.core.windows.net\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tHardwareProfile: &compute.HardwareProfileArgs{\n\t\t\t\tVmSize: pulumi.String(compute.VirtualMachineSizeTypes_Standard_D4_v3),\n\t\t\t},\n\t\t\tLocation: pulumi.String(\"westus\"),\n\t\t\tNetworkProfile: &compute.NetworkProfileArgs{\n\t\t\t\tNetworkInterfaces: compute.NetworkInterfaceReferenceArray{\n\t\t\t\t\t&compute.NetworkInterfaceReferenceArgs{\n\t\t\t\t\t\tId: pulumi.String(\"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\"),\n\t\t\t\t\t\tPrimary: pulumi.Bool(true),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tOsProfile: &compute.OSProfileArgs{\n\t\t\t\tAdminPassword: pulumi.String(\"{your-password}\"),\n\t\t\t\tAdminUsername: pulumi.String(\"{your-username}\"),\n\t\t\t\tComputerName: pulumi.String(\"myVM\"),\n\t\t\t},\n\t\t\tResourceGroupName: pulumi.String(\"myResourceGroup\"),\n\t\t\tStorageProfile: &compute.StorageProfileArgs{\n\t\t\t\tDiskControllerType: pulumi.String(compute.DiskControllerTypesNVMe),\n\t\t\t\tImageReference: &compute.ImageReferenceArgs{\n\t\t\t\t\tOffer: pulumi.String(\"WindowsServer\"),\n\t\t\t\t\tPublisher: pulumi.String(\"MicrosoftWindowsServer\"),\n\t\t\t\t\tSku: pulumi.String(\"2016-Datacenter\"),\n\t\t\t\t\tVersion: pulumi.String(\"latest\"),\n\t\t\t\t},\n\t\t\t\tOsDisk: &compute.OSDiskArgs{\n\t\t\t\t\tCaching: compute.CachingTypesReadWrite,\n\t\t\t\t\tCreateOption: pulumi.String(compute.DiskCreateOptionTypesFromImage),\n\t\t\t\t\tManagedDisk: &compute.ManagedDiskParametersArgs{\n\t\t\t\t\t\tStorageAccountType: pulumi.String(compute.StorageAccountTypes_Standard_LRS),\n\t\t\t\t\t},\n\t\t\t\t\tName: pulumi.String(\"myVMosdisk\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tUserData: pulumi.String(\"U29tZSBDdXN0b20gRGF0YQ==\"),\n\t\t\tVmName: pulumi.String(\"myVM\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n\n```\n\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azurenative.compute.VirtualMachine;\nimport com.pulumi.azurenative.compute.VirtualMachineArgs;\nimport com.pulumi.azurenative.compute.inputs.DiagnosticsProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.BootDiagnosticsArgs;\nimport com.pulumi.azurenative.compute.inputs.HardwareProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.NetworkProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.OSProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.StorageProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.ImageReferenceArgs;\nimport com.pulumi.azurenative.compute.inputs.OSDiskArgs;\nimport com.pulumi.azurenative.compute.inputs.ManagedDiskParametersArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var virtualMachine = new VirtualMachine(\"virtualMachine\", VirtualMachineArgs.builder()\n .diagnosticsProfile(DiagnosticsProfileArgs.builder()\n .bootDiagnostics(BootDiagnosticsArgs.builder()\n .enabled(true)\n .storageUri(\"http://{existing-storage-account-name}.blob.core.windows.net\")\n .build())\n .build())\n .hardwareProfile(HardwareProfileArgs.builder()\n .vmSize(\"Standard_D4_v3\")\n .build())\n .location(\"westus\")\n .networkProfile(NetworkProfileArgs.builder()\n .networkInterfaces(NetworkInterfaceReferenceArgs.builder()\n .id(\"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\")\n .primary(true)\n .build())\n .build())\n .osProfile(OSProfileArgs.builder()\n .adminPassword(\"{your-password}\")\n .adminUsername(\"{your-username}\")\n .computerName(\"myVM\")\n .build())\n .resourceGroupName(\"myResourceGroup\")\n .storageProfile(StorageProfileArgs.builder()\n .diskControllerType(\"NVMe\")\n .imageReference(ImageReferenceArgs.builder()\n .offer(\"WindowsServer\")\n .publisher(\"MicrosoftWindowsServer\")\n .sku(\"2016-Datacenter\")\n .version(\"latest\")\n .build())\n .osDisk(OSDiskArgs.builder()\n .caching(\"ReadWrite\")\n .createOption(\"FromImage\")\n .managedDisk(ManagedDiskParametersArgs.builder()\n .storageAccountType(\"Standard_LRS\")\n .build())\n .name(\"myVMosdisk\")\n .build())\n .build())\n .userData(\"U29tZSBDdXN0b20gRGF0YQ==\")\n .vmName(\"myVM\")\n .build());\n\n }\n}\n\n```\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azure_native from \"@pulumi/azure-native\";\n\nconst virtualMachine = new azure_native.compute.VirtualMachine(\"virtualMachine\", {\n diagnosticsProfile: {\n bootDiagnostics: {\n enabled: true,\n storageUri: \"http://{existing-storage-account-name}.blob.core.windows.net\",\n },\n },\n hardwareProfile: {\n vmSize: azure_native.compute.VirtualMachineSizeTypes.Standard_D4_v3,\n },\n location: \"westus\",\n networkProfile: {\n networkInterfaces: [{\n id: \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\",\n primary: true,\n }],\n },\n osProfile: {\n adminPassword: \"{your-password}\",\n adminUsername: \"{your-username}\",\n computerName: \"myVM\",\n },\n resourceGroupName: \"myResourceGroup\",\n storageProfile: {\n diskControllerType: azure_native.compute.DiskControllerTypes.NVMe,\n imageReference: {\n offer: \"WindowsServer\",\n publisher: \"MicrosoftWindowsServer\",\n sku: \"2016-Datacenter\",\n version: \"latest\",\n },\n osDisk: {\n caching: azure_native.compute.CachingTypes.ReadWrite,\n createOption: azure_native.compute.DiskCreateOptionTypes.FromImage,\n managedDisk: {\n storageAccountType: azure_native.compute.StorageAccountTypes.Standard_LRS,\n },\n name: \"myVMosdisk\",\n },\n },\n userData: \"U29tZSBDdXN0b20gRGF0YQ==\",\n vmName: \"myVM\",\n});\n\n```\n\n```python\nimport pulumi\nimport pulumi_azure_native as azure_native\n\nvirtual_machine = azure_native.compute.VirtualMachine(\"virtualMachine\",\n diagnostics_profile={\n \"boot_diagnostics\": {\n \"enabled\": True,\n \"storage_uri\": \"http://{existing-storage-account-name}.blob.core.windows.net\",\n },\n },\n hardware_profile={\n \"vm_size\": azure_native.compute.VirtualMachineSizeTypes.STANDARD_D4_V3,\n },\n location=\"westus\",\n network_profile={\n \"network_interfaces\": [{\n \"id\": \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\",\n \"primary\": True,\n }],\n },\n os_profile={\n \"admin_password\": \"{your-password}\",\n \"admin_username\": \"{your-username}\",\n \"computer_name\": \"myVM\",\n },\n resource_group_name=\"myResourceGroup\",\n storage_profile={\n \"disk_controller_type\": azure_native.compute.DiskControllerTypes.NV_ME,\n \"image_reference\": {\n \"offer\": \"WindowsServer\",\n \"publisher\": \"MicrosoftWindowsServer\",\n \"sku\": \"2016-Datacenter\",\n \"version\": \"latest\",\n },\n \"os_disk\": {\n \"caching\": azure_native.compute.CachingTypes.READ_WRITE,\n \"create_option\": azure_native.compute.DiskCreateOptionTypes.FROM_IMAGE,\n \"managed_disk\": {\n \"storage_account_type\": azure_native.compute.StorageAccountTypes.STANDARD_LRS,\n },\n \"name\": \"myVMosdisk\",\n },\n },\n user_data=\"U29tZSBDdXN0b20gRGF0YQ==\",\n vm_name=\"myVM\")\n\n```\n\n```yaml\nresources:\n virtualMachine:\n type: azure-native:compute:VirtualMachine\n properties:\n diagnosticsProfile:\n bootDiagnostics:\n enabled: true\n storageUri: http://{existing-storage-account-name}.blob.core.windows.net\n hardwareProfile:\n vmSize: Standard_D4_v3\n location: westus\n networkProfile:\n networkInterfaces:\n - id: /subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\n primary: true\n osProfile:\n adminPassword: '{your-password}'\n adminUsername: '{your-username}'\n computerName: myVM\n resourceGroupName: myResourceGroup\n storageProfile:\n diskControllerType: NVMe\n imageReference:\n offer: WindowsServer\n publisher: MicrosoftWindowsServer\n sku: 2016-Datacenter\n version: latest\n osDisk:\n caching: ReadWrite\n createOption: FromImage\n managedDisk:\n storageAccountType: Standard_LRS\n name: myVMosdisk\n userData: U29tZSBDdXN0b20gRGF0YQ==\n vmName: myVM\n\n```\n\n{{% /example %}}\n{{% example %}}\n### Create a VM with HibernationEnabled\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing AzureNative = Pulumi.AzureNative;\n\nreturn await Deployment.RunAsync(() => \n{\n var virtualMachine = new AzureNative.Compute.VirtualMachine(\"virtualMachine\", new()\n {\n AdditionalCapabilities = new AzureNative.Compute.Inputs.AdditionalCapabilitiesArgs\n {\n HibernationEnabled = true,\n },\n DiagnosticsProfile = new AzureNative.Compute.Inputs.DiagnosticsProfileArgs\n {\n BootDiagnostics = new AzureNative.Compute.Inputs.BootDiagnosticsArgs\n {\n Enabled = true,\n StorageUri = \"http://{existing-storage-account-name}.blob.core.windows.net\",\n },\n },\n HardwareProfile = new AzureNative.Compute.Inputs.HardwareProfileArgs\n {\n VmSize = AzureNative.Compute.VirtualMachineSizeTypes.Standard_D2s_v3,\n },\n Location = \"eastus2euap\",\n NetworkProfile = new AzureNative.Compute.Inputs.NetworkProfileArgs\n {\n NetworkInterfaces = new[]\n {\n new AzureNative.Compute.Inputs.NetworkInterfaceReferenceArgs\n {\n Id = \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\",\n Primary = true,\n },\n },\n },\n OsProfile = new AzureNative.Compute.Inputs.OSProfileArgs\n {\n AdminPassword = \"{your-password}\",\n AdminUsername = \"{your-username}\",\n ComputerName = \"{vm-name}\",\n },\n ResourceGroupName = \"myResourceGroup\",\n StorageProfile = new AzureNative.Compute.Inputs.StorageProfileArgs\n {\n ImageReference = new AzureNative.Compute.Inputs.ImageReferenceArgs\n {\n Offer = \"WindowsServer\",\n Publisher = \"MicrosoftWindowsServer\",\n Sku = \"2019-Datacenter\",\n Version = \"latest\",\n },\n OsDisk = new AzureNative.Compute.Inputs.OSDiskArgs\n {\n Caching = AzureNative.Compute.CachingTypes.ReadWrite,\n CreateOption = AzureNative.Compute.DiskCreateOptionTypes.FromImage,\n ManagedDisk = new AzureNative.Compute.Inputs.ManagedDiskParametersArgs\n {\n StorageAccountType = AzureNative.Compute.StorageAccountTypes.Standard_LRS,\n },\n Name = \"vmOSdisk\",\n },\n },\n VmName = \"{vm-name}\",\n });\n\n});\n\n\n```\n\n```go\npackage main\n\nimport (\n\tcompute \"github.com/pulumi/pulumi-azure-native-sdk/compute/v2\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := compute.NewVirtualMachine(ctx, \"virtualMachine\", &compute.VirtualMachineArgs{\n\t\t\tAdditionalCapabilities: &compute.AdditionalCapabilitiesArgs{\n\t\t\t\tHibernationEnabled: pulumi.Bool(true),\n\t\t\t},\n\t\t\tDiagnosticsProfile: &compute.DiagnosticsProfileArgs{\n\t\t\t\tBootDiagnostics: &compute.BootDiagnosticsArgs{\n\t\t\t\t\tEnabled: pulumi.Bool(true),\n\t\t\t\t\tStorageUri: pulumi.String(\"http://{existing-storage-account-name}.blob.core.windows.net\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tHardwareProfile: &compute.HardwareProfileArgs{\n\t\t\t\tVmSize: pulumi.String(compute.VirtualMachineSizeTypes_Standard_D2s_v3),\n\t\t\t},\n\t\t\tLocation: pulumi.String(\"eastus2euap\"),\n\t\t\tNetworkProfile: &compute.NetworkProfileArgs{\n\t\t\t\tNetworkInterfaces: compute.NetworkInterfaceReferenceArray{\n\t\t\t\t\t&compute.NetworkInterfaceReferenceArgs{\n\t\t\t\t\t\tId: pulumi.String(\"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\"),\n\t\t\t\t\t\tPrimary: pulumi.Bool(true),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tOsProfile: &compute.OSProfileArgs{\n\t\t\t\tAdminPassword: pulumi.String(\"{your-password}\"),\n\t\t\t\tAdminUsername: pulumi.String(\"{your-username}\"),\n\t\t\t\tComputerName: pulumi.String(\"{vm-name}\"),\n\t\t\t},\n\t\t\tResourceGroupName: pulumi.String(\"myResourceGroup\"),\n\t\t\tStorageProfile: &compute.StorageProfileArgs{\n\t\t\t\tImageReference: &compute.ImageReferenceArgs{\n\t\t\t\t\tOffer: pulumi.String(\"WindowsServer\"),\n\t\t\t\t\tPublisher: pulumi.String(\"MicrosoftWindowsServer\"),\n\t\t\t\t\tSku: pulumi.String(\"2019-Datacenter\"),\n\t\t\t\t\tVersion: pulumi.String(\"latest\"),\n\t\t\t\t},\n\t\t\t\tOsDisk: &compute.OSDiskArgs{\n\t\t\t\t\tCaching: compute.CachingTypesReadWrite,\n\t\t\t\t\tCreateOption: pulumi.String(compute.DiskCreateOptionTypesFromImage),\n\t\t\t\t\tManagedDisk: &compute.ManagedDiskParametersArgs{\n\t\t\t\t\t\tStorageAccountType: pulumi.String(compute.StorageAccountTypes_Standard_LRS),\n\t\t\t\t\t},\n\t\t\t\t\tName: pulumi.String(\"vmOSdisk\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tVmName: pulumi.String(\"{vm-name}\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n\n```\n\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azurenative.compute.VirtualMachine;\nimport com.pulumi.azurenative.compute.VirtualMachineArgs;\nimport com.pulumi.azurenative.compute.inputs.AdditionalCapabilitiesArgs;\nimport com.pulumi.azurenative.compute.inputs.DiagnosticsProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.BootDiagnosticsArgs;\nimport com.pulumi.azurenative.compute.inputs.HardwareProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.NetworkProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.OSProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.StorageProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.ImageReferenceArgs;\nimport com.pulumi.azurenative.compute.inputs.OSDiskArgs;\nimport com.pulumi.azurenative.compute.inputs.ManagedDiskParametersArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var virtualMachine = new VirtualMachine(\"virtualMachine\", VirtualMachineArgs.builder()\n .additionalCapabilities(AdditionalCapabilitiesArgs.builder()\n .hibernationEnabled(true)\n .build())\n .diagnosticsProfile(DiagnosticsProfileArgs.builder()\n .bootDiagnostics(BootDiagnosticsArgs.builder()\n .enabled(true)\n .storageUri(\"http://{existing-storage-account-name}.blob.core.windows.net\")\n .build())\n .build())\n .hardwareProfile(HardwareProfileArgs.builder()\n .vmSize(\"Standard_D2s_v3\")\n .build())\n .location(\"eastus2euap\")\n .networkProfile(NetworkProfileArgs.builder()\n .networkInterfaces(NetworkInterfaceReferenceArgs.builder()\n .id(\"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\")\n .primary(true)\n .build())\n .build())\n .osProfile(OSProfileArgs.builder()\n .adminPassword(\"{your-password}\")\n .adminUsername(\"{your-username}\")\n .computerName(\"{vm-name}\")\n .build())\n .resourceGroupName(\"myResourceGroup\")\n .storageProfile(StorageProfileArgs.builder()\n .imageReference(ImageReferenceArgs.builder()\n .offer(\"WindowsServer\")\n .publisher(\"MicrosoftWindowsServer\")\n .sku(\"2019-Datacenter\")\n .version(\"latest\")\n .build())\n .osDisk(OSDiskArgs.builder()\n .caching(\"ReadWrite\")\n .createOption(\"FromImage\")\n .managedDisk(ManagedDiskParametersArgs.builder()\n .storageAccountType(\"Standard_LRS\")\n .build())\n .name(\"vmOSdisk\")\n .build())\n .build())\n .vmName(\"{vm-name}\")\n .build());\n\n }\n}\n\n```\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azure_native from \"@pulumi/azure-native\";\n\nconst virtualMachine = new azure_native.compute.VirtualMachine(\"virtualMachine\", {\n additionalCapabilities: {\n hibernationEnabled: true,\n },\n diagnosticsProfile: {\n bootDiagnostics: {\n enabled: true,\n storageUri: \"http://{existing-storage-account-name}.blob.core.windows.net\",\n },\n },\n hardwareProfile: {\n vmSize: azure_native.compute.VirtualMachineSizeTypes.Standard_D2s_v3,\n },\n location: \"eastus2euap\",\n networkProfile: {\n networkInterfaces: [{\n id: \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\",\n primary: true,\n }],\n },\n osProfile: {\n adminPassword: \"{your-password}\",\n adminUsername: \"{your-username}\",\n computerName: \"{vm-name}\",\n },\n resourceGroupName: \"myResourceGroup\",\n storageProfile: {\n imageReference: {\n offer: \"WindowsServer\",\n publisher: \"MicrosoftWindowsServer\",\n sku: \"2019-Datacenter\",\n version: \"latest\",\n },\n osDisk: {\n caching: azure_native.compute.CachingTypes.ReadWrite,\n createOption: azure_native.compute.DiskCreateOptionTypes.FromImage,\n managedDisk: {\n storageAccountType: azure_native.compute.StorageAccountTypes.Standard_LRS,\n },\n name: \"vmOSdisk\",\n },\n },\n vmName: \"{vm-name}\",\n});\n\n```\n\n```python\nimport pulumi\nimport pulumi_azure_native as azure_native\n\nvirtual_machine = azure_native.compute.VirtualMachine(\"virtualMachine\",\n additional_capabilities={\n \"hibernation_enabled\": True,\n },\n diagnostics_profile={\n \"boot_diagnostics\": {\n \"enabled\": True,\n \"storage_uri\": \"http://{existing-storage-account-name}.blob.core.windows.net\",\n },\n },\n hardware_profile={\n \"vm_size\": azure_native.compute.VirtualMachineSizeTypes.STANDARD_D2S_V3,\n },\n location=\"eastus2euap\",\n network_profile={\n \"network_interfaces\": [{\n \"id\": \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\",\n \"primary\": True,\n }],\n },\n os_profile={\n \"admin_password\": \"{your-password}\",\n \"admin_username\": \"{your-username}\",\n \"computer_name\": \"{vm-name}\",\n },\n resource_group_name=\"myResourceGroup\",\n storage_profile={\n \"image_reference\": {\n \"offer\": \"WindowsServer\",\n \"publisher\": \"MicrosoftWindowsServer\",\n \"sku\": \"2019-Datacenter\",\n \"version\": \"latest\",\n },\n \"os_disk\": {\n \"caching\": azure_native.compute.CachingTypes.READ_WRITE,\n \"create_option\": azure_native.compute.DiskCreateOptionTypes.FROM_IMAGE,\n \"managed_disk\": {\n \"storage_account_type\": azure_native.compute.StorageAccountTypes.STANDARD_LRS,\n },\n \"name\": \"vmOSdisk\",\n },\n },\n vm_name=\"{vm-name}\")\n\n```\n\n```yaml\nresources:\n virtualMachine:\n type: azure-native:compute:VirtualMachine\n properties:\n additionalCapabilities:\n hibernationEnabled: true\n diagnosticsProfile:\n bootDiagnostics:\n enabled: true\n storageUri: http://{existing-storage-account-name}.blob.core.windows.net\n hardwareProfile:\n vmSize: Standard_D2s_v3\n location: eastus2euap\n networkProfile:\n networkInterfaces:\n - id: /subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\n primary: true\n osProfile:\n adminPassword: '{your-password}'\n adminUsername: '{your-username}'\n computerName: '{vm-name}'\n resourceGroupName: myResourceGroup\n storageProfile:\n imageReference:\n offer: WindowsServer\n publisher: MicrosoftWindowsServer\n sku: 2019-Datacenter\n version: latest\n osDisk:\n caching: ReadWrite\n createOption: FromImage\n managedDisk:\n storageAccountType: Standard_LRS\n name: vmOSdisk\n vmName: '{vm-name}'\n\n```\n\n{{% /example %}}\n{{% example %}}\n### Create a VM with Uefi Settings of secureBoot and vTPM.\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing AzureNative = Pulumi.AzureNative;\n\nreturn await Deployment.RunAsync(() => \n{\n var virtualMachine = new AzureNative.Compute.VirtualMachine(\"virtualMachine\", new()\n {\n HardwareProfile = new AzureNative.Compute.Inputs.HardwareProfileArgs\n {\n VmSize = AzureNative.Compute.VirtualMachineSizeTypes.Standard_D2s_v3,\n },\n Location = \"westus\",\n NetworkProfile = new AzureNative.Compute.Inputs.NetworkProfileArgs\n {\n NetworkInterfaces = new[]\n {\n new AzureNative.Compute.Inputs.NetworkInterfaceReferenceArgs\n {\n Id = \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\",\n Primary = true,\n },\n },\n },\n OsProfile = new AzureNative.Compute.Inputs.OSProfileArgs\n {\n AdminPassword = \"{your-password}\",\n AdminUsername = \"{your-username}\",\n ComputerName = \"myVM\",\n },\n ResourceGroupName = \"myResourceGroup\",\n SecurityProfile = new AzureNative.Compute.Inputs.SecurityProfileArgs\n {\n SecurityType = AzureNative.Compute.SecurityTypes.TrustedLaunch,\n UefiSettings = new AzureNative.Compute.Inputs.UefiSettingsArgs\n {\n SecureBootEnabled = true,\n VTpmEnabled = true,\n },\n },\n StorageProfile = new AzureNative.Compute.Inputs.StorageProfileArgs\n {\n ImageReference = new AzureNative.Compute.Inputs.ImageReferenceArgs\n {\n Offer = \"windowsserver-gen2preview-preview\",\n Publisher = \"MicrosoftWindowsServer\",\n Sku = \"windows10-tvm\",\n Version = \"18363.592.2001092016\",\n },\n OsDisk = new AzureNative.Compute.Inputs.OSDiskArgs\n {\n Caching = AzureNative.Compute.CachingTypes.ReadOnly,\n CreateOption = AzureNative.Compute.DiskCreateOptionTypes.FromImage,\n ManagedDisk = new AzureNative.Compute.Inputs.ManagedDiskParametersArgs\n {\n StorageAccountType = AzureNative.Compute.StorageAccountTypes.StandardSSD_LRS,\n },\n Name = \"myVMosdisk\",\n },\n },\n VmName = \"myVM\",\n });\n\n});\n\n\n```\n\n```go\npackage main\n\nimport (\n\tcompute \"github.com/pulumi/pulumi-azure-native-sdk/compute/v2\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := compute.NewVirtualMachine(ctx, \"virtualMachine\", &compute.VirtualMachineArgs{\n\t\t\tHardwareProfile: &compute.HardwareProfileArgs{\n\t\t\t\tVmSize: pulumi.String(compute.VirtualMachineSizeTypes_Standard_D2s_v3),\n\t\t\t},\n\t\t\tLocation: pulumi.String(\"westus\"),\n\t\t\tNetworkProfile: &compute.NetworkProfileArgs{\n\t\t\t\tNetworkInterfaces: compute.NetworkInterfaceReferenceArray{\n\t\t\t\t\t&compute.NetworkInterfaceReferenceArgs{\n\t\t\t\t\t\tId: pulumi.String(\"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\"),\n\t\t\t\t\t\tPrimary: pulumi.Bool(true),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tOsProfile: &compute.OSProfileArgs{\n\t\t\t\tAdminPassword: pulumi.String(\"{your-password}\"),\n\t\t\t\tAdminUsername: pulumi.String(\"{your-username}\"),\n\t\t\t\tComputerName: pulumi.String(\"myVM\"),\n\t\t\t},\n\t\t\tResourceGroupName: pulumi.String(\"myResourceGroup\"),\n\t\t\tSecurityProfile: &compute.SecurityProfileArgs{\n\t\t\t\tSecurityType: pulumi.String(compute.SecurityTypesTrustedLaunch),\n\t\t\t\tUefiSettings: &compute.UefiSettingsArgs{\n\t\t\t\t\tSecureBootEnabled: pulumi.Bool(true),\n\t\t\t\t\tVTpmEnabled: pulumi.Bool(true),\n\t\t\t\t},\n\t\t\t},\n\t\t\tStorageProfile: &compute.StorageProfileArgs{\n\t\t\t\tImageReference: &compute.ImageReferenceArgs{\n\t\t\t\t\tOffer: pulumi.String(\"windowsserver-gen2preview-preview\"),\n\t\t\t\t\tPublisher: pulumi.String(\"MicrosoftWindowsServer\"),\n\t\t\t\t\tSku: pulumi.String(\"windows10-tvm\"),\n\t\t\t\t\tVersion: pulumi.String(\"18363.592.2001092016\"),\n\t\t\t\t},\n\t\t\t\tOsDisk: &compute.OSDiskArgs{\n\t\t\t\t\tCaching: compute.CachingTypesReadOnly,\n\t\t\t\t\tCreateOption: pulumi.String(compute.DiskCreateOptionTypesFromImage),\n\t\t\t\t\tManagedDisk: &compute.ManagedDiskParametersArgs{\n\t\t\t\t\t\tStorageAccountType: pulumi.String(compute.StorageAccountTypes_StandardSSD_LRS),\n\t\t\t\t\t},\n\t\t\t\t\tName: pulumi.String(\"myVMosdisk\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tVmName: pulumi.String(\"myVM\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n\n```\n\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azurenative.compute.VirtualMachine;\nimport com.pulumi.azurenative.compute.VirtualMachineArgs;\nimport com.pulumi.azurenative.compute.inputs.HardwareProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.NetworkProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.OSProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.SecurityProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.UefiSettingsArgs;\nimport com.pulumi.azurenative.compute.inputs.StorageProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.ImageReferenceArgs;\nimport com.pulumi.azurenative.compute.inputs.OSDiskArgs;\nimport com.pulumi.azurenative.compute.inputs.ManagedDiskParametersArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var virtualMachine = new VirtualMachine(\"virtualMachine\", VirtualMachineArgs.builder()\n .hardwareProfile(HardwareProfileArgs.builder()\n .vmSize(\"Standard_D2s_v3\")\n .build())\n .location(\"westus\")\n .networkProfile(NetworkProfileArgs.builder()\n .networkInterfaces(NetworkInterfaceReferenceArgs.builder()\n .id(\"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\")\n .primary(true)\n .build())\n .build())\n .osProfile(OSProfileArgs.builder()\n .adminPassword(\"{your-password}\")\n .adminUsername(\"{your-username}\")\n .computerName(\"myVM\")\n .build())\n .resourceGroupName(\"myResourceGroup\")\n .securityProfile(SecurityProfileArgs.builder()\n .securityType(\"TrustedLaunch\")\n .uefiSettings(UefiSettingsArgs.builder()\n .secureBootEnabled(true)\n .vTpmEnabled(true)\n .build())\n .build())\n .storageProfile(StorageProfileArgs.builder()\n .imageReference(ImageReferenceArgs.builder()\n .offer(\"windowsserver-gen2preview-preview\")\n .publisher(\"MicrosoftWindowsServer\")\n .sku(\"windows10-tvm\")\n .version(\"18363.592.2001092016\")\n .build())\n .osDisk(OSDiskArgs.builder()\n .caching(\"ReadOnly\")\n .createOption(\"FromImage\")\n .managedDisk(ManagedDiskParametersArgs.builder()\n .storageAccountType(\"StandardSSD_LRS\")\n .build())\n .name(\"myVMosdisk\")\n .build())\n .build())\n .vmName(\"myVM\")\n .build());\n\n }\n}\n\n```\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azure_native from \"@pulumi/azure-native\";\n\nconst virtualMachine = new azure_native.compute.VirtualMachine(\"virtualMachine\", {\n hardwareProfile: {\n vmSize: azure_native.compute.VirtualMachineSizeTypes.Standard_D2s_v3,\n },\n location: \"westus\",\n networkProfile: {\n networkInterfaces: [{\n id: \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\",\n primary: true,\n }],\n },\n osProfile: {\n adminPassword: \"{your-password}\",\n adminUsername: \"{your-username}\",\n computerName: \"myVM\",\n },\n resourceGroupName: \"myResourceGroup\",\n securityProfile: {\n securityType: azure_native.compute.SecurityTypes.TrustedLaunch,\n uefiSettings: {\n secureBootEnabled: true,\n vTpmEnabled: true,\n },\n },\n storageProfile: {\n imageReference: {\n offer: \"windowsserver-gen2preview-preview\",\n publisher: \"MicrosoftWindowsServer\",\n sku: \"windows10-tvm\",\n version: \"18363.592.2001092016\",\n },\n osDisk: {\n caching: azure_native.compute.CachingTypes.ReadOnly,\n createOption: azure_native.compute.DiskCreateOptionTypes.FromImage,\n managedDisk: {\n storageAccountType: azure_native.compute.StorageAccountTypes.StandardSSD_LRS,\n },\n name: \"myVMosdisk\",\n },\n },\n vmName: \"myVM\",\n});\n\n```\n\n```python\nimport pulumi\nimport pulumi_azure_native as azure_native\n\nvirtual_machine = azure_native.compute.VirtualMachine(\"virtualMachine\",\n hardware_profile={\n \"vm_size\": azure_native.compute.VirtualMachineSizeTypes.STANDARD_D2S_V3,\n },\n location=\"westus\",\n network_profile={\n \"network_interfaces\": [{\n \"id\": \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\",\n \"primary\": True,\n }],\n },\n os_profile={\n \"admin_password\": \"{your-password}\",\n \"admin_username\": \"{your-username}\",\n \"computer_name\": \"myVM\",\n },\n resource_group_name=\"myResourceGroup\",\n security_profile={\n \"security_type\": azure_native.compute.SecurityTypes.TRUSTED_LAUNCH,\n \"uefi_settings\": {\n \"secure_boot_enabled\": True,\n \"v_tpm_enabled\": True,\n },\n },\n storage_profile={\n \"image_reference\": {\n \"offer\": \"windowsserver-gen2preview-preview\",\n \"publisher\": \"MicrosoftWindowsServer\",\n \"sku\": \"windows10-tvm\",\n \"version\": \"18363.592.2001092016\",\n },\n \"os_disk\": {\n \"caching\": azure_native.compute.CachingTypes.READ_ONLY,\n \"create_option\": azure_native.compute.DiskCreateOptionTypes.FROM_IMAGE,\n \"managed_disk\": {\n \"storage_account_type\": azure_native.compute.StorageAccountTypes.STANDARD_SS_D_LRS,\n },\n \"name\": \"myVMosdisk\",\n },\n },\n vm_name=\"myVM\")\n\n```\n\n```yaml\nresources:\n virtualMachine:\n type: azure-native:compute:VirtualMachine\n properties:\n hardwareProfile:\n vmSize: Standard_D2s_v3\n location: westus\n networkProfile:\n networkInterfaces:\n - id: /subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\n primary: true\n osProfile:\n adminPassword: '{your-password}'\n adminUsername: '{your-username}'\n computerName: myVM\n resourceGroupName: myResourceGroup\n securityProfile:\n securityType: TrustedLaunch\n uefiSettings:\n secureBootEnabled: true\n vTpmEnabled: true\n storageProfile:\n imageReference:\n offer: windowsserver-gen2preview-preview\n publisher: MicrosoftWindowsServer\n sku: windows10-tvm\n version: 18363.592.2001092016\n osDisk:\n caching: ReadOnly\n createOption: FromImage\n managedDisk:\n storageAccountType: StandardSSD_LRS\n name: myVMosdisk\n vmName: myVM\n\n```\n\n{{% /example %}}\n{{% example %}}\n### Create a VM with UserData\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing AzureNative = Pulumi.AzureNative;\n\nreturn await Deployment.RunAsync(() => \n{\n var virtualMachine = new AzureNative.Compute.VirtualMachine(\"virtualMachine\", new()\n {\n DiagnosticsProfile = new AzureNative.Compute.Inputs.DiagnosticsProfileArgs\n {\n BootDiagnostics = new AzureNative.Compute.Inputs.BootDiagnosticsArgs\n {\n Enabled = true,\n StorageUri = \"http://{existing-storage-account-name}.blob.core.windows.net\",\n },\n },\n HardwareProfile = new AzureNative.Compute.Inputs.HardwareProfileArgs\n {\n VmSize = AzureNative.Compute.VirtualMachineSizeTypes.Standard_D1_v2,\n },\n Location = \"westus\",\n NetworkProfile = new AzureNative.Compute.Inputs.NetworkProfileArgs\n {\n NetworkInterfaces = new[]\n {\n new AzureNative.Compute.Inputs.NetworkInterfaceReferenceArgs\n {\n Id = \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\",\n Primary = true,\n },\n },\n },\n OsProfile = new AzureNative.Compute.Inputs.OSProfileArgs\n {\n AdminPassword = \"{your-password}\",\n AdminUsername = \"{your-username}\",\n ComputerName = \"{vm-name}\",\n },\n ResourceGroupName = \"myResourceGroup\",\n StorageProfile = new AzureNative.Compute.Inputs.StorageProfileArgs\n {\n ImageReference = new AzureNative.Compute.Inputs.ImageReferenceArgs\n {\n Offer = \"WindowsServer\",\n Publisher = \"MicrosoftWindowsServer\",\n Sku = \"2016-Datacenter\",\n Version = \"latest\",\n },\n OsDisk = new AzureNative.Compute.Inputs.OSDiskArgs\n {\n Caching = AzureNative.Compute.CachingTypes.ReadWrite,\n CreateOption = AzureNative.Compute.DiskCreateOptionTypes.FromImage,\n ManagedDisk = new AzureNative.Compute.Inputs.ManagedDiskParametersArgs\n {\n StorageAccountType = AzureNative.Compute.StorageAccountTypes.Standard_LRS,\n },\n Name = \"vmOSdisk\",\n },\n },\n UserData = \"RXhhbXBsZSBVc2VyRGF0YQ==\",\n VmName = \"{vm-name}\",\n });\n\n});\n\n\n```\n\n```go\npackage main\n\nimport (\n\tcompute \"github.com/pulumi/pulumi-azure-native-sdk/compute/v2\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := compute.NewVirtualMachine(ctx, \"virtualMachine\", &compute.VirtualMachineArgs{\n\t\t\tDiagnosticsProfile: &compute.DiagnosticsProfileArgs{\n\t\t\t\tBootDiagnostics: &compute.BootDiagnosticsArgs{\n\t\t\t\t\tEnabled: pulumi.Bool(true),\n\t\t\t\t\tStorageUri: pulumi.String(\"http://{existing-storage-account-name}.blob.core.windows.net\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tHardwareProfile: &compute.HardwareProfileArgs{\n\t\t\t\tVmSize: pulumi.String(compute.VirtualMachineSizeTypes_Standard_D1_v2),\n\t\t\t},\n\t\t\tLocation: pulumi.String(\"westus\"),\n\t\t\tNetworkProfile: &compute.NetworkProfileArgs{\n\t\t\t\tNetworkInterfaces: compute.NetworkInterfaceReferenceArray{\n\t\t\t\t\t&compute.NetworkInterfaceReferenceArgs{\n\t\t\t\t\t\tId: pulumi.String(\"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\"),\n\t\t\t\t\t\tPrimary: pulumi.Bool(true),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tOsProfile: &compute.OSProfileArgs{\n\t\t\t\tAdminPassword: pulumi.String(\"{your-password}\"),\n\t\t\t\tAdminUsername: pulumi.String(\"{your-username}\"),\n\t\t\t\tComputerName: pulumi.String(\"{vm-name}\"),\n\t\t\t},\n\t\t\tResourceGroupName: pulumi.String(\"myResourceGroup\"),\n\t\t\tStorageProfile: &compute.StorageProfileArgs{\n\t\t\t\tImageReference: &compute.ImageReferenceArgs{\n\t\t\t\t\tOffer: pulumi.String(\"WindowsServer\"),\n\t\t\t\t\tPublisher: pulumi.String(\"MicrosoftWindowsServer\"),\n\t\t\t\t\tSku: pulumi.String(\"2016-Datacenter\"),\n\t\t\t\t\tVersion: pulumi.String(\"latest\"),\n\t\t\t\t},\n\t\t\t\tOsDisk: &compute.OSDiskArgs{\n\t\t\t\t\tCaching: compute.CachingTypesReadWrite,\n\t\t\t\t\tCreateOption: pulumi.String(compute.DiskCreateOptionTypesFromImage),\n\t\t\t\t\tManagedDisk: &compute.ManagedDiskParametersArgs{\n\t\t\t\t\t\tStorageAccountType: pulumi.String(compute.StorageAccountTypes_Standard_LRS),\n\t\t\t\t\t},\n\t\t\t\t\tName: pulumi.String(\"vmOSdisk\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tUserData: pulumi.String(\"RXhhbXBsZSBVc2VyRGF0YQ==\"),\n\t\t\tVmName: pulumi.String(\"{vm-name}\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n\n```\n\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azurenative.compute.VirtualMachine;\nimport com.pulumi.azurenative.compute.VirtualMachineArgs;\nimport com.pulumi.azurenative.compute.inputs.DiagnosticsProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.BootDiagnosticsArgs;\nimport com.pulumi.azurenative.compute.inputs.HardwareProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.NetworkProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.OSProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.StorageProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.ImageReferenceArgs;\nimport com.pulumi.azurenative.compute.inputs.OSDiskArgs;\nimport com.pulumi.azurenative.compute.inputs.ManagedDiskParametersArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var virtualMachine = new VirtualMachine(\"virtualMachine\", VirtualMachineArgs.builder()\n .diagnosticsProfile(DiagnosticsProfileArgs.builder()\n .bootDiagnostics(BootDiagnosticsArgs.builder()\n .enabled(true)\n .storageUri(\"http://{existing-storage-account-name}.blob.core.windows.net\")\n .build())\n .build())\n .hardwareProfile(HardwareProfileArgs.builder()\n .vmSize(\"Standard_D1_v2\")\n .build())\n .location(\"westus\")\n .networkProfile(NetworkProfileArgs.builder()\n .networkInterfaces(NetworkInterfaceReferenceArgs.builder()\n .id(\"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\")\n .primary(true)\n .build())\n .build())\n .osProfile(OSProfileArgs.builder()\n .adminPassword(\"{your-password}\")\n .adminUsername(\"{your-username}\")\n .computerName(\"{vm-name}\")\n .build())\n .resourceGroupName(\"myResourceGroup\")\n .storageProfile(StorageProfileArgs.builder()\n .imageReference(ImageReferenceArgs.builder()\n .offer(\"WindowsServer\")\n .publisher(\"MicrosoftWindowsServer\")\n .sku(\"2016-Datacenter\")\n .version(\"latest\")\n .build())\n .osDisk(OSDiskArgs.builder()\n .caching(\"ReadWrite\")\n .createOption(\"FromImage\")\n .managedDisk(ManagedDiskParametersArgs.builder()\n .storageAccountType(\"Standard_LRS\")\n .build())\n .name(\"vmOSdisk\")\n .build())\n .build())\n .userData(\"RXhhbXBsZSBVc2VyRGF0YQ==\")\n .vmName(\"{vm-name}\")\n .build());\n\n }\n}\n\n```\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azure_native from \"@pulumi/azure-native\";\n\nconst virtualMachine = new azure_native.compute.VirtualMachine(\"virtualMachine\", {\n diagnosticsProfile: {\n bootDiagnostics: {\n enabled: true,\n storageUri: \"http://{existing-storage-account-name}.blob.core.windows.net\",\n },\n },\n hardwareProfile: {\n vmSize: azure_native.compute.VirtualMachineSizeTypes.Standard_D1_v2,\n },\n location: \"westus\",\n networkProfile: {\n networkInterfaces: [{\n id: \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\",\n primary: true,\n }],\n },\n osProfile: {\n adminPassword: \"{your-password}\",\n adminUsername: \"{your-username}\",\n computerName: \"{vm-name}\",\n },\n resourceGroupName: \"myResourceGroup\",\n storageProfile: {\n imageReference: {\n offer: \"WindowsServer\",\n publisher: \"MicrosoftWindowsServer\",\n sku: \"2016-Datacenter\",\n version: \"latest\",\n },\n osDisk: {\n caching: azure_native.compute.CachingTypes.ReadWrite,\n createOption: azure_native.compute.DiskCreateOptionTypes.FromImage,\n managedDisk: {\n storageAccountType: azure_native.compute.StorageAccountTypes.Standard_LRS,\n },\n name: \"vmOSdisk\",\n },\n },\n userData: \"RXhhbXBsZSBVc2VyRGF0YQ==\",\n vmName: \"{vm-name}\",\n});\n\n```\n\n```python\nimport pulumi\nimport pulumi_azure_native as azure_native\n\nvirtual_machine = azure_native.compute.VirtualMachine(\"virtualMachine\",\n diagnostics_profile={\n \"boot_diagnostics\": {\n \"enabled\": True,\n \"storage_uri\": \"http://{existing-storage-account-name}.blob.core.windows.net\",\n },\n },\n hardware_profile={\n \"vm_size\": azure_native.compute.VirtualMachineSizeTypes.STANDARD_D1_V2,\n },\n location=\"westus\",\n network_profile={\n \"network_interfaces\": [{\n \"id\": \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\",\n \"primary\": True,\n }],\n },\n os_profile={\n \"admin_password\": \"{your-password}\",\n \"admin_username\": \"{your-username}\",\n \"computer_name\": \"{vm-name}\",\n },\n resource_group_name=\"myResourceGroup\",\n storage_profile={\n \"image_reference\": {\n \"offer\": \"WindowsServer\",\n \"publisher\": \"MicrosoftWindowsServer\",\n \"sku\": \"2016-Datacenter\",\n \"version\": \"latest\",\n },\n \"os_disk\": {\n \"caching\": azure_native.compute.CachingTypes.READ_WRITE,\n \"create_option\": azure_native.compute.DiskCreateOptionTypes.FROM_IMAGE,\n \"managed_disk\": {\n \"storage_account_type\": azure_native.compute.StorageAccountTypes.STANDARD_LRS,\n },\n \"name\": \"vmOSdisk\",\n },\n },\n user_data=\"RXhhbXBsZSBVc2VyRGF0YQ==\",\n vm_name=\"{vm-name}\")\n\n```\n\n```yaml\nresources:\n virtualMachine:\n type: azure-native:compute:VirtualMachine\n properties:\n diagnosticsProfile:\n bootDiagnostics:\n enabled: true\n storageUri: http://{existing-storage-account-name}.blob.core.windows.net\n hardwareProfile:\n vmSize: Standard_D1_v2\n location: westus\n networkProfile:\n networkInterfaces:\n - id: /subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\n primary: true\n osProfile:\n adminPassword: '{your-password}'\n adminUsername: '{your-username}'\n computerName: '{vm-name}'\n resourceGroupName: myResourceGroup\n storageProfile:\n imageReference:\n offer: WindowsServer\n publisher: MicrosoftWindowsServer\n sku: 2016-Datacenter\n version: latest\n osDisk:\n caching: ReadWrite\n createOption: FromImage\n managedDisk:\n storageAccountType: Standard_LRS\n name: vmOSdisk\n userData: RXhhbXBsZSBVc2VyRGF0YQ==\n vmName: '{vm-name}'\n\n```\n\n{{% /example %}}\n{{% example %}}\n### Create a VM with VM Size Properties\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing AzureNative = Pulumi.AzureNative;\n\nreturn await Deployment.RunAsync(() => \n{\n var virtualMachine = new AzureNative.Compute.VirtualMachine(\"virtualMachine\", new()\n {\n DiagnosticsProfile = new AzureNative.Compute.Inputs.DiagnosticsProfileArgs\n {\n BootDiagnostics = new AzureNative.Compute.Inputs.BootDiagnosticsArgs\n {\n Enabled = true,\n StorageUri = \"http://{existing-storage-account-name}.blob.core.windows.net\",\n },\n },\n HardwareProfile = new AzureNative.Compute.Inputs.HardwareProfileArgs\n {\n VmSize = AzureNative.Compute.VirtualMachineSizeTypes.Standard_D4_v3,\n VmSizeProperties = new AzureNative.Compute.Inputs.VMSizePropertiesArgs\n {\n VCPUsAvailable = 1,\n VCPUsPerCore = 1,\n },\n },\n Location = \"westus\",\n NetworkProfile = new AzureNative.Compute.Inputs.NetworkProfileArgs\n {\n NetworkInterfaces = new[]\n {\n new AzureNative.Compute.Inputs.NetworkInterfaceReferenceArgs\n {\n Id = \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\",\n Primary = true,\n },\n },\n },\n OsProfile = new AzureNative.Compute.Inputs.OSProfileArgs\n {\n AdminPassword = \"{your-password}\",\n AdminUsername = \"{your-username}\",\n ComputerName = \"myVM\",\n },\n ResourceGroupName = \"myResourceGroup\",\n StorageProfile = new AzureNative.Compute.Inputs.StorageProfileArgs\n {\n ImageReference = new AzureNative.Compute.Inputs.ImageReferenceArgs\n {\n Offer = \"WindowsServer\",\n Publisher = \"MicrosoftWindowsServer\",\n Sku = \"2016-Datacenter\",\n Version = \"latest\",\n },\n OsDisk = new AzureNative.Compute.Inputs.OSDiskArgs\n {\n Caching = AzureNative.Compute.CachingTypes.ReadWrite,\n CreateOption = AzureNative.Compute.DiskCreateOptionTypes.FromImage,\n ManagedDisk = new AzureNative.Compute.Inputs.ManagedDiskParametersArgs\n {\n StorageAccountType = AzureNative.Compute.StorageAccountTypes.Standard_LRS,\n },\n Name = \"myVMosdisk\",\n },\n },\n UserData = \"U29tZSBDdXN0b20gRGF0YQ==\",\n VmName = \"myVM\",\n });\n\n});\n\n\n```\n\n```go\npackage main\n\nimport (\n\tcompute \"github.com/pulumi/pulumi-azure-native-sdk/compute/v2\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := compute.NewVirtualMachine(ctx, \"virtualMachine\", &compute.VirtualMachineArgs{\n\t\t\tDiagnosticsProfile: &compute.DiagnosticsProfileArgs{\n\t\t\t\tBootDiagnostics: &compute.BootDiagnosticsArgs{\n\t\t\t\t\tEnabled: pulumi.Bool(true),\n\t\t\t\t\tStorageUri: pulumi.String(\"http://{existing-storage-account-name}.blob.core.windows.net\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tHardwareProfile: &compute.HardwareProfileArgs{\n\t\t\t\tVmSize: pulumi.String(compute.VirtualMachineSizeTypes_Standard_D4_v3),\n\t\t\t\tVmSizeProperties: &compute.VMSizePropertiesArgs{\n\t\t\t\t\tVCPUsAvailable: pulumi.Int(1),\n\t\t\t\t\tVCPUsPerCore: pulumi.Int(1),\n\t\t\t\t},\n\t\t\t},\n\t\t\tLocation: pulumi.String(\"westus\"),\n\t\t\tNetworkProfile: &compute.NetworkProfileArgs{\n\t\t\t\tNetworkInterfaces: compute.NetworkInterfaceReferenceArray{\n\t\t\t\t\t&compute.NetworkInterfaceReferenceArgs{\n\t\t\t\t\t\tId: pulumi.String(\"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\"),\n\t\t\t\t\t\tPrimary: pulumi.Bool(true),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tOsProfile: &compute.OSProfileArgs{\n\t\t\t\tAdminPassword: pulumi.String(\"{your-password}\"),\n\t\t\t\tAdminUsername: pulumi.String(\"{your-username}\"),\n\t\t\t\tComputerName: pulumi.String(\"myVM\"),\n\t\t\t},\n\t\t\tResourceGroupName: pulumi.String(\"myResourceGroup\"),\n\t\t\tStorageProfile: &compute.StorageProfileArgs{\n\t\t\t\tImageReference: &compute.ImageReferenceArgs{\n\t\t\t\t\tOffer: pulumi.String(\"WindowsServer\"),\n\t\t\t\t\tPublisher: pulumi.String(\"MicrosoftWindowsServer\"),\n\t\t\t\t\tSku: pulumi.String(\"2016-Datacenter\"),\n\t\t\t\t\tVersion: pulumi.String(\"latest\"),\n\t\t\t\t},\n\t\t\t\tOsDisk: &compute.OSDiskArgs{\n\t\t\t\t\tCaching: compute.CachingTypesReadWrite,\n\t\t\t\t\tCreateOption: pulumi.String(compute.DiskCreateOptionTypesFromImage),\n\t\t\t\t\tManagedDisk: &compute.ManagedDiskParametersArgs{\n\t\t\t\t\t\tStorageAccountType: pulumi.String(compute.StorageAccountTypes_Standard_LRS),\n\t\t\t\t\t},\n\t\t\t\t\tName: pulumi.String(\"myVMosdisk\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tUserData: pulumi.String(\"U29tZSBDdXN0b20gRGF0YQ==\"),\n\t\t\tVmName: pulumi.String(\"myVM\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n\n```\n\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azurenative.compute.VirtualMachine;\nimport com.pulumi.azurenative.compute.VirtualMachineArgs;\nimport com.pulumi.azurenative.compute.inputs.DiagnosticsProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.BootDiagnosticsArgs;\nimport com.pulumi.azurenative.compute.inputs.HardwareProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.VMSizePropertiesArgs;\nimport com.pulumi.azurenative.compute.inputs.NetworkProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.OSProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.StorageProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.ImageReferenceArgs;\nimport com.pulumi.azurenative.compute.inputs.OSDiskArgs;\nimport com.pulumi.azurenative.compute.inputs.ManagedDiskParametersArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var virtualMachine = new VirtualMachine(\"virtualMachine\", VirtualMachineArgs.builder()\n .diagnosticsProfile(DiagnosticsProfileArgs.builder()\n .bootDiagnostics(BootDiagnosticsArgs.builder()\n .enabled(true)\n .storageUri(\"http://{existing-storage-account-name}.blob.core.windows.net\")\n .build())\n .build())\n .hardwareProfile(HardwareProfileArgs.builder()\n .vmSize(\"Standard_D4_v3\")\n .vmSizeProperties(VMSizePropertiesArgs.builder()\n .vCPUsAvailable(1)\n .vCPUsPerCore(1)\n .build())\n .build())\n .location(\"westus\")\n .networkProfile(NetworkProfileArgs.builder()\n .networkInterfaces(NetworkInterfaceReferenceArgs.builder()\n .id(\"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\")\n .primary(true)\n .build())\n .build())\n .osProfile(OSProfileArgs.builder()\n .adminPassword(\"{your-password}\")\n .adminUsername(\"{your-username}\")\n .computerName(\"myVM\")\n .build())\n .resourceGroupName(\"myResourceGroup\")\n .storageProfile(StorageProfileArgs.builder()\n .imageReference(ImageReferenceArgs.builder()\n .offer(\"WindowsServer\")\n .publisher(\"MicrosoftWindowsServer\")\n .sku(\"2016-Datacenter\")\n .version(\"latest\")\n .build())\n .osDisk(OSDiskArgs.builder()\n .caching(\"ReadWrite\")\n .createOption(\"FromImage\")\n .managedDisk(ManagedDiskParametersArgs.builder()\n .storageAccountType(\"Standard_LRS\")\n .build())\n .name(\"myVMosdisk\")\n .build())\n .build())\n .userData(\"U29tZSBDdXN0b20gRGF0YQ==\")\n .vmName(\"myVM\")\n .build());\n\n }\n}\n\n```\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azure_native from \"@pulumi/azure-native\";\n\nconst virtualMachine = new azure_native.compute.VirtualMachine(\"virtualMachine\", {\n diagnosticsProfile: {\n bootDiagnostics: {\n enabled: true,\n storageUri: \"http://{existing-storage-account-name}.blob.core.windows.net\",\n },\n },\n hardwareProfile: {\n vmSize: azure_native.compute.VirtualMachineSizeTypes.Standard_D4_v3,\n vmSizeProperties: {\n vCPUsAvailable: 1,\n vCPUsPerCore: 1,\n },\n },\n location: \"westus\",\n networkProfile: {\n networkInterfaces: [{\n id: \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\",\n primary: true,\n }],\n },\n osProfile: {\n adminPassword: \"{your-password}\",\n adminUsername: \"{your-username}\",\n computerName: \"myVM\",\n },\n resourceGroupName: \"myResourceGroup\",\n storageProfile: {\n imageReference: {\n offer: \"WindowsServer\",\n publisher: \"MicrosoftWindowsServer\",\n sku: \"2016-Datacenter\",\n version: \"latest\",\n },\n osDisk: {\n caching: azure_native.compute.CachingTypes.ReadWrite,\n createOption: azure_native.compute.DiskCreateOptionTypes.FromImage,\n managedDisk: {\n storageAccountType: azure_native.compute.StorageAccountTypes.Standard_LRS,\n },\n name: \"myVMosdisk\",\n },\n },\n userData: \"U29tZSBDdXN0b20gRGF0YQ==\",\n vmName: \"myVM\",\n});\n\n```\n\n```python\nimport pulumi\nimport pulumi_azure_native as azure_native\n\nvirtual_machine = azure_native.compute.VirtualMachine(\"virtualMachine\",\n diagnostics_profile={\n \"boot_diagnostics\": {\n \"enabled\": True,\n \"storage_uri\": \"http://{existing-storage-account-name}.blob.core.windows.net\",\n },\n },\n hardware_profile={\n \"vm_size\": azure_native.compute.VirtualMachineSizeTypes.STANDARD_D4_V3,\n \"vm_size_properties\": {\n \"v_cpus_available\": 1,\n \"v_cpus_per_core\": 1,\n },\n },\n location=\"westus\",\n network_profile={\n \"network_interfaces\": [{\n \"id\": \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\",\n \"primary\": True,\n }],\n },\n os_profile={\n \"admin_password\": \"{your-password}\",\n \"admin_username\": \"{your-username}\",\n \"computer_name\": \"myVM\",\n },\n resource_group_name=\"myResourceGroup\",\n storage_profile={\n \"image_reference\": {\n \"offer\": \"WindowsServer\",\n \"publisher\": \"MicrosoftWindowsServer\",\n \"sku\": \"2016-Datacenter\",\n \"version\": \"latest\",\n },\n \"os_disk\": {\n \"caching\": azure_native.compute.CachingTypes.READ_WRITE,\n \"create_option\": azure_native.compute.DiskCreateOptionTypes.FROM_IMAGE,\n \"managed_disk\": {\n \"storage_account_type\": azure_native.compute.StorageAccountTypes.STANDARD_LRS,\n },\n \"name\": \"myVMosdisk\",\n },\n },\n user_data=\"U29tZSBDdXN0b20gRGF0YQ==\",\n vm_name=\"myVM\")\n\n```\n\n```yaml\nresources:\n virtualMachine:\n type: azure-native:compute:VirtualMachine\n properties:\n diagnosticsProfile:\n bootDiagnostics:\n enabled: true\n storageUri: http://{existing-storage-account-name}.blob.core.windows.net\n hardwareProfile:\n vmSize: Standard_D4_v3\n vmSizeProperties:\n vCPUsAvailable: 1\n vCPUsPerCore: 1\n location: westus\n networkProfile:\n networkInterfaces:\n - id: /subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\n primary: true\n osProfile:\n adminPassword: '{your-password}'\n adminUsername: '{your-username}'\n computerName: myVM\n resourceGroupName: myResourceGroup\n storageProfile:\n imageReference:\n offer: WindowsServer\n publisher: MicrosoftWindowsServer\n sku: 2016-Datacenter\n version: latest\n osDisk:\n caching: ReadWrite\n createOption: FromImage\n managedDisk:\n storageAccountType: Standard_LRS\n name: myVMosdisk\n userData: U29tZSBDdXN0b20gRGF0YQ==\n vmName: myVM\n\n```\n\n{{% /example %}}\n{{% example %}}\n### Create a VM with network interface configuration\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing AzureNative = Pulumi.AzureNative;\n\nreturn await Deployment.RunAsync(() => \n{\n var virtualMachine = new AzureNative.Compute.VirtualMachine(\"virtualMachine\", new()\n {\n HardwareProfile = new AzureNative.Compute.Inputs.HardwareProfileArgs\n {\n VmSize = AzureNative.Compute.VirtualMachineSizeTypes.Standard_D1_v2,\n },\n Location = \"westus\",\n NetworkProfile = new AzureNative.Compute.Inputs.NetworkProfileArgs\n {\n NetworkApiVersion = AzureNative.Compute.NetworkApiVersion.NetworkApiVersion_2020_11_01,\n NetworkInterfaceConfigurations = new[]\n {\n new AzureNative.Compute.Inputs.VirtualMachineNetworkInterfaceConfigurationArgs\n {\n DeleteOption = AzureNative.Compute.DeleteOptions.Delete,\n IpConfigurations = new[]\n {\n new AzureNative.Compute.Inputs.VirtualMachineNetworkInterfaceIPConfigurationArgs\n {\n Name = \"{ip-config-name}\",\n Primary = true,\n PublicIPAddressConfiguration = new AzureNative.Compute.Inputs.VirtualMachinePublicIPAddressConfigurationArgs\n {\n DeleteOption = AzureNative.Compute.DeleteOptions.Detach,\n Name = \"{publicIP-config-name}\",\n PublicIPAllocationMethod = AzureNative.Compute.PublicIPAllocationMethod.Static,\n Sku = new AzureNative.Compute.Inputs.PublicIPAddressSkuArgs\n {\n Name = AzureNative.Compute.PublicIPAddressSkuName.Basic,\n Tier = AzureNative.Compute.PublicIPAddressSkuTier.Global,\n },\n },\n },\n },\n Name = \"{nic-config-name}\",\n Primary = true,\n },\n },\n },\n OsProfile = new AzureNative.Compute.Inputs.OSProfileArgs\n {\n AdminPassword = \"{your-password}\",\n AdminUsername = \"{your-username}\",\n ComputerName = \"myVM\",\n },\n ResourceGroupName = \"myResourceGroup\",\n StorageProfile = new AzureNative.Compute.Inputs.StorageProfileArgs\n {\n ImageReference = new AzureNative.Compute.Inputs.ImageReferenceArgs\n {\n Offer = \"WindowsServer\",\n Publisher = \"MicrosoftWindowsServer\",\n Sku = \"2016-Datacenter\",\n Version = \"latest\",\n },\n OsDisk = new AzureNative.Compute.Inputs.OSDiskArgs\n {\n Caching = AzureNative.Compute.CachingTypes.ReadWrite,\n CreateOption = AzureNative.Compute.DiskCreateOptionTypes.FromImage,\n ManagedDisk = new AzureNative.Compute.Inputs.ManagedDiskParametersArgs\n {\n StorageAccountType = AzureNative.Compute.StorageAccountTypes.Standard_LRS,\n },\n Name = \"myVMosdisk\",\n },\n },\n VmName = \"myVM\",\n });\n\n});\n\n\n```\n\n```go\npackage main\n\nimport (\n\tcompute \"github.com/pulumi/pulumi-azure-native-sdk/compute/v2\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := compute.NewVirtualMachine(ctx, \"virtualMachine\", &compute.VirtualMachineArgs{\n\t\t\tHardwareProfile: &compute.HardwareProfileArgs{\n\t\t\t\tVmSize: pulumi.String(compute.VirtualMachineSizeTypes_Standard_D1_v2),\n\t\t\t},\n\t\t\tLocation: pulumi.String(\"westus\"),\n\t\t\tNetworkProfile: &compute.NetworkProfileArgs{\n\t\t\t\tNetworkApiVersion: pulumi.String(compute.NetworkApiVersion_2020_11_01),\n\t\t\t\tNetworkInterfaceConfigurations: compute.VirtualMachineNetworkInterfaceConfigurationArray{\n\t\t\t\t\t&compute.VirtualMachineNetworkInterfaceConfigurationArgs{\n\t\t\t\t\t\tDeleteOption: pulumi.String(compute.DeleteOptionsDelete),\n\t\t\t\t\t\tIpConfigurations: compute.VirtualMachineNetworkInterfaceIPConfigurationArray{\n\t\t\t\t\t\t\t&compute.VirtualMachineNetworkInterfaceIPConfigurationArgs{\n\t\t\t\t\t\t\t\tName: pulumi.String(\"{ip-config-name}\"),\n\t\t\t\t\t\t\t\tPrimary: pulumi.Bool(true),\n\t\t\t\t\t\t\t\tPublicIPAddressConfiguration: &compute.VirtualMachinePublicIPAddressConfigurationArgs{\n\t\t\t\t\t\t\t\t\tDeleteOption: pulumi.String(compute.DeleteOptionsDetach),\n\t\t\t\t\t\t\t\t\tName: pulumi.String(\"{publicIP-config-name}\"),\n\t\t\t\t\t\t\t\t\tPublicIPAllocationMethod: pulumi.String(compute.PublicIPAllocationMethodStatic),\n\t\t\t\t\t\t\t\t\tSku: &compute.PublicIPAddressSkuArgs{\n\t\t\t\t\t\t\t\t\t\tName: pulumi.String(compute.PublicIPAddressSkuNameBasic),\n\t\t\t\t\t\t\t\t\t\tTier: pulumi.String(compute.PublicIPAddressSkuTierGlobal),\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t},\n\t\t\t\t\t\tName: pulumi.String(\"{nic-config-name}\"),\n\t\t\t\t\t\tPrimary: pulumi.Bool(true),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tOsProfile: &compute.OSProfileArgs{\n\t\t\t\tAdminPassword: pulumi.String(\"{your-password}\"),\n\t\t\t\tAdminUsername: pulumi.String(\"{your-username}\"),\n\t\t\t\tComputerName: pulumi.String(\"myVM\"),\n\t\t\t},\n\t\t\tResourceGroupName: pulumi.String(\"myResourceGroup\"),\n\t\t\tStorageProfile: &compute.StorageProfileArgs{\n\t\t\t\tImageReference: &compute.ImageReferenceArgs{\n\t\t\t\t\tOffer: pulumi.String(\"WindowsServer\"),\n\t\t\t\t\tPublisher: pulumi.String(\"MicrosoftWindowsServer\"),\n\t\t\t\t\tSku: pulumi.String(\"2016-Datacenter\"),\n\t\t\t\t\tVersion: pulumi.String(\"latest\"),\n\t\t\t\t},\n\t\t\t\tOsDisk: &compute.OSDiskArgs{\n\t\t\t\t\tCaching: compute.CachingTypesReadWrite,\n\t\t\t\t\tCreateOption: pulumi.String(compute.DiskCreateOptionTypesFromImage),\n\t\t\t\t\tManagedDisk: &compute.ManagedDiskParametersArgs{\n\t\t\t\t\t\tStorageAccountType: pulumi.String(compute.StorageAccountTypes_Standard_LRS),\n\t\t\t\t\t},\n\t\t\t\t\tName: pulumi.String(\"myVMosdisk\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tVmName: pulumi.String(\"myVM\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n\n```\n\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azurenative.compute.VirtualMachine;\nimport com.pulumi.azurenative.compute.VirtualMachineArgs;\nimport com.pulumi.azurenative.compute.inputs.HardwareProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.NetworkProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.OSProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.StorageProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.ImageReferenceArgs;\nimport com.pulumi.azurenative.compute.inputs.OSDiskArgs;\nimport com.pulumi.azurenative.compute.inputs.ManagedDiskParametersArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var virtualMachine = new VirtualMachine(\"virtualMachine\", VirtualMachineArgs.builder()\n .hardwareProfile(HardwareProfileArgs.builder()\n .vmSize(\"Standard_D1_v2\")\n .build())\n .location(\"westus\")\n .networkProfile(NetworkProfileArgs.builder()\n .networkApiVersion(\"2020-11-01\")\n .networkInterfaceConfigurations(VirtualMachineNetworkInterfaceConfigurationArgs.builder()\n .deleteOption(\"Delete\")\n .ipConfigurations(VirtualMachineNetworkInterfaceIPConfigurationArgs.builder()\n .name(\"{ip-config-name}\")\n .primary(true)\n .publicIPAddressConfiguration(VirtualMachinePublicIPAddressConfigurationArgs.builder()\n .deleteOption(\"Detach\")\n .name(\"{publicIP-config-name}\")\n .publicIPAllocationMethod(\"Static\")\n .sku(PublicIPAddressSkuArgs.builder()\n .name(\"Basic\")\n .tier(\"Global\")\n .build())\n .build())\n .build())\n .name(\"{nic-config-name}\")\n .primary(true)\n .build())\n .build())\n .osProfile(OSProfileArgs.builder()\n .adminPassword(\"{your-password}\")\n .adminUsername(\"{your-username}\")\n .computerName(\"myVM\")\n .build())\n .resourceGroupName(\"myResourceGroup\")\n .storageProfile(StorageProfileArgs.builder()\n .imageReference(ImageReferenceArgs.builder()\n .offer(\"WindowsServer\")\n .publisher(\"MicrosoftWindowsServer\")\n .sku(\"2016-Datacenter\")\n .version(\"latest\")\n .build())\n .osDisk(OSDiskArgs.builder()\n .caching(\"ReadWrite\")\n .createOption(\"FromImage\")\n .managedDisk(ManagedDiskParametersArgs.builder()\n .storageAccountType(\"Standard_LRS\")\n .build())\n .name(\"myVMosdisk\")\n .build())\n .build())\n .vmName(\"myVM\")\n .build());\n\n }\n}\n\n```\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azure_native from \"@pulumi/azure-native\";\n\nconst virtualMachine = new azure_native.compute.VirtualMachine(\"virtualMachine\", {\n hardwareProfile: {\n vmSize: azure_native.compute.VirtualMachineSizeTypes.Standard_D1_v2,\n },\n location: \"westus\",\n networkProfile: {\n networkApiVersion: azure_native.compute.NetworkApiVersion.NetworkApiVersion_2020_11_01,\n networkInterfaceConfigurations: [{\n deleteOption: azure_native.compute.DeleteOptions.Delete,\n ipConfigurations: [{\n name: \"{ip-config-name}\",\n primary: true,\n publicIPAddressConfiguration: {\n deleteOption: azure_native.compute.DeleteOptions.Detach,\n name: \"{publicIP-config-name}\",\n publicIPAllocationMethod: azure_native.compute.PublicIPAllocationMethod.Static,\n sku: {\n name: azure_native.compute.PublicIPAddressSkuName.Basic,\n tier: azure_native.compute.PublicIPAddressSkuTier.Global,\n },\n },\n }],\n name: \"{nic-config-name}\",\n primary: true,\n }],\n },\n osProfile: {\n adminPassword: \"{your-password}\",\n adminUsername: \"{your-username}\",\n computerName: \"myVM\",\n },\n resourceGroupName: \"myResourceGroup\",\n storageProfile: {\n imageReference: {\n offer: \"WindowsServer\",\n publisher: \"MicrosoftWindowsServer\",\n sku: \"2016-Datacenter\",\n version: \"latest\",\n },\n osDisk: {\n caching: azure_native.compute.CachingTypes.ReadWrite,\n createOption: azure_native.compute.DiskCreateOptionTypes.FromImage,\n managedDisk: {\n storageAccountType: azure_native.compute.StorageAccountTypes.Standard_LRS,\n },\n name: \"myVMosdisk\",\n },\n },\n vmName: \"myVM\",\n});\n\n```\n\n```python\nimport pulumi\nimport pulumi_azure_native as azure_native\n\nvirtual_machine = azure_native.compute.VirtualMachine(\"virtualMachine\",\n hardware_profile={\n \"vm_size\": azure_native.compute.VirtualMachineSizeTypes.STANDARD_D1_V2,\n },\n location=\"westus\",\n network_profile={\n \"network_api_version\": azure_native.compute.NetworkApiVersion.NETWORK_API_VERSION_2020_11_01,\n \"network_interface_configurations\": [{\n \"delete_option\": azure_native.compute.DeleteOptions.DELETE,\n \"ip_configurations\": [{\n \"name\": \"{ip-config-name}\",\n \"primary\": True,\n \"public_ip_address_configuration\": {\n \"delete_option\": azure_native.compute.DeleteOptions.DETACH,\n \"name\": \"{publicIP-config-name}\",\n \"public_ip_allocation_method\": azure_native.compute.PublicIPAllocationMethod.STATIC,\n \"sku\": {\n \"name\": azure_native.compute.PublicIPAddressSkuName.BASIC,\n \"tier\": azure_native.compute.PublicIPAddressSkuTier.GLOBAL_,\n },\n },\n }],\n \"name\": \"{nic-config-name}\",\n \"primary\": True,\n }],\n },\n os_profile={\n \"admin_password\": \"{your-password}\",\n \"admin_username\": \"{your-username}\",\n \"computer_name\": \"myVM\",\n },\n resource_group_name=\"myResourceGroup\",\n storage_profile={\n \"image_reference\": {\n \"offer\": \"WindowsServer\",\n \"publisher\": \"MicrosoftWindowsServer\",\n \"sku\": \"2016-Datacenter\",\n \"version\": \"latest\",\n },\n \"os_disk\": {\n \"caching\": azure_native.compute.CachingTypes.READ_WRITE,\n \"create_option\": azure_native.compute.DiskCreateOptionTypes.FROM_IMAGE,\n \"managed_disk\": {\n \"storage_account_type\": azure_native.compute.StorageAccountTypes.STANDARD_LRS,\n },\n \"name\": \"myVMosdisk\",\n },\n },\n vm_name=\"myVM\")\n\n```\n\n```yaml\nresources:\n virtualMachine:\n type: azure-native:compute:VirtualMachine\n properties:\n hardwareProfile:\n vmSize: Standard_D1_v2\n location: westus\n networkProfile:\n networkApiVersion: 2020-11-01\n networkInterfaceConfigurations:\n - deleteOption: Delete\n ipConfigurations:\n - name: '{ip-config-name}'\n primary: true\n publicIPAddressConfiguration:\n deleteOption: Detach\n name: '{publicIP-config-name}'\n publicIPAllocationMethod: Static\n sku:\n name: Basic\n tier: Global\n name: '{nic-config-name}'\n primary: true\n osProfile:\n adminPassword: '{your-password}'\n adminUsername: '{your-username}'\n computerName: myVM\n resourceGroupName: myResourceGroup\n storageProfile:\n imageReference:\n offer: WindowsServer\n publisher: MicrosoftWindowsServer\n sku: 2016-Datacenter\n version: latest\n osDisk:\n caching: ReadWrite\n createOption: FromImage\n managedDisk:\n storageAccountType: Standard_LRS\n name: myVMosdisk\n vmName: myVM\n\n```\n\n{{% /example %}}\n{{% example %}}\n### Create a VM with securityType ConfidentialVM with Customer Managed Keys\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing AzureNative = Pulumi.AzureNative;\n\nreturn await Deployment.RunAsync(() => \n{\n var virtualMachine = new AzureNative.Compute.VirtualMachine(\"virtualMachine\", new()\n {\n HardwareProfile = new AzureNative.Compute.Inputs.HardwareProfileArgs\n {\n VmSize = \"Standard_DC2as_v5\",\n },\n Location = \"westus\",\n NetworkProfile = new AzureNative.Compute.Inputs.NetworkProfileArgs\n {\n NetworkInterfaces = new[]\n {\n new AzureNative.Compute.Inputs.NetworkInterfaceReferenceArgs\n {\n Id = \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\",\n Primary = true,\n },\n },\n },\n OsProfile = new AzureNative.Compute.Inputs.OSProfileArgs\n {\n AdminPassword = \"{your-password}\",\n AdminUsername = \"{your-username}\",\n ComputerName = \"myVM\",\n },\n ResourceGroupName = \"myResourceGroup\",\n SecurityProfile = new AzureNative.Compute.Inputs.SecurityProfileArgs\n {\n SecurityType = AzureNative.Compute.SecurityTypes.ConfidentialVM,\n UefiSettings = new AzureNative.Compute.Inputs.UefiSettingsArgs\n {\n SecureBootEnabled = true,\n VTpmEnabled = true,\n },\n },\n StorageProfile = new AzureNative.Compute.Inputs.StorageProfileArgs\n {\n ImageReference = new AzureNative.Compute.Inputs.ImageReferenceArgs\n {\n Offer = \"2019-datacenter-cvm\",\n Publisher = \"MicrosoftWindowsServer\",\n Sku = \"windows-cvm\",\n Version = \"17763.2183.2109130127\",\n },\n OsDisk = new AzureNative.Compute.Inputs.OSDiskArgs\n {\n Caching = AzureNative.Compute.CachingTypes.ReadOnly,\n CreateOption = AzureNative.Compute.DiskCreateOptionTypes.FromImage,\n ManagedDisk = new AzureNative.Compute.Inputs.ManagedDiskParametersArgs\n {\n SecurityProfile = new AzureNative.Compute.Inputs.VMDiskSecurityProfileArgs\n {\n DiskEncryptionSet = new AzureNative.Compute.Inputs.DiskEncryptionSetParametersArgs\n {\n Id = \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}\",\n },\n SecurityEncryptionType = AzureNative.Compute.SecurityEncryptionTypes.DiskWithVMGuestState,\n },\n StorageAccountType = AzureNative.Compute.StorageAccountTypes.StandardSSD_LRS,\n },\n Name = \"myVMosdisk\",\n },\n },\n VmName = \"myVM\",\n });\n\n});\n\n\n```\n\n```go\npackage main\n\nimport (\n\tcompute \"github.com/pulumi/pulumi-azure-native-sdk/compute/v2\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := compute.NewVirtualMachine(ctx, \"virtualMachine\", &compute.VirtualMachineArgs{\n\t\t\tHardwareProfile: &compute.HardwareProfileArgs{\n\t\t\t\tVmSize: pulumi.String(\"Standard_DC2as_v5\"),\n\t\t\t},\n\t\t\tLocation: pulumi.String(\"westus\"),\n\t\t\tNetworkProfile: &compute.NetworkProfileArgs{\n\t\t\t\tNetworkInterfaces: compute.NetworkInterfaceReferenceArray{\n\t\t\t\t\t&compute.NetworkInterfaceReferenceArgs{\n\t\t\t\t\t\tId: pulumi.String(\"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\"),\n\t\t\t\t\t\tPrimary: pulumi.Bool(true),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tOsProfile: &compute.OSProfileArgs{\n\t\t\t\tAdminPassword: pulumi.String(\"{your-password}\"),\n\t\t\t\tAdminUsername: pulumi.String(\"{your-username}\"),\n\t\t\t\tComputerName: pulumi.String(\"myVM\"),\n\t\t\t},\n\t\t\tResourceGroupName: pulumi.String(\"myResourceGroup\"),\n\t\t\tSecurityProfile: &compute.SecurityProfileArgs{\n\t\t\t\tSecurityType: pulumi.String(compute.SecurityTypesConfidentialVM),\n\t\t\t\tUefiSettings: &compute.UefiSettingsArgs{\n\t\t\t\t\tSecureBootEnabled: pulumi.Bool(true),\n\t\t\t\t\tVTpmEnabled: pulumi.Bool(true),\n\t\t\t\t},\n\t\t\t},\n\t\t\tStorageProfile: &compute.StorageProfileArgs{\n\t\t\t\tImageReference: &compute.ImageReferenceArgs{\n\t\t\t\t\tOffer: pulumi.String(\"2019-datacenter-cvm\"),\n\t\t\t\t\tPublisher: pulumi.String(\"MicrosoftWindowsServer\"),\n\t\t\t\t\tSku: pulumi.String(\"windows-cvm\"),\n\t\t\t\t\tVersion: pulumi.String(\"17763.2183.2109130127\"),\n\t\t\t\t},\n\t\t\t\tOsDisk: &compute.OSDiskArgs{\n\t\t\t\t\tCaching: compute.CachingTypesReadOnly,\n\t\t\t\t\tCreateOption: pulumi.String(compute.DiskCreateOptionTypesFromImage),\n\t\t\t\t\tManagedDisk: &compute.ManagedDiskParametersArgs{\n\t\t\t\t\t\tSecurityProfile: &compute.VMDiskSecurityProfileArgs{\n\t\t\t\t\t\t\tDiskEncryptionSet: &compute.DiskEncryptionSetParametersArgs{\n\t\t\t\t\t\t\t\tId: pulumi.String(\"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}\"),\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tSecurityEncryptionType: pulumi.String(compute.SecurityEncryptionTypesDiskWithVMGuestState),\n\t\t\t\t\t\t},\n\t\t\t\t\t\tStorageAccountType: pulumi.String(compute.StorageAccountTypes_StandardSSD_LRS),\n\t\t\t\t\t},\n\t\t\t\t\tName: pulumi.String(\"myVMosdisk\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tVmName: pulumi.String(\"myVM\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n\n```\n\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azurenative.compute.VirtualMachine;\nimport com.pulumi.azurenative.compute.VirtualMachineArgs;\nimport com.pulumi.azurenative.compute.inputs.HardwareProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.NetworkProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.OSProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.SecurityProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.UefiSettingsArgs;\nimport com.pulumi.azurenative.compute.inputs.StorageProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.ImageReferenceArgs;\nimport com.pulumi.azurenative.compute.inputs.OSDiskArgs;\nimport com.pulumi.azurenative.compute.inputs.ManagedDiskParametersArgs;\nimport com.pulumi.azurenative.compute.inputs.VMDiskSecurityProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.DiskEncryptionSetParametersArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var virtualMachine = new VirtualMachine(\"virtualMachine\", VirtualMachineArgs.builder()\n .hardwareProfile(HardwareProfileArgs.builder()\n .vmSize(\"Standard_DC2as_v5\")\n .build())\n .location(\"westus\")\n .networkProfile(NetworkProfileArgs.builder()\n .networkInterfaces(NetworkInterfaceReferenceArgs.builder()\n .id(\"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\")\n .primary(true)\n .build())\n .build())\n .osProfile(OSProfileArgs.builder()\n .adminPassword(\"{your-password}\")\n .adminUsername(\"{your-username}\")\n .computerName(\"myVM\")\n .build())\n .resourceGroupName(\"myResourceGroup\")\n .securityProfile(SecurityProfileArgs.builder()\n .securityType(\"ConfidentialVM\")\n .uefiSettings(UefiSettingsArgs.builder()\n .secureBootEnabled(true)\n .vTpmEnabled(true)\n .build())\n .build())\n .storageProfile(StorageProfileArgs.builder()\n .imageReference(ImageReferenceArgs.builder()\n .offer(\"2019-datacenter-cvm\")\n .publisher(\"MicrosoftWindowsServer\")\n .sku(\"windows-cvm\")\n .version(\"17763.2183.2109130127\")\n .build())\n .osDisk(OSDiskArgs.builder()\n .caching(\"ReadOnly\")\n .createOption(\"FromImage\")\n .managedDisk(ManagedDiskParametersArgs.builder()\n .securityProfile(VMDiskSecurityProfileArgs.builder()\n .diskEncryptionSet(DiskEncryptionSetParametersArgs.builder()\n .id(\"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}\")\n .build())\n .securityEncryptionType(\"DiskWithVMGuestState\")\n .build())\n .storageAccountType(\"StandardSSD_LRS\")\n .build())\n .name(\"myVMosdisk\")\n .build())\n .build())\n .vmName(\"myVM\")\n .build());\n\n }\n}\n\n```\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azure_native from \"@pulumi/azure-native\";\n\nconst virtualMachine = new azure_native.compute.VirtualMachine(\"virtualMachine\", {\n hardwareProfile: {\n vmSize: \"Standard_DC2as_v5\",\n },\n location: \"westus\",\n networkProfile: {\n networkInterfaces: [{\n id: \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\",\n primary: true,\n }],\n },\n osProfile: {\n adminPassword: \"{your-password}\",\n adminUsername: \"{your-username}\",\n computerName: \"myVM\",\n },\n resourceGroupName: \"myResourceGroup\",\n securityProfile: {\n securityType: azure_native.compute.SecurityTypes.ConfidentialVM,\n uefiSettings: {\n secureBootEnabled: true,\n vTpmEnabled: true,\n },\n },\n storageProfile: {\n imageReference: {\n offer: \"2019-datacenter-cvm\",\n publisher: \"MicrosoftWindowsServer\",\n sku: \"windows-cvm\",\n version: \"17763.2183.2109130127\",\n },\n osDisk: {\n caching: azure_native.compute.CachingTypes.ReadOnly,\n createOption: azure_native.compute.DiskCreateOptionTypes.FromImage,\n managedDisk: {\n securityProfile: {\n diskEncryptionSet: {\n id: \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}\",\n },\n securityEncryptionType: azure_native.compute.SecurityEncryptionTypes.DiskWithVMGuestState,\n },\n storageAccountType: azure_native.compute.StorageAccountTypes.StandardSSD_LRS,\n },\n name: \"myVMosdisk\",\n },\n },\n vmName: \"myVM\",\n});\n\n```\n\n```python\nimport pulumi\nimport pulumi_azure_native as azure_native\n\nvirtual_machine = azure_native.compute.VirtualMachine(\"virtualMachine\",\n hardware_profile={\n \"vm_size\": \"Standard_DC2as_v5\",\n },\n location=\"westus\",\n network_profile={\n \"network_interfaces\": [{\n \"id\": \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\",\n \"primary\": True,\n }],\n },\n os_profile={\n \"admin_password\": \"{your-password}\",\n \"admin_username\": \"{your-username}\",\n \"computer_name\": \"myVM\",\n },\n resource_group_name=\"myResourceGroup\",\n security_profile={\n \"security_type\": azure_native.compute.SecurityTypes.CONFIDENTIAL_VM,\n \"uefi_settings\": {\n \"secure_boot_enabled\": True,\n \"v_tpm_enabled\": True,\n },\n },\n storage_profile={\n \"image_reference\": {\n \"offer\": \"2019-datacenter-cvm\",\n \"publisher\": \"MicrosoftWindowsServer\",\n \"sku\": \"windows-cvm\",\n \"version\": \"17763.2183.2109130127\",\n },\n \"os_disk\": {\n \"caching\": azure_native.compute.CachingTypes.READ_ONLY,\n \"create_option\": azure_native.compute.DiskCreateOptionTypes.FROM_IMAGE,\n \"managed_disk\": {\n \"security_profile\": {\n \"disk_encryption_set\": {\n \"id\": \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}\",\n },\n \"security_encryption_type\": azure_native.compute.SecurityEncryptionTypes.DISK_WITH_VM_GUEST_STATE,\n },\n \"storage_account_type\": azure_native.compute.StorageAccountTypes.STANDARD_SS_D_LRS,\n },\n \"name\": \"myVMosdisk\",\n },\n },\n vm_name=\"myVM\")\n\n```\n\n```yaml\nresources:\n virtualMachine:\n type: azure-native:compute:VirtualMachine\n properties:\n hardwareProfile:\n vmSize: Standard_DC2as_v5\n location: westus\n networkProfile:\n networkInterfaces:\n - id: /subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\n primary: true\n osProfile:\n adminPassword: '{your-password}'\n adminUsername: '{your-username}'\n computerName: myVM\n resourceGroupName: myResourceGroup\n securityProfile:\n securityType: ConfidentialVM\n uefiSettings:\n secureBootEnabled: true\n vTpmEnabled: true\n storageProfile:\n imageReference:\n offer: 2019-datacenter-cvm\n publisher: MicrosoftWindowsServer\n sku: windows-cvm\n version: 17763.2183.2109130127\n osDisk:\n caching: ReadOnly\n createOption: FromImage\n managedDisk:\n securityProfile:\n diskEncryptionSet:\n id: /subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}\n securityEncryptionType: DiskWithVMGuestState\n storageAccountType: StandardSSD_LRS\n name: myVMosdisk\n vmName: myVM\n\n```\n\n{{% /example %}}\n{{% example %}}\n### Create a VM with securityType ConfidentialVM with Platform Managed Keys\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing AzureNative = Pulumi.AzureNative;\n\nreturn await Deployment.RunAsync(() => \n{\n var virtualMachine = new AzureNative.Compute.VirtualMachine(\"virtualMachine\", new()\n {\n HardwareProfile = new AzureNative.Compute.Inputs.HardwareProfileArgs\n {\n VmSize = \"Standard_DC2as_v5\",\n },\n Location = \"westus\",\n NetworkProfile = new AzureNative.Compute.Inputs.NetworkProfileArgs\n {\n NetworkInterfaces = new[]\n {\n new AzureNative.Compute.Inputs.NetworkInterfaceReferenceArgs\n {\n Id = \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\",\n Primary = true,\n },\n },\n },\n OsProfile = new AzureNative.Compute.Inputs.OSProfileArgs\n {\n AdminPassword = \"{your-password}\",\n AdminUsername = \"{your-username}\",\n ComputerName = \"myVM\",\n },\n ResourceGroupName = \"myResourceGroup\",\n SecurityProfile = new AzureNative.Compute.Inputs.SecurityProfileArgs\n {\n SecurityType = AzureNative.Compute.SecurityTypes.ConfidentialVM,\n UefiSettings = new AzureNative.Compute.Inputs.UefiSettingsArgs\n {\n SecureBootEnabled = true,\n VTpmEnabled = true,\n },\n },\n StorageProfile = new AzureNative.Compute.Inputs.StorageProfileArgs\n {\n ImageReference = new AzureNative.Compute.Inputs.ImageReferenceArgs\n {\n Offer = \"2019-datacenter-cvm\",\n Publisher = \"MicrosoftWindowsServer\",\n Sku = \"windows-cvm\",\n Version = \"17763.2183.2109130127\",\n },\n OsDisk = new AzureNative.Compute.Inputs.OSDiskArgs\n {\n Caching = AzureNative.Compute.CachingTypes.ReadOnly,\n CreateOption = AzureNative.Compute.DiskCreateOptionTypes.FromImage,\n ManagedDisk = new AzureNative.Compute.Inputs.ManagedDiskParametersArgs\n {\n SecurityProfile = new AzureNative.Compute.Inputs.VMDiskSecurityProfileArgs\n {\n SecurityEncryptionType = AzureNative.Compute.SecurityEncryptionTypes.DiskWithVMGuestState,\n },\n StorageAccountType = AzureNative.Compute.StorageAccountTypes.StandardSSD_LRS,\n },\n Name = \"myVMosdisk\",\n },\n },\n VmName = \"myVM\",\n });\n\n});\n\n\n```\n\n```go\npackage main\n\nimport (\n\tcompute \"github.com/pulumi/pulumi-azure-native-sdk/compute/v2\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := compute.NewVirtualMachine(ctx, \"virtualMachine\", &compute.VirtualMachineArgs{\n\t\t\tHardwareProfile: &compute.HardwareProfileArgs{\n\t\t\t\tVmSize: pulumi.String(\"Standard_DC2as_v5\"),\n\t\t\t},\n\t\t\tLocation: pulumi.String(\"westus\"),\n\t\t\tNetworkProfile: &compute.NetworkProfileArgs{\n\t\t\t\tNetworkInterfaces: compute.NetworkInterfaceReferenceArray{\n\t\t\t\t\t&compute.NetworkInterfaceReferenceArgs{\n\t\t\t\t\t\tId: pulumi.String(\"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\"),\n\t\t\t\t\t\tPrimary: pulumi.Bool(true),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tOsProfile: &compute.OSProfileArgs{\n\t\t\t\tAdminPassword: pulumi.String(\"{your-password}\"),\n\t\t\t\tAdminUsername: pulumi.String(\"{your-username}\"),\n\t\t\t\tComputerName: pulumi.String(\"myVM\"),\n\t\t\t},\n\t\t\tResourceGroupName: pulumi.String(\"myResourceGroup\"),\n\t\t\tSecurityProfile: &compute.SecurityProfileArgs{\n\t\t\t\tSecurityType: pulumi.String(compute.SecurityTypesConfidentialVM),\n\t\t\t\tUefiSettings: &compute.UefiSettingsArgs{\n\t\t\t\t\tSecureBootEnabled: pulumi.Bool(true),\n\t\t\t\t\tVTpmEnabled: pulumi.Bool(true),\n\t\t\t\t},\n\t\t\t},\n\t\t\tStorageProfile: &compute.StorageProfileArgs{\n\t\t\t\tImageReference: &compute.ImageReferenceArgs{\n\t\t\t\t\tOffer: pulumi.String(\"2019-datacenter-cvm\"),\n\t\t\t\t\tPublisher: pulumi.String(\"MicrosoftWindowsServer\"),\n\t\t\t\t\tSku: pulumi.String(\"windows-cvm\"),\n\t\t\t\t\tVersion: pulumi.String(\"17763.2183.2109130127\"),\n\t\t\t\t},\n\t\t\t\tOsDisk: &compute.OSDiskArgs{\n\t\t\t\t\tCaching: compute.CachingTypesReadOnly,\n\t\t\t\t\tCreateOption: pulumi.String(compute.DiskCreateOptionTypesFromImage),\n\t\t\t\t\tManagedDisk: &compute.ManagedDiskParametersArgs{\n\t\t\t\t\t\tSecurityProfile: &compute.VMDiskSecurityProfileArgs{\n\t\t\t\t\t\t\tSecurityEncryptionType: pulumi.String(compute.SecurityEncryptionTypesDiskWithVMGuestState),\n\t\t\t\t\t\t},\n\t\t\t\t\t\tStorageAccountType: pulumi.String(compute.StorageAccountTypes_StandardSSD_LRS),\n\t\t\t\t\t},\n\t\t\t\t\tName: pulumi.String(\"myVMosdisk\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tVmName: pulumi.String(\"myVM\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n\n```\n\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azurenative.compute.VirtualMachine;\nimport com.pulumi.azurenative.compute.VirtualMachineArgs;\nimport com.pulumi.azurenative.compute.inputs.HardwareProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.NetworkProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.OSProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.SecurityProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.UefiSettingsArgs;\nimport com.pulumi.azurenative.compute.inputs.StorageProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.ImageReferenceArgs;\nimport com.pulumi.azurenative.compute.inputs.OSDiskArgs;\nimport com.pulumi.azurenative.compute.inputs.ManagedDiskParametersArgs;\nimport com.pulumi.azurenative.compute.inputs.VMDiskSecurityProfileArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var virtualMachine = new VirtualMachine(\"virtualMachine\", VirtualMachineArgs.builder()\n .hardwareProfile(HardwareProfileArgs.builder()\n .vmSize(\"Standard_DC2as_v5\")\n .build())\n .location(\"westus\")\n .networkProfile(NetworkProfileArgs.builder()\n .networkInterfaces(NetworkInterfaceReferenceArgs.builder()\n .id(\"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\")\n .primary(true)\n .build())\n .build())\n .osProfile(OSProfileArgs.builder()\n .adminPassword(\"{your-password}\")\n .adminUsername(\"{your-username}\")\n .computerName(\"myVM\")\n .build())\n .resourceGroupName(\"myResourceGroup\")\n .securityProfile(SecurityProfileArgs.builder()\n .securityType(\"ConfidentialVM\")\n .uefiSettings(UefiSettingsArgs.builder()\n .secureBootEnabled(true)\n .vTpmEnabled(true)\n .build())\n .build())\n .storageProfile(StorageProfileArgs.builder()\n .imageReference(ImageReferenceArgs.builder()\n .offer(\"2019-datacenter-cvm\")\n .publisher(\"MicrosoftWindowsServer\")\n .sku(\"windows-cvm\")\n .version(\"17763.2183.2109130127\")\n .build())\n .osDisk(OSDiskArgs.builder()\n .caching(\"ReadOnly\")\n .createOption(\"FromImage\")\n .managedDisk(ManagedDiskParametersArgs.builder()\n .securityProfile(VMDiskSecurityProfileArgs.builder()\n .securityEncryptionType(\"DiskWithVMGuestState\")\n .build())\n .storageAccountType(\"StandardSSD_LRS\")\n .build())\n .name(\"myVMosdisk\")\n .build())\n .build())\n .vmName(\"myVM\")\n .build());\n\n }\n}\n\n```\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azure_native from \"@pulumi/azure-native\";\n\nconst virtualMachine = new azure_native.compute.VirtualMachine(\"virtualMachine\", {\n hardwareProfile: {\n vmSize: \"Standard_DC2as_v5\",\n },\n location: \"westus\",\n networkProfile: {\n networkInterfaces: [{\n id: \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\",\n primary: true,\n }],\n },\n osProfile: {\n adminPassword: \"{your-password}\",\n adminUsername: \"{your-username}\",\n computerName: \"myVM\",\n },\n resourceGroupName: \"myResourceGroup\",\n securityProfile: {\n securityType: azure_native.compute.SecurityTypes.ConfidentialVM,\n uefiSettings: {\n secureBootEnabled: true,\n vTpmEnabled: true,\n },\n },\n storageProfile: {\n imageReference: {\n offer: \"2019-datacenter-cvm\",\n publisher: \"MicrosoftWindowsServer\",\n sku: \"windows-cvm\",\n version: \"17763.2183.2109130127\",\n },\n osDisk: {\n caching: azure_native.compute.CachingTypes.ReadOnly,\n createOption: azure_native.compute.DiskCreateOptionTypes.FromImage,\n managedDisk: {\n securityProfile: {\n securityEncryptionType: azure_native.compute.SecurityEncryptionTypes.DiskWithVMGuestState,\n },\n storageAccountType: azure_native.compute.StorageAccountTypes.StandardSSD_LRS,\n },\n name: \"myVMosdisk\",\n },\n },\n vmName: \"myVM\",\n});\n\n```\n\n```python\nimport pulumi\nimport pulumi_azure_native as azure_native\n\nvirtual_machine = azure_native.compute.VirtualMachine(\"virtualMachine\",\n hardware_profile={\n \"vm_size\": \"Standard_DC2as_v5\",\n },\n location=\"westus\",\n network_profile={\n \"network_interfaces\": [{\n \"id\": \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\",\n \"primary\": True,\n }],\n },\n os_profile={\n \"admin_password\": \"{your-password}\",\n \"admin_username\": \"{your-username}\",\n \"computer_name\": \"myVM\",\n },\n resource_group_name=\"myResourceGroup\",\n security_profile={\n \"security_type\": azure_native.compute.SecurityTypes.CONFIDENTIAL_VM,\n \"uefi_settings\": {\n \"secure_boot_enabled\": True,\n \"v_tpm_enabled\": True,\n },\n },\n storage_profile={\n \"image_reference\": {\n \"offer\": \"2019-datacenter-cvm\",\n \"publisher\": \"MicrosoftWindowsServer\",\n \"sku\": \"windows-cvm\",\n \"version\": \"17763.2183.2109130127\",\n },\n \"os_disk\": {\n \"caching\": azure_native.compute.CachingTypes.READ_ONLY,\n \"create_option\": azure_native.compute.DiskCreateOptionTypes.FROM_IMAGE,\n \"managed_disk\": {\n \"security_profile\": {\n \"security_encryption_type\": azure_native.compute.SecurityEncryptionTypes.DISK_WITH_VM_GUEST_STATE,\n },\n \"storage_account_type\": azure_native.compute.StorageAccountTypes.STANDARD_SS_D_LRS,\n },\n \"name\": \"myVMosdisk\",\n },\n },\n vm_name=\"myVM\")\n\n```\n\n```yaml\nresources:\n virtualMachine:\n type: azure-native:compute:VirtualMachine\n properties:\n hardwareProfile:\n vmSize: Standard_DC2as_v5\n location: westus\n networkProfile:\n networkInterfaces:\n - id: /subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\n primary: true\n osProfile:\n adminPassword: '{your-password}'\n adminUsername: '{your-username}'\n computerName: myVM\n resourceGroupName: myResourceGroup\n securityProfile:\n securityType: ConfidentialVM\n uefiSettings:\n secureBootEnabled: true\n vTpmEnabled: true\n storageProfile:\n imageReference:\n offer: 2019-datacenter-cvm\n publisher: MicrosoftWindowsServer\n sku: windows-cvm\n version: 17763.2183.2109130127\n osDisk:\n caching: ReadOnly\n createOption: FromImage\n managedDisk:\n securityProfile:\n securityEncryptionType: DiskWithVMGuestState\n storageAccountType: StandardSSD_LRS\n name: myVMosdisk\n vmName: myVM\n\n```\n\n{{% /example %}}\n{{% example %}}\n### Create a Windows vm with a patch setting assessmentMode of ImageDefault.\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing AzureNative = Pulumi.AzureNative;\n\nreturn await Deployment.RunAsync(() => \n{\n var virtualMachine = new AzureNative.Compute.VirtualMachine(\"virtualMachine\", new()\n {\n HardwareProfile = new AzureNative.Compute.Inputs.HardwareProfileArgs\n {\n VmSize = AzureNative.Compute.VirtualMachineSizeTypes.Standard_D1_v2,\n },\n Location = \"westus\",\n NetworkProfile = new AzureNative.Compute.Inputs.NetworkProfileArgs\n {\n NetworkInterfaces = new[]\n {\n new AzureNative.Compute.Inputs.NetworkInterfaceReferenceArgs\n {\n Id = \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\",\n Primary = true,\n },\n },\n },\n OsProfile = new AzureNative.Compute.Inputs.OSProfileArgs\n {\n AdminPassword = \"{your-password}\",\n AdminUsername = \"{your-username}\",\n ComputerName = \"myVM\",\n WindowsConfiguration = new AzureNative.Compute.Inputs.WindowsConfigurationArgs\n {\n EnableAutomaticUpdates = true,\n PatchSettings = new AzureNative.Compute.Inputs.PatchSettingsArgs\n {\n AssessmentMode = AzureNative.Compute.WindowsPatchAssessmentMode.ImageDefault,\n },\n ProvisionVMAgent = true,\n },\n },\n ResourceGroupName = \"myResourceGroup\",\n StorageProfile = new AzureNative.Compute.Inputs.StorageProfileArgs\n {\n ImageReference = new AzureNative.Compute.Inputs.ImageReferenceArgs\n {\n Offer = \"WindowsServer\",\n Publisher = \"MicrosoftWindowsServer\",\n Sku = \"2016-Datacenter\",\n Version = \"latest\",\n },\n OsDisk = new AzureNative.Compute.Inputs.OSDiskArgs\n {\n Caching = AzureNative.Compute.CachingTypes.ReadWrite,\n CreateOption = AzureNative.Compute.DiskCreateOptionTypes.FromImage,\n ManagedDisk = new AzureNative.Compute.Inputs.ManagedDiskParametersArgs\n {\n StorageAccountType = AzureNative.Compute.StorageAccountTypes.Premium_LRS,\n },\n Name = \"myVMosdisk\",\n },\n },\n VmName = \"myVM\",\n });\n\n});\n\n\n```\n\n```go\npackage main\n\nimport (\n\tcompute \"github.com/pulumi/pulumi-azure-native-sdk/compute/v2\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := compute.NewVirtualMachine(ctx, \"virtualMachine\", &compute.VirtualMachineArgs{\n\t\t\tHardwareProfile: &compute.HardwareProfileArgs{\n\t\t\t\tVmSize: pulumi.String(compute.VirtualMachineSizeTypes_Standard_D1_v2),\n\t\t\t},\n\t\t\tLocation: pulumi.String(\"westus\"),\n\t\t\tNetworkProfile: &compute.NetworkProfileArgs{\n\t\t\t\tNetworkInterfaces: compute.NetworkInterfaceReferenceArray{\n\t\t\t\t\t&compute.NetworkInterfaceReferenceArgs{\n\t\t\t\t\t\tId: pulumi.String(\"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\"),\n\t\t\t\t\t\tPrimary: pulumi.Bool(true),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tOsProfile: &compute.OSProfileArgs{\n\t\t\t\tAdminPassword: pulumi.String(\"{your-password}\"),\n\t\t\t\tAdminUsername: pulumi.String(\"{your-username}\"),\n\t\t\t\tComputerName: pulumi.String(\"myVM\"),\n\t\t\t\tWindowsConfiguration: &compute.WindowsConfigurationArgs{\n\t\t\t\t\tEnableAutomaticUpdates: pulumi.Bool(true),\n\t\t\t\t\tPatchSettings: &compute.PatchSettingsArgs{\n\t\t\t\t\t\tAssessmentMode: pulumi.String(compute.WindowsPatchAssessmentModeImageDefault),\n\t\t\t\t\t},\n\t\t\t\t\tProvisionVMAgent: pulumi.Bool(true),\n\t\t\t\t},\n\t\t\t},\n\t\t\tResourceGroupName: pulumi.String(\"myResourceGroup\"),\n\t\t\tStorageProfile: &compute.StorageProfileArgs{\n\t\t\t\tImageReference: &compute.ImageReferenceArgs{\n\t\t\t\t\tOffer: pulumi.String(\"WindowsServer\"),\n\t\t\t\t\tPublisher: pulumi.String(\"MicrosoftWindowsServer\"),\n\t\t\t\t\tSku: pulumi.String(\"2016-Datacenter\"),\n\t\t\t\t\tVersion: pulumi.String(\"latest\"),\n\t\t\t\t},\n\t\t\t\tOsDisk: &compute.OSDiskArgs{\n\t\t\t\t\tCaching: compute.CachingTypesReadWrite,\n\t\t\t\t\tCreateOption: pulumi.String(compute.DiskCreateOptionTypesFromImage),\n\t\t\t\t\tManagedDisk: &compute.ManagedDiskParametersArgs{\n\t\t\t\t\t\tStorageAccountType: pulumi.String(compute.StorageAccountTypes_Premium_LRS),\n\t\t\t\t\t},\n\t\t\t\t\tName: pulumi.String(\"myVMosdisk\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tVmName: pulumi.String(\"myVM\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n\n```\n\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azurenative.compute.VirtualMachine;\nimport com.pulumi.azurenative.compute.VirtualMachineArgs;\nimport com.pulumi.azurenative.compute.inputs.HardwareProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.NetworkProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.OSProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.WindowsConfigurationArgs;\nimport com.pulumi.azurenative.compute.inputs.PatchSettingsArgs;\nimport com.pulumi.azurenative.compute.inputs.StorageProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.ImageReferenceArgs;\nimport com.pulumi.azurenative.compute.inputs.OSDiskArgs;\nimport com.pulumi.azurenative.compute.inputs.ManagedDiskParametersArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var virtualMachine = new VirtualMachine(\"virtualMachine\", VirtualMachineArgs.builder()\n .hardwareProfile(HardwareProfileArgs.builder()\n .vmSize(\"Standard_D1_v2\")\n .build())\n .location(\"westus\")\n .networkProfile(NetworkProfileArgs.builder()\n .networkInterfaces(NetworkInterfaceReferenceArgs.builder()\n .id(\"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\")\n .primary(true)\n .build())\n .build())\n .osProfile(OSProfileArgs.builder()\n .adminPassword(\"{your-password}\")\n .adminUsername(\"{your-username}\")\n .computerName(\"myVM\")\n .windowsConfiguration(WindowsConfigurationArgs.builder()\n .enableAutomaticUpdates(true)\n .patchSettings(PatchSettingsArgs.builder()\n .assessmentMode(\"ImageDefault\")\n .build())\n .provisionVMAgent(true)\n .build())\n .build())\n .resourceGroupName(\"myResourceGroup\")\n .storageProfile(StorageProfileArgs.builder()\n .imageReference(ImageReferenceArgs.builder()\n .offer(\"WindowsServer\")\n .publisher(\"MicrosoftWindowsServer\")\n .sku(\"2016-Datacenter\")\n .version(\"latest\")\n .build())\n .osDisk(OSDiskArgs.builder()\n .caching(\"ReadWrite\")\n .createOption(\"FromImage\")\n .managedDisk(ManagedDiskParametersArgs.builder()\n .storageAccountType(\"Premium_LRS\")\n .build())\n .name(\"myVMosdisk\")\n .build())\n .build())\n .vmName(\"myVM\")\n .build());\n\n }\n}\n\n```\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azure_native from \"@pulumi/azure-native\";\n\nconst virtualMachine = new azure_native.compute.VirtualMachine(\"virtualMachine\", {\n hardwareProfile: {\n vmSize: azure_native.compute.VirtualMachineSizeTypes.Standard_D1_v2,\n },\n location: \"westus\",\n networkProfile: {\n networkInterfaces: [{\n id: \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\",\n primary: true,\n }],\n },\n osProfile: {\n adminPassword: \"{your-password}\",\n adminUsername: \"{your-username}\",\n computerName: \"myVM\",\n windowsConfiguration: {\n enableAutomaticUpdates: true,\n patchSettings: {\n assessmentMode: azure_native.compute.WindowsPatchAssessmentMode.ImageDefault,\n },\n provisionVMAgent: true,\n },\n },\n resourceGroupName: \"myResourceGroup\",\n storageProfile: {\n imageReference: {\n offer: \"WindowsServer\",\n publisher: \"MicrosoftWindowsServer\",\n sku: \"2016-Datacenter\",\n version: \"latest\",\n },\n osDisk: {\n caching: azure_native.compute.CachingTypes.ReadWrite,\n createOption: azure_native.compute.DiskCreateOptionTypes.FromImage,\n managedDisk: {\n storageAccountType: azure_native.compute.StorageAccountTypes.Premium_LRS,\n },\n name: \"myVMosdisk\",\n },\n },\n vmName: \"myVM\",\n});\n\n```\n\n```python\nimport pulumi\nimport pulumi_azure_native as azure_native\n\nvirtual_machine = azure_native.compute.VirtualMachine(\"virtualMachine\",\n hardware_profile={\n \"vm_size\": azure_native.compute.VirtualMachineSizeTypes.STANDARD_D1_V2,\n },\n location=\"westus\",\n network_profile={\n \"network_interfaces\": [{\n \"id\": \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\",\n \"primary\": True,\n }],\n },\n os_profile={\n \"admin_password\": \"{your-password}\",\n \"admin_username\": \"{your-username}\",\n \"computer_name\": \"myVM\",\n \"windows_configuration\": {\n \"enable_automatic_updates\": True,\n \"patch_settings\": {\n \"assessment_mode\": azure_native.compute.WindowsPatchAssessmentMode.IMAGE_DEFAULT,\n },\n \"provision_vm_agent\": True,\n },\n },\n resource_group_name=\"myResourceGroup\",\n storage_profile={\n \"image_reference\": {\n \"offer\": \"WindowsServer\",\n \"publisher\": \"MicrosoftWindowsServer\",\n \"sku\": \"2016-Datacenter\",\n \"version\": \"latest\",\n },\n \"os_disk\": {\n \"caching\": azure_native.compute.CachingTypes.READ_WRITE,\n \"create_option\": azure_native.compute.DiskCreateOptionTypes.FROM_IMAGE,\n \"managed_disk\": {\n \"storage_account_type\": azure_native.compute.StorageAccountTypes.PREMIUM_LRS,\n },\n \"name\": \"myVMosdisk\",\n },\n },\n vm_name=\"myVM\")\n\n```\n\n```yaml\nresources:\n virtualMachine:\n type: azure-native:compute:VirtualMachine\n properties:\n hardwareProfile:\n vmSize: Standard_D1_v2\n location: westus\n networkProfile:\n networkInterfaces:\n - id: /subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\n primary: true\n osProfile:\n adminPassword: '{your-password}'\n adminUsername: '{your-username}'\n computerName: myVM\n windowsConfiguration:\n enableAutomaticUpdates: true\n patchSettings:\n assessmentMode: ImageDefault\n provisionVMAgent: true\n resourceGroupName: myResourceGroup\n storageProfile:\n imageReference:\n offer: WindowsServer\n publisher: MicrosoftWindowsServer\n sku: 2016-Datacenter\n version: latest\n osDisk:\n caching: ReadWrite\n createOption: FromImage\n managedDisk:\n storageAccountType: Premium_LRS\n name: myVMosdisk\n vmName: myVM\n\n```\n\n{{% /example %}}\n{{% example %}}\n### Create a Windows vm with a patch setting patchMode of AutomaticByOS.\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing AzureNative = Pulumi.AzureNative;\n\nreturn await Deployment.RunAsync(() => \n{\n var virtualMachine = new AzureNative.Compute.VirtualMachine(\"virtualMachine\", new()\n {\n HardwareProfile = new AzureNative.Compute.Inputs.HardwareProfileArgs\n {\n VmSize = AzureNative.Compute.VirtualMachineSizeTypes.Standard_D1_v2,\n },\n Location = \"westus\",\n NetworkProfile = new AzureNative.Compute.Inputs.NetworkProfileArgs\n {\n NetworkInterfaces = new[]\n {\n new AzureNative.Compute.Inputs.NetworkInterfaceReferenceArgs\n {\n Id = \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/nsgExistingNic\",\n Primary = true,\n },\n },\n },\n OsProfile = new AzureNative.Compute.Inputs.OSProfileArgs\n {\n AdminPassword = \"{your-password}\",\n AdminUsername = \"{your-username}\",\n ComputerName = \"myVM\",\n WindowsConfiguration = new AzureNative.Compute.Inputs.WindowsConfigurationArgs\n {\n EnableAutomaticUpdates = true,\n PatchSettings = new AzureNative.Compute.Inputs.PatchSettingsArgs\n {\n PatchMode = AzureNative.Compute.WindowsVMGuestPatchMode.AutomaticByOS,\n },\n ProvisionVMAgent = true,\n },\n },\n ResourceGroupName = \"myResourceGroup\",\n StorageProfile = new AzureNative.Compute.Inputs.StorageProfileArgs\n {\n ImageReference = new AzureNative.Compute.Inputs.ImageReferenceArgs\n {\n Offer = \"WindowsServer\",\n Publisher = \"MicrosoftWindowsServer\",\n Sku = \"2016-Datacenter\",\n Version = \"latest\",\n },\n OsDisk = new AzureNative.Compute.Inputs.OSDiskArgs\n {\n Caching = AzureNative.Compute.CachingTypes.ReadWrite,\n CreateOption = AzureNative.Compute.DiskCreateOptionTypes.FromImage,\n ManagedDisk = new AzureNative.Compute.Inputs.ManagedDiskParametersArgs\n {\n StorageAccountType = AzureNative.Compute.StorageAccountTypes.Premium_LRS,\n },\n Name = \"myVMosdisk\",\n },\n },\n VmName = \"myVM\",\n });\n\n});\n\n\n```\n\n```go\npackage main\n\nimport (\n\tcompute \"github.com/pulumi/pulumi-azure-native-sdk/compute/v2\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := compute.NewVirtualMachine(ctx, \"virtualMachine\", &compute.VirtualMachineArgs{\n\t\t\tHardwareProfile: &compute.HardwareProfileArgs{\n\t\t\t\tVmSize: pulumi.String(compute.VirtualMachineSizeTypes_Standard_D1_v2),\n\t\t\t},\n\t\t\tLocation: pulumi.String(\"westus\"),\n\t\t\tNetworkProfile: &compute.NetworkProfileArgs{\n\t\t\t\tNetworkInterfaces: compute.NetworkInterfaceReferenceArray{\n\t\t\t\t\t&compute.NetworkInterfaceReferenceArgs{\n\t\t\t\t\t\tId: pulumi.String(\"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/nsgExistingNic\"),\n\t\t\t\t\t\tPrimary: pulumi.Bool(true),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tOsProfile: &compute.OSProfileArgs{\n\t\t\t\tAdminPassword: pulumi.String(\"{your-password}\"),\n\t\t\t\tAdminUsername: pulumi.String(\"{your-username}\"),\n\t\t\t\tComputerName: pulumi.String(\"myVM\"),\n\t\t\t\tWindowsConfiguration: &compute.WindowsConfigurationArgs{\n\t\t\t\t\tEnableAutomaticUpdates: pulumi.Bool(true),\n\t\t\t\t\tPatchSettings: &compute.PatchSettingsArgs{\n\t\t\t\t\t\tPatchMode: pulumi.String(compute.WindowsVMGuestPatchModeAutomaticByOS),\n\t\t\t\t\t},\n\t\t\t\t\tProvisionVMAgent: pulumi.Bool(true),\n\t\t\t\t},\n\t\t\t},\n\t\t\tResourceGroupName: pulumi.String(\"myResourceGroup\"),\n\t\t\tStorageProfile: &compute.StorageProfileArgs{\n\t\t\t\tImageReference: &compute.ImageReferenceArgs{\n\t\t\t\t\tOffer: pulumi.String(\"WindowsServer\"),\n\t\t\t\t\tPublisher: pulumi.String(\"MicrosoftWindowsServer\"),\n\t\t\t\t\tSku: pulumi.String(\"2016-Datacenter\"),\n\t\t\t\t\tVersion: pulumi.String(\"latest\"),\n\t\t\t\t},\n\t\t\t\tOsDisk: &compute.OSDiskArgs{\n\t\t\t\t\tCaching: compute.CachingTypesReadWrite,\n\t\t\t\t\tCreateOption: pulumi.String(compute.DiskCreateOptionTypesFromImage),\n\t\t\t\t\tManagedDisk: &compute.ManagedDiskParametersArgs{\n\t\t\t\t\t\tStorageAccountType: pulumi.String(compute.StorageAccountTypes_Premium_LRS),\n\t\t\t\t\t},\n\t\t\t\t\tName: pulumi.String(\"myVMosdisk\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tVmName: pulumi.String(\"myVM\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n\n```\n\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azurenative.compute.VirtualMachine;\nimport com.pulumi.azurenative.compute.VirtualMachineArgs;\nimport com.pulumi.azurenative.compute.inputs.HardwareProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.NetworkProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.OSProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.WindowsConfigurationArgs;\nimport com.pulumi.azurenative.compute.inputs.PatchSettingsArgs;\nimport com.pulumi.azurenative.compute.inputs.StorageProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.ImageReferenceArgs;\nimport com.pulumi.azurenative.compute.inputs.OSDiskArgs;\nimport com.pulumi.azurenative.compute.inputs.ManagedDiskParametersArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var virtualMachine = new VirtualMachine(\"virtualMachine\", VirtualMachineArgs.builder()\n .hardwareProfile(HardwareProfileArgs.builder()\n .vmSize(\"Standard_D1_v2\")\n .build())\n .location(\"westus\")\n .networkProfile(NetworkProfileArgs.builder()\n .networkInterfaces(NetworkInterfaceReferenceArgs.builder()\n .id(\"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/nsgExistingNic\")\n .primary(true)\n .build())\n .build())\n .osProfile(OSProfileArgs.builder()\n .adminPassword(\"{your-password}\")\n .adminUsername(\"{your-username}\")\n .computerName(\"myVM\")\n .windowsConfiguration(WindowsConfigurationArgs.builder()\n .enableAutomaticUpdates(true)\n .patchSettings(PatchSettingsArgs.builder()\n .patchMode(\"AutomaticByOS\")\n .build())\n .provisionVMAgent(true)\n .build())\n .build())\n .resourceGroupName(\"myResourceGroup\")\n .storageProfile(StorageProfileArgs.builder()\n .imageReference(ImageReferenceArgs.builder()\n .offer(\"WindowsServer\")\n .publisher(\"MicrosoftWindowsServer\")\n .sku(\"2016-Datacenter\")\n .version(\"latest\")\n .build())\n .osDisk(OSDiskArgs.builder()\n .caching(\"ReadWrite\")\n .createOption(\"FromImage\")\n .managedDisk(ManagedDiskParametersArgs.builder()\n .storageAccountType(\"Premium_LRS\")\n .build())\n .name(\"myVMosdisk\")\n .build())\n .build())\n .vmName(\"myVM\")\n .build());\n\n }\n}\n\n```\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azure_native from \"@pulumi/azure-native\";\n\nconst virtualMachine = new azure_native.compute.VirtualMachine(\"virtualMachine\", {\n hardwareProfile: {\n vmSize: azure_native.compute.VirtualMachineSizeTypes.Standard_D1_v2,\n },\n location: \"westus\",\n networkProfile: {\n networkInterfaces: [{\n id: \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/nsgExistingNic\",\n primary: true,\n }],\n },\n osProfile: {\n adminPassword: \"{your-password}\",\n adminUsername: \"{your-username}\",\n computerName: \"myVM\",\n windowsConfiguration: {\n enableAutomaticUpdates: true,\n patchSettings: {\n patchMode: azure_native.compute.WindowsVMGuestPatchMode.AutomaticByOS,\n },\n provisionVMAgent: true,\n },\n },\n resourceGroupName: \"myResourceGroup\",\n storageProfile: {\n imageReference: {\n offer: \"WindowsServer\",\n publisher: \"MicrosoftWindowsServer\",\n sku: \"2016-Datacenter\",\n version: \"latest\",\n },\n osDisk: {\n caching: azure_native.compute.CachingTypes.ReadWrite,\n createOption: azure_native.compute.DiskCreateOptionTypes.FromImage,\n managedDisk: {\n storageAccountType: azure_native.compute.StorageAccountTypes.Premium_LRS,\n },\n name: \"myVMosdisk\",\n },\n },\n vmName: \"myVM\",\n});\n\n```\n\n```python\nimport pulumi\nimport pulumi_azure_native as azure_native\n\nvirtual_machine = azure_native.compute.VirtualMachine(\"virtualMachine\",\n hardware_profile={\n \"vm_size\": azure_native.compute.VirtualMachineSizeTypes.STANDARD_D1_V2,\n },\n location=\"westus\",\n network_profile={\n \"network_interfaces\": [{\n \"id\": \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/nsgExistingNic\",\n \"primary\": True,\n }],\n },\n os_profile={\n \"admin_password\": \"{your-password}\",\n \"admin_username\": \"{your-username}\",\n \"computer_name\": \"myVM\",\n \"windows_configuration\": {\n \"enable_automatic_updates\": True,\n \"patch_settings\": {\n \"patch_mode\": azure_native.compute.WindowsVMGuestPatchMode.AUTOMATIC_BY_OS,\n },\n \"provision_vm_agent\": True,\n },\n },\n resource_group_name=\"myResourceGroup\",\n storage_profile={\n \"image_reference\": {\n \"offer\": \"WindowsServer\",\n \"publisher\": \"MicrosoftWindowsServer\",\n \"sku\": \"2016-Datacenter\",\n \"version\": \"latest\",\n },\n \"os_disk\": {\n \"caching\": azure_native.compute.CachingTypes.READ_WRITE,\n \"create_option\": azure_native.compute.DiskCreateOptionTypes.FROM_IMAGE,\n \"managed_disk\": {\n \"storage_account_type\": azure_native.compute.StorageAccountTypes.PREMIUM_LRS,\n },\n \"name\": \"myVMosdisk\",\n },\n },\n vm_name=\"myVM\")\n\n```\n\n```yaml\nresources:\n virtualMachine:\n type: azure-native:compute:VirtualMachine\n properties:\n hardwareProfile:\n vmSize: Standard_D1_v2\n location: westus\n networkProfile:\n networkInterfaces:\n - id: /subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/nsgExistingNic\n primary: true\n osProfile:\n adminPassword: '{your-password}'\n adminUsername: '{your-username}'\n computerName: myVM\n windowsConfiguration:\n enableAutomaticUpdates: true\n patchSettings:\n patchMode: AutomaticByOS\n provisionVMAgent: true\n resourceGroupName: myResourceGroup\n storageProfile:\n imageReference:\n offer: WindowsServer\n publisher: MicrosoftWindowsServer\n sku: 2016-Datacenter\n version: latest\n osDisk:\n caching: ReadWrite\n createOption: FromImage\n managedDisk:\n storageAccountType: Premium_LRS\n name: myVMosdisk\n vmName: myVM\n\n```\n\n{{% /example %}}\n{{% example %}}\n### Create a Windows vm with a patch setting patchMode of AutomaticByPlatform and AutomaticByPlatformSettings.\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing AzureNative = Pulumi.AzureNative;\n\nreturn await Deployment.RunAsync(() => \n{\n var virtualMachine = new AzureNative.Compute.VirtualMachine(\"virtualMachine\", new()\n {\n HardwareProfile = new AzureNative.Compute.Inputs.HardwareProfileArgs\n {\n VmSize = AzureNative.Compute.VirtualMachineSizeTypes.Standard_D1_v2,\n },\n Location = \"westus\",\n NetworkProfile = new AzureNative.Compute.Inputs.NetworkProfileArgs\n {\n NetworkInterfaces = new[]\n {\n new AzureNative.Compute.Inputs.NetworkInterfaceReferenceArgs\n {\n Id = \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\",\n Primary = true,\n },\n },\n },\n OsProfile = new AzureNative.Compute.Inputs.OSProfileArgs\n {\n AdminPassword = \"{your-password}\",\n AdminUsername = \"{your-username}\",\n ComputerName = \"myVM\",\n WindowsConfiguration = new AzureNative.Compute.Inputs.WindowsConfigurationArgs\n {\n EnableAutomaticUpdates = true,\n PatchSettings = new AzureNative.Compute.Inputs.PatchSettingsArgs\n {\n AssessmentMode = AzureNative.Compute.WindowsPatchAssessmentMode.AutomaticByPlatform,\n AutomaticByPlatformSettings = new AzureNative.Compute.Inputs.WindowsVMGuestPatchAutomaticByPlatformSettingsArgs\n {\n BypassPlatformSafetyChecksOnUserSchedule = false,\n RebootSetting = AzureNative.Compute.WindowsVMGuestPatchAutomaticByPlatformRebootSetting.Never,\n },\n PatchMode = AzureNative.Compute.WindowsVMGuestPatchMode.AutomaticByPlatform,\n },\n ProvisionVMAgent = true,\n },\n },\n ResourceGroupName = \"myResourceGroup\",\n StorageProfile = new AzureNative.Compute.Inputs.StorageProfileArgs\n {\n ImageReference = new AzureNative.Compute.Inputs.ImageReferenceArgs\n {\n Offer = \"WindowsServer\",\n Publisher = \"MicrosoftWindowsServer\",\n Sku = \"2016-Datacenter\",\n Version = \"latest\",\n },\n OsDisk = new AzureNative.Compute.Inputs.OSDiskArgs\n {\n Caching = AzureNative.Compute.CachingTypes.ReadWrite,\n CreateOption = AzureNative.Compute.DiskCreateOptionTypes.FromImage,\n ManagedDisk = new AzureNative.Compute.Inputs.ManagedDiskParametersArgs\n {\n StorageAccountType = AzureNative.Compute.StorageAccountTypes.Premium_LRS,\n },\n Name = \"myVMosdisk\",\n },\n },\n VmName = \"myVM\",\n });\n\n});\n\n\n```\n\n```go\npackage main\n\nimport (\n\tcompute \"github.com/pulumi/pulumi-azure-native-sdk/compute/v2\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := compute.NewVirtualMachine(ctx, \"virtualMachine\", &compute.VirtualMachineArgs{\n\t\t\tHardwareProfile: &compute.HardwareProfileArgs{\n\t\t\t\tVmSize: pulumi.String(compute.VirtualMachineSizeTypes_Standard_D1_v2),\n\t\t\t},\n\t\t\tLocation: pulumi.String(\"westus\"),\n\t\t\tNetworkProfile: &compute.NetworkProfileArgs{\n\t\t\t\tNetworkInterfaces: compute.NetworkInterfaceReferenceArray{\n\t\t\t\t\t&compute.NetworkInterfaceReferenceArgs{\n\t\t\t\t\t\tId: pulumi.String(\"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\"),\n\t\t\t\t\t\tPrimary: pulumi.Bool(true),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tOsProfile: &compute.OSProfileArgs{\n\t\t\t\tAdminPassword: pulumi.String(\"{your-password}\"),\n\t\t\t\tAdminUsername: pulumi.String(\"{your-username}\"),\n\t\t\t\tComputerName: pulumi.String(\"myVM\"),\n\t\t\t\tWindowsConfiguration: &compute.WindowsConfigurationArgs{\n\t\t\t\t\tEnableAutomaticUpdates: pulumi.Bool(true),\n\t\t\t\t\tPatchSettings: &compute.PatchSettingsArgs{\n\t\t\t\t\t\tAssessmentMode: pulumi.String(compute.WindowsPatchAssessmentModeAutomaticByPlatform),\n\t\t\t\t\t\tAutomaticByPlatformSettings: &compute.WindowsVMGuestPatchAutomaticByPlatformSettingsArgs{\n\t\t\t\t\t\t\tBypassPlatformSafetyChecksOnUserSchedule: pulumi.Bool(false),\n\t\t\t\t\t\t\tRebootSetting: pulumi.String(compute.WindowsVMGuestPatchAutomaticByPlatformRebootSettingNever),\n\t\t\t\t\t\t},\n\t\t\t\t\t\tPatchMode: pulumi.String(compute.WindowsVMGuestPatchModeAutomaticByPlatform),\n\t\t\t\t\t},\n\t\t\t\t\tProvisionVMAgent: pulumi.Bool(true),\n\t\t\t\t},\n\t\t\t},\n\t\t\tResourceGroupName: pulumi.String(\"myResourceGroup\"),\n\t\t\tStorageProfile: &compute.StorageProfileArgs{\n\t\t\t\tImageReference: &compute.ImageReferenceArgs{\n\t\t\t\t\tOffer: pulumi.String(\"WindowsServer\"),\n\t\t\t\t\tPublisher: pulumi.String(\"MicrosoftWindowsServer\"),\n\t\t\t\t\tSku: pulumi.String(\"2016-Datacenter\"),\n\t\t\t\t\tVersion: pulumi.String(\"latest\"),\n\t\t\t\t},\n\t\t\t\tOsDisk: &compute.OSDiskArgs{\n\t\t\t\t\tCaching: compute.CachingTypesReadWrite,\n\t\t\t\t\tCreateOption: pulumi.String(compute.DiskCreateOptionTypesFromImage),\n\t\t\t\t\tManagedDisk: &compute.ManagedDiskParametersArgs{\n\t\t\t\t\t\tStorageAccountType: pulumi.String(compute.StorageAccountTypes_Premium_LRS),\n\t\t\t\t\t},\n\t\t\t\t\tName: pulumi.String(\"myVMosdisk\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tVmName: pulumi.String(\"myVM\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n\n```\n\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azurenative.compute.VirtualMachine;\nimport com.pulumi.azurenative.compute.VirtualMachineArgs;\nimport com.pulumi.azurenative.compute.inputs.HardwareProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.NetworkProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.OSProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.WindowsConfigurationArgs;\nimport com.pulumi.azurenative.compute.inputs.PatchSettingsArgs;\nimport com.pulumi.azurenative.compute.inputs.WindowsVMGuestPatchAutomaticByPlatformSettingsArgs;\nimport com.pulumi.azurenative.compute.inputs.StorageProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.ImageReferenceArgs;\nimport com.pulumi.azurenative.compute.inputs.OSDiskArgs;\nimport com.pulumi.azurenative.compute.inputs.ManagedDiskParametersArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var virtualMachine = new VirtualMachine(\"virtualMachine\", VirtualMachineArgs.builder()\n .hardwareProfile(HardwareProfileArgs.builder()\n .vmSize(\"Standard_D1_v2\")\n .build())\n .location(\"westus\")\n .networkProfile(NetworkProfileArgs.builder()\n .networkInterfaces(NetworkInterfaceReferenceArgs.builder()\n .id(\"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\")\n .primary(true)\n .build())\n .build())\n .osProfile(OSProfileArgs.builder()\n .adminPassword(\"{your-password}\")\n .adminUsername(\"{your-username}\")\n .computerName(\"myVM\")\n .windowsConfiguration(WindowsConfigurationArgs.builder()\n .enableAutomaticUpdates(true)\n .patchSettings(PatchSettingsArgs.builder()\n .assessmentMode(\"AutomaticByPlatform\")\n .automaticByPlatformSettings(WindowsVMGuestPatchAutomaticByPlatformSettingsArgs.builder()\n .bypassPlatformSafetyChecksOnUserSchedule(false)\n .rebootSetting(\"Never\")\n .build())\n .patchMode(\"AutomaticByPlatform\")\n .build())\n .provisionVMAgent(true)\n .build())\n .build())\n .resourceGroupName(\"myResourceGroup\")\n .storageProfile(StorageProfileArgs.builder()\n .imageReference(ImageReferenceArgs.builder()\n .offer(\"WindowsServer\")\n .publisher(\"MicrosoftWindowsServer\")\n .sku(\"2016-Datacenter\")\n .version(\"latest\")\n .build())\n .osDisk(OSDiskArgs.builder()\n .caching(\"ReadWrite\")\n .createOption(\"FromImage\")\n .managedDisk(ManagedDiskParametersArgs.builder()\n .storageAccountType(\"Premium_LRS\")\n .build())\n .name(\"myVMosdisk\")\n .build())\n .build())\n .vmName(\"myVM\")\n .build());\n\n }\n}\n\n```\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azure_native from \"@pulumi/azure-native\";\n\nconst virtualMachine = new azure_native.compute.VirtualMachine(\"virtualMachine\", {\n hardwareProfile: {\n vmSize: azure_native.compute.VirtualMachineSizeTypes.Standard_D1_v2,\n },\n location: \"westus\",\n networkProfile: {\n networkInterfaces: [{\n id: \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\",\n primary: true,\n }],\n },\n osProfile: {\n adminPassword: \"{your-password}\",\n adminUsername: \"{your-username}\",\n computerName: \"myVM\",\n windowsConfiguration: {\n enableAutomaticUpdates: true,\n patchSettings: {\n assessmentMode: azure_native.compute.WindowsPatchAssessmentMode.AutomaticByPlatform,\n automaticByPlatformSettings: {\n bypassPlatformSafetyChecksOnUserSchedule: false,\n rebootSetting: azure_native.compute.WindowsVMGuestPatchAutomaticByPlatformRebootSetting.Never,\n },\n patchMode: azure_native.compute.WindowsVMGuestPatchMode.AutomaticByPlatform,\n },\n provisionVMAgent: true,\n },\n },\n resourceGroupName: \"myResourceGroup\",\n storageProfile: {\n imageReference: {\n offer: \"WindowsServer\",\n publisher: \"MicrosoftWindowsServer\",\n sku: \"2016-Datacenter\",\n version: \"latest\",\n },\n osDisk: {\n caching: azure_native.compute.CachingTypes.ReadWrite,\n createOption: azure_native.compute.DiskCreateOptionTypes.FromImage,\n managedDisk: {\n storageAccountType: azure_native.compute.StorageAccountTypes.Premium_LRS,\n },\n name: \"myVMosdisk\",\n },\n },\n vmName: \"myVM\",\n});\n\n```\n\n```python\nimport pulumi\nimport pulumi_azure_native as azure_native\n\nvirtual_machine = azure_native.compute.VirtualMachine(\"virtualMachine\",\n hardware_profile={\n \"vm_size\": azure_native.compute.VirtualMachineSizeTypes.STANDARD_D1_V2,\n },\n location=\"westus\",\n network_profile={\n \"network_interfaces\": [{\n \"id\": \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\",\n \"primary\": True,\n }],\n },\n os_profile={\n \"admin_password\": \"{your-password}\",\n \"admin_username\": \"{your-username}\",\n \"computer_name\": \"myVM\",\n \"windows_configuration\": {\n \"enable_automatic_updates\": True,\n \"patch_settings\": {\n \"assessment_mode\": azure_native.compute.WindowsPatchAssessmentMode.AUTOMATIC_BY_PLATFORM,\n \"automatic_by_platform_settings\": {\n \"bypass_platform_safety_checks_on_user_schedule\": False,\n \"reboot_setting\": azure_native.compute.WindowsVMGuestPatchAutomaticByPlatformRebootSetting.NEVER,\n },\n \"patch_mode\": azure_native.compute.WindowsVMGuestPatchMode.AUTOMATIC_BY_PLATFORM,\n },\n \"provision_vm_agent\": True,\n },\n },\n resource_group_name=\"myResourceGroup\",\n storage_profile={\n \"image_reference\": {\n \"offer\": \"WindowsServer\",\n \"publisher\": \"MicrosoftWindowsServer\",\n \"sku\": \"2016-Datacenter\",\n \"version\": \"latest\",\n },\n \"os_disk\": {\n \"caching\": azure_native.compute.CachingTypes.READ_WRITE,\n \"create_option\": azure_native.compute.DiskCreateOptionTypes.FROM_IMAGE,\n \"managed_disk\": {\n \"storage_account_type\": azure_native.compute.StorageAccountTypes.PREMIUM_LRS,\n },\n \"name\": \"myVMosdisk\",\n },\n },\n vm_name=\"myVM\")\n\n```\n\n```yaml\nresources:\n virtualMachine:\n type: azure-native:compute:VirtualMachine\n properties:\n hardwareProfile:\n vmSize: Standard_D1_v2\n location: westus\n networkProfile:\n networkInterfaces:\n - id: /subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\n primary: true\n osProfile:\n adminPassword: '{your-password}'\n adminUsername: '{your-username}'\n computerName: myVM\n windowsConfiguration:\n enableAutomaticUpdates: true\n patchSettings:\n assessmentMode: AutomaticByPlatform\n automaticByPlatformSettings:\n bypassPlatformSafetyChecksOnUserSchedule: false\n rebootSetting: Never\n patchMode: AutomaticByPlatform\n provisionVMAgent: true\n resourceGroupName: myResourceGroup\n storageProfile:\n imageReference:\n offer: WindowsServer\n publisher: MicrosoftWindowsServer\n sku: 2016-Datacenter\n version: latest\n osDisk:\n caching: ReadWrite\n createOption: FromImage\n managedDisk:\n storageAccountType: Premium_LRS\n name: myVMosdisk\n vmName: myVM\n\n```\n\n{{% /example %}}\n{{% example %}}\n### Create a Windows vm with a patch setting patchMode of AutomaticByPlatform and enableHotpatching set to true.\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing AzureNative = Pulumi.AzureNative;\n\nreturn await Deployment.RunAsync(() => \n{\n var virtualMachine = new AzureNative.Compute.VirtualMachine(\"virtualMachine\", new()\n {\n HardwareProfile = new AzureNative.Compute.Inputs.HardwareProfileArgs\n {\n VmSize = AzureNative.Compute.VirtualMachineSizeTypes.Standard_D1_v2,\n },\n Location = \"westus\",\n NetworkProfile = new AzureNative.Compute.Inputs.NetworkProfileArgs\n {\n NetworkInterfaces = new[]\n {\n new AzureNative.Compute.Inputs.NetworkInterfaceReferenceArgs\n {\n Id = \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\",\n Primary = true,\n },\n },\n },\n OsProfile = new AzureNative.Compute.Inputs.OSProfileArgs\n {\n AdminPassword = \"{your-password}\",\n AdminUsername = \"{your-username}\",\n ComputerName = \"myVM\",\n WindowsConfiguration = new AzureNative.Compute.Inputs.WindowsConfigurationArgs\n {\n EnableAutomaticUpdates = true,\n PatchSettings = new AzureNative.Compute.Inputs.PatchSettingsArgs\n {\n EnableHotpatching = true,\n PatchMode = AzureNative.Compute.WindowsVMGuestPatchMode.AutomaticByPlatform,\n },\n ProvisionVMAgent = true,\n },\n },\n ResourceGroupName = \"myResourceGroup\",\n StorageProfile = new AzureNative.Compute.Inputs.StorageProfileArgs\n {\n ImageReference = new AzureNative.Compute.Inputs.ImageReferenceArgs\n {\n Offer = \"WindowsServer\",\n Publisher = \"MicrosoftWindowsServer\",\n Sku = \"2016-Datacenter\",\n Version = \"latest\",\n },\n OsDisk = new AzureNative.Compute.Inputs.OSDiskArgs\n {\n Caching = AzureNative.Compute.CachingTypes.ReadWrite,\n CreateOption = AzureNative.Compute.DiskCreateOptionTypes.FromImage,\n ManagedDisk = new AzureNative.Compute.Inputs.ManagedDiskParametersArgs\n {\n StorageAccountType = AzureNative.Compute.StorageAccountTypes.Premium_LRS,\n },\n Name = \"myVMosdisk\",\n },\n },\n VmName = \"myVM\",\n });\n\n});\n\n\n```\n\n```go\npackage main\n\nimport (\n\tcompute \"github.com/pulumi/pulumi-azure-native-sdk/compute/v2\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := compute.NewVirtualMachine(ctx, \"virtualMachine\", &compute.VirtualMachineArgs{\n\t\t\tHardwareProfile: &compute.HardwareProfileArgs{\n\t\t\t\tVmSize: pulumi.String(compute.VirtualMachineSizeTypes_Standard_D1_v2),\n\t\t\t},\n\t\t\tLocation: pulumi.String(\"westus\"),\n\t\t\tNetworkProfile: &compute.NetworkProfileArgs{\n\t\t\t\tNetworkInterfaces: compute.NetworkInterfaceReferenceArray{\n\t\t\t\t\t&compute.NetworkInterfaceReferenceArgs{\n\t\t\t\t\t\tId: pulumi.String(\"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\"),\n\t\t\t\t\t\tPrimary: pulumi.Bool(true),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tOsProfile: &compute.OSProfileArgs{\n\t\t\t\tAdminPassword: pulumi.String(\"{your-password}\"),\n\t\t\t\tAdminUsername: pulumi.String(\"{your-username}\"),\n\t\t\t\tComputerName: pulumi.String(\"myVM\"),\n\t\t\t\tWindowsConfiguration: &compute.WindowsConfigurationArgs{\n\t\t\t\t\tEnableAutomaticUpdates: pulumi.Bool(true),\n\t\t\t\t\tPatchSettings: &compute.PatchSettingsArgs{\n\t\t\t\t\t\tEnableHotpatching: pulumi.Bool(true),\n\t\t\t\t\t\tPatchMode: pulumi.String(compute.WindowsVMGuestPatchModeAutomaticByPlatform),\n\t\t\t\t\t},\n\t\t\t\t\tProvisionVMAgent: pulumi.Bool(true),\n\t\t\t\t},\n\t\t\t},\n\t\t\tResourceGroupName: pulumi.String(\"myResourceGroup\"),\n\t\t\tStorageProfile: &compute.StorageProfileArgs{\n\t\t\t\tImageReference: &compute.ImageReferenceArgs{\n\t\t\t\t\tOffer: pulumi.String(\"WindowsServer\"),\n\t\t\t\t\tPublisher: pulumi.String(\"MicrosoftWindowsServer\"),\n\t\t\t\t\tSku: pulumi.String(\"2016-Datacenter\"),\n\t\t\t\t\tVersion: pulumi.String(\"latest\"),\n\t\t\t\t},\n\t\t\t\tOsDisk: &compute.OSDiskArgs{\n\t\t\t\t\tCaching: compute.CachingTypesReadWrite,\n\t\t\t\t\tCreateOption: pulumi.String(compute.DiskCreateOptionTypesFromImage),\n\t\t\t\t\tManagedDisk: &compute.ManagedDiskParametersArgs{\n\t\t\t\t\t\tStorageAccountType: pulumi.String(compute.StorageAccountTypes_Premium_LRS),\n\t\t\t\t\t},\n\t\t\t\t\tName: pulumi.String(\"myVMosdisk\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tVmName: pulumi.String(\"myVM\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n\n```\n\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azurenative.compute.VirtualMachine;\nimport com.pulumi.azurenative.compute.VirtualMachineArgs;\nimport com.pulumi.azurenative.compute.inputs.HardwareProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.NetworkProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.OSProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.WindowsConfigurationArgs;\nimport com.pulumi.azurenative.compute.inputs.PatchSettingsArgs;\nimport com.pulumi.azurenative.compute.inputs.StorageProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.ImageReferenceArgs;\nimport com.pulumi.azurenative.compute.inputs.OSDiskArgs;\nimport com.pulumi.azurenative.compute.inputs.ManagedDiskParametersArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var virtualMachine = new VirtualMachine(\"virtualMachine\", VirtualMachineArgs.builder()\n .hardwareProfile(HardwareProfileArgs.builder()\n .vmSize(\"Standard_D1_v2\")\n .build())\n .location(\"westus\")\n .networkProfile(NetworkProfileArgs.builder()\n .networkInterfaces(NetworkInterfaceReferenceArgs.builder()\n .id(\"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\")\n .primary(true)\n .build())\n .build())\n .osProfile(OSProfileArgs.builder()\n .adminPassword(\"{your-password}\")\n .adminUsername(\"{your-username}\")\n .computerName(\"myVM\")\n .windowsConfiguration(WindowsConfigurationArgs.builder()\n .enableAutomaticUpdates(true)\n .patchSettings(PatchSettingsArgs.builder()\n .enableHotpatching(true)\n .patchMode(\"AutomaticByPlatform\")\n .build())\n .provisionVMAgent(true)\n .build())\n .build())\n .resourceGroupName(\"myResourceGroup\")\n .storageProfile(StorageProfileArgs.builder()\n .imageReference(ImageReferenceArgs.builder()\n .offer(\"WindowsServer\")\n .publisher(\"MicrosoftWindowsServer\")\n .sku(\"2016-Datacenter\")\n .version(\"latest\")\n .build())\n .osDisk(OSDiskArgs.builder()\n .caching(\"ReadWrite\")\n .createOption(\"FromImage\")\n .managedDisk(ManagedDiskParametersArgs.builder()\n .storageAccountType(\"Premium_LRS\")\n .build())\n .name(\"myVMosdisk\")\n .build())\n .build())\n .vmName(\"myVM\")\n .build());\n\n }\n}\n\n```\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azure_native from \"@pulumi/azure-native\";\n\nconst virtualMachine = new azure_native.compute.VirtualMachine(\"virtualMachine\", {\n hardwareProfile: {\n vmSize: azure_native.compute.VirtualMachineSizeTypes.Standard_D1_v2,\n },\n location: \"westus\",\n networkProfile: {\n networkInterfaces: [{\n id: \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\",\n primary: true,\n }],\n },\n osProfile: {\n adminPassword: \"{your-password}\",\n adminUsername: \"{your-username}\",\n computerName: \"myVM\",\n windowsConfiguration: {\n enableAutomaticUpdates: true,\n patchSettings: {\n enableHotpatching: true,\n patchMode: azure_native.compute.WindowsVMGuestPatchMode.AutomaticByPlatform,\n },\n provisionVMAgent: true,\n },\n },\n resourceGroupName: \"myResourceGroup\",\n storageProfile: {\n imageReference: {\n offer: \"WindowsServer\",\n publisher: \"MicrosoftWindowsServer\",\n sku: \"2016-Datacenter\",\n version: \"latest\",\n },\n osDisk: {\n caching: azure_native.compute.CachingTypes.ReadWrite,\n createOption: azure_native.compute.DiskCreateOptionTypes.FromImage,\n managedDisk: {\n storageAccountType: azure_native.compute.StorageAccountTypes.Premium_LRS,\n },\n name: \"myVMosdisk\",\n },\n },\n vmName: \"myVM\",\n});\n\n```\n\n```python\nimport pulumi\nimport pulumi_azure_native as azure_native\n\nvirtual_machine = azure_native.compute.VirtualMachine(\"virtualMachine\",\n hardware_profile={\n \"vm_size\": azure_native.compute.VirtualMachineSizeTypes.STANDARD_D1_V2,\n },\n location=\"westus\",\n network_profile={\n \"network_interfaces\": [{\n \"id\": \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\",\n \"primary\": True,\n }],\n },\n os_profile={\n \"admin_password\": \"{your-password}\",\n \"admin_username\": \"{your-username}\",\n \"computer_name\": \"myVM\",\n \"windows_configuration\": {\n \"enable_automatic_updates\": True,\n \"patch_settings\": {\n \"enable_hotpatching\": True,\n \"patch_mode\": azure_native.compute.WindowsVMGuestPatchMode.AUTOMATIC_BY_PLATFORM,\n },\n \"provision_vm_agent\": True,\n },\n },\n resource_group_name=\"myResourceGroup\",\n storage_profile={\n \"image_reference\": {\n \"offer\": \"WindowsServer\",\n \"publisher\": \"MicrosoftWindowsServer\",\n \"sku\": \"2016-Datacenter\",\n \"version\": \"latest\",\n },\n \"os_disk\": {\n \"caching\": azure_native.compute.CachingTypes.READ_WRITE,\n \"create_option\": azure_native.compute.DiskCreateOptionTypes.FROM_IMAGE,\n \"managed_disk\": {\n \"storage_account_type\": azure_native.compute.StorageAccountTypes.PREMIUM_LRS,\n },\n \"name\": \"myVMosdisk\",\n },\n },\n vm_name=\"myVM\")\n\n```\n\n```yaml\nresources:\n virtualMachine:\n type: azure-native:compute:VirtualMachine\n properties:\n hardwareProfile:\n vmSize: Standard_D1_v2\n location: westus\n networkProfile:\n networkInterfaces:\n - id: /subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\n primary: true\n osProfile:\n adminPassword: '{your-password}'\n adminUsername: '{your-username}'\n computerName: myVM\n windowsConfiguration:\n enableAutomaticUpdates: true\n patchSettings:\n enableHotpatching: true\n patchMode: AutomaticByPlatform\n provisionVMAgent: true\n resourceGroupName: myResourceGroup\n storageProfile:\n imageReference:\n offer: WindowsServer\n publisher: MicrosoftWindowsServer\n sku: 2016-Datacenter\n version: latest\n osDisk:\n caching: ReadWrite\n createOption: FromImage\n managedDisk:\n storageAccountType: Premium_LRS\n name: myVMosdisk\n vmName: myVM\n\n```\n\n{{% /example %}}\n{{% example %}}\n### Create a Windows vm with a patch setting patchMode of Manual.\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing AzureNative = Pulumi.AzureNative;\n\nreturn await Deployment.RunAsync(() => \n{\n var virtualMachine = new AzureNative.Compute.VirtualMachine(\"virtualMachine\", new()\n {\n HardwareProfile = new AzureNative.Compute.Inputs.HardwareProfileArgs\n {\n VmSize = AzureNative.Compute.VirtualMachineSizeTypes.Standard_D1_v2,\n },\n Location = \"westus\",\n NetworkProfile = new AzureNative.Compute.Inputs.NetworkProfileArgs\n {\n NetworkInterfaces = new[]\n {\n new AzureNative.Compute.Inputs.NetworkInterfaceReferenceArgs\n {\n Id = \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\",\n Primary = true,\n },\n },\n },\n OsProfile = new AzureNative.Compute.Inputs.OSProfileArgs\n {\n AdminPassword = \"{your-password}\",\n AdminUsername = \"{your-username}\",\n ComputerName = \"myVM\",\n WindowsConfiguration = new AzureNative.Compute.Inputs.WindowsConfigurationArgs\n {\n EnableAutomaticUpdates = true,\n PatchSettings = new AzureNative.Compute.Inputs.PatchSettingsArgs\n {\n PatchMode = AzureNative.Compute.WindowsVMGuestPatchMode.Manual,\n },\n ProvisionVMAgent = true,\n },\n },\n ResourceGroupName = \"myResourceGroup\",\n StorageProfile = new AzureNative.Compute.Inputs.StorageProfileArgs\n {\n ImageReference = new AzureNative.Compute.Inputs.ImageReferenceArgs\n {\n Offer = \"WindowsServer\",\n Publisher = \"MicrosoftWindowsServer\",\n Sku = \"2016-Datacenter\",\n Version = \"latest\",\n },\n OsDisk = new AzureNative.Compute.Inputs.OSDiskArgs\n {\n Caching = AzureNative.Compute.CachingTypes.ReadWrite,\n CreateOption = AzureNative.Compute.DiskCreateOptionTypes.FromImage,\n ManagedDisk = new AzureNative.Compute.Inputs.ManagedDiskParametersArgs\n {\n StorageAccountType = AzureNative.Compute.StorageAccountTypes.Premium_LRS,\n },\n Name = \"myVMosdisk\",\n },\n },\n VmName = \"myVM\",\n });\n\n});\n\n\n```\n\n```go\npackage main\n\nimport (\n\tcompute \"github.com/pulumi/pulumi-azure-native-sdk/compute/v2\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := compute.NewVirtualMachine(ctx, \"virtualMachine\", &compute.VirtualMachineArgs{\n\t\t\tHardwareProfile: &compute.HardwareProfileArgs{\n\t\t\t\tVmSize: pulumi.String(compute.VirtualMachineSizeTypes_Standard_D1_v2),\n\t\t\t},\n\t\t\tLocation: pulumi.String(\"westus\"),\n\t\t\tNetworkProfile: &compute.NetworkProfileArgs{\n\t\t\t\tNetworkInterfaces: compute.NetworkInterfaceReferenceArray{\n\t\t\t\t\t&compute.NetworkInterfaceReferenceArgs{\n\t\t\t\t\t\tId: pulumi.String(\"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\"),\n\t\t\t\t\t\tPrimary: pulumi.Bool(true),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tOsProfile: &compute.OSProfileArgs{\n\t\t\t\tAdminPassword: pulumi.String(\"{your-password}\"),\n\t\t\t\tAdminUsername: pulumi.String(\"{your-username}\"),\n\t\t\t\tComputerName: pulumi.String(\"myVM\"),\n\t\t\t\tWindowsConfiguration: &compute.WindowsConfigurationArgs{\n\t\t\t\t\tEnableAutomaticUpdates: pulumi.Bool(true),\n\t\t\t\t\tPatchSettings: &compute.PatchSettingsArgs{\n\t\t\t\t\t\tPatchMode: pulumi.String(compute.WindowsVMGuestPatchModeManual),\n\t\t\t\t\t},\n\t\t\t\t\tProvisionVMAgent: pulumi.Bool(true),\n\t\t\t\t},\n\t\t\t},\n\t\t\tResourceGroupName: pulumi.String(\"myResourceGroup\"),\n\t\t\tStorageProfile: &compute.StorageProfileArgs{\n\t\t\t\tImageReference: &compute.ImageReferenceArgs{\n\t\t\t\t\tOffer: pulumi.String(\"WindowsServer\"),\n\t\t\t\t\tPublisher: pulumi.String(\"MicrosoftWindowsServer\"),\n\t\t\t\t\tSku: pulumi.String(\"2016-Datacenter\"),\n\t\t\t\t\tVersion: pulumi.String(\"latest\"),\n\t\t\t\t},\n\t\t\t\tOsDisk: &compute.OSDiskArgs{\n\t\t\t\t\tCaching: compute.CachingTypesReadWrite,\n\t\t\t\t\tCreateOption: pulumi.String(compute.DiskCreateOptionTypesFromImage),\n\t\t\t\t\tManagedDisk: &compute.ManagedDiskParametersArgs{\n\t\t\t\t\t\tStorageAccountType: pulumi.String(compute.StorageAccountTypes_Premium_LRS),\n\t\t\t\t\t},\n\t\t\t\t\tName: pulumi.String(\"myVMosdisk\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tVmName: pulumi.String(\"myVM\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n\n```\n\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azurenative.compute.VirtualMachine;\nimport com.pulumi.azurenative.compute.VirtualMachineArgs;\nimport com.pulumi.azurenative.compute.inputs.HardwareProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.NetworkProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.OSProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.WindowsConfigurationArgs;\nimport com.pulumi.azurenative.compute.inputs.PatchSettingsArgs;\nimport com.pulumi.azurenative.compute.inputs.StorageProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.ImageReferenceArgs;\nimport com.pulumi.azurenative.compute.inputs.OSDiskArgs;\nimport com.pulumi.azurenative.compute.inputs.ManagedDiskParametersArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var virtualMachine = new VirtualMachine(\"virtualMachine\", VirtualMachineArgs.builder()\n .hardwareProfile(HardwareProfileArgs.builder()\n .vmSize(\"Standard_D1_v2\")\n .build())\n .location(\"westus\")\n .networkProfile(NetworkProfileArgs.builder()\n .networkInterfaces(NetworkInterfaceReferenceArgs.builder()\n .id(\"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\")\n .primary(true)\n .build())\n .build())\n .osProfile(OSProfileArgs.builder()\n .adminPassword(\"{your-password}\")\n .adminUsername(\"{your-username}\")\n .computerName(\"myVM\")\n .windowsConfiguration(WindowsConfigurationArgs.builder()\n .enableAutomaticUpdates(true)\n .patchSettings(PatchSettingsArgs.builder()\n .patchMode(\"Manual\")\n .build())\n .provisionVMAgent(true)\n .build())\n .build())\n .resourceGroupName(\"myResourceGroup\")\n .storageProfile(StorageProfileArgs.builder()\n .imageReference(ImageReferenceArgs.builder()\n .offer(\"WindowsServer\")\n .publisher(\"MicrosoftWindowsServer\")\n .sku(\"2016-Datacenter\")\n .version(\"latest\")\n .build())\n .osDisk(OSDiskArgs.builder()\n .caching(\"ReadWrite\")\n .createOption(\"FromImage\")\n .managedDisk(ManagedDiskParametersArgs.builder()\n .storageAccountType(\"Premium_LRS\")\n .build())\n .name(\"myVMosdisk\")\n .build())\n .build())\n .vmName(\"myVM\")\n .build());\n\n }\n}\n\n```\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azure_native from \"@pulumi/azure-native\";\n\nconst virtualMachine = new azure_native.compute.VirtualMachine(\"virtualMachine\", {\n hardwareProfile: {\n vmSize: azure_native.compute.VirtualMachineSizeTypes.Standard_D1_v2,\n },\n location: \"westus\",\n networkProfile: {\n networkInterfaces: [{\n id: \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\",\n primary: true,\n }],\n },\n osProfile: {\n adminPassword: \"{your-password}\",\n adminUsername: \"{your-username}\",\n computerName: \"myVM\",\n windowsConfiguration: {\n enableAutomaticUpdates: true,\n patchSettings: {\n patchMode: azure_native.compute.WindowsVMGuestPatchMode.Manual,\n },\n provisionVMAgent: true,\n },\n },\n resourceGroupName: \"myResourceGroup\",\n storageProfile: {\n imageReference: {\n offer: \"WindowsServer\",\n publisher: \"MicrosoftWindowsServer\",\n sku: \"2016-Datacenter\",\n version: \"latest\",\n },\n osDisk: {\n caching: azure_native.compute.CachingTypes.ReadWrite,\n createOption: azure_native.compute.DiskCreateOptionTypes.FromImage,\n managedDisk: {\n storageAccountType: azure_native.compute.StorageAccountTypes.Premium_LRS,\n },\n name: \"myVMosdisk\",\n },\n },\n vmName: \"myVM\",\n});\n\n```\n\n```python\nimport pulumi\nimport pulumi_azure_native as azure_native\n\nvirtual_machine = azure_native.compute.VirtualMachine(\"virtualMachine\",\n hardware_profile={\n \"vm_size\": azure_native.compute.VirtualMachineSizeTypes.STANDARD_D1_V2,\n },\n location=\"westus\",\n network_profile={\n \"network_interfaces\": [{\n \"id\": \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\",\n \"primary\": True,\n }],\n },\n os_profile={\n \"admin_password\": \"{your-password}\",\n \"admin_username\": \"{your-username}\",\n \"computer_name\": \"myVM\",\n \"windows_configuration\": {\n \"enable_automatic_updates\": True,\n \"patch_settings\": {\n \"patch_mode\": azure_native.compute.WindowsVMGuestPatchMode.MANUAL,\n },\n \"provision_vm_agent\": True,\n },\n },\n resource_group_name=\"myResourceGroup\",\n storage_profile={\n \"image_reference\": {\n \"offer\": \"WindowsServer\",\n \"publisher\": \"MicrosoftWindowsServer\",\n \"sku\": \"2016-Datacenter\",\n \"version\": \"latest\",\n },\n \"os_disk\": {\n \"caching\": azure_native.compute.CachingTypes.READ_WRITE,\n \"create_option\": azure_native.compute.DiskCreateOptionTypes.FROM_IMAGE,\n \"managed_disk\": {\n \"storage_account_type\": azure_native.compute.StorageAccountTypes.PREMIUM_LRS,\n },\n \"name\": \"myVMosdisk\",\n },\n },\n vm_name=\"myVM\")\n\n```\n\n```yaml\nresources:\n virtualMachine:\n type: azure-native:compute:VirtualMachine\n properties:\n hardwareProfile:\n vmSize: Standard_D1_v2\n location: westus\n networkProfile:\n networkInterfaces:\n - id: /subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\n primary: true\n osProfile:\n adminPassword: '{your-password}'\n adminUsername: '{your-username}'\n computerName: myVM\n windowsConfiguration:\n enableAutomaticUpdates: true\n patchSettings:\n patchMode: Manual\n provisionVMAgent: true\n resourceGroupName: myResourceGroup\n storageProfile:\n imageReference:\n offer: WindowsServer\n publisher: MicrosoftWindowsServer\n sku: 2016-Datacenter\n version: latest\n osDisk:\n caching: ReadWrite\n createOption: FromImage\n managedDisk:\n storageAccountType: Premium_LRS\n name: myVMosdisk\n vmName: myVM\n\n```\n\n{{% /example %}}\n{{% example %}}\n### Create a Windows vm with patch settings patchMode and assessmentMode set to AutomaticByPlatform.\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing AzureNative = Pulumi.AzureNative;\n\nreturn await Deployment.RunAsync(() => \n{\n var virtualMachine = new AzureNative.Compute.VirtualMachine(\"virtualMachine\", new()\n {\n HardwareProfile = new AzureNative.Compute.Inputs.HardwareProfileArgs\n {\n VmSize = AzureNative.Compute.VirtualMachineSizeTypes.Standard_D1_v2,\n },\n Location = \"westus\",\n NetworkProfile = new AzureNative.Compute.Inputs.NetworkProfileArgs\n {\n NetworkInterfaces = new[]\n {\n new AzureNative.Compute.Inputs.NetworkInterfaceReferenceArgs\n {\n Id = \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\",\n Primary = true,\n },\n },\n },\n OsProfile = new AzureNative.Compute.Inputs.OSProfileArgs\n {\n AdminPassword = \"{your-password}\",\n AdminUsername = \"{your-username}\",\n ComputerName = \"myVM\",\n WindowsConfiguration = new AzureNative.Compute.Inputs.WindowsConfigurationArgs\n {\n EnableAutomaticUpdates = true,\n PatchSettings = new AzureNative.Compute.Inputs.PatchSettingsArgs\n {\n AssessmentMode = AzureNative.Compute.WindowsPatchAssessmentMode.AutomaticByPlatform,\n PatchMode = AzureNative.Compute.WindowsVMGuestPatchMode.AutomaticByPlatform,\n },\n ProvisionVMAgent = true,\n },\n },\n ResourceGroupName = \"myResourceGroup\",\n StorageProfile = new AzureNative.Compute.Inputs.StorageProfileArgs\n {\n ImageReference = new AzureNative.Compute.Inputs.ImageReferenceArgs\n {\n Offer = \"WindowsServer\",\n Publisher = \"MicrosoftWindowsServer\",\n Sku = \"2016-Datacenter\",\n Version = \"latest\",\n },\n OsDisk = new AzureNative.Compute.Inputs.OSDiskArgs\n {\n Caching = AzureNative.Compute.CachingTypes.ReadWrite,\n CreateOption = AzureNative.Compute.DiskCreateOptionTypes.FromImage,\n ManagedDisk = new AzureNative.Compute.Inputs.ManagedDiskParametersArgs\n {\n StorageAccountType = AzureNative.Compute.StorageAccountTypes.Premium_LRS,\n },\n Name = \"myVMosdisk\",\n },\n },\n VmName = \"myVM\",\n });\n\n});\n\n\n```\n\n```go\npackage main\n\nimport (\n\tcompute \"github.com/pulumi/pulumi-azure-native-sdk/compute/v2\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := compute.NewVirtualMachine(ctx, \"virtualMachine\", &compute.VirtualMachineArgs{\n\t\t\tHardwareProfile: &compute.HardwareProfileArgs{\n\t\t\t\tVmSize: pulumi.String(compute.VirtualMachineSizeTypes_Standard_D1_v2),\n\t\t\t},\n\t\t\tLocation: pulumi.String(\"westus\"),\n\t\t\tNetworkProfile: &compute.NetworkProfileArgs{\n\t\t\t\tNetworkInterfaces: compute.NetworkInterfaceReferenceArray{\n\t\t\t\t\t&compute.NetworkInterfaceReferenceArgs{\n\t\t\t\t\t\tId: pulumi.String(\"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\"),\n\t\t\t\t\t\tPrimary: pulumi.Bool(true),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tOsProfile: &compute.OSProfileArgs{\n\t\t\t\tAdminPassword: pulumi.String(\"{your-password}\"),\n\t\t\t\tAdminUsername: pulumi.String(\"{your-username}\"),\n\t\t\t\tComputerName: pulumi.String(\"myVM\"),\n\t\t\t\tWindowsConfiguration: &compute.WindowsConfigurationArgs{\n\t\t\t\t\tEnableAutomaticUpdates: pulumi.Bool(true),\n\t\t\t\t\tPatchSettings: &compute.PatchSettingsArgs{\n\t\t\t\t\t\tAssessmentMode: pulumi.String(compute.WindowsPatchAssessmentModeAutomaticByPlatform),\n\t\t\t\t\t\tPatchMode: pulumi.String(compute.WindowsVMGuestPatchModeAutomaticByPlatform),\n\t\t\t\t\t},\n\t\t\t\t\tProvisionVMAgent: pulumi.Bool(true),\n\t\t\t\t},\n\t\t\t},\n\t\t\tResourceGroupName: pulumi.String(\"myResourceGroup\"),\n\t\t\tStorageProfile: &compute.StorageProfileArgs{\n\t\t\t\tImageReference: &compute.ImageReferenceArgs{\n\t\t\t\t\tOffer: pulumi.String(\"WindowsServer\"),\n\t\t\t\t\tPublisher: pulumi.String(\"MicrosoftWindowsServer\"),\n\t\t\t\t\tSku: pulumi.String(\"2016-Datacenter\"),\n\t\t\t\t\tVersion: pulumi.String(\"latest\"),\n\t\t\t\t},\n\t\t\t\tOsDisk: &compute.OSDiskArgs{\n\t\t\t\t\tCaching: compute.CachingTypesReadWrite,\n\t\t\t\t\tCreateOption: pulumi.String(compute.DiskCreateOptionTypesFromImage),\n\t\t\t\t\tManagedDisk: &compute.ManagedDiskParametersArgs{\n\t\t\t\t\t\tStorageAccountType: pulumi.String(compute.StorageAccountTypes_Premium_LRS),\n\t\t\t\t\t},\n\t\t\t\t\tName: pulumi.String(\"myVMosdisk\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tVmName: pulumi.String(\"myVM\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n\n```\n\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azurenative.compute.VirtualMachine;\nimport com.pulumi.azurenative.compute.VirtualMachineArgs;\nimport com.pulumi.azurenative.compute.inputs.HardwareProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.NetworkProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.OSProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.WindowsConfigurationArgs;\nimport com.pulumi.azurenative.compute.inputs.PatchSettingsArgs;\nimport com.pulumi.azurenative.compute.inputs.StorageProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.ImageReferenceArgs;\nimport com.pulumi.azurenative.compute.inputs.OSDiskArgs;\nimport com.pulumi.azurenative.compute.inputs.ManagedDiskParametersArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var virtualMachine = new VirtualMachine(\"virtualMachine\", VirtualMachineArgs.builder()\n .hardwareProfile(HardwareProfileArgs.builder()\n .vmSize(\"Standard_D1_v2\")\n .build())\n .location(\"westus\")\n .networkProfile(NetworkProfileArgs.builder()\n .networkInterfaces(NetworkInterfaceReferenceArgs.builder()\n .id(\"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\")\n .primary(true)\n .build())\n .build())\n .osProfile(OSProfileArgs.builder()\n .adminPassword(\"{your-password}\")\n .adminUsername(\"{your-username}\")\n .computerName(\"myVM\")\n .windowsConfiguration(WindowsConfigurationArgs.builder()\n .enableAutomaticUpdates(true)\n .patchSettings(PatchSettingsArgs.builder()\n .assessmentMode(\"AutomaticByPlatform\")\n .patchMode(\"AutomaticByPlatform\")\n .build())\n .provisionVMAgent(true)\n .build())\n .build())\n .resourceGroupName(\"myResourceGroup\")\n .storageProfile(StorageProfileArgs.builder()\n .imageReference(ImageReferenceArgs.builder()\n .offer(\"WindowsServer\")\n .publisher(\"MicrosoftWindowsServer\")\n .sku(\"2016-Datacenter\")\n .version(\"latest\")\n .build())\n .osDisk(OSDiskArgs.builder()\n .caching(\"ReadWrite\")\n .createOption(\"FromImage\")\n .managedDisk(ManagedDiskParametersArgs.builder()\n .storageAccountType(\"Premium_LRS\")\n .build())\n .name(\"myVMosdisk\")\n .build())\n .build())\n .vmName(\"myVM\")\n .build());\n\n }\n}\n\n```\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azure_native from \"@pulumi/azure-native\";\n\nconst virtualMachine = new azure_native.compute.VirtualMachine(\"virtualMachine\", {\n hardwareProfile: {\n vmSize: azure_native.compute.VirtualMachineSizeTypes.Standard_D1_v2,\n },\n location: \"westus\",\n networkProfile: {\n networkInterfaces: [{\n id: \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\",\n primary: true,\n }],\n },\n osProfile: {\n adminPassword: \"{your-password}\",\n adminUsername: \"{your-username}\",\n computerName: \"myVM\",\n windowsConfiguration: {\n enableAutomaticUpdates: true,\n patchSettings: {\n assessmentMode: azure_native.compute.WindowsPatchAssessmentMode.AutomaticByPlatform,\n patchMode: azure_native.compute.WindowsVMGuestPatchMode.AutomaticByPlatform,\n },\n provisionVMAgent: true,\n },\n },\n resourceGroupName: \"myResourceGroup\",\n storageProfile: {\n imageReference: {\n offer: \"WindowsServer\",\n publisher: \"MicrosoftWindowsServer\",\n sku: \"2016-Datacenter\",\n version: \"latest\",\n },\n osDisk: {\n caching: azure_native.compute.CachingTypes.ReadWrite,\n createOption: azure_native.compute.DiskCreateOptionTypes.FromImage,\n managedDisk: {\n storageAccountType: azure_native.compute.StorageAccountTypes.Premium_LRS,\n },\n name: \"myVMosdisk\",\n },\n },\n vmName: \"myVM\",\n});\n\n```\n\n```python\nimport pulumi\nimport pulumi_azure_native as azure_native\n\nvirtual_machine = azure_native.compute.VirtualMachine(\"virtualMachine\",\n hardware_profile={\n \"vm_size\": azure_native.compute.VirtualMachineSizeTypes.STANDARD_D1_V2,\n },\n location=\"westus\",\n network_profile={\n \"network_interfaces\": [{\n \"id\": \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\",\n \"primary\": True,\n }],\n },\n os_profile={\n \"admin_password\": \"{your-password}\",\n \"admin_username\": \"{your-username}\",\n \"computer_name\": \"myVM\",\n \"windows_configuration\": {\n \"enable_automatic_updates\": True,\n \"patch_settings\": {\n \"assessment_mode\": azure_native.compute.WindowsPatchAssessmentMode.AUTOMATIC_BY_PLATFORM,\n \"patch_mode\": azure_native.compute.WindowsVMGuestPatchMode.AUTOMATIC_BY_PLATFORM,\n },\n \"provision_vm_agent\": True,\n },\n },\n resource_group_name=\"myResourceGroup\",\n storage_profile={\n \"image_reference\": {\n \"offer\": \"WindowsServer\",\n \"publisher\": \"MicrosoftWindowsServer\",\n \"sku\": \"2016-Datacenter\",\n \"version\": \"latest\",\n },\n \"os_disk\": {\n \"caching\": azure_native.compute.CachingTypes.READ_WRITE,\n \"create_option\": azure_native.compute.DiskCreateOptionTypes.FROM_IMAGE,\n \"managed_disk\": {\n \"storage_account_type\": azure_native.compute.StorageAccountTypes.PREMIUM_LRS,\n },\n \"name\": \"myVMosdisk\",\n },\n },\n vm_name=\"myVM\")\n\n```\n\n```yaml\nresources:\n virtualMachine:\n type: azure-native:compute:VirtualMachine\n properties:\n hardwareProfile:\n vmSize: Standard_D1_v2\n location: westus\n networkProfile:\n networkInterfaces:\n - id: /subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\n primary: true\n osProfile:\n adminPassword: '{your-password}'\n adminUsername: '{your-username}'\n computerName: myVM\n windowsConfiguration:\n enableAutomaticUpdates: true\n patchSettings:\n assessmentMode: AutomaticByPlatform\n patchMode: AutomaticByPlatform\n provisionVMAgent: true\n resourceGroupName: myResourceGroup\n storageProfile:\n imageReference:\n offer: WindowsServer\n publisher: MicrosoftWindowsServer\n sku: 2016-Datacenter\n version: latest\n osDisk:\n caching: ReadWrite\n createOption: FromImage\n managedDisk:\n storageAccountType: Premium_LRS\n name: myVMosdisk\n vmName: myVM\n\n```\n\n{{% /example %}}\n{{% example %}}\n### Create a custom-image vm from an unmanaged generalized os image.\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing AzureNative = Pulumi.AzureNative;\n\nreturn await Deployment.RunAsync(() => \n{\n var virtualMachine = new AzureNative.Compute.VirtualMachine(\"virtualMachine\", new()\n {\n HardwareProfile = new AzureNative.Compute.Inputs.HardwareProfileArgs\n {\n VmSize = AzureNative.Compute.VirtualMachineSizeTypes.Standard_D1_v2,\n },\n Location = \"westus\",\n NetworkProfile = new AzureNative.Compute.Inputs.NetworkProfileArgs\n {\n NetworkInterfaces = new[]\n {\n new AzureNative.Compute.Inputs.NetworkInterfaceReferenceArgs\n {\n Id = \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\",\n Primary = true,\n },\n },\n },\n OsProfile = new AzureNative.Compute.Inputs.OSProfileArgs\n {\n AdminPassword = \"{your-password}\",\n AdminUsername = \"{your-username}\",\n ComputerName = \"myVM\",\n },\n ResourceGroupName = \"myResourceGroup\",\n StorageProfile = new AzureNative.Compute.Inputs.StorageProfileArgs\n {\n OsDisk = new AzureNative.Compute.Inputs.OSDiskArgs\n {\n Caching = AzureNative.Compute.CachingTypes.ReadWrite,\n CreateOption = AzureNative.Compute.DiskCreateOptionTypes.FromImage,\n Image = new AzureNative.Compute.Inputs.VirtualHardDiskArgs\n {\n Uri = \"http://{existing-storage-account-name}.blob.core.windows.net/{existing-container-name}/{existing-generalized-os-image-blob-name}.vhd\",\n },\n Name = \"myVMosdisk\",\n OsType = AzureNative.Compute.OperatingSystemTypes.Windows,\n Vhd = new AzureNative.Compute.Inputs.VirtualHardDiskArgs\n {\n Uri = \"http://{existing-storage-account-name}.blob.core.windows.net/{existing-container-name}/myDisk.vhd\",\n },\n },\n },\n VmName = \"{vm-name}\",\n });\n\n});\n\n\n```\n\n```go\npackage main\n\nimport (\n\tcompute \"github.com/pulumi/pulumi-azure-native-sdk/compute/v2\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := compute.NewVirtualMachine(ctx, \"virtualMachine\", &compute.VirtualMachineArgs{\n\t\t\tHardwareProfile: &compute.HardwareProfileArgs{\n\t\t\t\tVmSize: pulumi.String(compute.VirtualMachineSizeTypes_Standard_D1_v2),\n\t\t\t},\n\t\t\tLocation: pulumi.String(\"westus\"),\n\t\t\tNetworkProfile: &compute.NetworkProfileArgs{\n\t\t\t\tNetworkInterfaces: compute.NetworkInterfaceReferenceArray{\n\t\t\t\t\t&compute.NetworkInterfaceReferenceArgs{\n\t\t\t\t\t\tId: pulumi.String(\"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\"),\n\t\t\t\t\t\tPrimary: pulumi.Bool(true),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tOsProfile: &compute.OSProfileArgs{\n\t\t\t\tAdminPassword: pulumi.String(\"{your-password}\"),\n\t\t\t\tAdminUsername: pulumi.String(\"{your-username}\"),\n\t\t\t\tComputerName: pulumi.String(\"myVM\"),\n\t\t\t},\n\t\t\tResourceGroupName: pulumi.String(\"myResourceGroup\"),\n\t\t\tStorageProfile: &compute.StorageProfileArgs{\n\t\t\t\tOsDisk: &compute.OSDiskArgs{\n\t\t\t\t\tCaching: compute.CachingTypesReadWrite,\n\t\t\t\t\tCreateOption: pulumi.String(compute.DiskCreateOptionTypesFromImage),\n\t\t\t\t\tImage: &compute.VirtualHardDiskArgs{\n\t\t\t\t\t\tUri: pulumi.String(\"http://{existing-storage-account-name}.blob.core.windows.net/{existing-container-name}/{existing-generalized-os-image-blob-name}.vhd\"),\n\t\t\t\t\t},\n\t\t\t\t\tName: pulumi.String(\"myVMosdisk\"),\n\t\t\t\t\tOsType: compute.OperatingSystemTypesWindows,\n\t\t\t\t\tVhd: &compute.VirtualHardDiskArgs{\n\t\t\t\t\t\tUri: pulumi.String(\"http://{existing-storage-account-name}.blob.core.windows.net/{existing-container-name}/myDisk.vhd\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tVmName: pulumi.String(\"{vm-name}\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n\n```\n\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azurenative.compute.VirtualMachine;\nimport com.pulumi.azurenative.compute.VirtualMachineArgs;\nimport com.pulumi.azurenative.compute.inputs.HardwareProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.NetworkProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.OSProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.StorageProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.OSDiskArgs;\nimport com.pulumi.azurenative.compute.inputs.VirtualHardDiskArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var virtualMachine = new VirtualMachine(\"virtualMachine\", VirtualMachineArgs.builder()\n .hardwareProfile(HardwareProfileArgs.builder()\n .vmSize(\"Standard_D1_v2\")\n .build())\n .location(\"westus\")\n .networkProfile(NetworkProfileArgs.builder()\n .networkInterfaces(NetworkInterfaceReferenceArgs.builder()\n .id(\"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\")\n .primary(true)\n .build())\n .build())\n .osProfile(OSProfileArgs.builder()\n .adminPassword(\"{your-password}\")\n .adminUsername(\"{your-username}\")\n .computerName(\"myVM\")\n .build())\n .resourceGroupName(\"myResourceGroup\")\n .storageProfile(StorageProfileArgs.builder()\n .osDisk(OSDiskArgs.builder()\n .caching(\"ReadWrite\")\n .createOption(\"FromImage\")\n .image(VirtualHardDiskArgs.builder()\n .uri(\"http://{existing-storage-account-name}.blob.core.windows.net/{existing-container-name}/{existing-generalized-os-image-blob-name}.vhd\")\n .build())\n .name(\"myVMosdisk\")\n .osType(\"Windows\")\n .vhd(VirtualHardDiskArgs.builder()\n .uri(\"http://{existing-storage-account-name}.blob.core.windows.net/{existing-container-name}/myDisk.vhd\")\n .build())\n .build())\n .build())\n .vmName(\"{vm-name}\")\n .build());\n\n }\n}\n\n```\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azure_native from \"@pulumi/azure-native\";\n\nconst virtualMachine = new azure_native.compute.VirtualMachine(\"virtualMachine\", {\n hardwareProfile: {\n vmSize: azure_native.compute.VirtualMachineSizeTypes.Standard_D1_v2,\n },\n location: \"westus\",\n networkProfile: {\n networkInterfaces: [{\n id: \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\",\n primary: true,\n }],\n },\n osProfile: {\n adminPassword: \"{your-password}\",\n adminUsername: \"{your-username}\",\n computerName: \"myVM\",\n },\n resourceGroupName: \"myResourceGroup\",\n storageProfile: {\n osDisk: {\n caching: azure_native.compute.CachingTypes.ReadWrite,\n createOption: azure_native.compute.DiskCreateOptionTypes.FromImage,\n image: {\n uri: \"http://{existing-storage-account-name}.blob.core.windows.net/{existing-container-name}/{existing-generalized-os-image-blob-name}.vhd\",\n },\n name: \"myVMosdisk\",\n osType: azure_native.compute.OperatingSystemTypes.Windows,\n vhd: {\n uri: \"http://{existing-storage-account-name}.blob.core.windows.net/{existing-container-name}/myDisk.vhd\",\n },\n },\n },\n vmName: \"{vm-name}\",\n});\n\n```\n\n```python\nimport pulumi\nimport pulumi_azure_native as azure_native\n\nvirtual_machine = azure_native.compute.VirtualMachine(\"virtualMachine\",\n hardware_profile={\n \"vm_size\": azure_native.compute.VirtualMachineSizeTypes.STANDARD_D1_V2,\n },\n location=\"westus\",\n network_profile={\n \"network_interfaces\": [{\n \"id\": \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\",\n \"primary\": True,\n }],\n },\n os_profile={\n \"admin_password\": \"{your-password}\",\n \"admin_username\": \"{your-username}\",\n \"computer_name\": \"myVM\",\n },\n resource_group_name=\"myResourceGroup\",\n storage_profile={\n \"os_disk\": {\n \"caching\": azure_native.compute.CachingTypes.READ_WRITE,\n \"create_option\": azure_native.compute.DiskCreateOptionTypes.FROM_IMAGE,\n \"image\": {\n \"uri\": \"http://{existing-storage-account-name}.blob.core.windows.net/{existing-container-name}/{existing-generalized-os-image-blob-name}.vhd\",\n },\n \"name\": \"myVMosdisk\",\n \"os_type\": azure_native.compute.OperatingSystemTypes.WINDOWS,\n \"vhd\": {\n \"uri\": \"http://{existing-storage-account-name}.blob.core.windows.net/{existing-container-name}/myDisk.vhd\",\n },\n },\n },\n vm_name=\"{vm-name}\")\n\n```\n\n```yaml\nresources:\n virtualMachine:\n type: azure-native:compute:VirtualMachine\n properties:\n hardwareProfile:\n vmSize: Standard_D1_v2\n location: westus\n networkProfile:\n networkInterfaces:\n - id: /subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\n primary: true\n osProfile:\n adminPassword: '{your-password}'\n adminUsername: '{your-username}'\n computerName: myVM\n resourceGroupName: myResourceGroup\n storageProfile:\n osDisk:\n caching: ReadWrite\n createOption: FromImage\n image:\n uri: http://{existing-storage-account-name}.blob.core.windows.net/{existing-container-name}/{existing-generalized-os-image-blob-name}.vhd\n name: myVMosdisk\n osType: Windows\n vhd:\n uri: http://{existing-storage-account-name}.blob.core.windows.net/{existing-container-name}/myDisk.vhd\n vmName: '{vm-name}'\n\n```\n\n{{% /example %}}\n{{% example %}}\n### Create a platform-image vm with unmanaged os and data disks.\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing AzureNative = Pulumi.AzureNative;\n\nreturn await Deployment.RunAsync(() => \n{\n var virtualMachine = new AzureNative.Compute.VirtualMachine(\"virtualMachine\", new()\n {\n HardwareProfile = new AzureNative.Compute.Inputs.HardwareProfileArgs\n {\n VmSize = AzureNative.Compute.VirtualMachineSizeTypes.Standard_D2_v2,\n },\n Location = \"westus\",\n NetworkProfile = new AzureNative.Compute.Inputs.NetworkProfileArgs\n {\n NetworkInterfaces = new[]\n {\n new AzureNative.Compute.Inputs.NetworkInterfaceReferenceArgs\n {\n Id = \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\",\n Primary = true,\n },\n },\n },\n OsProfile = new AzureNative.Compute.Inputs.OSProfileArgs\n {\n AdminPassword = \"{your-password}\",\n AdminUsername = \"{your-username}\",\n ComputerName = \"myVM\",\n },\n ResourceGroupName = \"myResourceGroup\",\n StorageProfile = new AzureNative.Compute.Inputs.StorageProfileArgs\n {\n DataDisks = new[]\n {\n new AzureNative.Compute.Inputs.DataDiskArgs\n {\n CreateOption = AzureNative.Compute.DiskCreateOptionTypes.Empty,\n DiskSizeGB = 1023,\n Lun = 0,\n Vhd = new AzureNative.Compute.Inputs.VirtualHardDiskArgs\n {\n Uri = \"http://{existing-storage-account-name}.blob.core.windows.net/{existing-container-name}/myDisk0.vhd\",\n },\n },\n new AzureNative.Compute.Inputs.DataDiskArgs\n {\n CreateOption = AzureNative.Compute.DiskCreateOptionTypes.Empty,\n DiskSizeGB = 1023,\n Lun = 1,\n Vhd = new AzureNative.Compute.Inputs.VirtualHardDiskArgs\n {\n Uri = \"http://{existing-storage-account-name}.blob.core.windows.net/{existing-container-name}/myDisk1.vhd\",\n },\n },\n },\n ImageReference = new AzureNative.Compute.Inputs.ImageReferenceArgs\n {\n Offer = \"WindowsServer\",\n Publisher = \"MicrosoftWindowsServer\",\n Sku = \"2016-Datacenter\",\n Version = \"latest\",\n },\n OsDisk = new AzureNative.Compute.Inputs.OSDiskArgs\n {\n Caching = AzureNative.Compute.CachingTypes.ReadWrite,\n CreateOption = AzureNative.Compute.DiskCreateOptionTypes.FromImage,\n Name = \"myVMosdisk\",\n Vhd = new AzureNative.Compute.Inputs.VirtualHardDiskArgs\n {\n Uri = \"http://{existing-storage-account-name}.blob.core.windows.net/{existing-container-name}/myDisk.vhd\",\n },\n },\n },\n VmName = \"{vm-name}\",\n });\n\n});\n\n\n```\n\n```go\npackage main\n\nimport (\n\tcompute \"github.com/pulumi/pulumi-azure-native-sdk/compute/v2\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := compute.NewVirtualMachine(ctx, \"virtualMachine\", &compute.VirtualMachineArgs{\n\t\t\tHardwareProfile: &compute.HardwareProfileArgs{\n\t\t\t\tVmSize: pulumi.String(compute.VirtualMachineSizeTypes_Standard_D2_v2),\n\t\t\t},\n\t\t\tLocation: pulumi.String(\"westus\"),\n\t\t\tNetworkProfile: &compute.NetworkProfileArgs{\n\t\t\t\tNetworkInterfaces: compute.NetworkInterfaceReferenceArray{\n\t\t\t\t\t&compute.NetworkInterfaceReferenceArgs{\n\t\t\t\t\t\tId: pulumi.String(\"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\"),\n\t\t\t\t\t\tPrimary: pulumi.Bool(true),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tOsProfile: &compute.OSProfileArgs{\n\t\t\t\tAdminPassword: pulumi.String(\"{your-password}\"),\n\t\t\t\tAdminUsername: pulumi.String(\"{your-username}\"),\n\t\t\t\tComputerName: pulumi.String(\"myVM\"),\n\t\t\t},\n\t\t\tResourceGroupName: pulumi.String(\"myResourceGroup\"),\n\t\t\tStorageProfile: &compute.StorageProfileArgs{\n\t\t\t\tDataDisks: compute.DataDiskArray{\n\t\t\t\t\t&compute.DataDiskArgs{\n\t\t\t\t\t\tCreateOption: pulumi.String(compute.DiskCreateOptionTypesEmpty),\n\t\t\t\t\t\tDiskSizeGB: pulumi.Int(1023),\n\t\t\t\t\t\tLun: pulumi.Int(0),\n\t\t\t\t\t\tVhd: &compute.VirtualHardDiskArgs{\n\t\t\t\t\t\t\tUri: pulumi.String(\"http://{existing-storage-account-name}.blob.core.windows.net/{existing-container-name}/myDisk0.vhd\"),\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t\t&compute.DataDiskArgs{\n\t\t\t\t\t\tCreateOption: pulumi.String(compute.DiskCreateOptionTypesEmpty),\n\t\t\t\t\t\tDiskSizeGB: pulumi.Int(1023),\n\t\t\t\t\t\tLun: pulumi.Int(1),\n\t\t\t\t\t\tVhd: &compute.VirtualHardDiskArgs{\n\t\t\t\t\t\t\tUri: pulumi.String(\"http://{existing-storage-account-name}.blob.core.windows.net/{existing-container-name}/myDisk1.vhd\"),\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tImageReference: &compute.ImageReferenceArgs{\n\t\t\t\t\tOffer: pulumi.String(\"WindowsServer\"),\n\t\t\t\t\tPublisher: pulumi.String(\"MicrosoftWindowsServer\"),\n\t\t\t\t\tSku: pulumi.String(\"2016-Datacenter\"),\n\t\t\t\t\tVersion: pulumi.String(\"latest\"),\n\t\t\t\t},\n\t\t\t\tOsDisk: &compute.OSDiskArgs{\n\t\t\t\t\tCaching: compute.CachingTypesReadWrite,\n\t\t\t\t\tCreateOption: pulumi.String(compute.DiskCreateOptionTypesFromImage),\n\t\t\t\t\tName: pulumi.String(\"myVMosdisk\"),\n\t\t\t\t\tVhd: &compute.VirtualHardDiskArgs{\n\t\t\t\t\t\tUri: pulumi.String(\"http://{existing-storage-account-name}.blob.core.windows.net/{existing-container-name}/myDisk.vhd\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tVmName: pulumi.String(\"{vm-name}\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n\n```\n\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azurenative.compute.VirtualMachine;\nimport com.pulumi.azurenative.compute.VirtualMachineArgs;\nimport com.pulumi.azurenative.compute.inputs.HardwareProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.NetworkProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.OSProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.StorageProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.ImageReferenceArgs;\nimport com.pulumi.azurenative.compute.inputs.OSDiskArgs;\nimport com.pulumi.azurenative.compute.inputs.VirtualHardDiskArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var virtualMachine = new VirtualMachine(\"virtualMachine\", VirtualMachineArgs.builder()\n .hardwareProfile(HardwareProfileArgs.builder()\n .vmSize(\"Standard_D2_v2\")\n .build())\n .location(\"westus\")\n .networkProfile(NetworkProfileArgs.builder()\n .networkInterfaces(NetworkInterfaceReferenceArgs.builder()\n .id(\"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\")\n .primary(true)\n .build())\n .build())\n .osProfile(OSProfileArgs.builder()\n .adminPassword(\"{your-password}\")\n .adminUsername(\"{your-username}\")\n .computerName(\"myVM\")\n .build())\n .resourceGroupName(\"myResourceGroup\")\n .storageProfile(StorageProfileArgs.builder()\n .dataDisks( \n DataDiskArgs.builder()\n .createOption(\"Empty\")\n .diskSizeGB(1023)\n .lun(0)\n .vhd(VirtualHardDiskArgs.builder()\n .uri(\"http://{existing-storage-account-name}.blob.core.windows.net/{existing-container-name}/myDisk0.vhd\")\n .build())\n .build(),\n DataDiskArgs.builder()\n .createOption(\"Empty\")\n .diskSizeGB(1023)\n .lun(1)\n .vhd(VirtualHardDiskArgs.builder()\n .uri(\"http://{existing-storage-account-name}.blob.core.windows.net/{existing-container-name}/myDisk1.vhd\")\n .build())\n .build())\n .imageReference(ImageReferenceArgs.builder()\n .offer(\"WindowsServer\")\n .publisher(\"MicrosoftWindowsServer\")\n .sku(\"2016-Datacenter\")\n .version(\"latest\")\n .build())\n .osDisk(OSDiskArgs.builder()\n .caching(\"ReadWrite\")\n .createOption(\"FromImage\")\n .name(\"myVMosdisk\")\n .vhd(VirtualHardDiskArgs.builder()\n .uri(\"http://{existing-storage-account-name}.blob.core.windows.net/{existing-container-name}/myDisk.vhd\")\n .build())\n .build())\n .build())\n .vmName(\"{vm-name}\")\n .build());\n\n }\n}\n\n```\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azure_native from \"@pulumi/azure-native\";\n\nconst virtualMachine = new azure_native.compute.VirtualMachine(\"virtualMachine\", {\n hardwareProfile: {\n vmSize: azure_native.compute.VirtualMachineSizeTypes.Standard_D2_v2,\n },\n location: \"westus\",\n networkProfile: {\n networkInterfaces: [{\n id: \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\",\n primary: true,\n }],\n },\n osProfile: {\n adminPassword: \"{your-password}\",\n adminUsername: \"{your-username}\",\n computerName: \"myVM\",\n },\n resourceGroupName: \"myResourceGroup\",\n storageProfile: {\n dataDisks: [\n {\n createOption: azure_native.compute.DiskCreateOptionTypes.Empty,\n diskSizeGB: 1023,\n lun: 0,\n vhd: {\n uri: \"http://{existing-storage-account-name}.blob.core.windows.net/{existing-container-name}/myDisk0.vhd\",\n },\n },\n {\n createOption: azure_native.compute.DiskCreateOptionTypes.Empty,\n diskSizeGB: 1023,\n lun: 1,\n vhd: {\n uri: \"http://{existing-storage-account-name}.blob.core.windows.net/{existing-container-name}/myDisk1.vhd\",\n },\n },\n ],\n imageReference: {\n offer: \"WindowsServer\",\n publisher: \"MicrosoftWindowsServer\",\n sku: \"2016-Datacenter\",\n version: \"latest\",\n },\n osDisk: {\n caching: azure_native.compute.CachingTypes.ReadWrite,\n createOption: azure_native.compute.DiskCreateOptionTypes.FromImage,\n name: \"myVMosdisk\",\n vhd: {\n uri: \"http://{existing-storage-account-name}.blob.core.windows.net/{existing-container-name}/myDisk.vhd\",\n },\n },\n },\n vmName: \"{vm-name}\",\n});\n\n```\n\n```python\nimport pulumi\nimport pulumi_azure_native as azure_native\n\nvirtual_machine = azure_native.compute.VirtualMachine(\"virtualMachine\",\n hardware_profile={\n \"vm_size\": azure_native.compute.VirtualMachineSizeTypes.STANDARD_D2_V2,\n },\n location=\"westus\",\n network_profile={\n \"network_interfaces\": [{\n \"id\": \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\",\n \"primary\": True,\n }],\n },\n os_profile={\n \"admin_password\": \"{your-password}\",\n \"admin_username\": \"{your-username}\",\n \"computer_name\": \"myVM\",\n },\n resource_group_name=\"myResourceGroup\",\n storage_profile={\n \"data_disks\": [\n {\n \"create_option\": azure_native.compute.DiskCreateOptionTypes.EMPTY,\n \"disk_size_gb\": 1023,\n \"lun\": 0,\n \"vhd\": {\n \"uri\": \"http://{existing-storage-account-name}.blob.core.windows.net/{existing-container-name}/myDisk0.vhd\",\n },\n },\n {\n \"create_option\": azure_native.compute.DiskCreateOptionTypes.EMPTY,\n \"disk_size_gb\": 1023,\n \"lun\": 1,\n \"vhd\": {\n \"uri\": \"http://{existing-storage-account-name}.blob.core.windows.net/{existing-container-name}/myDisk1.vhd\",\n },\n },\n ],\n \"image_reference\": {\n \"offer\": \"WindowsServer\",\n \"publisher\": \"MicrosoftWindowsServer\",\n \"sku\": \"2016-Datacenter\",\n \"version\": \"latest\",\n },\n \"os_disk\": {\n \"caching\": azure_native.compute.CachingTypes.READ_WRITE,\n \"create_option\": azure_native.compute.DiskCreateOptionTypes.FROM_IMAGE,\n \"name\": \"myVMosdisk\",\n \"vhd\": {\n \"uri\": \"http://{existing-storage-account-name}.blob.core.windows.net/{existing-container-name}/myDisk.vhd\",\n },\n },\n },\n vm_name=\"{vm-name}\")\n\n```\n\n```yaml\nresources:\n virtualMachine:\n type: azure-native:compute:VirtualMachine\n properties:\n hardwareProfile:\n vmSize: Standard_D2_v2\n location: westus\n networkProfile:\n networkInterfaces:\n - id: /subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\n primary: true\n osProfile:\n adminPassword: '{your-password}'\n adminUsername: '{your-username}'\n computerName: myVM\n resourceGroupName: myResourceGroup\n storageProfile:\n dataDisks:\n - createOption: Empty\n diskSizeGB: 1023\n lun: 0\n vhd:\n uri: http://{existing-storage-account-name}.blob.core.windows.net/{existing-container-name}/myDisk0.vhd\n - createOption: Empty\n diskSizeGB: 1023\n lun: 1\n vhd:\n uri: http://{existing-storage-account-name}.blob.core.windows.net/{existing-container-name}/myDisk1.vhd\n imageReference:\n offer: WindowsServer\n publisher: MicrosoftWindowsServer\n sku: 2016-Datacenter\n version: latest\n osDisk:\n caching: ReadWrite\n createOption: FromImage\n name: myVMosdisk\n vhd:\n uri: http://{existing-storage-account-name}.blob.core.windows.net/{existing-container-name}/myDisk.vhd\n vmName: '{vm-name}'\n\n```\n\n{{% /example %}}\n{{% example %}}\n### Create a vm from a custom image.\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing AzureNative = Pulumi.AzureNative;\n\nreturn await Deployment.RunAsync(() => \n{\n var virtualMachine = new AzureNative.Compute.VirtualMachine(\"virtualMachine\", new()\n {\n HardwareProfile = new AzureNative.Compute.Inputs.HardwareProfileArgs\n {\n VmSize = AzureNative.Compute.VirtualMachineSizeTypes.Standard_D1_v2,\n },\n Location = \"westus\",\n NetworkProfile = new AzureNative.Compute.Inputs.NetworkProfileArgs\n {\n NetworkInterfaces = new[]\n {\n new AzureNative.Compute.Inputs.NetworkInterfaceReferenceArgs\n {\n Id = \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\",\n Primary = true,\n },\n },\n },\n OsProfile = new AzureNative.Compute.Inputs.OSProfileArgs\n {\n AdminPassword = \"{your-password}\",\n AdminUsername = \"{your-username}\",\n ComputerName = \"myVM\",\n },\n ResourceGroupName = \"myResourceGroup\",\n StorageProfile = new AzureNative.Compute.Inputs.StorageProfileArgs\n {\n ImageReference = new AzureNative.Compute.Inputs.ImageReferenceArgs\n {\n Id = \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/images/{existing-custom-image-name}\",\n },\n OsDisk = new AzureNative.Compute.Inputs.OSDiskArgs\n {\n Caching = AzureNative.Compute.CachingTypes.ReadWrite,\n CreateOption = AzureNative.Compute.DiskCreateOptionTypes.FromImage,\n ManagedDisk = new AzureNative.Compute.Inputs.ManagedDiskParametersArgs\n {\n StorageAccountType = AzureNative.Compute.StorageAccountTypes.Standard_LRS,\n },\n Name = \"myVMosdisk\",\n },\n },\n VmName = \"myVM\",\n });\n\n});\n\n\n```\n\n```go\npackage main\n\nimport (\n\tcompute \"github.com/pulumi/pulumi-azure-native-sdk/compute/v2\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := compute.NewVirtualMachine(ctx, \"virtualMachine\", &compute.VirtualMachineArgs{\n\t\t\tHardwareProfile: &compute.HardwareProfileArgs{\n\t\t\t\tVmSize: pulumi.String(compute.VirtualMachineSizeTypes_Standard_D1_v2),\n\t\t\t},\n\t\t\tLocation: pulumi.String(\"westus\"),\n\t\t\tNetworkProfile: &compute.NetworkProfileArgs{\n\t\t\t\tNetworkInterfaces: compute.NetworkInterfaceReferenceArray{\n\t\t\t\t\t&compute.NetworkInterfaceReferenceArgs{\n\t\t\t\t\t\tId: pulumi.String(\"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\"),\n\t\t\t\t\t\tPrimary: pulumi.Bool(true),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tOsProfile: &compute.OSProfileArgs{\n\t\t\t\tAdminPassword: pulumi.String(\"{your-password}\"),\n\t\t\t\tAdminUsername: pulumi.String(\"{your-username}\"),\n\t\t\t\tComputerName: pulumi.String(\"myVM\"),\n\t\t\t},\n\t\t\tResourceGroupName: pulumi.String(\"myResourceGroup\"),\n\t\t\tStorageProfile: &compute.StorageProfileArgs{\n\t\t\t\tImageReference: &compute.ImageReferenceArgs{\n\t\t\t\t\tId: pulumi.String(\"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/images/{existing-custom-image-name}\"),\n\t\t\t\t},\n\t\t\t\tOsDisk: &compute.OSDiskArgs{\n\t\t\t\t\tCaching: compute.CachingTypesReadWrite,\n\t\t\t\t\tCreateOption: pulumi.String(compute.DiskCreateOptionTypesFromImage),\n\t\t\t\t\tManagedDisk: &compute.ManagedDiskParametersArgs{\n\t\t\t\t\t\tStorageAccountType: pulumi.String(compute.StorageAccountTypes_Standard_LRS),\n\t\t\t\t\t},\n\t\t\t\t\tName: pulumi.String(\"myVMosdisk\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tVmName: pulumi.String(\"myVM\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n\n```\n\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azurenative.compute.VirtualMachine;\nimport com.pulumi.azurenative.compute.VirtualMachineArgs;\nimport com.pulumi.azurenative.compute.inputs.HardwareProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.NetworkProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.OSProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.StorageProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.ImageReferenceArgs;\nimport com.pulumi.azurenative.compute.inputs.OSDiskArgs;\nimport com.pulumi.azurenative.compute.inputs.ManagedDiskParametersArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var virtualMachine = new VirtualMachine(\"virtualMachine\", VirtualMachineArgs.builder()\n .hardwareProfile(HardwareProfileArgs.builder()\n .vmSize(\"Standard_D1_v2\")\n .build())\n .location(\"westus\")\n .networkProfile(NetworkProfileArgs.builder()\n .networkInterfaces(NetworkInterfaceReferenceArgs.builder()\n .id(\"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\")\n .primary(true)\n .build())\n .build())\n .osProfile(OSProfileArgs.builder()\n .adminPassword(\"{your-password}\")\n .adminUsername(\"{your-username}\")\n .computerName(\"myVM\")\n .build())\n .resourceGroupName(\"myResourceGroup\")\n .storageProfile(StorageProfileArgs.builder()\n .imageReference(ImageReferenceArgs.builder()\n .id(\"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/images/{existing-custom-image-name}\")\n .build())\n .osDisk(OSDiskArgs.builder()\n .caching(\"ReadWrite\")\n .createOption(\"FromImage\")\n .managedDisk(ManagedDiskParametersArgs.builder()\n .storageAccountType(\"Standard_LRS\")\n .build())\n .name(\"myVMosdisk\")\n .build())\n .build())\n .vmName(\"myVM\")\n .build());\n\n }\n}\n\n```\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azure_native from \"@pulumi/azure-native\";\n\nconst virtualMachine = new azure_native.compute.VirtualMachine(\"virtualMachine\", {\n hardwareProfile: {\n vmSize: azure_native.compute.VirtualMachineSizeTypes.Standard_D1_v2,\n },\n location: \"westus\",\n networkProfile: {\n networkInterfaces: [{\n id: \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\",\n primary: true,\n }],\n },\n osProfile: {\n adminPassword: \"{your-password}\",\n adminUsername: \"{your-username}\",\n computerName: \"myVM\",\n },\n resourceGroupName: \"myResourceGroup\",\n storageProfile: {\n imageReference: {\n id: \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/images/{existing-custom-image-name}\",\n },\n osDisk: {\n caching: azure_native.compute.CachingTypes.ReadWrite,\n createOption: azure_native.compute.DiskCreateOptionTypes.FromImage,\n managedDisk: {\n storageAccountType: azure_native.compute.StorageAccountTypes.Standard_LRS,\n },\n name: \"myVMosdisk\",\n },\n },\n vmName: \"myVM\",\n});\n\n```\n\n```python\nimport pulumi\nimport pulumi_azure_native as azure_native\n\nvirtual_machine = azure_native.compute.VirtualMachine(\"virtualMachine\",\n hardware_profile={\n \"vm_size\": azure_native.compute.VirtualMachineSizeTypes.STANDARD_D1_V2,\n },\n location=\"westus\",\n network_profile={\n \"network_interfaces\": [{\n \"id\": \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\",\n \"primary\": True,\n }],\n },\n os_profile={\n \"admin_password\": \"{your-password}\",\n \"admin_username\": \"{your-username}\",\n \"computer_name\": \"myVM\",\n },\n resource_group_name=\"myResourceGroup\",\n storage_profile={\n \"image_reference\": {\n \"id\": \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/images/{existing-custom-image-name}\",\n },\n \"os_disk\": {\n \"caching\": azure_native.compute.CachingTypes.READ_WRITE,\n \"create_option\": azure_native.compute.DiskCreateOptionTypes.FROM_IMAGE,\n \"managed_disk\": {\n \"storage_account_type\": azure_native.compute.StorageAccountTypes.STANDARD_LRS,\n },\n \"name\": \"myVMosdisk\",\n },\n },\n vm_name=\"myVM\")\n\n```\n\n```yaml\nresources:\n virtualMachine:\n type: azure-native:compute:VirtualMachine\n properties:\n hardwareProfile:\n vmSize: Standard_D1_v2\n location: westus\n networkProfile:\n networkInterfaces:\n - id: /subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\n primary: true\n osProfile:\n adminPassword: '{your-password}'\n adminUsername: '{your-username}'\n computerName: myVM\n resourceGroupName: myResourceGroup\n storageProfile:\n imageReference:\n id: /subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/images/{existing-custom-image-name}\n osDisk:\n caching: ReadWrite\n createOption: FromImage\n managedDisk:\n storageAccountType: Standard_LRS\n name: myVMosdisk\n vmName: myVM\n\n```\n\n{{% /example %}}\n{{% example %}}\n### Create a vm from a generalized shared image.\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing AzureNative = Pulumi.AzureNative;\n\nreturn await Deployment.RunAsync(() => \n{\n var virtualMachine = new AzureNative.Compute.VirtualMachine(\"virtualMachine\", new()\n {\n HardwareProfile = new AzureNative.Compute.Inputs.HardwareProfileArgs\n {\n VmSize = AzureNative.Compute.VirtualMachineSizeTypes.Standard_D1_v2,\n },\n Location = \"westus\",\n NetworkProfile = new AzureNative.Compute.Inputs.NetworkProfileArgs\n {\n NetworkInterfaces = new[]\n {\n new AzureNative.Compute.Inputs.NetworkInterfaceReferenceArgs\n {\n Id = \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\",\n Primary = true,\n },\n },\n },\n OsProfile = new AzureNative.Compute.Inputs.OSProfileArgs\n {\n AdminPassword = \"{your-password}\",\n AdminUsername = \"{your-username}\",\n ComputerName = \"myVM\",\n },\n ResourceGroupName = \"myResourceGroup\",\n StorageProfile = new AzureNative.Compute.Inputs.StorageProfileArgs\n {\n ImageReference = new AzureNative.Compute.Inputs.ImageReferenceArgs\n {\n Id = \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/mySharedGallery/images/mySharedImage\",\n },\n OsDisk = new AzureNative.Compute.Inputs.OSDiskArgs\n {\n Caching = AzureNative.Compute.CachingTypes.ReadWrite,\n CreateOption = AzureNative.Compute.DiskCreateOptionTypes.FromImage,\n ManagedDisk = new AzureNative.Compute.Inputs.ManagedDiskParametersArgs\n {\n StorageAccountType = AzureNative.Compute.StorageAccountTypes.Standard_LRS,\n },\n Name = \"myVMosdisk\",\n },\n },\n VmName = \"myVM\",\n });\n\n});\n\n\n```\n\n```go\npackage main\n\nimport (\n\tcompute \"github.com/pulumi/pulumi-azure-native-sdk/compute/v2\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := compute.NewVirtualMachine(ctx, \"virtualMachine\", &compute.VirtualMachineArgs{\n\t\t\tHardwareProfile: &compute.HardwareProfileArgs{\n\t\t\t\tVmSize: pulumi.String(compute.VirtualMachineSizeTypes_Standard_D1_v2),\n\t\t\t},\n\t\t\tLocation: pulumi.String(\"westus\"),\n\t\t\tNetworkProfile: &compute.NetworkProfileArgs{\n\t\t\t\tNetworkInterfaces: compute.NetworkInterfaceReferenceArray{\n\t\t\t\t\t&compute.NetworkInterfaceReferenceArgs{\n\t\t\t\t\t\tId: pulumi.String(\"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\"),\n\t\t\t\t\t\tPrimary: pulumi.Bool(true),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tOsProfile: &compute.OSProfileArgs{\n\t\t\t\tAdminPassword: pulumi.String(\"{your-password}\"),\n\t\t\t\tAdminUsername: pulumi.String(\"{your-username}\"),\n\t\t\t\tComputerName: pulumi.String(\"myVM\"),\n\t\t\t},\n\t\t\tResourceGroupName: pulumi.String(\"myResourceGroup\"),\n\t\t\tStorageProfile: &compute.StorageProfileArgs{\n\t\t\t\tImageReference: &compute.ImageReferenceArgs{\n\t\t\t\t\tId: pulumi.String(\"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/mySharedGallery/images/mySharedImage\"),\n\t\t\t\t},\n\t\t\t\tOsDisk: &compute.OSDiskArgs{\n\t\t\t\t\tCaching: compute.CachingTypesReadWrite,\n\t\t\t\t\tCreateOption: pulumi.String(compute.DiskCreateOptionTypesFromImage),\n\t\t\t\t\tManagedDisk: &compute.ManagedDiskParametersArgs{\n\t\t\t\t\t\tStorageAccountType: pulumi.String(compute.StorageAccountTypes_Standard_LRS),\n\t\t\t\t\t},\n\t\t\t\t\tName: pulumi.String(\"myVMosdisk\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tVmName: pulumi.String(\"myVM\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n\n```\n\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azurenative.compute.VirtualMachine;\nimport com.pulumi.azurenative.compute.VirtualMachineArgs;\nimport com.pulumi.azurenative.compute.inputs.HardwareProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.NetworkProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.OSProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.StorageProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.ImageReferenceArgs;\nimport com.pulumi.azurenative.compute.inputs.OSDiskArgs;\nimport com.pulumi.azurenative.compute.inputs.ManagedDiskParametersArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var virtualMachine = new VirtualMachine(\"virtualMachine\", VirtualMachineArgs.builder()\n .hardwareProfile(HardwareProfileArgs.builder()\n .vmSize(\"Standard_D1_v2\")\n .build())\n .location(\"westus\")\n .networkProfile(NetworkProfileArgs.builder()\n .networkInterfaces(NetworkInterfaceReferenceArgs.builder()\n .id(\"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\")\n .primary(true)\n .build())\n .build())\n .osProfile(OSProfileArgs.builder()\n .adminPassword(\"{your-password}\")\n .adminUsername(\"{your-username}\")\n .computerName(\"myVM\")\n .build())\n .resourceGroupName(\"myResourceGroup\")\n .storageProfile(StorageProfileArgs.builder()\n .imageReference(ImageReferenceArgs.builder()\n .id(\"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/mySharedGallery/images/mySharedImage\")\n .build())\n .osDisk(OSDiskArgs.builder()\n .caching(\"ReadWrite\")\n .createOption(\"FromImage\")\n .managedDisk(ManagedDiskParametersArgs.builder()\n .storageAccountType(\"Standard_LRS\")\n .build())\n .name(\"myVMosdisk\")\n .build())\n .build())\n .vmName(\"myVM\")\n .build());\n\n }\n}\n\n```\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azure_native from \"@pulumi/azure-native\";\n\nconst virtualMachine = new azure_native.compute.VirtualMachine(\"virtualMachine\", {\n hardwareProfile: {\n vmSize: azure_native.compute.VirtualMachineSizeTypes.Standard_D1_v2,\n },\n location: \"westus\",\n networkProfile: {\n networkInterfaces: [{\n id: \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\",\n primary: true,\n }],\n },\n osProfile: {\n adminPassword: \"{your-password}\",\n adminUsername: \"{your-username}\",\n computerName: \"myVM\",\n },\n resourceGroupName: \"myResourceGroup\",\n storageProfile: {\n imageReference: {\n id: \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/mySharedGallery/images/mySharedImage\",\n },\n osDisk: {\n caching: azure_native.compute.CachingTypes.ReadWrite,\n createOption: azure_native.compute.DiskCreateOptionTypes.FromImage,\n managedDisk: {\n storageAccountType: azure_native.compute.StorageAccountTypes.Standard_LRS,\n },\n name: \"myVMosdisk\",\n },\n },\n vmName: \"myVM\",\n});\n\n```\n\n```python\nimport pulumi\nimport pulumi_azure_native as azure_native\n\nvirtual_machine = azure_native.compute.VirtualMachine(\"virtualMachine\",\n hardware_profile={\n \"vm_size\": azure_native.compute.VirtualMachineSizeTypes.STANDARD_D1_V2,\n },\n location=\"westus\",\n network_profile={\n \"network_interfaces\": [{\n \"id\": \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\",\n \"primary\": True,\n }],\n },\n os_profile={\n \"admin_password\": \"{your-password}\",\n \"admin_username\": \"{your-username}\",\n \"computer_name\": \"myVM\",\n },\n resource_group_name=\"myResourceGroup\",\n storage_profile={\n \"image_reference\": {\n \"id\": \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/mySharedGallery/images/mySharedImage\",\n },\n \"os_disk\": {\n \"caching\": azure_native.compute.CachingTypes.READ_WRITE,\n \"create_option\": azure_native.compute.DiskCreateOptionTypes.FROM_IMAGE,\n \"managed_disk\": {\n \"storage_account_type\": azure_native.compute.StorageAccountTypes.STANDARD_LRS,\n },\n \"name\": \"myVMosdisk\",\n },\n },\n vm_name=\"myVM\")\n\n```\n\n```yaml\nresources:\n virtualMachine:\n type: azure-native:compute:VirtualMachine\n properties:\n hardwareProfile:\n vmSize: Standard_D1_v2\n location: westus\n networkProfile:\n networkInterfaces:\n - id: /subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\n primary: true\n osProfile:\n adminPassword: '{your-password}'\n adminUsername: '{your-username}'\n computerName: myVM\n resourceGroupName: myResourceGroup\n storageProfile:\n imageReference:\n id: /subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/mySharedGallery/images/mySharedImage\n osDisk:\n caching: ReadWrite\n createOption: FromImage\n managedDisk:\n storageAccountType: Standard_LRS\n name: myVMosdisk\n vmName: myVM\n\n```\n\n{{% /example %}}\n{{% example %}}\n### Create a vm from a specialized shared image.\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing AzureNative = Pulumi.AzureNative;\n\nreturn await Deployment.RunAsync(() => \n{\n var virtualMachine = new AzureNative.Compute.VirtualMachine(\"virtualMachine\", new()\n {\n HardwareProfile = new AzureNative.Compute.Inputs.HardwareProfileArgs\n {\n VmSize = AzureNative.Compute.VirtualMachineSizeTypes.Standard_D1_v2,\n },\n Location = \"westus\",\n NetworkProfile = new AzureNative.Compute.Inputs.NetworkProfileArgs\n {\n NetworkInterfaces = new[]\n {\n new AzureNative.Compute.Inputs.NetworkInterfaceReferenceArgs\n {\n Id = \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\",\n Primary = true,\n },\n },\n },\n ResourceGroupName = \"myResourceGroup\",\n StorageProfile = new AzureNative.Compute.Inputs.StorageProfileArgs\n {\n ImageReference = new AzureNative.Compute.Inputs.ImageReferenceArgs\n {\n Id = \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/mySharedGallery/images/mySharedImage\",\n },\n OsDisk = new AzureNative.Compute.Inputs.OSDiskArgs\n {\n Caching = AzureNative.Compute.CachingTypes.ReadWrite,\n CreateOption = AzureNative.Compute.DiskCreateOptionTypes.FromImage,\n ManagedDisk = new AzureNative.Compute.Inputs.ManagedDiskParametersArgs\n {\n StorageAccountType = AzureNative.Compute.StorageAccountTypes.Standard_LRS,\n },\n Name = \"myVMosdisk\",\n },\n },\n VmName = \"myVM\",\n });\n\n});\n\n\n```\n\n```go\npackage main\n\nimport (\n\tcompute \"github.com/pulumi/pulumi-azure-native-sdk/compute/v2\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := compute.NewVirtualMachine(ctx, \"virtualMachine\", &compute.VirtualMachineArgs{\n\t\t\tHardwareProfile: &compute.HardwareProfileArgs{\n\t\t\t\tVmSize: pulumi.String(compute.VirtualMachineSizeTypes_Standard_D1_v2),\n\t\t\t},\n\t\t\tLocation: pulumi.String(\"westus\"),\n\t\t\tNetworkProfile: &compute.NetworkProfileArgs{\n\t\t\t\tNetworkInterfaces: compute.NetworkInterfaceReferenceArray{\n\t\t\t\t\t&compute.NetworkInterfaceReferenceArgs{\n\t\t\t\t\t\tId: pulumi.String(\"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\"),\n\t\t\t\t\t\tPrimary: pulumi.Bool(true),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tResourceGroupName: pulumi.String(\"myResourceGroup\"),\n\t\t\tStorageProfile: &compute.StorageProfileArgs{\n\t\t\t\tImageReference: &compute.ImageReferenceArgs{\n\t\t\t\t\tId: pulumi.String(\"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/mySharedGallery/images/mySharedImage\"),\n\t\t\t\t},\n\t\t\t\tOsDisk: &compute.OSDiskArgs{\n\t\t\t\t\tCaching: compute.CachingTypesReadWrite,\n\t\t\t\t\tCreateOption: pulumi.String(compute.DiskCreateOptionTypesFromImage),\n\t\t\t\t\tManagedDisk: &compute.ManagedDiskParametersArgs{\n\t\t\t\t\t\tStorageAccountType: pulumi.String(compute.StorageAccountTypes_Standard_LRS),\n\t\t\t\t\t},\n\t\t\t\t\tName: pulumi.String(\"myVMosdisk\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tVmName: pulumi.String(\"myVM\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n\n```\n\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azurenative.compute.VirtualMachine;\nimport com.pulumi.azurenative.compute.VirtualMachineArgs;\nimport com.pulumi.azurenative.compute.inputs.HardwareProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.NetworkProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.StorageProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.ImageReferenceArgs;\nimport com.pulumi.azurenative.compute.inputs.OSDiskArgs;\nimport com.pulumi.azurenative.compute.inputs.ManagedDiskParametersArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var virtualMachine = new VirtualMachine(\"virtualMachine\", VirtualMachineArgs.builder()\n .hardwareProfile(HardwareProfileArgs.builder()\n .vmSize(\"Standard_D1_v2\")\n .build())\n .location(\"westus\")\n .networkProfile(NetworkProfileArgs.builder()\n .networkInterfaces(NetworkInterfaceReferenceArgs.builder()\n .id(\"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\")\n .primary(true)\n .build())\n .build())\n .resourceGroupName(\"myResourceGroup\")\n .storageProfile(StorageProfileArgs.builder()\n .imageReference(ImageReferenceArgs.builder()\n .id(\"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/mySharedGallery/images/mySharedImage\")\n .build())\n .osDisk(OSDiskArgs.builder()\n .caching(\"ReadWrite\")\n .createOption(\"FromImage\")\n .managedDisk(ManagedDiskParametersArgs.builder()\n .storageAccountType(\"Standard_LRS\")\n .build())\n .name(\"myVMosdisk\")\n .build())\n .build())\n .vmName(\"myVM\")\n .build());\n\n }\n}\n\n```\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azure_native from \"@pulumi/azure-native\";\n\nconst virtualMachine = new azure_native.compute.VirtualMachine(\"virtualMachine\", {\n hardwareProfile: {\n vmSize: azure_native.compute.VirtualMachineSizeTypes.Standard_D1_v2,\n },\n location: \"westus\",\n networkProfile: {\n networkInterfaces: [{\n id: \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\",\n primary: true,\n }],\n },\n resourceGroupName: \"myResourceGroup\",\n storageProfile: {\n imageReference: {\n id: \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/mySharedGallery/images/mySharedImage\",\n },\n osDisk: {\n caching: azure_native.compute.CachingTypes.ReadWrite,\n createOption: azure_native.compute.DiskCreateOptionTypes.FromImage,\n managedDisk: {\n storageAccountType: azure_native.compute.StorageAccountTypes.Standard_LRS,\n },\n name: \"myVMosdisk\",\n },\n },\n vmName: \"myVM\",\n});\n\n```\n\n```python\nimport pulumi\nimport pulumi_azure_native as azure_native\n\nvirtual_machine = azure_native.compute.VirtualMachine(\"virtualMachine\",\n hardware_profile={\n \"vm_size\": azure_native.compute.VirtualMachineSizeTypes.STANDARD_D1_V2,\n },\n location=\"westus\",\n network_profile={\n \"network_interfaces\": [{\n \"id\": \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\",\n \"primary\": True,\n }],\n },\n resource_group_name=\"myResourceGroup\",\n storage_profile={\n \"image_reference\": {\n \"id\": \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/mySharedGallery/images/mySharedImage\",\n },\n \"os_disk\": {\n \"caching\": azure_native.compute.CachingTypes.READ_WRITE,\n \"create_option\": azure_native.compute.DiskCreateOptionTypes.FROM_IMAGE,\n \"managed_disk\": {\n \"storage_account_type\": azure_native.compute.StorageAccountTypes.STANDARD_LRS,\n },\n \"name\": \"myVMosdisk\",\n },\n },\n vm_name=\"myVM\")\n\n```\n\n```yaml\nresources:\n virtualMachine:\n type: azure-native:compute:VirtualMachine\n properties:\n hardwareProfile:\n vmSize: Standard_D1_v2\n location: westus\n networkProfile:\n networkInterfaces:\n - id: /subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\n primary: true\n resourceGroupName: myResourceGroup\n storageProfile:\n imageReference:\n id: /subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/mySharedGallery/images/mySharedImage\n osDisk:\n caching: ReadWrite\n createOption: FromImage\n managedDisk:\n storageAccountType: Standard_LRS\n name: myVMosdisk\n vmName: myVM\n\n```\n\n{{% /example %}}\n{{% example %}}\n### Create a vm in a Virtual Machine Scale Set with customer assigned platformFaultDomain.\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing AzureNative = Pulumi.AzureNative;\n\nreturn await Deployment.RunAsync(() => \n{\n var virtualMachine = new AzureNative.Compute.VirtualMachine(\"virtualMachine\", new()\n {\n HardwareProfile = new AzureNative.Compute.Inputs.HardwareProfileArgs\n {\n VmSize = AzureNative.Compute.VirtualMachineSizeTypes.Standard_D1_v2,\n },\n Location = \"westus\",\n NetworkProfile = new AzureNative.Compute.Inputs.NetworkProfileArgs\n {\n NetworkInterfaces = new[]\n {\n new AzureNative.Compute.Inputs.NetworkInterfaceReferenceArgs\n {\n Id = \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\",\n Primary = true,\n },\n },\n },\n OsProfile = new AzureNative.Compute.Inputs.OSProfileArgs\n {\n AdminPassword = \"{your-password}\",\n AdminUsername = \"{your-username}\",\n ComputerName = \"myVM\",\n },\n PlatformFaultDomain = 1,\n ResourceGroupName = \"myResourceGroup\",\n StorageProfile = new AzureNative.Compute.Inputs.StorageProfileArgs\n {\n ImageReference = new AzureNative.Compute.Inputs.ImageReferenceArgs\n {\n Offer = \"WindowsServer\",\n Publisher = \"MicrosoftWindowsServer\",\n Sku = \"2016-Datacenter\",\n Version = \"latest\",\n },\n OsDisk = new AzureNative.Compute.Inputs.OSDiskArgs\n {\n Caching = AzureNative.Compute.CachingTypes.ReadWrite,\n CreateOption = AzureNative.Compute.DiskCreateOptionTypes.FromImage,\n ManagedDisk = new AzureNative.Compute.Inputs.ManagedDiskParametersArgs\n {\n StorageAccountType = AzureNative.Compute.StorageAccountTypes.Standard_LRS,\n },\n Name = \"myVMosdisk\",\n },\n },\n VirtualMachineScaleSet = new AzureNative.Compute.Inputs.SubResourceArgs\n {\n Id = \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachineScaleSets/{existing-flex-vmss-name-with-platformFaultDomainCount-greater-than-1}\",\n },\n VmName = \"myVM\",\n });\n\n});\n\n\n```\n\n```go\npackage main\n\nimport (\n\tcompute \"github.com/pulumi/pulumi-azure-native-sdk/compute/v2\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := compute.NewVirtualMachine(ctx, \"virtualMachine\", &compute.VirtualMachineArgs{\n\t\t\tHardwareProfile: &compute.HardwareProfileArgs{\n\t\t\t\tVmSize: pulumi.String(compute.VirtualMachineSizeTypes_Standard_D1_v2),\n\t\t\t},\n\t\t\tLocation: pulumi.String(\"westus\"),\n\t\t\tNetworkProfile: &compute.NetworkProfileArgs{\n\t\t\t\tNetworkInterfaces: compute.NetworkInterfaceReferenceArray{\n\t\t\t\t\t&compute.NetworkInterfaceReferenceArgs{\n\t\t\t\t\t\tId: pulumi.String(\"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\"),\n\t\t\t\t\t\tPrimary: pulumi.Bool(true),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tOsProfile: &compute.OSProfileArgs{\n\t\t\t\tAdminPassword: pulumi.String(\"{your-password}\"),\n\t\t\t\tAdminUsername: pulumi.String(\"{your-username}\"),\n\t\t\t\tComputerName: pulumi.String(\"myVM\"),\n\t\t\t},\n\t\t\tPlatformFaultDomain: pulumi.Int(1),\n\t\t\tResourceGroupName: pulumi.String(\"myResourceGroup\"),\n\t\t\tStorageProfile: &compute.StorageProfileArgs{\n\t\t\t\tImageReference: &compute.ImageReferenceArgs{\n\t\t\t\t\tOffer: pulumi.String(\"WindowsServer\"),\n\t\t\t\t\tPublisher: pulumi.String(\"MicrosoftWindowsServer\"),\n\t\t\t\t\tSku: pulumi.String(\"2016-Datacenter\"),\n\t\t\t\t\tVersion: pulumi.String(\"latest\"),\n\t\t\t\t},\n\t\t\t\tOsDisk: &compute.OSDiskArgs{\n\t\t\t\t\tCaching: compute.CachingTypesReadWrite,\n\t\t\t\t\tCreateOption: pulumi.String(compute.DiskCreateOptionTypesFromImage),\n\t\t\t\t\tManagedDisk: &compute.ManagedDiskParametersArgs{\n\t\t\t\t\t\tStorageAccountType: pulumi.String(compute.StorageAccountTypes_Standard_LRS),\n\t\t\t\t\t},\n\t\t\t\t\tName: pulumi.String(\"myVMosdisk\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tVirtualMachineScaleSet: &compute.SubResourceArgs{\n\t\t\t\tId: pulumi.String(\"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachineScaleSets/{existing-flex-vmss-name-with-platformFaultDomainCount-greater-than-1}\"),\n\t\t\t},\n\t\t\tVmName: pulumi.String(\"myVM\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n\n```\n\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azurenative.compute.VirtualMachine;\nimport com.pulumi.azurenative.compute.VirtualMachineArgs;\nimport com.pulumi.azurenative.compute.inputs.HardwareProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.NetworkProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.OSProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.StorageProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.ImageReferenceArgs;\nimport com.pulumi.azurenative.compute.inputs.OSDiskArgs;\nimport com.pulumi.azurenative.compute.inputs.ManagedDiskParametersArgs;\nimport com.pulumi.azurenative.compute.inputs.SubResourceArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var virtualMachine = new VirtualMachine(\"virtualMachine\", VirtualMachineArgs.builder()\n .hardwareProfile(HardwareProfileArgs.builder()\n .vmSize(\"Standard_D1_v2\")\n .build())\n .location(\"westus\")\n .networkProfile(NetworkProfileArgs.builder()\n .networkInterfaces(NetworkInterfaceReferenceArgs.builder()\n .id(\"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\")\n .primary(true)\n .build())\n .build())\n .osProfile(OSProfileArgs.builder()\n .adminPassword(\"{your-password}\")\n .adminUsername(\"{your-username}\")\n .computerName(\"myVM\")\n .build())\n .platformFaultDomain(1)\n .resourceGroupName(\"myResourceGroup\")\n .storageProfile(StorageProfileArgs.builder()\n .imageReference(ImageReferenceArgs.builder()\n .offer(\"WindowsServer\")\n .publisher(\"MicrosoftWindowsServer\")\n .sku(\"2016-Datacenter\")\n .version(\"latest\")\n .build())\n .osDisk(OSDiskArgs.builder()\n .caching(\"ReadWrite\")\n .createOption(\"FromImage\")\n .managedDisk(ManagedDiskParametersArgs.builder()\n .storageAccountType(\"Standard_LRS\")\n .build())\n .name(\"myVMosdisk\")\n .build())\n .build())\n .virtualMachineScaleSet(SubResourceArgs.builder()\n .id(\"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachineScaleSets/{existing-flex-vmss-name-with-platformFaultDomainCount-greater-than-1}\")\n .build())\n .vmName(\"myVM\")\n .build());\n\n }\n}\n\n```\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azure_native from \"@pulumi/azure-native\";\n\nconst virtualMachine = new azure_native.compute.VirtualMachine(\"virtualMachine\", {\n hardwareProfile: {\n vmSize: azure_native.compute.VirtualMachineSizeTypes.Standard_D1_v2,\n },\n location: \"westus\",\n networkProfile: {\n networkInterfaces: [{\n id: \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\",\n primary: true,\n }],\n },\n osProfile: {\n adminPassword: \"{your-password}\",\n adminUsername: \"{your-username}\",\n computerName: \"myVM\",\n },\n platformFaultDomain: 1,\n resourceGroupName: \"myResourceGroup\",\n storageProfile: {\n imageReference: {\n offer: \"WindowsServer\",\n publisher: \"MicrosoftWindowsServer\",\n sku: \"2016-Datacenter\",\n version: \"latest\",\n },\n osDisk: {\n caching: azure_native.compute.CachingTypes.ReadWrite,\n createOption: azure_native.compute.DiskCreateOptionTypes.FromImage,\n managedDisk: {\n storageAccountType: azure_native.compute.StorageAccountTypes.Standard_LRS,\n },\n name: \"myVMosdisk\",\n },\n },\n virtualMachineScaleSet: {\n id: \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachineScaleSets/{existing-flex-vmss-name-with-platformFaultDomainCount-greater-than-1}\",\n },\n vmName: \"myVM\",\n});\n\n```\n\n```python\nimport pulumi\nimport pulumi_azure_native as azure_native\n\nvirtual_machine = azure_native.compute.VirtualMachine(\"virtualMachine\",\n hardware_profile={\n \"vm_size\": azure_native.compute.VirtualMachineSizeTypes.STANDARD_D1_V2,\n },\n location=\"westus\",\n network_profile={\n \"network_interfaces\": [{\n \"id\": \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\",\n \"primary\": True,\n }],\n },\n os_profile={\n \"admin_password\": \"{your-password}\",\n \"admin_username\": \"{your-username}\",\n \"computer_name\": \"myVM\",\n },\n platform_fault_domain=1,\n resource_group_name=\"myResourceGroup\",\n storage_profile={\n \"image_reference\": {\n \"offer\": \"WindowsServer\",\n \"publisher\": \"MicrosoftWindowsServer\",\n \"sku\": \"2016-Datacenter\",\n \"version\": \"latest\",\n },\n \"os_disk\": {\n \"caching\": azure_native.compute.CachingTypes.READ_WRITE,\n \"create_option\": azure_native.compute.DiskCreateOptionTypes.FROM_IMAGE,\n \"managed_disk\": {\n \"storage_account_type\": azure_native.compute.StorageAccountTypes.STANDARD_LRS,\n },\n \"name\": \"myVMosdisk\",\n },\n },\n virtual_machine_scale_set={\n \"id\": \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachineScaleSets/{existing-flex-vmss-name-with-platformFaultDomainCount-greater-than-1}\",\n },\n vm_name=\"myVM\")\n\n```\n\n```yaml\nresources:\n virtualMachine:\n type: azure-native:compute:VirtualMachine\n properties:\n hardwareProfile:\n vmSize: Standard_D1_v2\n location: westus\n networkProfile:\n networkInterfaces:\n - id: /subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\n primary: true\n osProfile:\n adminPassword: '{your-password}'\n adminUsername: '{your-username}'\n computerName: myVM\n platformFaultDomain: 1\n resourceGroupName: myResourceGroup\n storageProfile:\n imageReference:\n offer: WindowsServer\n publisher: MicrosoftWindowsServer\n sku: 2016-Datacenter\n version: latest\n osDisk:\n caching: ReadWrite\n createOption: FromImage\n managedDisk:\n storageAccountType: Standard_LRS\n name: myVMosdisk\n virtualMachineScaleSet:\n id: /subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachineScaleSets/{existing-flex-vmss-name-with-platformFaultDomainCount-greater-than-1}\n vmName: myVM\n\n```\n\n{{% /example %}}\n{{% example %}}\n### Create a vm in an availability set.\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing AzureNative = Pulumi.AzureNative;\n\nreturn await Deployment.RunAsync(() => \n{\n var virtualMachine = new AzureNative.Compute.VirtualMachine(\"virtualMachine\", new()\n {\n AvailabilitySet = new AzureNative.Compute.Inputs.SubResourceArgs\n {\n Id = \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/availabilitySets/{existing-availability-set-name}\",\n },\n HardwareProfile = new AzureNative.Compute.Inputs.HardwareProfileArgs\n {\n VmSize = AzureNative.Compute.VirtualMachineSizeTypes.Standard_D1_v2,\n },\n Location = \"westus\",\n NetworkProfile = new AzureNative.Compute.Inputs.NetworkProfileArgs\n {\n NetworkInterfaces = new[]\n {\n new AzureNative.Compute.Inputs.NetworkInterfaceReferenceArgs\n {\n Id = \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\",\n Primary = true,\n },\n },\n },\n OsProfile = new AzureNative.Compute.Inputs.OSProfileArgs\n {\n AdminPassword = \"{your-password}\",\n AdminUsername = \"{your-username}\",\n ComputerName = \"myVM\",\n },\n ResourceGroupName = \"myResourceGroup\",\n StorageProfile = new AzureNative.Compute.Inputs.StorageProfileArgs\n {\n ImageReference = new AzureNative.Compute.Inputs.ImageReferenceArgs\n {\n Offer = \"WindowsServer\",\n Publisher = \"MicrosoftWindowsServer\",\n Sku = \"2016-Datacenter\",\n Version = \"latest\",\n },\n OsDisk = new AzureNative.Compute.Inputs.OSDiskArgs\n {\n Caching = AzureNative.Compute.CachingTypes.ReadWrite,\n CreateOption = AzureNative.Compute.DiskCreateOptionTypes.FromImage,\n ManagedDisk = new AzureNative.Compute.Inputs.ManagedDiskParametersArgs\n {\n StorageAccountType = AzureNative.Compute.StorageAccountTypes.Standard_LRS,\n },\n Name = \"myVMosdisk\",\n },\n },\n VmName = \"myVM\",\n });\n\n});\n\n\n```\n\n```go\npackage main\n\nimport (\n\tcompute \"github.com/pulumi/pulumi-azure-native-sdk/compute/v2\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := compute.NewVirtualMachine(ctx, \"virtualMachine\", &compute.VirtualMachineArgs{\n\t\t\tAvailabilitySet: &compute.SubResourceArgs{\n\t\t\t\tId: pulumi.String(\"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/availabilitySets/{existing-availability-set-name}\"),\n\t\t\t},\n\t\t\tHardwareProfile: &compute.HardwareProfileArgs{\n\t\t\t\tVmSize: pulumi.String(compute.VirtualMachineSizeTypes_Standard_D1_v2),\n\t\t\t},\n\t\t\tLocation: pulumi.String(\"westus\"),\n\t\t\tNetworkProfile: &compute.NetworkProfileArgs{\n\t\t\t\tNetworkInterfaces: compute.NetworkInterfaceReferenceArray{\n\t\t\t\t\t&compute.NetworkInterfaceReferenceArgs{\n\t\t\t\t\t\tId: pulumi.String(\"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\"),\n\t\t\t\t\t\tPrimary: pulumi.Bool(true),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tOsProfile: &compute.OSProfileArgs{\n\t\t\t\tAdminPassword: pulumi.String(\"{your-password}\"),\n\t\t\t\tAdminUsername: pulumi.String(\"{your-username}\"),\n\t\t\t\tComputerName: pulumi.String(\"myVM\"),\n\t\t\t},\n\t\t\tResourceGroupName: pulumi.String(\"myResourceGroup\"),\n\t\t\tStorageProfile: &compute.StorageProfileArgs{\n\t\t\t\tImageReference: &compute.ImageReferenceArgs{\n\t\t\t\t\tOffer: pulumi.String(\"WindowsServer\"),\n\t\t\t\t\tPublisher: pulumi.String(\"MicrosoftWindowsServer\"),\n\t\t\t\t\tSku: pulumi.String(\"2016-Datacenter\"),\n\t\t\t\t\tVersion: pulumi.String(\"latest\"),\n\t\t\t\t},\n\t\t\t\tOsDisk: &compute.OSDiskArgs{\n\t\t\t\t\tCaching: compute.CachingTypesReadWrite,\n\t\t\t\t\tCreateOption: pulumi.String(compute.DiskCreateOptionTypesFromImage),\n\t\t\t\t\tManagedDisk: &compute.ManagedDiskParametersArgs{\n\t\t\t\t\t\tStorageAccountType: pulumi.String(compute.StorageAccountTypes_Standard_LRS),\n\t\t\t\t\t},\n\t\t\t\t\tName: pulumi.String(\"myVMosdisk\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tVmName: pulumi.String(\"myVM\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n\n```\n\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azurenative.compute.VirtualMachine;\nimport com.pulumi.azurenative.compute.VirtualMachineArgs;\nimport com.pulumi.azurenative.compute.inputs.SubResourceArgs;\nimport com.pulumi.azurenative.compute.inputs.HardwareProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.NetworkProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.OSProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.StorageProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.ImageReferenceArgs;\nimport com.pulumi.azurenative.compute.inputs.OSDiskArgs;\nimport com.pulumi.azurenative.compute.inputs.ManagedDiskParametersArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var virtualMachine = new VirtualMachine(\"virtualMachine\", VirtualMachineArgs.builder()\n .availabilitySet(SubResourceArgs.builder()\n .id(\"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/availabilitySets/{existing-availability-set-name}\")\n .build())\n .hardwareProfile(HardwareProfileArgs.builder()\n .vmSize(\"Standard_D1_v2\")\n .build())\n .location(\"westus\")\n .networkProfile(NetworkProfileArgs.builder()\n .networkInterfaces(NetworkInterfaceReferenceArgs.builder()\n .id(\"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\")\n .primary(true)\n .build())\n .build())\n .osProfile(OSProfileArgs.builder()\n .adminPassword(\"{your-password}\")\n .adminUsername(\"{your-username}\")\n .computerName(\"myVM\")\n .build())\n .resourceGroupName(\"myResourceGroup\")\n .storageProfile(StorageProfileArgs.builder()\n .imageReference(ImageReferenceArgs.builder()\n .offer(\"WindowsServer\")\n .publisher(\"MicrosoftWindowsServer\")\n .sku(\"2016-Datacenter\")\n .version(\"latest\")\n .build())\n .osDisk(OSDiskArgs.builder()\n .caching(\"ReadWrite\")\n .createOption(\"FromImage\")\n .managedDisk(ManagedDiskParametersArgs.builder()\n .storageAccountType(\"Standard_LRS\")\n .build())\n .name(\"myVMosdisk\")\n .build())\n .build())\n .vmName(\"myVM\")\n .build());\n\n }\n}\n\n```\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azure_native from \"@pulumi/azure-native\";\n\nconst virtualMachine = new azure_native.compute.VirtualMachine(\"virtualMachine\", {\n availabilitySet: {\n id: \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/availabilitySets/{existing-availability-set-name}\",\n },\n hardwareProfile: {\n vmSize: azure_native.compute.VirtualMachineSizeTypes.Standard_D1_v2,\n },\n location: \"westus\",\n networkProfile: {\n networkInterfaces: [{\n id: \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\",\n primary: true,\n }],\n },\n osProfile: {\n adminPassword: \"{your-password}\",\n adminUsername: \"{your-username}\",\n computerName: \"myVM\",\n },\n resourceGroupName: \"myResourceGroup\",\n storageProfile: {\n imageReference: {\n offer: \"WindowsServer\",\n publisher: \"MicrosoftWindowsServer\",\n sku: \"2016-Datacenter\",\n version: \"latest\",\n },\n osDisk: {\n caching: azure_native.compute.CachingTypes.ReadWrite,\n createOption: azure_native.compute.DiskCreateOptionTypes.FromImage,\n managedDisk: {\n storageAccountType: azure_native.compute.StorageAccountTypes.Standard_LRS,\n },\n name: \"myVMosdisk\",\n },\n },\n vmName: \"myVM\",\n});\n\n```\n\n```python\nimport pulumi\nimport pulumi_azure_native as azure_native\n\nvirtual_machine = azure_native.compute.VirtualMachine(\"virtualMachine\",\n availability_set={\n \"id\": \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/availabilitySets/{existing-availability-set-name}\",\n },\n hardware_profile={\n \"vm_size\": azure_native.compute.VirtualMachineSizeTypes.STANDARD_D1_V2,\n },\n location=\"westus\",\n network_profile={\n \"network_interfaces\": [{\n \"id\": \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\",\n \"primary\": True,\n }],\n },\n os_profile={\n \"admin_password\": \"{your-password}\",\n \"admin_username\": \"{your-username}\",\n \"computer_name\": \"myVM\",\n },\n resource_group_name=\"myResourceGroup\",\n storage_profile={\n \"image_reference\": {\n \"offer\": \"WindowsServer\",\n \"publisher\": \"MicrosoftWindowsServer\",\n \"sku\": \"2016-Datacenter\",\n \"version\": \"latest\",\n },\n \"os_disk\": {\n \"caching\": azure_native.compute.CachingTypes.READ_WRITE,\n \"create_option\": azure_native.compute.DiskCreateOptionTypes.FROM_IMAGE,\n \"managed_disk\": {\n \"storage_account_type\": azure_native.compute.StorageAccountTypes.STANDARD_LRS,\n },\n \"name\": \"myVMosdisk\",\n },\n },\n vm_name=\"myVM\")\n\n```\n\n```yaml\nresources:\n virtualMachine:\n type: azure-native:compute:VirtualMachine\n properties:\n availabilitySet:\n id: /subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/availabilitySets/{existing-availability-set-name}\n hardwareProfile:\n vmSize: Standard_D1_v2\n location: westus\n networkProfile:\n networkInterfaces:\n - id: /subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\n primary: true\n osProfile:\n adminPassword: '{your-password}'\n adminUsername: '{your-username}'\n computerName: myVM\n resourceGroupName: myResourceGroup\n storageProfile:\n imageReference:\n offer: WindowsServer\n publisher: MicrosoftWindowsServer\n sku: 2016-Datacenter\n version: latest\n osDisk:\n caching: ReadWrite\n createOption: FromImage\n managedDisk:\n storageAccountType: Standard_LRS\n name: myVMosdisk\n vmName: myVM\n\n```\n\n{{% /example %}}\n{{% example %}}\n### Create a vm with Application Profile.\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing AzureNative = Pulumi.AzureNative;\n\nreturn await Deployment.RunAsync(() => \n{\n var virtualMachine = new AzureNative.Compute.VirtualMachine(\"virtualMachine\", new()\n {\n ApplicationProfile = new AzureNative.Compute.Inputs.ApplicationProfileArgs\n {\n GalleryApplications = new[]\n {\n new AzureNative.Compute.Inputs.VMGalleryApplicationArgs\n {\n ConfigurationReference = \"https://mystorageaccount.blob.core.windows.net/configurations/settings.config\",\n EnableAutomaticUpgrade = false,\n Order = 1,\n PackageReferenceId = \"/subscriptions/32c17a9e-aa7b-4ba5-a45b-e324116b6fdb/resourceGroups/myresourceGroupName2/providers/Microsoft.Compute/galleries/myGallery1/applications/MyApplication1/versions/1.0\",\n Tags = \"myTag1\",\n TreatFailureAsDeploymentFailure = false,\n },\n new AzureNative.Compute.Inputs.VMGalleryApplicationArgs\n {\n PackageReferenceId = \"/subscriptions/32c17a9e-aa7b-4ba5-a45b-e324116b6fdg/resourceGroups/myresourceGroupName3/providers/Microsoft.Compute/galleries/myGallery2/applications/MyApplication2/versions/1.1\",\n },\n },\n },\n HardwareProfile = new AzureNative.Compute.Inputs.HardwareProfileArgs\n {\n VmSize = AzureNative.Compute.VirtualMachineSizeTypes.Standard_D1_v2,\n },\n Location = \"westus\",\n NetworkProfile = new AzureNative.Compute.Inputs.NetworkProfileArgs\n {\n NetworkInterfaces = new[]\n {\n new AzureNative.Compute.Inputs.NetworkInterfaceReferenceArgs\n {\n Id = \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\",\n Primary = true,\n },\n },\n },\n OsProfile = new AzureNative.Compute.Inputs.OSProfileArgs\n {\n AdminPassword = \"{your-password}\",\n AdminUsername = \"{your-username}\",\n ComputerName = \"myVM\",\n },\n ResourceGroupName = \"myResourceGroup\",\n StorageProfile = new AzureNative.Compute.Inputs.StorageProfileArgs\n {\n ImageReference = new AzureNative.Compute.Inputs.ImageReferenceArgs\n {\n Offer = \"{image_offer}\",\n Publisher = \"{image_publisher}\",\n Sku = \"{image_sku}\",\n Version = \"latest\",\n },\n OsDisk = new AzureNative.Compute.Inputs.OSDiskArgs\n {\n Caching = AzureNative.Compute.CachingTypes.ReadWrite,\n CreateOption = AzureNative.Compute.DiskCreateOptionTypes.FromImage,\n ManagedDisk = new AzureNative.Compute.Inputs.ManagedDiskParametersArgs\n {\n StorageAccountType = AzureNative.Compute.StorageAccountTypes.Standard_LRS,\n },\n Name = \"myVMosdisk\",\n },\n },\n VmName = \"myVM\",\n });\n\n});\n\n\n```\n\n```go\npackage main\n\nimport (\n\tcompute \"github.com/pulumi/pulumi-azure-native-sdk/compute/v2\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := compute.NewVirtualMachine(ctx, \"virtualMachine\", &compute.VirtualMachineArgs{\n\t\t\tApplicationProfile: &compute.ApplicationProfileArgs{\n\t\t\t\tGalleryApplications: compute.VMGalleryApplicationArray{\n\t\t\t\t\t&compute.VMGalleryApplicationArgs{\n\t\t\t\t\t\tConfigurationReference: pulumi.String(\"https://mystorageaccount.blob.core.windows.net/configurations/settings.config\"),\n\t\t\t\t\t\tEnableAutomaticUpgrade: pulumi.Bool(false),\n\t\t\t\t\t\tOrder: pulumi.Int(1),\n\t\t\t\t\t\tPackageReferenceId: pulumi.String(\"/subscriptions/32c17a9e-aa7b-4ba5-a45b-e324116b6fdb/resourceGroups/myresourceGroupName2/providers/Microsoft.Compute/galleries/myGallery1/applications/MyApplication1/versions/1.0\"),\n\t\t\t\t\t\tTags: pulumi.String(\"myTag1\"),\n\t\t\t\t\t\tTreatFailureAsDeploymentFailure: pulumi.Bool(false),\n\t\t\t\t\t},\n\t\t\t\t\t&compute.VMGalleryApplicationArgs{\n\t\t\t\t\t\tPackageReferenceId: pulumi.String(\"/subscriptions/32c17a9e-aa7b-4ba5-a45b-e324116b6fdg/resourceGroups/myresourceGroupName3/providers/Microsoft.Compute/galleries/myGallery2/applications/MyApplication2/versions/1.1\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tHardwareProfile: &compute.HardwareProfileArgs{\n\t\t\t\tVmSize: pulumi.String(compute.VirtualMachineSizeTypes_Standard_D1_v2),\n\t\t\t},\n\t\t\tLocation: pulumi.String(\"westus\"),\n\t\t\tNetworkProfile: &compute.NetworkProfileArgs{\n\t\t\t\tNetworkInterfaces: compute.NetworkInterfaceReferenceArray{\n\t\t\t\t\t&compute.NetworkInterfaceReferenceArgs{\n\t\t\t\t\t\tId: pulumi.String(\"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\"),\n\t\t\t\t\t\tPrimary: pulumi.Bool(true),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tOsProfile: &compute.OSProfileArgs{\n\t\t\t\tAdminPassword: pulumi.String(\"{your-password}\"),\n\t\t\t\tAdminUsername: pulumi.String(\"{your-username}\"),\n\t\t\t\tComputerName: pulumi.String(\"myVM\"),\n\t\t\t},\n\t\t\tResourceGroupName: pulumi.String(\"myResourceGroup\"),\n\t\t\tStorageProfile: &compute.StorageProfileArgs{\n\t\t\t\tImageReference: &compute.ImageReferenceArgs{\n\t\t\t\t\tOffer: pulumi.String(\"{image_offer}\"),\n\t\t\t\t\tPublisher: pulumi.String(\"{image_publisher}\"),\n\t\t\t\t\tSku: pulumi.String(\"{image_sku}\"),\n\t\t\t\t\tVersion: pulumi.String(\"latest\"),\n\t\t\t\t},\n\t\t\t\tOsDisk: &compute.OSDiskArgs{\n\t\t\t\t\tCaching: compute.CachingTypesReadWrite,\n\t\t\t\t\tCreateOption: pulumi.String(compute.DiskCreateOptionTypesFromImage),\n\t\t\t\t\tManagedDisk: &compute.ManagedDiskParametersArgs{\n\t\t\t\t\t\tStorageAccountType: pulumi.String(compute.StorageAccountTypes_Standard_LRS),\n\t\t\t\t\t},\n\t\t\t\t\tName: pulumi.String(\"myVMosdisk\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tVmName: pulumi.String(\"myVM\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n\n```\n\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azurenative.compute.VirtualMachine;\nimport com.pulumi.azurenative.compute.VirtualMachineArgs;\nimport com.pulumi.azurenative.compute.inputs.ApplicationProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.HardwareProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.NetworkProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.OSProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.StorageProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.ImageReferenceArgs;\nimport com.pulumi.azurenative.compute.inputs.OSDiskArgs;\nimport com.pulumi.azurenative.compute.inputs.ManagedDiskParametersArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var virtualMachine = new VirtualMachine(\"virtualMachine\", VirtualMachineArgs.builder()\n .applicationProfile(ApplicationProfileArgs.builder()\n .galleryApplications( \n VMGalleryApplicationArgs.builder()\n .configurationReference(\"https://mystorageaccount.blob.core.windows.net/configurations/settings.config\")\n .enableAutomaticUpgrade(false)\n .order(1)\n .packageReferenceId(\"/subscriptions/32c17a9e-aa7b-4ba5-a45b-e324116b6fdb/resourceGroups/myresourceGroupName2/providers/Microsoft.Compute/galleries/myGallery1/applications/MyApplication1/versions/1.0\")\n .tags(\"myTag1\")\n .treatFailureAsDeploymentFailure(false)\n .build(),\n VMGalleryApplicationArgs.builder()\n .packageReferenceId(\"/subscriptions/32c17a9e-aa7b-4ba5-a45b-e324116b6fdg/resourceGroups/myresourceGroupName3/providers/Microsoft.Compute/galleries/myGallery2/applications/MyApplication2/versions/1.1\")\n .build())\n .build())\n .hardwareProfile(HardwareProfileArgs.builder()\n .vmSize(\"Standard_D1_v2\")\n .build())\n .location(\"westus\")\n .networkProfile(NetworkProfileArgs.builder()\n .networkInterfaces(NetworkInterfaceReferenceArgs.builder()\n .id(\"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\")\n .primary(true)\n .build())\n .build())\n .osProfile(OSProfileArgs.builder()\n .adminPassword(\"{your-password}\")\n .adminUsername(\"{your-username}\")\n .computerName(\"myVM\")\n .build())\n .resourceGroupName(\"myResourceGroup\")\n .storageProfile(StorageProfileArgs.builder()\n .imageReference(ImageReferenceArgs.builder()\n .offer(\"{image_offer}\")\n .publisher(\"{image_publisher}\")\n .sku(\"{image_sku}\")\n .version(\"latest\")\n .build())\n .osDisk(OSDiskArgs.builder()\n .caching(\"ReadWrite\")\n .createOption(\"FromImage\")\n .managedDisk(ManagedDiskParametersArgs.builder()\n .storageAccountType(\"Standard_LRS\")\n .build())\n .name(\"myVMosdisk\")\n .build())\n .build())\n .vmName(\"myVM\")\n .build());\n\n }\n}\n\n```\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azure_native from \"@pulumi/azure-native\";\n\nconst virtualMachine = new azure_native.compute.VirtualMachine(\"virtualMachine\", {\n applicationProfile: {\n galleryApplications: [\n {\n configurationReference: \"https://mystorageaccount.blob.core.windows.net/configurations/settings.config\",\n enableAutomaticUpgrade: false,\n order: 1,\n packageReferenceId: \"/subscriptions/32c17a9e-aa7b-4ba5-a45b-e324116b6fdb/resourceGroups/myresourceGroupName2/providers/Microsoft.Compute/galleries/myGallery1/applications/MyApplication1/versions/1.0\",\n tags: \"myTag1\",\n treatFailureAsDeploymentFailure: false,\n },\n {\n packageReferenceId: \"/subscriptions/32c17a9e-aa7b-4ba5-a45b-e324116b6fdg/resourceGroups/myresourceGroupName3/providers/Microsoft.Compute/galleries/myGallery2/applications/MyApplication2/versions/1.1\",\n },\n ],\n },\n hardwareProfile: {\n vmSize: azure_native.compute.VirtualMachineSizeTypes.Standard_D1_v2,\n },\n location: \"westus\",\n networkProfile: {\n networkInterfaces: [{\n id: \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\",\n primary: true,\n }],\n },\n osProfile: {\n adminPassword: \"{your-password}\",\n adminUsername: \"{your-username}\",\n computerName: \"myVM\",\n },\n resourceGroupName: \"myResourceGroup\",\n storageProfile: {\n imageReference: {\n offer: \"{image_offer}\",\n publisher: \"{image_publisher}\",\n sku: \"{image_sku}\",\n version: \"latest\",\n },\n osDisk: {\n caching: azure_native.compute.CachingTypes.ReadWrite,\n createOption: azure_native.compute.DiskCreateOptionTypes.FromImage,\n managedDisk: {\n storageAccountType: azure_native.compute.StorageAccountTypes.Standard_LRS,\n },\n name: \"myVMosdisk\",\n },\n },\n vmName: \"myVM\",\n});\n\n```\n\n```python\nimport pulumi\nimport pulumi_azure_native as azure_native\n\nvirtual_machine = azure_native.compute.VirtualMachine(\"virtualMachine\",\n application_profile={\n \"gallery_applications\": [\n {\n \"configuration_reference\": \"https://mystorageaccount.blob.core.windows.net/configurations/settings.config\",\n \"enable_automatic_upgrade\": False,\n \"order\": 1,\n \"package_reference_id\": \"/subscriptions/32c17a9e-aa7b-4ba5-a45b-e324116b6fdb/resourceGroups/myresourceGroupName2/providers/Microsoft.Compute/galleries/myGallery1/applications/MyApplication1/versions/1.0\",\n \"tags\": \"myTag1\",\n \"treat_failure_as_deployment_failure\": False,\n },\n {\n \"package_reference_id\": \"/subscriptions/32c17a9e-aa7b-4ba5-a45b-e324116b6fdg/resourceGroups/myresourceGroupName3/providers/Microsoft.Compute/galleries/myGallery2/applications/MyApplication2/versions/1.1\",\n },\n ],\n },\n hardware_profile={\n \"vm_size\": azure_native.compute.VirtualMachineSizeTypes.STANDARD_D1_V2,\n },\n location=\"westus\",\n network_profile={\n \"network_interfaces\": [{\n \"id\": \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\",\n \"primary\": True,\n }],\n },\n os_profile={\n \"admin_password\": \"{your-password}\",\n \"admin_username\": \"{your-username}\",\n \"computer_name\": \"myVM\",\n },\n resource_group_name=\"myResourceGroup\",\n storage_profile={\n \"image_reference\": {\n \"offer\": \"{image_offer}\",\n \"publisher\": \"{image_publisher}\",\n \"sku\": \"{image_sku}\",\n \"version\": \"latest\",\n },\n \"os_disk\": {\n \"caching\": azure_native.compute.CachingTypes.READ_WRITE,\n \"create_option\": azure_native.compute.DiskCreateOptionTypes.FROM_IMAGE,\n \"managed_disk\": {\n \"storage_account_type\": azure_native.compute.StorageAccountTypes.STANDARD_LRS,\n },\n \"name\": \"myVMosdisk\",\n },\n },\n vm_name=\"myVM\")\n\n```\n\n```yaml\nresources:\n virtualMachine:\n type: azure-native:compute:VirtualMachine\n properties:\n applicationProfile:\n galleryApplications:\n - configurationReference: https://mystorageaccount.blob.core.windows.net/configurations/settings.config\n enableAutomaticUpgrade: false\n order: 1\n packageReferenceId: /subscriptions/32c17a9e-aa7b-4ba5-a45b-e324116b6fdb/resourceGroups/myresourceGroupName2/providers/Microsoft.Compute/galleries/myGallery1/applications/MyApplication1/versions/1.0\n tags: myTag1\n treatFailureAsDeploymentFailure: false\n - packageReferenceId: /subscriptions/32c17a9e-aa7b-4ba5-a45b-e324116b6fdg/resourceGroups/myresourceGroupName3/providers/Microsoft.Compute/galleries/myGallery2/applications/MyApplication2/versions/1.1\n hardwareProfile:\n vmSize: Standard_D1_v2\n location: westus\n networkProfile:\n networkInterfaces:\n - id: /subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\n primary: true\n osProfile:\n adminPassword: '{your-password}'\n adminUsername: '{your-username}'\n computerName: myVM\n resourceGroupName: myResourceGroup\n storageProfile:\n imageReference:\n offer: '{image_offer}'\n publisher: '{image_publisher}'\n sku: '{image_sku}'\n version: latest\n osDisk:\n caching: ReadWrite\n createOption: FromImage\n managedDisk:\n storageAccountType: Standard_LRS\n name: myVMosdisk\n vmName: myVM\n\n```\n\n{{% /example %}}\n{{% example %}}\n### Create a vm with DiskEncryptionSet resource id in the os disk and data disk.\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing AzureNative = Pulumi.AzureNative;\n\nreturn await Deployment.RunAsync(() => \n{\n var virtualMachine = new AzureNative.Compute.VirtualMachine(\"virtualMachine\", new()\n {\n HardwareProfile = new AzureNative.Compute.Inputs.HardwareProfileArgs\n {\n VmSize = AzureNative.Compute.VirtualMachineSizeTypes.Standard_D1_v2,\n },\n Location = \"westus\",\n NetworkProfile = new AzureNative.Compute.Inputs.NetworkProfileArgs\n {\n NetworkInterfaces = new[]\n {\n new AzureNative.Compute.Inputs.NetworkInterfaceReferenceArgs\n {\n Id = \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\",\n Primary = true,\n },\n },\n },\n OsProfile = new AzureNative.Compute.Inputs.OSProfileArgs\n {\n AdminPassword = \"{your-password}\",\n AdminUsername = \"{your-username}\",\n ComputerName = \"myVM\",\n },\n ResourceGroupName = \"myResourceGroup\",\n StorageProfile = new AzureNative.Compute.Inputs.StorageProfileArgs\n {\n DataDisks = new[]\n {\n new AzureNative.Compute.Inputs.DataDiskArgs\n {\n Caching = AzureNative.Compute.CachingTypes.ReadWrite,\n CreateOption = AzureNative.Compute.DiskCreateOptionTypes.Empty,\n DiskSizeGB = 1023,\n Lun = 0,\n ManagedDisk = new AzureNative.Compute.Inputs.ManagedDiskParametersArgs\n {\n DiskEncryptionSet = new AzureNative.Compute.Inputs.DiskEncryptionSetParametersArgs\n {\n Id = \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}\",\n },\n StorageAccountType = AzureNative.Compute.StorageAccountTypes.Standard_LRS,\n },\n },\n new AzureNative.Compute.Inputs.DataDiskArgs\n {\n Caching = AzureNative.Compute.CachingTypes.ReadWrite,\n CreateOption = AzureNative.Compute.DiskCreateOptionTypes.Attach,\n DiskSizeGB = 1023,\n Lun = 1,\n ManagedDisk = new AzureNative.Compute.Inputs.ManagedDiskParametersArgs\n {\n DiskEncryptionSet = new AzureNative.Compute.Inputs.DiskEncryptionSetParametersArgs\n {\n Id = \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}\",\n },\n Id = \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/{existing-managed-disk-name}\",\n StorageAccountType = AzureNative.Compute.StorageAccountTypes.Standard_LRS,\n },\n },\n },\n ImageReference = new AzureNative.Compute.Inputs.ImageReferenceArgs\n {\n Id = \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/images/{existing-custom-image-name}\",\n },\n OsDisk = new AzureNative.Compute.Inputs.OSDiskArgs\n {\n Caching = AzureNative.Compute.CachingTypes.ReadWrite,\n CreateOption = AzureNative.Compute.DiskCreateOptionTypes.FromImage,\n ManagedDisk = new AzureNative.Compute.Inputs.ManagedDiskParametersArgs\n {\n DiskEncryptionSet = new AzureNative.Compute.Inputs.DiskEncryptionSetParametersArgs\n {\n Id = \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}\",\n },\n StorageAccountType = AzureNative.Compute.StorageAccountTypes.Standard_LRS,\n },\n Name = \"myVMosdisk\",\n },\n },\n VmName = \"myVM\",\n });\n\n});\n\n\n```\n\n```go\npackage main\n\nimport (\n\tcompute \"github.com/pulumi/pulumi-azure-native-sdk/compute/v2\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := compute.NewVirtualMachine(ctx, \"virtualMachine\", &compute.VirtualMachineArgs{\n\t\t\tHardwareProfile: &compute.HardwareProfileArgs{\n\t\t\t\tVmSize: pulumi.String(compute.VirtualMachineSizeTypes_Standard_D1_v2),\n\t\t\t},\n\t\t\tLocation: pulumi.String(\"westus\"),\n\t\t\tNetworkProfile: &compute.NetworkProfileArgs{\n\t\t\t\tNetworkInterfaces: compute.NetworkInterfaceReferenceArray{\n\t\t\t\t\t&compute.NetworkInterfaceReferenceArgs{\n\t\t\t\t\t\tId: pulumi.String(\"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\"),\n\t\t\t\t\t\tPrimary: pulumi.Bool(true),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tOsProfile: &compute.OSProfileArgs{\n\t\t\t\tAdminPassword: pulumi.String(\"{your-password}\"),\n\t\t\t\tAdminUsername: pulumi.String(\"{your-username}\"),\n\t\t\t\tComputerName: pulumi.String(\"myVM\"),\n\t\t\t},\n\t\t\tResourceGroupName: pulumi.String(\"myResourceGroup\"),\n\t\t\tStorageProfile: &compute.StorageProfileArgs{\n\t\t\t\tDataDisks: compute.DataDiskArray{\n\t\t\t\t\t&compute.DataDiskArgs{\n\t\t\t\t\t\tCaching: compute.CachingTypesReadWrite,\n\t\t\t\t\t\tCreateOption: pulumi.String(compute.DiskCreateOptionTypesEmpty),\n\t\t\t\t\t\tDiskSizeGB: pulumi.Int(1023),\n\t\t\t\t\t\tLun: pulumi.Int(0),\n\t\t\t\t\t\tManagedDisk: &compute.ManagedDiskParametersArgs{\n\t\t\t\t\t\t\tDiskEncryptionSet: &compute.DiskEncryptionSetParametersArgs{\n\t\t\t\t\t\t\t\tId: pulumi.String(\"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}\"),\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tStorageAccountType: pulumi.String(compute.StorageAccountTypes_Standard_LRS),\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t\t&compute.DataDiskArgs{\n\t\t\t\t\t\tCaching: compute.CachingTypesReadWrite,\n\t\t\t\t\t\tCreateOption: pulumi.String(compute.DiskCreateOptionTypesAttach),\n\t\t\t\t\t\tDiskSizeGB: pulumi.Int(1023),\n\t\t\t\t\t\tLun: pulumi.Int(1),\n\t\t\t\t\t\tManagedDisk: &compute.ManagedDiskParametersArgs{\n\t\t\t\t\t\t\tDiskEncryptionSet: &compute.DiskEncryptionSetParametersArgs{\n\t\t\t\t\t\t\t\tId: pulumi.String(\"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}\"),\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tId: pulumi.String(\"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/{existing-managed-disk-name}\"),\n\t\t\t\t\t\t\tStorageAccountType: pulumi.String(compute.StorageAccountTypes_Standard_LRS),\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tImageReference: &compute.ImageReferenceArgs{\n\t\t\t\t\tId: pulumi.String(\"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/images/{existing-custom-image-name}\"),\n\t\t\t\t},\n\t\t\t\tOsDisk: &compute.OSDiskArgs{\n\t\t\t\t\tCaching: compute.CachingTypesReadWrite,\n\t\t\t\t\tCreateOption: pulumi.String(compute.DiskCreateOptionTypesFromImage),\n\t\t\t\t\tManagedDisk: &compute.ManagedDiskParametersArgs{\n\t\t\t\t\t\tDiskEncryptionSet: &compute.DiskEncryptionSetParametersArgs{\n\t\t\t\t\t\t\tId: pulumi.String(\"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}\"),\n\t\t\t\t\t\t},\n\t\t\t\t\t\tStorageAccountType: pulumi.String(compute.StorageAccountTypes_Standard_LRS),\n\t\t\t\t\t},\n\t\t\t\t\tName: pulumi.String(\"myVMosdisk\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tVmName: pulumi.String(\"myVM\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n\n```\n\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azurenative.compute.VirtualMachine;\nimport com.pulumi.azurenative.compute.VirtualMachineArgs;\nimport com.pulumi.azurenative.compute.inputs.HardwareProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.NetworkProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.OSProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.StorageProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.ImageReferenceArgs;\nimport com.pulumi.azurenative.compute.inputs.OSDiskArgs;\nimport com.pulumi.azurenative.compute.inputs.ManagedDiskParametersArgs;\nimport com.pulumi.azurenative.compute.inputs.DiskEncryptionSetParametersArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var virtualMachine = new VirtualMachine(\"virtualMachine\", VirtualMachineArgs.builder()\n .hardwareProfile(HardwareProfileArgs.builder()\n .vmSize(\"Standard_D1_v2\")\n .build())\n .location(\"westus\")\n .networkProfile(NetworkProfileArgs.builder()\n .networkInterfaces(NetworkInterfaceReferenceArgs.builder()\n .id(\"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\")\n .primary(true)\n .build())\n .build())\n .osProfile(OSProfileArgs.builder()\n .adminPassword(\"{your-password}\")\n .adminUsername(\"{your-username}\")\n .computerName(\"myVM\")\n .build())\n .resourceGroupName(\"myResourceGroup\")\n .storageProfile(StorageProfileArgs.builder()\n .dataDisks( \n DataDiskArgs.builder()\n .caching(\"ReadWrite\")\n .createOption(\"Empty\")\n .diskSizeGB(1023)\n .lun(0)\n .managedDisk(ManagedDiskParametersArgs.builder()\n .diskEncryptionSet(DiskEncryptionSetParametersArgs.builder()\n .id(\"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}\")\n .build())\n .storageAccountType(\"Standard_LRS\")\n .build())\n .build(),\n DataDiskArgs.builder()\n .caching(\"ReadWrite\")\n .createOption(\"Attach\")\n .diskSizeGB(1023)\n .lun(1)\n .managedDisk(ManagedDiskParametersArgs.builder()\n .diskEncryptionSet(DiskEncryptionSetParametersArgs.builder()\n .id(\"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}\")\n .build())\n .id(\"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/{existing-managed-disk-name}\")\n .storageAccountType(\"Standard_LRS\")\n .build())\n .build())\n .imageReference(ImageReferenceArgs.builder()\n .id(\"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/images/{existing-custom-image-name}\")\n .build())\n .osDisk(OSDiskArgs.builder()\n .caching(\"ReadWrite\")\n .createOption(\"FromImage\")\n .managedDisk(ManagedDiskParametersArgs.builder()\n .diskEncryptionSet(DiskEncryptionSetParametersArgs.builder()\n .id(\"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}\")\n .build())\n .storageAccountType(\"Standard_LRS\")\n .build())\n .name(\"myVMosdisk\")\n .build())\n .build())\n .vmName(\"myVM\")\n .build());\n\n }\n}\n\n```\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azure_native from \"@pulumi/azure-native\";\n\nconst virtualMachine = new azure_native.compute.VirtualMachine(\"virtualMachine\", {\n hardwareProfile: {\n vmSize: azure_native.compute.VirtualMachineSizeTypes.Standard_D1_v2,\n },\n location: \"westus\",\n networkProfile: {\n networkInterfaces: [{\n id: \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\",\n primary: true,\n }],\n },\n osProfile: {\n adminPassword: \"{your-password}\",\n adminUsername: \"{your-username}\",\n computerName: \"myVM\",\n },\n resourceGroupName: \"myResourceGroup\",\n storageProfile: {\n dataDisks: [\n {\n caching: azure_native.compute.CachingTypes.ReadWrite,\n createOption: azure_native.compute.DiskCreateOptionTypes.Empty,\n diskSizeGB: 1023,\n lun: 0,\n managedDisk: {\n diskEncryptionSet: {\n id: \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}\",\n },\n storageAccountType: azure_native.compute.StorageAccountTypes.Standard_LRS,\n },\n },\n {\n caching: azure_native.compute.CachingTypes.ReadWrite,\n createOption: azure_native.compute.DiskCreateOptionTypes.Attach,\n diskSizeGB: 1023,\n lun: 1,\n managedDisk: {\n diskEncryptionSet: {\n id: \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}\",\n },\n id: \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/{existing-managed-disk-name}\",\n storageAccountType: azure_native.compute.StorageAccountTypes.Standard_LRS,\n },\n },\n ],\n imageReference: {\n id: \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/images/{existing-custom-image-name}\",\n },\n osDisk: {\n caching: azure_native.compute.CachingTypes.ReadWrite,\n createOption: azure_native.compute.DiskCreateOptionTypes.FromImage,\n managedDisk: {\n diskEncryptionSet: {\n id: \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}\",\n },\n storageAccountType: azure_native.compute.StorageAccountTypes.Standard_LRS,\n },\n name: \"myVMosdisk\",\n },\n },\n vmName: \"myVM\",\n});\n\n```\n\n```python\nimport pulumi\nimport pulumi_azure_native as azure_native\n\nvirtual_machine = azure_native.compute.VirtualMachine(\"virtualMachine\",\n hardware_profile={\n \"vm_size\": azure_native.compute.VirtualMachineSizeTypes.STANDARD_D1_V2,\n },\n location=\"westus\",\n network_profile={\n \"network_interfaces\": [{\n \"id\": \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\",\n \"primary\": True,\n }],\n },\n os_profile={\n \"admin_password\": \"{your-password}\",\n \"admin_username\": \"{your-username}\",\n \"computer_name\": \"myVM\",\n },\n resource_group_name=\"myResourceGroup\",\n storage_profile={\n \"data_disks\": [\n {\n \"caching\": azure_native.compute.CachingTypes.READ_WRITE,\n \"create_option\": azure_native.compute.DiskCreateOptionTypes.EMPTY,\n \"disk_size_gb\": 1023,\n \"lun\": 0,\n \"managed_disk\": {\n \"disk_encryption_set\": {\n \"id\": \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}\",\n },\n \"storage_account_type\": azure_native.compute.StorageAccountTypes.STANDARD_LRS,\n },\n },\n {\n \"caching\": azure_native.compute.CachingTypes.READ_WRITE,\n \"create_option\": azure_native.compute.DiskCreateOptionTypes.ATTACH,\n \"disk_size_gb\": 1023,\n \"lun\": 1,\n \"managed_disk\": {\n \"disk_encryption_set\": {\n \"id\": \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}\",\n },\n \"id\": \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/{existing-managed-disk-name}\",\n \"storage_account_type\": azure_native.compute.StorageAccountTypes.STANDARD_LRS,\n },\n },\n ],\n \"image_reference\": {\n \"id\": \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/images/{existing-custom-image-name}\",\n },\n \"os_disk\": {\n \"caching\": azure_native.compute.CachingTypes.READ_WRITE,\n \"create_option\": azure_native.compute.DiskCreateOptionTypes.FROM_IMAGE,\n \"managed_disk\": {\n \"disk_encryption_set\": {\n \"id\": \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}\",\n },\n \"storage_account_type\": azure_native.compute.StorageAccountTypes.STANDARD_LRS,\n },\n \"name\": \"myVMosdisk\",\n },\n },\n vm_name=\"myVM\")\n\n```\n\n```yaml\nresources:\n virtualMachine:\n type: azure-native:compute:VirtualMachine\n properties:\n hardwareProfile:\n vmSize: Standard_D1_v2\n location: westus\n networkProfile:\n networkInterfaces:\n - id: /subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\n primary: true\n osProfile:\n adminPassword: '{your-password}'\n adminUsername: '{your-username}'\n computerName: myVM\n resourceGroupName: myResourceGroup\n storageProfile:\n dataDisks:\n - caching: ReadWrite\n createOption: Empty\n diskSizeGB: 1023\n lun: 0\n managedDisk:\n diskEncryptionSet:\n id: /subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}\n storageAccountType: Standard_LRS\n - caching: ReadWrite\n createOption: Attach\n diskSizeGB: 1023\n lun: 1\n managedDisk:\n diskEncryptionSet:\n id: /subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}\n id: /subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/{existing-managed-disk-name}\n storageAccountType: Standard_LRS\n imageReference:\n id: /subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/images/{existing-custom-image-name}\n osDisk:\n caching: ReadWrite\n createOption: FromImage\n managedDisk:\n diskEncryptionSet:\n id: /subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}\n storageAccountType: Standard_LRS\n name: myVMosdisk\n vmName: myVM\n\n```\n\n{{% /example %}}\n{{% example %}}\n### Create a vm with Host Encryption using encryptionAtHost property.\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing AzureNative = Pulumi.AzureNative;\n\nreturn await Deployment.RunAsync(() => \n{\n var virtualMachine = new AzureNative.Compute.VirtualMachine(\"virtualMachine\", new()\n {\n HardwareProfile = new AzureNative.Compute.Inputs.HardwareProfileArgs\n {\n VmSize = AzureNative.Compute.VirtualMachineSizeTypes.Standard_DS1_v2,\n },\n Location = \"westus\",\n NetworkProfile = new AzureNative.Compute.Inputs.NetworkProfileArgs\n {\n NetworkInterfaces = new[]\n {\n new AzureNative.Compute.Inputs.NetworkInterfaceReferenceArgs\n {\n Id = \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\",\n Primary = true,\n },\n },\n },\n OsProfile = new AzureNative.Compute.Inputs.OSProfileArgs\n {\n AdminPassword = \"{your-password}\",\n AdminUsername = \"{your-username}\",\n ComputerName = \"myVM\",\n },\n Plan = new AzureNative.Compute.Inputs.PlanArgs\n {\n Name = \"windows2016\",\n Product = \"windows-data-science-vm\",\n Publisher = \"microsoft-ads\",\n },\n ResourceGroupName = \"myResourceGroup\",\n SecurityProfile = new AzureNative.Compute.Inputs.SecurityProfileArgs\n {\n EncryptionAtHost = true,\n },\n StorageProfile = new AzureNative.Compute.Inputs.StorageProfileArgs\n {\n ImageReference = new AzureNative.Compute.Inputs.ImageReferenceArgs\n {\n Offer = \"windows-data-science-vm\",\n Publisher = \"microsoft-ads\",\n Sku = \"windows2016\",\n Version = \"latest\",\n },\n OsDisk = new AzureNative.Compute.Inputs.OSDiskArgs\n {\n Caching = AzureNative.Compute.CachingTypes.ReadOnly,\n CreateOption = AzureNative.Compute.DiskCreateOptionTypes.FromImage,\n ManagedDisk = new AzureNative.Compute.Inputs.ManagedDiskParametersArgs\n {\n StorageAccountType = AzureNative.Compute.StorageAccountTypes.Standard_LRS,\n },\n Name = \"myVMosdisk\",\n },\n },\n VmName = \"myVM\",\n });\n\n});\n\n\n```\n\n```go\npackage main\n\nimport (\n\tcompute \"github.com/pulumi/pulumi-azure-native-sdk/compute/v2\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := compute.NewVirtualMachine(ctx, \"virtualMachine\", &compute.VirtualMachineArgs{\n\t\t\tHardwareProfile: &compute.HardwareProfileArgs{\n\t\t\t\tVmSize: pulumi.String(compute.VirtualMachineSizeTypes_Standard_DS1_v2),\n\t\t\t},\n\t\t\tLocation: pulumi.String(\"westus\"),\n\t\t\tNetworkProfile: &compute.NetworkProfileArgs{\n\t\t\t\tNetworkInterfaces: compute.NetworkInterfaceReferenceArray{\n\t\t\t\t\t&compute.NetworkInterfaceReferenceArgs{\n\t\t\t\t\t\tId: pulumi.String(\"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\"),\n\t\t\t\t\t\tPrimary: pulumi.Bool(true),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tOsProfile: &compute.OSProfileArgs{\n\t\t\t\tAdminPassword: pulumi.String(\"{your-password}\"),\n\t\t\t\tAdminUsername: pulumi.String(\"{your-username}\"),\n\t\t\t\tComputerName: pulumi.String(\"myVM\"),\n\t\t\t},\n\t\t\tPlan: &compute.PlanArgs{\n\t\t\t\tName: pulumi.String(\"windows2016\"),\n\t\t\t\tProduct: pulumi.String(\"windows-data-science-vm\"),\n\t\t\t\tPublisher: pulumi.String(\"microsoft-ads\"),\n\t\t\t},\n\t\t\tResourceGroupName: pulumi.String(\"myResourceGroup\"),\n\t\t\tSecurityProfile: &compute.SecurityProfileArgs{\n\t\t\t\tEncryptionAtHost: pulumi.Bool(true),\n\t\t\t},\n\t\t\tStorageProfile: &compute.StorageProfileArgs{\n\t\t\t\tImageReference: &compute.ImageReferenceArgs{\n\t\t\t\t\tOffer: pulumi.String(\"windows-data-science-vm\"),\n\t\t\t\t\tPublisher: pulumi.String(\"microsoft-ads\"),\n\t\t\t\t\tSku: pulumi.String(\"windows2016\"),\n\t\t\t\t\tVersion: pulumi.String(\"latest\"),\n\t\t\t\t},\n\t\t\t\tOsDisk: &compute.OSDiskArgs{\n\t\t\t\t\tCaching: compute.CachingTypesReadOnly,\n\t\t\t\t\tCreateOption: pulumi.String(compute.DiskCreateOptionTypesFromImage),\n\t\t\t\t\tManagedDisk: &compute.ManagedDiskParametersArgs{\n\t\t\t\t\t\tStorageAccountType: pulumi.String(compute.StorageAccountTypes_Standard_LRS),\n\t\t\t\t\t},\n\t\t\t\t\tName: pulumi.String(\"myVMosdisk\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tVmName: pulumi.String(\"myVM\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n\n```\n\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azurenative.compute.VirtualMachine;\nimport com.pulumi.azurenative.compute.VirtualMachineArgs;\nimport com.pulumi.azurenative.compute.inputs.HardwareProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.NetworkProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.OSProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.PlanArgs;\nimport com.pulumi.azurenative.compute.inputs.SecurityProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.StorageProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.ImageReferenceArgs;\nimport com.pulumi.azurenative.compute.inputs.OSDiskArgs;\nimport com.pulumi.azurenative.compute.inputs.ManagedDiskParametersArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var virtualMachine = new VirtualMachine(\"virtualMachine\", VirtualMachineArgs.builder()\n .hardwareProfile(HardwareProfileArgs.builder()\n .vmSize(\"Standard_DS1_v2\")\n .build())\n .location(\"westus\")\n .networkProfile(NetworkProfileArgs.builder()\n .networkInterfaces(NetworkInterfaceReferenceArgs.builder()\n .id(\"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\")\n .primary(true)\n .build())\n .build())\n .osProfile(OSProfileArgs.builder()\n .adminPassword(\"{your-password}\")\n .adminUsername(\"{your-username}\")\n .computerName(\"myVM\")\n .build())\n .plan(PlanArgs.builder()\n .name(\"windows2016\")\n .product(\"windows-data-science-vm\")\n .publisher(\"microsoft-ads\")\n .build())\n .resourceGroupName(\"myResourceGroup\")\n .securityProfile(SecurityProfileArgs.builder()\n .encryptionAtHost(true)\n .build())\n .storageProfile(StorageProfileArgs.builder()\n .imageReference(ImageReferenceArgs.builder()\n .offer(\"windows-data-science-vm\")\n .publisher(\"microsoft-ads\")\n .sku(\"windows2016\")\n .version(\"latest\")\n .build())\n .osDisk(OSDiskArgs.builder()\n .caching(\"ReadOnly\")\n .createOption(\"FromImage\")\n .managedDisk(ManagedDiskParametersArgs.builder()\n .storageAccountType(\"Standard_LRS\")\n .build())\n .name(\"myVMosdisk\")\n .build())\n .build())\n .vmName(\"myVM\")\n .build());\n\n }\n}\n\n```\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azure_native from \"@pulumi/azure-native\";\n\nconst virtualMachine = new azure_native.compute.VirtualMachine(\"virtualMachine\", {\n hardwareProfile: {\n vmSize: azure_native.compute.VirtualMachineSizeTypes.Standard_DS1_v2,\n },\n location: \"westus\",\n networkProfile: {\n networkInterfaces: [{\n id: \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\",\n primary: true,\n }],\n },\n osProfile: {\n adminPassword: \"{your-password}\",\n adminUsername: \"{your-username}\",\n computerName: \"myVM\",\n },\n plan: {\n name: \"windows2016\",\n product: \"windows-data-science-vm\",\n publisher: \"microsoft-ads\",\n },\n resourceGroupName: \"myResourceGroup\",\n securityProfile: {\n encryptionAtHost: true,\n },\n storageProfile: {\n imageReference: {\n offer: \"windows-data-science-vm\",\n publisher: \"microsoft-ads\",\n sku: \"windows2016\",\n version: \"latest\",\n },\n osDisk: {\n caching: azure_native.compute.CachingTypes.ReadOnly,\n createOption: azure_native.compute.DiskCreateOptionTypes.FromImage,\n managedDisk: {\n storageAccountType: azure_native.compute.StorageAccountTypes.Standard_LRS,\n },\n name: \"myVMosdisk\",\n },\n },\n vmName: \"myVM\",\n});\n\n```\n\n```python\nimport pulumi\nimport pulumi_azure_native as azure_native\n\nvirtual_machine = azure_native.compute.VirtualMachine(\"virtualMachine\",\n hardware_profile={\n \"vm_size\": azure_native.compute.VirtualMachineSizeTypes.STANDARD_DS1_V2,\n },\n location=\"westus\",\n network_profile={\n \"network_interfaces\": [{\n \"id\": \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\",\n \"primary\": True,\n }],\n },\n os_profile={\n \"admin_password\": \"{your-password}\",\n \"admin_username\": \"{your-username}\",\n \"computer_name\": \"myVM\",\n },\n plan={\n \"name\": \"windows2016\",\n \"product\": \"windows-data-science-vm\",\n \"publisher\": \"microsoft-ads\",\n },\n resource_group_name=\"myResourceGroup\",\n security_profile={\n \"encryption_at_host\": True,\n },\n storage_profile={\n \"image_reference\": {\n \"offer\": \"windows-data-science-vm\",\n \"publisher\": \"microsoft-ads\",\n \"sku\": \"windows2016\",\n \"version\": \"latest\",\n },\n \"os_disk\": {\n \"caching\": azure_native.compute.CachingTypes.READ_ONLY,\n \"create_option\": azure_native.compute.DiskCreateOptionTypes.FROM_IMAGE,\n \"managed_disk\": {\n \"storage_account_type\": azure_native.compute.StorageAccountTypes.STANDARD_LRS,\n },\n \"name\": \"myVMosdisk\",\n },\n },\n vm_name=\"myVM\")\n\n```\n\n```yaml\nresources:\n virtualMachine:\n type: azure-native:compute:VirtualMachine\n properties:\n hardwareProfile:\n vmSize: Standard_DS1_v2\n location: westus\n networkProfile:\n networkInterfaces:\n - id: /subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\n primary: true\n osProfile:\n adminPassword: '{your-password}'\n adminUsername: '{your-username}'\n computerName: myVM\n plan:\n name: windows2016\n product: windows-data-science-vm\n publisher: microsoft-ads\n resourceGroupName: myResourceGroup\n securityProfile:\n encryptionAtHost: true\n storageProfile:\n imageReference:\n offer: windows-data-science-vm\n publisher: microsoft-ads\n sku: windows2016\n version: latest\n osDisk:\n caching: ReadOnly\n createOption: FromImage\n managedDisk:\n storageAccountType: Standard_LRS\n name: myVMosdisk\n vmName: myVM\n\n```\n\n{{% /example %}}\n{{% example %}}\n### Create a vm with Scheduled Events Profile\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing AzureNative = Pulumi.AzureNative;\n\nreturn await Deployment.RunAsync(() => \n{\n var virtualMachine = new AzureNative.Compute.VirtualMachine(\"virtualMachine\", new()\n {\n DiagnosticsProfile = new AzureNative.Compute.Inputs.DiagnosticsProfileArgs\n {\n BootDiagnostics = new AzureNative.Compute.Inputs.BootDiagnosticsArgs\n {\n Enabled = true,\n StorageUri = \"http://{existing-storage-account-name}.blob.core.windows.net\",\n },\n },\n HardwareProfile = new AzureNative.Compute.Inputs.HardwareProfileArgs\n {\n VmSize = AzureNative.Compute.VirtualMachineSizeTypes.Standard_D1_v2,\n },\n Location = \"westus\",\n NetworkProfile = new AzureNative.Compute.Inputs.NetworkProfileArgs\n {\n NetworkInterfaces = new[]\n {\n new AzureNative.Compute.Inputs.NetworkInterfaceReferenceArgs\n {\n Id = \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\",\n Primary = true,\n },\n },\n },\n OsProfile = new AzureNative.Compute.Inputs.OSProfileArgs\n {\n AdminPassword = \"{your-password}\",\n AdminUsername = \"{your-username}\",\n ComputerName = \"myVM\",\n },\n ResourceGroupName = \"myResourceGroup\",\n ScheduledEventsProfile = new AzureNative.Compute.Inputs.ScheduledEventsProfileArgs\n {\n OsImageNotificationProfile = new AzureNative.Compute.Inputs.OSImageNotificationProfileArgs\n {\n Enable = true,\n NotBeforeTimeout = \"PT15M\",\n },\n TerminateNotificationProfile = new AzureNative.Compute.Inputs.TerminateNotificationProfileArgs\n {\n Enable = true,\n NotBeforeTimeout = \"PT10M\",\n },\n },\n StorageProfile = new AzureNative.Compute.Inputs.StorageProfileArgs\n {\n ImageReference = new AzureNative.Compute.Inputs.ImageReferenceArgs\n {\n Offer = \"WindowsServer\",\n Publisher = \"MicrosoftWindowsServer\",\n Sku = \"2016-Datacenter\",\n Version = \"latest\",\n },\n OsDisk = new AzureNative.Compute.Inputs.OSDiskArgs\n {\n Caching = AzureNative.Compute.CachingTypes.ReadWrite,\n CreateOption = AzureNative.Compute.DiskCreateOptionTypes.FromImage,\n ManagedDisk = new AzureNative.Compute.Inputs.ManagedDiskParametersArgs\n {\n StorageAccountType = AzureNative.Compute.StorageAccountTypes.Standard_LRS,\n },\n Name = \"myVMosdisk\",\n },\n },\n VmName = \"myVM\",\n });\n\n});\n\n\n```\n\n```go\npackage main\n\nimport (\n\tcompute \"github.com/pulumi/pulumi-azure-native-sdk/compute/v2\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := compute.NewVirtualMachine(ctx, \"virtualMachine\", &compute.VirtualMachineArgs{\n\t\t\tDiagnosticsProfile: &compute.DiagnosticsProfileArgs{\n\t\t\t\tBootDiagnostics: &compute.BootDiagnosticsArgs{\n\t\t\t\t\tEnabled: pulumi.Bool(true),\n\t\t\t\t\tStorageUri: pulumi.String(\"http://{existing-storage-account-name}.blob.core.windows.net\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tHardwareProfile: &compute.HardwareProfileArgs{\n\t\t\t\tVmSize: pulumi.String(compute.VirtualMachineSizeTypes_Standard_D1_v2),\n\t\t\t},\n\t\t\tLocation: pulumi.String(\"westus\"),\n\t\t\tNetworkProfile: &compute.NetworkProfileArgs{\n\t\t\t\tNetworkInterfaces: compute.NetworkInterfaceReferenceArray{\n\t\t\t\t\t&compute.NetworkInterfaceReferenceArgs{\n\t\t\t\t\t\tId: pulumi.String(\"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\"),\n\t\t\t\t\t\tPrimary: pulumi.Bool(true),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tOsProfile: &compute.OSProfileArgs{\n\t\t\t\tAdminPassword: pulumi.String(\"{your-password}\"),\n\t\t\t\tAdminUsername: pulumi.String(\"{your-username}\"),\n\t\t\t\tComputerName: pulumi.String(\"myVM\"),\n\t\t\t},\n\t\t\tResourceGroupName: pulumi.String(\"myResourceGroup\"),\n\t\t\tScheduledEventsProfile: &compute.ScheduledEventsProfileArgs{\n\t\t\t\tOsImageNotificationProfile: &compute.OSImageNotificationProfileArgs{\n\t\t\t\t\tEnable: pulumi.Bool(true),\n\t\t\t\t\tNotBeforeTimeout: pulumi.String(\"PT15M\"),\n\t\t\t\t},\n\t\t\t\tTerminateNotificationProfile: &compute.TerminateNotificationProfileArgs{\n\t\t\t\t\tEnable: pulumi.Bool(true),\n\t\t\t\t\tNotBeforeTimeout: pulumi.String(\"PT10M\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tStorageProfile: &compute.StorageProfileArgs{\n\t\t\t\tImageReference: &compute.ImageReferenceArgs{\n\t\t\t\t\tOffer: pulumi.String(\"WindowsServer\"),\n\t\t\t\t\tPublisher: pulumi.String(\"MicrosoftWindowsServer\"),\n\t\t\t\t\tSku: pulumi.String(\"2016-Datacenter\"),\n\t\t\t\t\tVersion: pulumi.String(\"latest\"),\n\t\t\t\t},\n\t\t\t\tOsDisk: &compute.OSDiskArgs{\n\t\t\t\t\tCaching: compute.CachingTypesReadWrite,\n\t\t\t\t\tCreateOption: pulumi.String(compute.DiskCreateOptionTypesFromImage),\n\t\t\t\t\tManagedDisk: &compute.ManagedDiskParametersArgs{\n\t\t\t\t\t\tStorageAccountType: pulumi.String(compute.StorageAccountTypes_Standard_LRS),\n\t\t\t\t\t},\n\t\t\t\t\tName: pulumi.String(\"myVMosdisk\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tVmName: pulumi.String(\"myVM\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n\n```\n\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azurenative.compute.VirtualMachine;\nimport com.pulumi.azurenative.compute.VirtualMachineArgs;\nimport com.pulumi.azurenative.compute.inputs.DiagnosticsProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.BootDiagnosticsArgs;\nimport com.pulumi.azurenative.compute.inputs.HardwareProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.NetworkProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.OSProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.ScheduledEventsProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.OSImageNotificationProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.TerminateNotificationProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.StorageProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.ImageReferenceArgs;\nimport com.pulumi.azurenative.compute.inputs.OSDiskArgs;\nimport com.pulumi.azurenative.compute.inputs.ManagedDiskParametersArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var virtualMachine = new VirtualMachine(\"virtualMachine\", VirtualMachineArgs.builder()\n .diagnosticsProfile(DiagnosticsProfileArgs.builder()\n .bootDiagnostics(BootDiagnosticsArgs.builder()\n .enabled(true)\n .storageUri(\"http://{existing-storage-account-name}.blob.core.windows.net\")\n .build())\n .build())\n .hardwareProfile(HardwareProfileArgs.builder()\n .vmSize(\"Standard_D1_v2\")\n .build())\n .location(\"westus\")\n .networkProfile(NetworkProfileArgs.builder()\n .networkInterfaces(NetworkInterfaceReferenceArgs.builder()\n .id(\"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\")\n .primary(true)\n .build())\n .build())\n .osProfile(OSProfileArgs.builder()\n .adminPassword(\"{your-password}\")\n .adminUsername(\"{your-username}\")\n .computerName(\"myVM\")\n .build())\n .resourceGroupName(\"myResourceGroup\")\n .scheduledEventsProfile(ScheduledEventsProfileArgs.builder()\n .osImageNotificationProfile(OSImageNotificationProfileArgs.builder()\n .enable(true)\n .notBeforeTimeout(\"PT15M\")\n .build())\n .terminateNotificationProfile(TerminateNotificationProfileArgs.builder()\n .enable(true)\n .notBeforeTimeout(\"PT10M\")\n .build())\n .build())\n .storageProfile(StorageProfileArgs.builder()\n .imageReference(ImageReferenceArgs.builder()\n .offer(\"WindowsServer\")\n .publisher(\"MicrosoftWindowsServer\")\n .sku(\"2016-Datacenter\")\n .version(\"latest\")\n .build())\n .osDisk(OSDiskArgs.builder()\n .caching(\"ReadWrite\")\n .createOption(\"FromImage\")\n .managedDisk(ManagedDiskParametersArgs.builder()\n .storageAccountType(\"Standard_LRS\")\n .build())\n .name(\"myVMosdisk\")\n .build())\n .build())\n .vmName(\"myVM\")\n .build());\n\n }\n}\n\n```\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azure_native from \"@pulumi/azure-native\";\n\nconst virtualMachine = new azure_native.compute.VirtualMachine(\"virtualMachine\", {\n diagnosticsProfile: {\n bootDiagnostics: {\n enabled: true,\n storageUri: \"http://{existing-storage-account-name}.blob.core.windows.net\",\n },\n },\n hardwareProfile: {\n vmSize: azure_native.compute.VirtualMachineSizeTypes.Standard_D1_v2,\n },\n location: \"westus\",\n networkProfile: {\n networkInterfaces: [{\n id: \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\",\n primary: true,\n }],\n },\n osProfile: {\n adminPassword: \"{your-password}\",\n adminUsername: \"{your-username}\",\n computerName: \"myVM\",\n },\n resourceGroupName: \"myResourceGroup\",\n scheduledEventsProfile: {\n osImageNotificationProfile: {\n enable: true,\n notBeforeTimeout: \"PT15M\",\n },\n terminateNotificationProfile: {\n enable: true,\n notBeforeTimeout: \"PT10M\",\n },\n },\n storageProfile: {\n imageReference: {\n offer: \"WindowsServer\",\n publisher: \"MicrosoftWindowsServer\",\n sku: \"2016-Datacenter\",\n version: \"latest\",\n },\n osDisk: {\n caching: azure_native.compute.CachingTypes.ReadWrite,\n createOption: azure_native.compute.DiskCreateOptionTypes.FromImage,\n managedDisk: {\n storageAccountType: azure_native.compute.StorageAccountTypes.Standard_LRS,\n },\n name: \"myVMosdisk\",\n },\n },\n vmName: \"myVM\",\n});\n\n```\n\n```python\nimport pulumi\nimport pulumi_azure_native as azure_native\n\nvirtual_machine = azure_native.compute.VirtualMachine(\"virtualMachine\",\n diagnostics_profile={\n \"boot_diagnostics\": {\n \"enabled\": True,\n \"storage_uri\": \"http://{existing-storage-account-name}.blob.core.windows.net\",\n },\n },\n hardware_profile={\n \"vm_size\": azure_native.compute.VirtualMachineSizeTypes.STANDARD_D1_V2,\n },\n location=\"westus\",\n network_profile={\n \"network_interfaces\": [{\n \"id\": \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\",\n \"primary\": True,\n }],\n },\n os_profile={\n \"admin_password\": \"{your-password}\",\n \"admin_username\": \"{your-username}\",\n \"computer_name\": \"myVM\",\n },\n resource_group_name=\"myResourceGroup\",\n scheduled_events_profile={\n \"os_image_notification_profile\": {\n \"enable\": True,\n \"not_before_timeout\": \"PT15M\",\n },\n \"terminate_notification_profile\": {\n \"enable\": True,\n \"not_before_timeout\": \"PT10M\",\n },\n },\n storage_profile={\n \"image_reference\": {\n \"offer\": \"WindowsServer\",\n \"publisher\": \"MicrosoftWindowsServer\",\n \"sku\": \"2016-Datacenter\",\n \"version\": \"latest\",\n },\n \"os_disk\": {\n \"caching\": azure_native.compute.CachingTypes.READ_WRITE,\n \"create_option\": azure_native.compute.DiskCreateOptionTypes.FROM_IMAGE,\n \"managed_disk\": {\n \"storage_account_type\": azure_native.compute.StorageAccountTypes.STANDARD_LRS,\n },\n \"name\": \"myVMosdisk\",\n },\n },\n vm_name=\"myVM\")\n\n```\n\n```yaml\nresources:\n virtualMachine:\n type: azure-native:compute:VirtualMachine\n properties:\n diagnosticsProfile:\n bootDiagnostics:\n enabled: true\n storageUri: http://{existing-storage-account-name}.blob.core.windows.net\n hardwareProfile:\n vmSize: Standard_D1_v2\n location: westus\n networkProfile:\n networkInterfaces:\n - id: /subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\n primary: true\n osProfile:\n adminPassword: '{your-password}'\n adminUsername: '{your-username}'\n computerName: myVM\n resourceGroupName: myResourceGroup\n scheduledEventsProfile:\n osImageNotificationProfile:\n enable: true\n notBeforeTimeout: PT15M\n terminateNotificationProfile:\n enable: true\n notBeforeTimeout: PT10M\n storageProfile:\n imageReference:\n offer: WindowsServer\n publisher: MicrosoftWindowsServer\n sku: 2016-Datacenter\n version: latest\n osDisk:\n caching: ReadWrite\n createOption: FromImage\n managedDisk:\n storageAccountType: Standard_LRS\n name: myVMosdisk\n vmName: myVM\n\n```\n\n{{% /example %}}\n{{% example %}}\n### Create a vm with a marketplace image plan.\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing AzureNative = Pulumi.AzureNative;\n\nreturn await Deployment.RunAsync(() => \n{\n var virtualMachine = new AzureNative.Compute.VirtualMachine(\"virtualMachine\", new()\n {\n HardwareProfile = new AzureNative.Compute.Inputs.HardwareProfileArgs\n {\n VmSize = AzureNative.Compute.VirtualMachineSizeTypes.Standard_D1_v2,\n },\n Location = \"westus\",\n NetworkProfile = new AzureNative.Compute.Inputs.NetworkProfileArgs\n {\n NetworkInterfaces = new[]\n {\n new AzureNative.Compute.Inputs.NetworkInterfaceReferenceArgs\n {\n Id = \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\",\n Primary = true,\n },\n },\n },\n OsProfile = new AzureNative.Compute.Inputs.OSProfileArgs\n {\n AdminPassword = \"{your-password}\",\n AdminUsername = \"{your-username}\",\n ComputerName = \"myVM\",\n },\n Plan = new AzureNative.Compute.Inputs.PlanArgs\n {\n Name = \"windows2016\",\n Product = \"windows-data-science-vm\",\n Publisher = \"microsoft-ads\",\n },\n ResourceGroupName = \"myResourceGroup\",\n StorageProfile = new AzureNative.Compute.Inputs.StorageProfileArgs\n {\n ImageReference = new AzureNative.Compute.Inputs.ImageReferenceArgs\n {\n Offer = \"windows-data-science-vm\",\n Publisher = \"microsoft-ads\",\n Sku = \"windows2016\",\n Version = \"latest\",\n },\n OsDisk = new AzureNative.Compute.Inputs.OSDiskArgs\n {\n Caching = AzureNative.Compute.CachingTypes.ReadWrite,\n CreateOption = AzureNative.Compute.DiskCreateOptionTypes.FromImage,\n ManagedDisk = new AzureNative.Compute.Inputs.ManagedDiskParametersArgs\n {\n StorageAccountType = AzureNative.Compute.StorageAccountTypes.Standard_LRS,\n },\n Name = \"myVMosdisk\",\n },\n },\n VmName = \"myVM\",\n });\n\n});\n\n\n```\n\n```go\npackage main\n\nimport (\n\tcompute \"github.com/pulumi/pulumi-azure-native-sdk/compute/v2\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := compute.NewVirtualMachine(ctx, \"virtualMachine\", &compute.VirtualMachineArgs{\n\t\t\tHardwareProfile: &compute.HardwareProfileArgs{\n\t\t\t\tVmSize: pulumi.String(compute.VirtualMachineSizeTypes_Standard_D1_v2),\n\t\t\t},\n\t\t\tLocation: pulumi.String(\"westus\"),\n\t\t\tNetworkProfile: &compute.NetworkProfileArgs{\n\t\t\t\tNetworkInterfaces: compute.NetworkInterfaceReferenceArray{\n\t\t\t\t\t&compute.NetworkInterfaceReferenceArgs{\n\t\t\t\t\t\tId: pulumi.String(\"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\"),\n\t\t\t\t\t\tPrimary: pulumi.Bool(true),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tOsProfile: &compute.OSProfileArgs{\n\t\t\t\tAdminPassword: pulumi.String(\"{your-password}\"),\n\t\t\t\tAdminUsername: pulumi.String(\"{your-username}\"),\n\t\t\t\tComputerName: pulumi.String(\"myVM\"),\n\t\t\t},\n\t\t\tPlan: &compute.PlanArgs{\n\t\t\t\tName: pulumi.String(\"windows2016\"),\n\t\t\t\tProduct: pulumi.String(\"windows-data-science-vm\"),\n\t\t\t\tPublisher: pulumi.String(\"microsoft-ads\"),\n\t\t\t},\n\t\t\tResourceGroupName: pulumi.String(\"myResourceGroup\"),\n\t\t\tStorageProfile: &compute.StorageProfileArgs{\n\t\t\t\tImageReference: &compute.ImageReferenceArgs{\n\t\t\t\t\tOffer: pulumi.String(\"windows-data-science-vm\"),\n\t\t\t\t\tPublisher: pulumi.String(\"microsoft-ads\"),\n\t\t\t\t\tSku: pulumi.String(\"windows2016\"),\n\t\t\t\t\tVersion: pulumi.String(\"latest\"),\n\t\t\t\t},\n\t\t\t\tOsDisk: &compute.OSDiskArgs{\n\t\t\t\t\tCaching: compute.CachingTypesReadWrite,\n\t\t\t\t\tCreateOption: pulumi.String(compute.DiskCreateOptionTypesFromImage),\n\t\t\t\t\tManagedDisk: &compute.ManagedDiskParametersArgs{\n\t\t\t\t\t\tStorageAccountType: pulumi.String(compute.StorageAccountTypes_Standard_LRS),\n\t\t\t\t\t},\n\t\t\t\t\tName: pulumi.String(\"myVMosdisk\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tVmName: pulumi.String(\"myVM\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n\n```\n\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azurenative.compute.VirtualMachine;\nimport com.pulumi.azurenative.compute.VirtualMachineArgs;\nimport com.pulumi.azurenative.compute.inputs.HardwareProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.NetworkProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.OSProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.PlanArgs;\nimport com.pulumi.azurenative.compute.inputs.StorageProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.ImageReferenceArgs;\nimport com.pulumi.azurenative.compute.inputs.OSDiskArgs;\nimport com.pulumi.azurenative.compute.inputs.ManagedDiskParametersArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var virtualMachine = new VirtualMachine(\"virtualMachine\", VirtualMachineArgs.builder()\n .hardwareProfile(HardwareProfileArgs.builder()\n .vmSize(\"Standard_D1_v2\")\n .build())\n .location(\"westus\")\n .networkProfile(NetworkProfileArgs.builder()\n .networkInterfaces(NetworkInterfaceReferenceArgs.builder()\n .id(\"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\")\n .primary(true)\n .build())\n .build())\n .osProfile(OSProfileArgs.builder()\n .adminPassword(\"{your-password}\")\n .adminUsername(\"{your-username}\")\n .computerName(\"myVM\")\n .build())\n .plan(PlanArgs.builder()\n .name(\"windows2016\")\n .product(\"windows-data-science-vm\")\n .publisher(\"microsoft-ads\")\n .build())\n .resourceGroupName(\"myResourceGroup\")\n .storageProfile(StorageProfileArgs.builder()\n .imageReference(ImageReferenceArgs.builder()\n .offer(\"windows-data-science-vm\")\n .publisher(\"microsoft-ads\")\n .sku(\"windows2016\")\n .version(\"latest\")\n .build())\n .osDisk(OSDiskArgs.builder()\n .caching(\"ReadWrite\")\n .createOption(\"FromImage\")\n .managedDisk(ManagedDiskParametersArgs.builder()\n .storageAccountType(\"Standard_LRS\")\n .build())\n .name(\"myVMosdisk\")\n .build())\n .build())\n .vmName(\"myVM\")\n .build());\n\n }\n}\n\n```\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azure_native from \"@pulumi/azure-native\";\n\nconst virtualMachine = new azure_native.compute.VirtualMachine(\"virtualMachine\", {\n hardwareProfile: {\n vmSize: azure_native.compute.VirtualMachineSizeTypes.Standard_D1_v2,\n },\n location: \"westus\",\n networkProfile: {\n networkInterfaces: [{\n id: \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\",\n primary: true,\n }],\n },\n osProfile: {\n adminPassword: \"{your-password}\",\n adminUsername: \"{your-username}\",\n computerName: \"myVM\",\n },\n plan: {\n name: \"windows2016\",\n product: \"windows-data-science-vm\",\n publisher: \"microsoft-ads\",\n },\n resourceGroupName: \"myResourceGroup\",\n storageProfile: {\n imageReference: {\n offer: \"windows-data-science-vm\",\n publisher: \"microsoft-ads\",\n sku: \"windows2016\",\n version: \"latest\",\n },\n osDisk: {\n caching: azure_native.compute.CachingTypes.ReadWrite,\n createOption: azure_native.compute.DiskCreateOptionTypes.FromImage,\n managedDisk: {\n storageAccountType: azure_native.compute.StorageAccountTypes.Standard_LRS,\n },\n name: \"myVMosdisk\",\n },\n },\n vmName: \"myVM\",\n});\n\n```\n\n```python\nimport pulumi\nimport pulumi_azure_native as azure_native\n\nvirtual_machine = azure_native.compute.VirtualMachine(\"virtualMachine\",\n hardware_profile={\n \"vm_size\": azure_native.compute.VirtualMachineSizeTypes.STANDARD_D1_V2,\n },\n location=\"westus\",\n network_profile={\n \"network_interfaces\": [{\n \"id\": \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\",\n \"primary\": True,\n }],\n },\n os_profile={\n \"admin_password\": \"{your-password}\",\n \"admin_username\": \"{your-username}\",\n \"computer_name\": \"myVM\",\n },\n plan={\n \"name\": \"windows2016\",\n \"product\": \"windows-data-science-vm\",\n \"publisher\": \"microsoft-ads\",\n },\n resource_group_name=\"myResourceGroup\",\n storage_profile={\n \"image_reference\": {\n \"offer\": \"windows-data-science-vm\",\n \"publisher\": \"microsoft-ads\",\n \"sku\": \"windows2016\",\n \"version\": \"latest\",\n },\n \"os_disk\": {\n \"caching\": azure_native.compute.CachingTypes.READ_WRITE,\n \"create_option\": azure_native.compute.DiskCreateOptionTypes.FROM_IMAGE,\n \"managed_disk\": {\n \"storage_account_type\": azure_native.compute.StorageAccountTypes.STANDARD_LRS,\n },\n \"name\": \"myVMosdisk\",\n },\n },\n vm_name=\"myVM\")\n\n```\n\n```yaml\nresources:\n virtualMachine:\n type: azure-native:compute:VirtualMachine\n properties:\n hardwareProfile:\n vmSize: Standard_D1_v2\n location: westus\n networkProfile:\n networkInterfaces:\n - id: /subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\n primary: true\n osProfile:\n adminPassword: '{your-password}'\n adminUsername: '{your-username}'\n computerName: myVM\n plan:\n name: windows2016\n product: windows-data-science-vm\n publisher: microsoft-ads\n resourceGroupName: myResourceGroup\n storageProfile:\n imageReference:\n offer: windows-data-science-vm\n publisher: microsoft-ads\n sku: windows2016\n version: latest\n osDisk:\n caching: ReadWrite\n createOption: FromImage\n managedDisk:\n storageAccountType: Standard_LRS\n name: myVMosdisk\n vmName: myVM\n\n```\n\n{{% /example %}}\n{{% example %}}\n### Create a vm with an extensions time budget.\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing AzureNative = Pulumi.AzureNative;\n\nreturn await Deployment.RunAsync(() => \n{\n var virtualMachine = new AzureNative.Compute.VirtualMachine(\"virtualMachine\", new()\n {\n DiagnosticsProfile = new AzureNative.Compute.Inputs.DiagnosticsProfileArgs\n {\n BootDiagnostics = new AzureNative.Compute.Inputs.BootDiagnosticsArgs\n {\n Enabled = true,\n StorageUri = \"http://{existing-storage-account-name}.blob.core.windows.net\",\n },\n },\n ExtensionsTimeBudget = \"PT30M\",\n HardwareProfile = new AzureNative.Compute.Inputs.HardwareProfileArgs\n {\n VmSize = AzureNative.Compute.VirtualMachineSizeTypes.Standard_D1_v2,\n },\n Location = \"westus\",\n NetworkProfile = new AzureNative.Compute.Inputs.NetworkProfileArgs\n {\n NetworkInterfaces = new[]\n {\n new AzureNative.Compute.Inputs.NetworkInterfaceReferenceArgs\n {\n Id = \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\",\n Primary = true,\n },\n },\n },\n OsProfile = new AzureNative.Compute.Inputs.OSProfileArgs\n {\n AdminPassword = \"{your-password}\",\n AdminUsername = \"{your-username}\",\n ComputerName = \"myVM\",\n },\n ResourceGroupName = \"myResourceGroup\",\n StorageProfile = new AzureNative.Compute.Inputs.StorageProfileArgs\n {\n ImageReference = new AzureNative.Compute.Inputs.ImageReferenceArgs\n {\n Offer = \"WindowsServer\",\n Publisher = \"MicrosoftWindowsServer\",\n Sku = \"2016-Datacenter\",\n Version = \"latest\",\n },\n OsDisk = new AzureNative.Compute.Inputs.OSDiskArgs\n {\n Caching = AzureNative.Compute.CachingTypes.ReadWrite,\n CreateOption = AzureNative.Compute.DiskCreateOptionTypes.FromImage,\n ManagedDisk = new AzureNative.Compute.Inputs.ManagedDiskParametersArgs\n {\n StorageAccountType = AzureNative.Compute.StorageAccountTypes.Standard_LRS,\n },\n Name = \"myVMosdisk\",\n },\n },\n VmName = \"myVM\",\n });\n\n});\n\n\n```\n\n```go\npackage main\n\nimport (\n\tcompute \"github.com/pulumi/pulumi-azure-native-sdk/compute/v2\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := compute.NewVirtualMachine(ctx, \"virtualMachine\", &compute.VirtualMachineArgs{\n\t\t\tDiagnosticsProfile: &compute.DiagnosticsProfileArgs{\n\t\t\t\tBootDiagnostics: &compute.BootDiagnosticsArgs{\n\t\t\t\t\tEnabled: pulumi.Bool(true),\n\t\t\t\t\tStorageUri: pulumi.String(\"http://{existing-storage-account-name}.blob.core.windows.net\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tExtensionsTimeBudget: pulumi.String(\"PT30M\"),\n\t\t\tHardwareProfile: &compute.HardwareProfileArgs{\n\t\t\t\tVmSize: pulumi.String(compute.VirtualMachineSizeTypes_Standard_D1_v2),\n\t\t\t},\n\t\t\tLocation: pulumi.String(\"westus\"),\n\t\t\tNetworkProfile: &compute.NetworkProfileArgs{\n\t\t\t\tNetworkInterfaces: compute.NetworkInterfaceReferenceArray{\n\t\t\t\t\t&compute.NetworkInterfaceReferenceArgs{\n\t\t\t\t\t\tId: pulumi.String(\"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\"),\n\t\t\t\t\t\tPrimary: pulumi.Bool(true),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tOsProfile: &compute.OSProfileArgs{\n\t\t\t\tAdminPassword: pulumi.String(\"{your-password}\"),\n\t\t\t\tAdminUsername: pulumi.String(\"{your-username}\"),\n\t\t\t\tComputerName: pulumi.String(\"myVM\"),\n\t\t\t},\n\t\t\tResourceGroupName: pulumi.String(\"myResourceGroup\"),\n\t\t\tStorageProfile: &compute.StorageProfileArgs{\n\t\t\t\tImageReference: &compute.ImageReferenceArgs{\n\t\t\t\t\tOffer: pulumi.String(\"WindowsServer\"),\n\t\t\t\t\tPublisher: pulumi.String(\"MicrosoftWindowsServer\"),\n\t\t\t\t\tSku: pulumi.String(\"2016-Datacenter\"),\n\t\t\t\t\tVersion: pulumi.String(\"latest\"),\n\t\t\t\t},\n\t\t\t\tOsDisk: &compute.OSDiskArgs{\n\t\t\t\t\tCaching: compute.CachingTypesReadWrite,\n\t\t\t\t\tCreateOption: pulumi.String(compute.DiskCreateOptionTypesFromImage),\n\t\t\t\t\tManagedDisk: &compute.ManagedDiskParametersArgs{\n\t\t\t\t\t\tStorageAccountType: pulumi.String(compute.StorageAccountTypes_Standard_LRS),\n\t\t\t\t\t},\n\t\t\t\t\tName: pulumi.String(\"myVMosdisk\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tVmName: pulumi.String(\"myVM\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n\n```\n\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azurenative.compute.VirtualMachine;\nimport com.pulumi.azurenative.compute.VirtualMachineArgs;\nimport com.pulumi.azurenative.compute.inputs.DiagnosticsProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.BootDiagnosticsArgs;\nimport com.pulumi.azurenative.compute.inputs.HardwareProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.NetworkProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.OSProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.StorageProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.ImageReferenceArgs;\nimport com.pulumi.azurenative.compute.inputs.OSDiskArgs;\nimport com.pulumi.azurenative.compute.inputs.ManagedDiskParametersArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var virtualMachine = new VirtualMachine(\"virtualMachine\", VirtualMachineArgs.builder()\n .diagnosticsProfile(DiagnosticsProfileArgs.builder()\n .bootDiagnostics(BootDiagnosticsArgs.builder()\n .enabled(true)\n .storageUri(\"http://{existing-storage-account-name}.blob.core.windows.net\")\n .build())\n .build())\n .extensionsTimeBudget(\"PT30M\")\n .hardwareProfile(HardwareProfileArgs.builder()\n .vmSize(\"Standard_D1_v2\")\n .build())\n .location(\"westus\")\n .networkProfile(NetworkProfileArgs.builder()\n .networkInterfaces(NetworkInterfaceReferenceArgs.builder()\n .id(\"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\")\n .primary(true)\n .build())\n .build())\n .osProfile(OSProfileArgs.builder()\n .adminPassword(\"{your-password}\")\n .adminUsername(\"{your-username}\")\n .computerName(\"myVM\")\n .build())\n .resourceGroupName(\"myResourceGroup\")\n .storageProfile(StorageProfileArgs.builder()\n .imageReference(ImageReferenceArgs.builder()\n .offer(\"WindowsServer\")\n .publisher(\"MicrosoftWindowsServer\")\n .sku(\"2016-Datacenter\")\n .version(\"latest\")\n .build())\n .osDisk(OSDiskArgs.builder()\n .caching(\"ReadWrite\")\n .createOption(\"FromImage\")\n .managedDisk(ManagedDiskParametersArgs.builder()\n .storageAccountType(\"Standard_LRS\")\n .build())\n .name(\"myVMosdisk\")\n .build())\n .build())\n .vmName(\"myVM\")\n .build());\n\n }\n}\n\n```\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azure_native from \"@pulumi/azure-native\";\n\nconst virtualMachine = new azure_native.compute.VirtualMachine(\"virtualMachine\", {\n diagnosticsProfile: {\n bootDiagnostics: {\n enabled: true,\n storageUri: \"http://{existing-storage-account-name}.blob.core.windows.net\",\n },\n },\n extensionsTimeBudget: \"PT30M\",\n hardwareProfile: {\n vmSize: azure_native.compute.VirtualMachineSizeTypes.Standard_D1_v2,\n },\n location: \"westus\",\n networkProfile: {\n networkInterfaces: [{\n id: \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\",\n primary: true,\n }],\n },\n osProfile: {\n adminPassword: \"{your-password}\",\n adminUsername: \"{your-username}\",\n computerName: \"myVM\",\n },\n resourceGroupName: \"myResourceGroup\",\n storageProfile: {\n imageReference: {\n offer: \"WindowsServer\",\n publisher: \"MicrosoftWindowsServer\",\n sku: \"2016-Datacenter\",\n version: \"latest\",\n },\n osDisk: {\n caching: azure_native.compute.CachingTypes.ReadWrite,\n createOption: azure_native.compute.DiskCreateOptionTypes.FromImage,\n managedDisk: {\n storageAccountType: azure_native.compute.StorageAccountTypes.Standard_LRS,\n },\n name: \"myVMosdisk\",\n },\n },\n vmName: \"myVM\",\n});\n\n```\n\n```python\nimport pulumi\nimport pulumi_azure_native as azure_native\n\nvirtual_machine = azure_native.compute.VirtualMachine(\"virtualMachine\",\n diagnostics_profile={\n \"boot_diagnostics\": {\n \"enabled\": True,\n \"storage_uri\": \"http://{existing-storage-account-name}.blob.core.windows.net\",\n },\n },\n extensions_time_budget=\"PT30M\",\n hardware_profile={\n \"vm_size\": azure_native.compute.VirtualMachineSizeTypes.STANDARD_D1_V2,\n },\n location=\"westus\",\n network_profile={\n \"network_interfaces\": [{\n \"id\": \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\",\n \"primary\": True,\n }],\n },\n os_profile={\n \"admin_password\": \"{your-password}\",\n \"admin_username\": \"{your-username}\",\n \"computer_name\": \"myVM\",\n },\n resource_group_name=\"myResourceGroup\",\n storage_profile={\n \"image_reference\": {\n \"offer\": \"WindowsServer\",\n \"publisher\": \"MicrosoftWindowsServer\",\n \"sku\": \"2016-Datacenter\",\n \"version\": \"latest\",\n },\n \"os_disk\": {\n \"caching\": azure_native.compute.CachingTypes.READ_WRITE,\n \"create_option\": azure_native.compute.DiskCreateOptionTypes.FROM_IMAGE,\n \"managed_disk\": {\n \"storage_account_type\": azure_native.compute.StorageAccountTypes.STANDARD_LRS,\n },\n \"name\": \"myVMosdisk\",\n },\n },\n vm_name=\"myVM\")\n\n```\n\n```yaml\nresources:\n virtualMachine:\n type: azure-native:compute:VirtualMachine\n properties:\n diagnosticsProfile:\n bootDiagnostics:\n enabled: true\n storageUri: http://{existing-storage-account-name}.blob.core.windows.net\n extensionsTimeBudget: PT30M\n hardwareProfile:\n vmSize: Standard_D1_v2\n location: westus\n networkProfile:\n networkInterfaces:\n - id: /subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\n primary: true\n osProfile:\n adminPassword: '{your-password}'\n adminUsername: '{your-username}'\n computerName: myVM\n resourceGroupName: myResourceGroup\n storageProfile:\n imageReference:\n offer: WindowsServer\n publisher: MicrosoftWindowsServer\n sku: 2016-Datacenter\n version: latest\n osDisk:\n caching: ReadWrite\n createOption: FromImage\n managedDisk:\n storageAccountType: Standard_LRS\n name: myVMosdisk\n vmName: myVM\n\n```\n\n{{% /example %}}\n{{% example %}}\n### Create a vm with boot diagnostics.\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing AzureNative = Pulumi.AzureNative;\n\nreturn await Deployment.RunAsync(() => \n{\n var virtualMachine = new AzureNative.Compute.VirtualMachine(\"virtualMachine\", new()\n {\n DiagnosticsProfile = new AzureNative.Compute.Inputs.DiagnosticsProfileArgs\n {\n BootDiagnostics = new AzureNative.Compute.Inputs.BootDiagnosticsArgs\n {\n Enabled = true,\n StorageUri = \"http://{existing-storage-account-name}.blob.core.windows.net\",\n },\n },\n HardwareProfile = new AzureNative.Compute.Inputs.HardwareProfileArgs\n {\n VmSize = AzureNative.Compute.VirtualMachineSizeTypes.Standard_D1_v2,\n },\n Location = \"westus\",\n NetworkProfile = new AzureNative.Compute.Inputs.NetworkProfileArgs\n {\n NetworkInterfaces = new[]\n {\n new AzureNative.Compute.Inputs.NetworkInterfaceReferenceArgs\n {\n Id = \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\",\n Primary = true,\n },\n },\n },\n OsProfile = new AzureNative.Compute.Inputs.OSProfileArgs\n {\n AdminPassword = \"{your-password}\",\n AdminUsername = \"{your-username}\",\n ComputerName = \"myVM\",\n },\n ResourceGroupName = \"myResourceGroup\",\n StorageProfile = new AzureNative.Compute.Inputs.StorageProfileArgs\n {\n ImageReference = new AzureNative.Compute.Inputs.ImageReferenceArgs\n {\n Offer = \"WindowsServer\",\n Publisher = \"MicrosoftWindowsServer\",\n Sku = \"2016-Datacenter\",\n Version = \"latest\",\n },\n OsDisk = new AzureNative.Compute.Inputs.OSDiskArgs\n {\n Caching = AzureNative.Compute.CachingTypes.ReadWrite,\n CreateOption = AzureNative.Compute.DiskCreateOptionTypes.FromImage,\n ManagedDisk = new AzureNative.Compute.Inputs.ManagedDiskParametersArgs\n {\n StorageAccountType = AzureNative.Compute.StorageAccountTypes.Standard_LRS,\n },\n Name = \"myVMosdisk\",\n },\n },\n VmName = \"myVM\",\n });\n\n});\n\n\n```\n\n```go\npackage main\n\nimport (\n\tcompute \"github.com/pulumi/pulumi-azure-native-sdk/compute/v2\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := compute.NewVirtualMachine(ctx, \"virtualMachine\", &compute.VirtualMachineArgs{\n\t\t\tDiagnosticsProfile: &compute.DiagnosticsProfileArgs{\n\t\t\t\tBootDiagnostics: &compute.BootDiagnosticsArgs{\n\t\t\t\t\tEnabled: pulumi.Bool(true),\n\t\t\t\t\tStorageUri: pulumi.String(\"http://{existing-storage-account-name}.blob.core.windows.net\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tHardwareProfile: &compute.HardwareProfileArgs{\n\t\t\t\tVmSize: pulumi.String(compute.VirtualMachineSizeTypes_Standard_D1_v2),\n\t\t\t},\n\t\t\tLocation: pulumi.String(\"westus\"),\n\t\t\tNetworkProfile: &compute.NetworkProfileArgs{\n\t\t\t\tNetworkInterfaces: compute.NetworkInterfaceReferenceArray{\n\t\t\t\t\t&compute.NetworkInterfaceReferenceArgs{\n\t\t\t\t\t\tId: pulumi.String(\"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\"),\n\t\t\t\t\t\tPrimary: pulumi.Bool(true),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tOsProfile: &compute.OSProfileArgs{\n\t\t\t\tAdminPassword: pulumi.String(\"{your-password}\"),\n\t\t\t\tAdminUsername: pulumi.String(\"{your-username}\"),\n\t\t\t\tComputerName: pulumi.String(\"myVM\"),\n\t\t\t},\n\t\t\tResourceGroupName: pulumi.String(\"myResourceGroup\"),\n\t\t\tStorageProfile: &compute.StorageProfileArgs{\n\t\t\t\tImageReference: &compute.ImageReferenceArgs{\n\t\t\t\t\tOffer: pulumi.String(\"WindowsServer\"),\n\t\t\t\t\tPublisher: pulumi.String(\"MicrosoftWindowsServer\"),\n\t\t\t\t\tSku: pulumi.String(\"2016-Datacenter\"),\n\t\t\t\t\tVersion: pulumi.String(\"latest\"),\n\t\t\t\t},\n\t\t\t\tOsDisk: &compute.OSDiskArgs{\n\t\t\t\t\tCaching: compute.CachingTypesReadWrite,\n\t\t\t\t\tCreateOption: pulumi.String(compute.DiskCreateOptionTypesFromImage),\n\t\t\t\t\tManagedDisk: &compute.ManagedDiskParametersArgs{\n\t\t\t\t\t\tStorageAccountType: pulumi.String(compute.StorageAccountTypes_Standard_LRS),\n\t\t\t\t\t},\n\t\t\t\t\tName: pulumi.String(\"myVMosdisk\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tVmName: pulumi.String(\"myVM\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n\n```\n\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azurenative.compute.VirtualMachine;\nimport com.pulumi.azurenative.compute.VirtualMachineArgs;\nimport com.pulumi.azurenative.compute.inputs.DiagnosticsProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.BootDiagnosticsArgs;\nimport com.pulumi.azurenative.compute.inputs.HardwareProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.NetworkProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.OSProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.StorageProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.ImageReferenceArgs;\nimport com.pulumi.azurenative.compute.inputs.OSDiskArgs;\nimport com.pulumi.azurenative.compute.inputs.ManagedDiskParametersArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var virtualMachine = new VirtualMachine(\"virtualMachine\", VirtualMachineArgs.builder()\n .diagnosticsProfile(DiagnosticsProfileArgs.builder()\n .bootDiagnostics(BootDiagnosticsArgs.builder()\n .enabled(true)\n .storageUri(\"http://{existing-storage-account-name}.blob.core.windows.net\")\n .build())\n .build())\n .hardwareProfile(HardwareProfileArgs.builder()\n .vmSize(\"Standard_D1_v2\")\n .build())\n .location(\"westus\")\n .networkProfile(NetworkProfileArgs.builder()\n .networkInterfaces(NetworkInterfaceReferenceArgs.builder()\n .id(\"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\")\n .primary(true)\n .build())\n .build())\n .osProfile(OSProfileArgs.builder()\n .adminPassword(\"{your-password}\")\n .adminUsername(\"{your-username}\")\n .computerName(\"myVM\")\n .build())\n .resourceGroupName(\"myResourceGroup\")\n .storageProfile(StorageProfileArgs.builder()\n .imageReference(ImageReferenceArgs.builder()\n .offer(\"WindowsServer\")\n .publisher(\"MicrosoftWindowsServer\")\n .sku(\"2016-Datacenter\")\n .version(\"latest\")\n .build())\n .osDisk(OSDiskArgs.builder()\n .caching(\"ReadWrite\")\n .createOption(\"FromImage\")\n .managedDisk(ManagedDiskParametersArgs.builder()\n .storageAccountType(\"Standard_LRS\")\n .build())\n .name(\"myVMosdisk\")\n .build())\n .build())\n .vmName(\"myVM\")\n .build());\n\n }\n}\n\n```\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azure_native from \"@pulumi/azure-native\";\n\nconst virtualMachine = new azure_native.compute.VirtualMachine(\"virtualMachine\", {\n diagnosticsProfile: {\n bootDiagnostics: {\n enabled: true,\n storageUri: \"http://{existing-storage-account-name}.blob.core.windows.net\",\n },\n },\n hardwareProfile: {\n vmSize: azure_native.compute.VirtualMachineSizeTypes.Standard_D1_v2,\n },\n location: \"westus\",\n networkProfile: {\n networkInterfaces: [{\n id: \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\",\n primary: true,\n }],\n },\n osProfile: {\n adminPassword: \"{your-password}\",\n adminUsername: \"{your-username}\",\n computerName: \"myVM\",\n },\n resourceGroupName: \"myResourceGroup\",\n storageProfile: {\n imageReference: {\n offer: \"WindowsServer\",\n publisher: \"MicrosoftWindowsServer\",\n sku: \"2016-Datacenter\",\n version: \"latest\",\n },\n osDisk: {\n caching: azure_native.compute.CachingTypes.ReadWrite,\n createOption: azure_native.compute.DiskCreateOptionTypes.FromImage,\n managedDisk: {\n storageAccountType: azure_native.compute.StorageAccountTypes.Standard_LRS,\n },\n name: \"myVMosdisk\",\n },\n },\n vmName: \"myVM\",\n});\n\n```\n\n```python\nimport pulumi\nimport pulumi_azure_native as azure_native\n\nvirtual_machine = azure_native.compute.VirtualMachine(\"virtualMachine\",\n diagnostics_profile={\n \"boot_diagnostics\": {\n \"enabled\": True,\n \"storage_uri\": \"http://{existing-storage-account-name}.blob.core.windows.net\",\n },\n },\n hardware_profile={\n \"vm_size\": azure_native.compute.VirtualMachineSizeTypes.STANDARD_D1_V2,\n },\n location=\"westus\",\n network_profile={\n \"network_interfaces\": [{\n \"id\": \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\",\n \"primary\": True,\n }],\n },\n os_profile={\n \"admin_password\": \"{your-password}\",\n \"admin_username\": \"{your-username}\",\n \"computer_name\": \"myVM\",\n },\n resource_group_name=\"myResourceGroup\",\n storage_profile={\n \"image_reference\": {\n \"offer\": \"WindowsServer\",\n \"publisher\": \"MicrosoftWindowsServer\",\n \"sku\": \"2016-Datacenter\",\n \"version\": \"latest\",\n },\n \"os_disk\": {\n \"caching\": azure_native.compute.CachingTypes.READ_WRITE,\n \"create_option\": azure_native.compute.DiskCreateOptionTypes.FROM_IMAGE,\n \"managed_disk\": {\n \"storage_account_type\": azure_native.compute.StorageAccountTypes.STANDARD_LRS,\n },\n \"name\": \"myVMosdisk\",\n },\n },\n vm_name=\"myVM\")\n\n```\n\n```yaml\nresources:\n virtualMachine:\n type: azure-native:compute:VirtualMachine\n properties:\n diagnosticsProfile:\n bootDiagnostics:\n enabled: true\n storageUri: http://{existing-storage-account-name}.blob.core.windows.net\n hardwareProfile:\n vmSize: Standard_D1_v2\n location: westus\n networkProfile:\n networkInterfaces:\n - id: /subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\n primary: true\n osProfile:\n adminPassword: '{your-password}'\n adminUsername: '{your-username}'\n computerName: myVM\n resourceGroupName: myResourceGroup\n storageProfile:\n imageReference:\n offer: WindowsServer\n publisher: MicrosoftWindowsServer\n sku: 2016-Datacenter\n version: latest\n osDisk:\n caching: ReadWrite\n createOption: FromImage\n managedDisk:\n storageAccountType: Standard_LRS\n name: myVMosdisk\n vmName: myVM\n\n```\n\n{{% /example %}}\n{{% example %}}\n### Create a vm with empty data disks.\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing AzureNative = Pulumi.AzureNative;\n\nreturn await Deployment.RunAsync(() => \n{\n var virtualMachine = new AzureNative.Compute.VirtualMachine(\"virtualMachine\", new()\n {\n HardwareProfile = new AzureNative.Compute.Inputs.HardwareProfileArgs\n {\n VmSize = AzureNative.Compute.VirtualMachineSizeTypes.Standard_D2_v2,\n },\n Location = \"westus\",\n NetworkProfile = new AzureNative.Compute.Inputs.NetworkProfileArgs\n {\n NetworkInterfaces = new[]\n {\n new AzureNative.Compute.Inputs.NetworkInterfaceReferenceArgs\n {\n Id = \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\",\n Primary = true,\n },\n },\n },\n OsProfile = new AzureNative.Compute.Inputs.OSProfileArgs\n {\n AdminPassword = \"{your-password}\",\n AdminUsername = \"{your-username}\",\n ComputerName = \"myVM\",\n },\n ResourceGroupName = \"myResourceGroup\",\n StorageProfile = new AzureNative.Compute.Inputs.StorageProfileArgs\n {\n DataDisks = new[]\n {\n new AzureNative.Compute.Inputs.DataDiskArgs\n {\n CreateOption = AzureNative.Compute.DiskCreateOptionTypes.Empty,\n DiskSizeGB = 1023,\n Lun = 0,\n },\n new AzureNative.Compute.Inputs.DataDiskArgs\n {\n CreateOption = AzureNative.Compute.DiskCreateOptionTypes.Empty,\n DiskSizeGB = 1023,\n Lun = 1,\n },\n },\n ImageReference = new AzureNative.Compute.Inputs.ImageReferenceArgs\n {\n Offer = \"WindowsServer\",\n Publisher = \"MicrosoftWindowsServer\",\n Sku = \"2016-Datacenter\",\n Version = \"latest\",\n },\n OsDisk = new AzureNative.Compute.Inputs.OSDiskArgs\n {\n Caching = AzureNative.Compute.CachingTypes.ReadWrite,\n CreateOption = AzureNative.Compute.DiskCreateOptionTypes.FromImage,\n ManagedDisk = new AzureNative.Compute.Inputs.ManagedDiskParametersArgs\n {\n StorageAccountType = AzureNative.Compute.StorageAccountTypes.Standard_LRS,\n },\n Name = \"myVMosdisk\",\n },\n },\n VmName = \"myVM\",\n });\n\n});\n\n\n```\n\n```go\npackage main\n\nimport (\n\tcompute \"github.com/pulumi/pulumi-azure-native-sdk/compute/v2\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := compute.NewVirtualMachine(ctx, \"virtualMachine\", &compute.VirtualMachineArgs{\n\t\t\tHardwareProfile: &compute.HardwareProfileArgs{\n\t\t\t\tVmSize: pulumi.String(compute.VirtualMachineSizeTypes_Standard_D2_v2),\n\t\t\t},\n\t\t\tLocation: pulumi.String(\"westus\"),\n\t\t\tNetworkProfile: &compute.NetworkProfileArgs{\n\t\t\t\tNetworkInterfaces: compute.NetworkInterfaceReferenceArray{\n\t\t\t\t\t&compute.NetworkInterfaceReferenceArgs{\n\t\t\t\t\t\tId: pulumi.String(\"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\"),\n\t\t\t\t\t\tPrimary: pulumi.Bool(true),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tOsProfile: &compute.OSProfileArgs{\n\t\t\t\tAdminPassword: pulumi.String(\"{your-password}\"),\n\t\t\t\tAdminUsername: pulumi.String(\"{your-username}\"),\n\t\t\t\tComputerName: pulumi.String(\"myVM\"),\n\t\t\t},\n\t\t\tResourceGroupName: pulumi.String(\"myResourceGroup\"),\n\t\t\tStorageProfile: &compute.StorageProfileArgs{\n\t\t\t\tDataDisks: compute.DataDiskArray{\n\t\t\t\t\t&compute.DataDiskArgs{\n\t\t\t\t\t\tCreateOption: pulumi.String(compute.DiskCreateOptionTypesEmpty),\n\t\t\t\t\t\tDiskSizeGB: pulumi.Int(1023),\n\t\t\t\t\t\tLun: pulumi.Int(0),\n\t\t\t\t\t},\n\t\t\t\t\t&compute.DataDiskArgs{\n\t\t\t\t\t\tCreateOption: pulumi.String(compute.DiskCreateOptionTypesEmpty),\n\t\t\t\t\t\tDiskSizeGB: pulumi.Int(1023),\n\t\t\t\t\t\tLun: pulumi.Int(1),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tImageReference: &compute.ImageReferenceArgs{\n\t\t\t\t\tOffer: pulumi.String(\"WindowsServer\"),\n\t\t\t\t\tPublisher: pulumi.String(\"MicrosoftWindowsServer\"),\n\t\t\t\t\tSku: pulumi.String(\"2016-Datacenter\"),\n\t\t\t\t\tVersion: pulumi.String(\"latest\"),\n\t\t\t\t},\n\t\t\t\tOsDisk: &compute.OSDiskArgs{\n\t\t\t\t\tCaching: compute.CachingTypesReadWrite,\n\t\t\t\t\tCreateOption: pulumi.String(compute.DiskCreateOptionTypesFromImage),\n\t\t\t\t\tManagedDisk: &compute.ManagedDiskParametersArgs{\n\t\t\t\t\t\tStorageAccountType: pulumi.String(compute.StorageAccountTypes_Standard_LRS),\n\t\t\t\t\t},\n\t\t\t\t\tName: pulumi.String(\"myVMosdisk\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tVmName: pulumi.String(\"myVM\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n\n```\n\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azurenative.compute.VirtualMachine;\nimport com.pulumi.azurenative.compute.VirtualMachineArgs;\nimport com.pulumi.azurenative.compute.inputs.HardwareProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.NetworkProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.OSProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.StorageProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.ImageReferenceArgs;\nimport com.pulumi.azurenative.compute.inputs.OSDiskArgs;\nimport com.pulumi.azurenative.compute.inputs.ManagedDiskParametersArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var virtualMachine = new VirtualMachine(\"virtualMachine\", VirtualMachineArgs.builder()\n .hardwareProfile(HardwareProfileArgs.builder()\n .vmSize(\"Standard_D2_v2\")\n .build())\n .location(\"westus\")\n .networkProfile(NetworkProfileArgs.builder()\n .networkInterfaces(NetworkInterfaceReferenceArgs.builder()\n .id(\"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\")\n .primary(true)\n .build())\n .build())\n .osProfile(OSProfileArgs.builder()\n .adminPassword(\"{your-password}\")\n .adminUsername(\"{your-username}\")\n .computerName(\"myVM\")\n .build())\n .resourceGroupName(\"myResourceGroup\")\n .storageProfile(StorageProfileArgs.builder()\n .dataDisks( \n DataDiskArgs.builder()\n .createOption(\"Empty\")\n .diskSizeGB(1023)\n .lun(0)\n .build(),\n DataDiskArgs.builder()\n .createOption(\"Empty\")\n .diskSizeGB(1023)\n .lun(1)\n .build())\n .imageReference(ImageReferenceArgs.builder()\n .offer(\"WindowsServer\")\n .publisher(\"MicrosoftWindowsServer\")\n .sku(\"2016-Datacenter\")\n .version(\"latest\")\n .build())\n .osDisk(OSDiskArgs.builder()\n .caching(\"ReadWrite\")\n .createOption(\"FromImage\")\n .managedDisk(ManagedDiskParametersArgs.builder()\n .storageAccountType(\"Standard_LRS\")\n .build())\n .name(\"myVMosdisk\")\n .build())\n .build())\n .vmName(\"myVM\")\n .build());\n\n }\n}\n\n```\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azure_native from \"@pulumi/azure-native\";\n\nconst virtualMachine = new azure_native.compute.VirtualMachine(\"virtualMachine\", {\n hardwareProfile: {\n vmSize: azure_native.compute.VirtualMachineSizeTypes.Standard_D2_v2,\n },\n location: \"westus\",\n networkProfile: {\n networkInterfaces: [{\n id: \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\",\n primary: true,\n }],\n },\n osProfile: {\n adminPassword: \"{your-password}\",\n adminUsername: \"{your-username}\",\n computerName: \"myVM\",\n },\n resourceGroupName: \"myResourceGroup\",\n storageProfile: {\n dataDisks: [\n {\n createOption: azure_native.compute.DiskCreateOptionTypes.Empty,\n diskSizeGB: 1023,\n lun: 0,\n },\n {\n createOption: azure_native.compute.DiskCreateOptionTypes.Empty,\n diskSizeGB: 1023,\n lun: 1,\n },\n ],\n imageReference: {\n offer: \"WindowsServer\",\n publisher: \"MicrosoftWindowsServer\",\n sku: \"2016-Datacenter\",\n version: \"latest\",\n },\n osDisk: {\n caching: azure_native.compute.CachingTypes.ReadWrite,\n createOption: azure_native.compute.DiskCreateOptionTypes.FromImage,\n managedDisk: {\n storageAccountType: azure_native.compute.StorageAccountTypes.Standard_LRS,\n },\n name: \"myVMosdisk\",\n },\n },\n vmName: \"myVM\",\n});\n\n```\n\n```python\nimport pulumi\nimport pulumi_azure_native as azure_native\n\nvirtual_machine = azure_native.compute.VirtualMachine(\"virtualMachine\",\n hardware_profile={\n \"vm_size\": azure_native.compute.VirtualMachineSizeTypes.STANDARD_D2_V2,\n },\n location=\"westus\",\n network_profile={\n \"network_interfaces\": [{\n \"id\": \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\",\n \"primary\": True,\n }],\n },\n os_profile={\n \"admin_password\": \"{your-password}\",\n \"admin_username\": \"{your-username}\",\n \"computer_name\": \"myVM\",\n },\n resource_group_name=\"myResourceGroup\",\n storage_profile={\n \"data_disks\": [\n {\n \"create_option\": azure_native.compute.DiskCreateOptionTypes.EMPTY,\n \"disk_size_gb\": 1023,\n \"lun\": 0,\n },\n {\n \"create_option\": azure_native.compute.DiskCreateOptionTypes.EMPTY,\n \"disk_size_gb\": 1023,\n \"lun\": 1,\n },\n ],\n \"image_reference\": {\n \"offer\": \"WindowsServer\",\n \"publisher\": \"MicrosoftWindowsServer\",\n \"sku\": \"2016-Datacenter\",\n \"version\": \"latest\",\n },\n \"os_disk\": {\n \"caching\": azure_native.compute.CachingTypes.READ_WRITE,\n \"create_option\": azure_native.compute.DiskCreateOptionTypes.FROM_IMAGE,\n \"managed_disk\": {\n \"storage_account_type\": azure_native.compute.StorageAccountTypes.STANDARD_LRS,\n },\n \"name\": \"myVMosdisk\",\n },\n },\n vm_name=\"myVM\")\n\n```\n\n```yaml\nresources:\n virtualMachine:\n type: azure-native:compute:VirtualMachine\n properties:\n hardwareProfile:\n vmSize: Standard_D2_v2\n location: westus\n networkProfile:\n networkInterfaces:\n - id: /subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\n primary: true\n osProfile:\n adminPassword: '{your-password}'\n adminUsername: '{your-username}'\n computerName: myVM\n resourceGroupName: myResourceGroup\n storageProfile:\n dataDisks:\n - createOption: Empty\n diskSizeGB: 1023\n lun: 0\n - createOption: Empty\n diskSizeGB: 1023\n lun: 1\n imageReference:\n offer: WindowsServer\n publisher: MicrosoftWindowsServer\n sku: 2016-Datacenter\n version: latest\n osDisk:\n caching: ReadWrite\n createOption: FromImage\n managedDisk:\n storageAccountType: Standard_LRS\n name: myVMosdisk\n vmName: myVM\n\n```\n\n{{% /example %}}\n{{% example %}}\n### Create a vm with ephemeral os disk provisioning in Cache disk using placement property.\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing AzureNative = Pulumi.AzureNative;\n\nreturn await Deployment.RunAsync(() => \n{\n var virtualMachine = new AzureNative.Compute.VirtualMachine(\"virtualMachine\", new()\n {\n HardwareProfile = new AzureNative.Compute.Inputs.HardwareProfileArgs\n {\n VmSize = AzureNative.Compute.VirtualMachineSizeTypes.Standard_DS1_v2,\n },\n Location = \"westus\",\n NetworkProfile = new AzureNative.Compute.Inputs.NetworkProfileArgs\n {\n NetworkInterfaces = new[]\n {\n new AzureNative.Compute.Inputs.NetworkInterfaceReferenceArgs\n {\n Id = \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\",\n Primary = true,\n },\n },\n },\n OsProfile = new AzureNative.Compute.Inputs.OSProfileArgs\n {\n AdminPassword = \"{your-password}\",\n AdminUsername = \"{your-username}\",\n ComputerName = \"myVM\",\n },\n Plan = new AzureNative.Compute.Inputs.PlanArgs\n {\n Name = \"windows2016\",\n Product = \"windows-data-science-vm\",\n Publisher = \"microsoft-ads\",\n },\n ResourceGroupName = \"myResourceGroup\",\n StorageProfile = new AzureNative.Compute.Inputs.StorageProfileArgs\n {\n ImageReference = new AzureNative.Compute.Inputs.ImageReferenceArgs\n {\n Offer = \"windows-data-science-vm\",\n Publisher = \"microsoft-ads\",\n Sku = \"windows2016\",\n Version = \"latest\",\n },\n OsDisk = new AzureNative.Compute.Inputs.OSDiskArgs\n {\n Caching = AzureNative.Compute.CachingTypes.ReadOnly,\n CreateOption = AzureNative.Compute.DiskCreateOptionTypes.FromImage,\n DiffDiskSettings = new AzureNative.Compute.Inputs.DiffDiskSettingsArgs\n {\n Option = AzureNative.Compute.DiffDiskOptions.Local,\n Placement = AzureNative.Compute.DiffDiskPlacement.CacheDisk,\n },\n ManagedDisk = new AzureNative.Compute.Inputs.ManagedDiskParametersArgs\n {\n StorageAccountType = AzureNative.Compute.StorageAccountTypes.Standard_LRS,\n },\n Name = \"myVMosdisk\",\n },\n },\n VmName = \"myVM\",\n });\n\n});\n\n\n```\n\n```go\npackage main\n\nimport (\n\tcompute \"github.com/pulumi/pulumi-azure-native-sdk/compute/v2\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := compute.NewVirtualMachine(ctx, \"virtualMachine\", &compute.VirtualMachineArgs{\n\t\t\tHardwareProfile: &compute.HardwareProfileArgs{\n\t\t\t\tVmSize: pulumi.String(compute.VirtualMachineSizeTypes_Standard_DS1_v2),\n\t\t\t},\n\t\t\tLocation: pulumi.String(\"westus\"),\n\t\t\tNetworkProfile: &compute.NetworkProfileArgs{\n\t\t\t\tNetworkInterfaces: compute.NetworkInterfaceReferenceArray{\n\t\t\t\t\t&compute.NetworkInterfaceReferenceArgs{\n\t\t\t\t\t\tId: pulumi.String(\"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\"),\n\t\t\t\t\t\tPrimary: pulumi.Bool(true),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tOsProfile: &compute.OSProfileArgs{\n\t\t\t\tAdminPassword: pulumi.String(\"{your-password}\"),\n\t\t\t\tAdminUsername: pulumi.String(\"{your-username}\"),\n\t\t\t\tComputerName: pulumi.String(\"myVM\"),\n\t\t\t},\n\t\t\tPlan: &compute.PlanArgs{\n\t\t\t\tName: pulumi.String(\"windows2016\"),\n\t\t\t\tProduct: pulumi.String(\"windows-data-science-vm\"),\n\t\t\t\tPublisher: pulumi.String(\"microsoft-ads\"),\n\t\t\t},\n\t\t\tResourceGroupName: pulumi.String(\"myResourceGroup\"),\n\t\t\tStorageProfile: &compute.StorageProfileArgs{\n\t\t\t\tImageReference: &compute.ImageReferenceArgs{\n\t\t\t\t\tOffer: pulumi.String(\"windows-data-science-vm\"),\n\t\t\t\t\tPublisher: pulumi.String(\"microsoft-ads\"),\n\t\t\t\t\tSku: pulumi.String(\"windows2016\"),\n\t\t\t\t\tVersion: pulumi.String(\"latest\"),\n\t\t\t\t},\n\t\t\t\tOsDisk: &compute.OSDiskArgs{\n\t\t\t\t\tCaching: compute.CachingTypesReadOnly,\n\t\t\t\t\tCreateOption: pulumi.String(compute.DiskCreateOptionTypesFromImage),\n\t\t\t\t\tDiffDiskSettings: &compute.DiffDiskSettingsArgs{\n\t\t\t\t\t\tOption: pulumi.String(compute.DiffDiskOptionsLocal),\n\t\t\t\t\t\tPlacement: pulumi.String(compute.DiffDiskPlacementCacheDisk),\n\t\t\t\t\t},\n\t\t\t\t\tManagedDisk: &compute.ManagedDiskParametersArgs{\n\t\t\t\t\t\tStorageAccountType: pulumi.String(compute.StorageAccountTypes_Standard_LRS),\n\t\t\t\t\t},\n\t\t\t\t\tName: pulumi.String(\"myVMosdisk\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tVmName: pulumi.String(\"myVM\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n\n```\n\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azurenative.compute.VirtualMachine;\nimport com.pulumi.azurenative.compute.VirtualMachineArgs;\nimport com.pulumi.azurenative.compute.inputs.HardwareProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.NetworkProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.OSProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.PlanArgs;\nimport com.pulumi.azurenative.compute.inputs.StorageProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.ImageReferenceArgs;\nimport com.pulumi.azurenative.compute.inputs.OSDiskArgs;\nimport com.pulumi.azurenative.compute.inputs.DiffDiskSettingsArgs;\nimport com.pulumi.azurenative.compute.inputs.ManagedDiskParametersArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var virtualMachine = new VirtualMachine(\"virtualMachine\", VirtualMachineArgs.builder()\n .hardwareProfile(HardwareProfileArgs.builder()\n .vmSize(\"Standard_DS1_v2\")\n .build())\n .location(\"westus\")\n .networkProfile(NetworkProfileArgs.builder()\n .networkInterfaces(NetworkInterfaceReferenceArgs.builder()\n .id(\"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\")\n .primary(true)\n .build())\n .build())\n .osProfile(OSProfileArgs.builder()\n .adminPassword(\"{your-password}\")\n .adminUsername(\"{your-username}\")\n .computerName(\"myVM\")\n .build())\n .plan(PlanArgs.builder()\n .name(\"windows2016\")\n .product(\"windows-data-science-vm\")\n .publisher(\"microsoft-ads\")\n .build())\n .resourceGroupName(\"myResourceGroup\")\n .storageProfile(StorageProfileArgs.builder()\n .imageReference(ImageReferenceArgs.builder()\n .offer(\"windows-data-science-vm\")\n .publisher(\"microsoft-ads\")\n .sku(\"windows2016\")\n .version(\"latest\")\n .build())\n .osDisk(OSDiskArgs.builder()\n .caching(\"ReadOnly\")\n .createOption(\"FromImage\")\n .diffDiskSettings(DiffDiskSettingsArgs.builder()\n .option(\"Local\")\n .placement(\"CacheDisk\")\n .build())\n .managedDisk(ManagedDiskParametersArgs.builder()\n .storageAccountType(\"Standard_LRS\")\n .build())\n .name(\"myVMosdisk\")\n .build())\n .build())\n .vmName(\"myVM\")\n .build());\n\n }\n}\n\n```\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azure_native from \"@pulumi/azure-native\";\n\nconst virtualMachine = new azure_native.compute.VirtualMachine(\"virtualMachine\", {\n hardwareProfile: {\n vmSize: azure_native.compute.VirtualMachineSizeTypes.Standard_DS1_v2,\n },\n location: \"westus\",\n networkProfile: {\n networkInterfaces: [{\n id: \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\",\n primary: true,\n }],\n },\n osProfile: {\n adminPassword: \"{your-password}\",\n adminUsername: \"{your-username}\",\n computerName: \"myVM\",\n },\n plan: {\n name: \"windows2016\",\n product: \"windows-data-science-vm\",\n publisher: \"microsoft-ads\",\n },\n resourceGroupName: \"myResourceGroup\",\n storageProfile: {\n imageReference: {\n offer: \"windows-data-science-vm\",\n publisher: \"microsoft-ads\",\n sku: \"windows2016\",\n version: \"latest\",\n },\n osDisk: {\n caching: azure_native.compute.CachingTypes.ReadOnly,\n createOption: azure_native.compute.DiskCreateOptionTypes.FromImage,\n diffDiskSettings: {\n option: azure_native.compute.DiffDiskOptions.Local,\n placement: azure_native.compute.DiffDiskPlacement.CacheDisk,\n },\n managedDisk: {\n storageAccountType: azure_native.compute.StorageAccountTypes.Standard_LRS,\n },\n name: \"myVMosdisk\",\n },\n },\n vmName: \"myVM\",\n});\n\n```\n\n```python\nimport pulumi\nimport pulumi_azure_native as azure_native\n\nvirtual_machine = azure_native.compute.VirtualMachine(\"virtualMachine\",\n hardware_profile={\n \"vm_size\": azure_native.compute.VirtualMachineSizeTypes.STANDARD_DS1_V2,\n },\n location=\"westus\",\n network_profile={\n \"network_interfaces\": [{\n \"id\": \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\",\n \"primary\": True,\n }],\n },\n os_profile={\n \"admin_password\": \"{your-password}\",\n \"admin_username\": \"{your-username}\",\n \"computer_name\": \"myVM\",\n },\n plan={\n \"name\": \"windows2016\",\n \"product\": \"windows-data-science-vm\",\n \"publisher\": \"microsoft-ads\",\n },\n resource_group_name=\"myResourceGroup\",\n storage_profile={\n \"image_reference\": {\n \"offer\": \"windows-data-science-vm\",\n \"publisher\": \"microsoft-ads\",\n \"sku\": \"windows2016\",\n \"version\": \"latest\",\n },\n \"os_disk\": {\n \"caching\": azure_native.compute.CachingTypes.READ_ONLY,\n \"create_option\": azure_native.compute.DiskCreateOptionTypes.FROM_IMAGE,\n \"diff_disk_settings\": {\n \"option\": azure_native.compute.DiffDiskOptions.LOCAL,\n \"placement\": azure_native.compute.DiffDiskPlacement.CACHE_DISK,\n },\n \"managed_disk\": {\n \"storage_account_type\": azure_native.compute.StorageAccountTypes.STANDARD_LRS,\n },\n \"name\": \"myVMosdisk\",\n },\n },\n vm_name=\"myVM\")\n\n```\n\n```yaml\nresources:\n virtualMachine:\n type: azure-native:compute:VirtualMachine\n properties:\n hardwareProfile:\n vmSize: Standard_DS1_v2\n location: westus\n networkProfile:\n networkInterfaces:\n - id: /subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\n primary: true\n osProfile:\n adminPassword: '{your-password}'\n adminUsername: '{your-username}'\n computerName: myVM\n plan:\n name: windows2016\n product: windows-data-science-vm\n publisher: microsoft-ads\n resourceGroupName: myResourceGroup\n storageProfile:\n imageReference:\n offer: windows-data-science-vm\n publisher: microsoft-ads\n sku: windows2016\n version: latest\n osDisk:\n caching: ReadOnly\n createOption: FromImage\n diffDiskSettings:\n option: Local\n placement: CacheDisk\n managedDisk:\n storageAccountType: Standard_LRS\n name: myVMosdisk\n vmName: myVM\n\n```\n\n{{% /example %}}\n{{% example %}}\n### Create a vm with ephemeral os disk provisioning in Resource disk using placement property.\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing AzureNative = Pulumi.AzureNative;\n\nreturn await Deployment.RunAsync(() => \n{\n var virtualMachine = new AzureNative.Compute.VirtualMachine(\"virtualMachine\", new()\n {\n HardwareProfile = new AzureNative.Compute.Inputs.HardwareProfileArgs\n {\n VmSize = AzureNative.Compute.VirtualMachineSizeTypes.Standard_DS1_v2,\n },\n Location = \"westus\",\n NetworkProfile = new AzureNative.Compute.Inputs.NetworkProfileArgs\n {\n NetworkInterfaces = new[]\n {\n new AzureNative.Compute.Inputs.NetworkInterfaceReferenceArgs\n {\n Id = \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\",\n Primary = true,\n },\n },\n },\n OsProfile = new AzureNative.Compute.Inputs.OSProfileArgs\n {\n AdminPassword = \"{your-password}\",\n AdminUsername = \"{your-username}\",\n ComputerName = \"myVM\",\n },\n Plan = new AzureNative.Compute.Inputs.PlanArgs\n {\n Name = \"windows2016\",\n Product = \"windows-data-science-vm\",\n Publisher = \"microsoft-ads\",\n },\n ResourceGroupName = \"myResourceGroup\",\n StorageProfile = new AzureNative.Compute.Inputs.StorageProfileArgs\n {\n ImageReference = new AzureNative.Compute.Inputs.ImageReferenceArgs\n {\n Offer = \"windows-data-science-vm\",\n Publisher = \"microsoft-ads\",\n Sku = \"windows2016\",\n Version = \"latest\",\n },\n OsDisk = new AzureNative.Compute.Inputs.OSDiskArgs\n {\n Caching = AzureNative.Compute.CachingTypes.ReadOnly,\n CreateOption = AzureNative.Compute.DiskCreateOptionTypes.FromImage,\n DiffDiskSettings = new AzureNative.Compute.Inputs.DiffDiskSettingsArgs\n {\n Option = AzureNative.Compute.DiffDiskOptions.Local,\n Placement = AzureNative.Compute.DiffDiskPlacement.ResourceDisk,\n },\n ManagedDisk = new AzureNative.Compute.Inputs.ManagedDiskParametersArgs\n {\n StorageAccountType = AzureNative.Compute.StorageAccountTypes.Standard_LRS,\n },\n Name = \"myVMosdisk\",\n },\n },\n VmName = \"myVM\",\n });\n\n});\n\n\n```\n\n```go\npackage main\n\nimport (\n\tcompute \"github.com/pulumi/pulumi-azure-native-sdk/compute/v2\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := compute.NewVirtualMachine(ctx, \"virtualMachine\", &compute.VirtualMachineArgs{\n\t\t\tHardwareProfile: &compute.HardwareProfileArgs{\n\t\t\t\tVmSize: pulumi.String(compute.VirtualMachineSizeTypes_Standard_DS1_v2),\n\t\t\t},\n\t\t\tLocation: pulumi.String(\"westus\"),\n\t\t\tNetworkProfile: &compute.NetworkProfileArgs{\n\t\t\t\tNetworkInterfaces: compute.NetworkInterfaceReferenceArray{\n\t\t\t\t\t&compute.NetworkInterfaceReferenceArgs{\n\t\t\t\t\t\tId: pulumi.String(\"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\"),\n\t\t\t\t\t\tPrimary: pulumi.Bool(true),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tOsProfile: &compute.OSProfileArgs{\n\t\t\t\tAdminPassword: pulumi.String(\"{your-password}\"),\n\t\t\t\tAdminUsername: pulumi.String(\"{your-username}\"),\n\t\t\t\tComputerName: pulumi.String(\"myVM\"),\n\t\t\t},\n\t\t\tPlan: &compute.PlanArgs{\n\t\t\t\tName: pulumi.String(\"windows2016\"),\n\t\t\t\tProduct: pulumi.String(\"windows-data-science-vm\"),\n\t\t\t\tPublisher: pulumi.String(\"microsoft-ads\"),\n\t\t\t},\n\t\t\tResourceGroupName: pulumi.String(\"myResourceGroup\"),\n\t\t\tStorageProfile: &compute.StorageProfileArgs{\n\t\t\t\tImageReference: &compute.ImageReferenceArgs{\n\t\t\t\t\tOffer: pulumi.String(\"windows-data-science-vm\"),\n\t\t\t\t\tPublisher: pulumi.String(\"microsoft-ads\"),\n\t\t\t\t\tSku: pulumi.String(\"windows2016\"),\n\t\t\t\t\tVersion: pulumi.String(\"latest\"),\n\t\t\t\t},\n\t\t\t\tOsDisk: &compute.OSDiskArgs{\n\t\t\t\t\tCaching: compute.CachingTypesReadOnly,\n\t\t\t\t\tCreateOption: pulumi.String(compute.DiskCreateOptionTypesFromImage),\n\t\t\t\t\tDiffDiskSettings: &compute.DiffDiskSettingsArgs{\n\t\t\t\t\t\tOption: pulumi.String(compute.DiffDiskOptionsLocal),\n\t\t\t\t\t\tPlacement: pulumi.String(compute.DiffDiskPlacementResourceDisk),\n\t\t\t\t\t},\n\t\t\t\t\tManagedDisk: &compute.ManagedDiskParametersArgs{\n\t\t\t\t\t\tStorageAccountType: pulumi.String(compute.StorageAccountTypes_Standard_LRS),\n\t\t\t\t\t},\n\t\t\t\t\tName: pulumi.String(\"myVMosdisk\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tVmName: pulumi.String(\"myVM\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n\n```\n\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.azurenative.compute.VirtualMachine;\nimport com.pulumi.azurenative.compute.VirtualMachineArgs;\nimport com.pulumi.azurenative.compute.inputs.HardwareProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.NetworkProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.OSProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.PlanArgs;\nimport com.pulumi.azurenative.compute.inputs.StorageProfileArgs;\nimport com.pulumi.azurenative.compute.inputs.ImageReferenceArgs;\nimport com.pulumi.azurenative.compute.inputs.OSDiskArgs;\nimport com.pulumi.azurenative.compute.inputs.DiffDiskSettingsArgs;\nimport com.pulumi.azurenative.compute.inputs.ManagedDiskParametersArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var virtualMachine = new VirtualMachine(\"virtualMachine\", VirtualMachineArgs.builder()\n .hardwareProfile(HardwareProfileArgs.builder()\n .vmSize(\"Standard_DS1_v2\")\n .build())\n .location(\"westus\")\n .networkProfile(NetworkProfileArgs.builder()\n .networkInterfaces(NetworkInterfaceReferenceArgs.builder()\n .id(\"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\")\n .primary(true)\n .build())\n .build())\n .osProfile(OSProfileArgs.builder()\n .adminPassword(\"{your-password}\")\n .adminUsername(\"{your-username}\")\n .computerName(\"myVM\")\n .build())\n .plan(PlanArgs.builder()\n .name(\"windows2016\")\n .product(\"windows-data-science-vm\")\n .publisher(\"microsoft-ads\")\n .build())\n .resourceGroupName(\"myResourceGroup\")\n .storageProfile(StorageProfileArgs.builder()\n .imageReference(ImageReferenceArgs.builder()\n .offer(\"windows-data-science-vm\")\n .publisher(\"microsoft-ads\")\n .sku(\"windows2016\")\n .version(\"latest\")\n .build())\n .osDisk(OSDiskArgs.builder()\n .caching(\"ReadOnly\")\n .createOption(\"FromImage\")\n .diffDiskSettings(DiffDiskSettingsArgs.builder()\n .option(\"Local\")\n .placement(\"ResourceDisk\")\n .build())\n .managedDisk(ManagedDiskParametersArgs.builder()\n .storageAccountType(\"Standard_LRS\")\n .build())\n .name(\"myVMosdisk\")\n .build())\n .build())\n .vmName(\"myVM\")\n .build());\n\n }\n}\n\n```\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as azure_native from \"@pulumi/azure-native\";\n\nconst virtualMachine = new azure_native.compute.VirtualMachine(\"virtualMachine\", {\n hardwareProfile: {\n vmSize: azure_native.compute.VirtualMachineSizeTypes.Standard_DS1_v2,\n },\n location: \"westus\",\n networkProfile: {\n networkInterfaces: [{\n id: \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\",\n primary: true,\n }],\n },\n osProfile: {\n adminPassword: \"{your-password}\",\n adminUsername: \"{your-username}\",\n computerName: \"myVM\",\n },\n plan: {\n name: \"windows2016\",\n product: \"windows-data-science-vm\",\n publisher: \"microsoft-ads\",\n },\n resourceGroupName: \"myResourceGroup\",\n storageProfile: {\n imageReference: {\n offer: \"windows-data-science-vm\",\n publisher: \"microsoft-ads\",\n sku: \"windows2016\",\n version: \"latest\",\n },\n osDisk: {\n caching: azure_native.compute.CachingTypes.ReadOnly,\n createOption: azure_native.compute.DiskCreateOptionTypes.FromImage,\n diffDiskSettings: {\n option: azure_native.compute.DiffDiskOptions.Local,\n placement: azure_native.compute.DiffDiskPlacement.ResourceDisk,\n },\n managedDisk: {\n storageAccountType: azure_native.compute.StorageAccountTypes.Standard_LRS,\n },\n name: \"myVMosdisk\",\n },\n },\n vmName: \"myVM\",\n});\n\n```\n\n```python\nimport pulumi\nimport pulumi_azure_native as azure_native\n\nvirtual_machine = azure_native.compute.VirtualMachine(\"virtualMachine\",\n hardware_profile={\n \"vm_size\": azure_native.compute.VirtualMachineSizeTypes.STANDARD_DS1_V2,\n },\n location=\"westus\",\n network_profile={\n \"network_interfaces\": [{\n \"id\": \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\",\n \"primary\": True,\n }],\n },\n os_profile={\n \"admin_password\": \"{your-password}\",\n \"admin_username\": \"{your-username}\",\n \"computer_name\": \"myVM\",\n },\n plan={\n \"name\": \"windows2016\",\n \"product\": \"windows-data-science-vm\",\n \"publisher\": \"microsoft-ads\",\n },\n resource_group_name=\"myResourceGroup\",\n storage_profile={\n \"image_reference\": {\n \"offer\": \"windows-data-science-vm\",\n \"publisher\": \"microsoft-ads\",\n \"sku\": \"windows2016\",\n \"version\": \"latest\",\n },\n \"os_disk\": {\n \"caching\": azure_native.compute.CachingTypes.READ_ONLY,\n \"create_option\": azure_native.compute.DiskCreateOptionTypes.FROM_IMAGE,\n \"diff_disk_settings\": {\n \"option\": azure_native.compute.DiffDiskOptions.LOCAL,\n \"placement\": azure_native.compute.DiffDiskPlacement.RESOURCE_DISK,\n },\n \"managed_disk\": {\n \"storage_account_type\": azure_native.compute.StorageAccountTypes.STANDARD_LRS,\n },\n \"name\": \"myVMosdisk\",\n },\n },\n vm_name=\"myVM\")\n\n```\n\n```yaml\nresources:\n virtualMachine:\n type: azure-native:compute:VirtualMachine\n properties:\n hardwareProfile:\n vmSize: Standard_DS1_v2\n location: westus\n networkProfile:\n networkInterfaces:\n - id: /subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\n primary: true\n osProfile:\n adminPassword: '{your-password}'\n adminUsername: '{your-username}'\n computerName: myVM\n plan:\n name: windows2016\n product: windows-data-science-vm\n publisher: microsoft-ads\n resourceGroupName: myResourceGroup\n storageProfile:\n imageReference:\n offer: windows-data-science-vm\n publisher: microsoft-ads\n sku: windows2016\n version: latest\n osDisk:\n caching: ReadOnly\n createOption: FromImage\n diffDiskSettings:\n option: Local\n placement: ResourceDisk\n managedDisk:\n storageAccountType: Standard_LRS\n name: myVMosdisk\n vmName: myVM\n\n```\n\n{{% /example %}}\n{{% example %}}\n### Create a vm with ephemeral os disk.\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing AzureNative = Pulumi.AzureNative;\n\nreturn await Deployment.RunAsync(() => \n{\n var virtualMachine = new AzureNative.Compute.VirtualMachine(\"virtualMachine\", new()\n {\n HardwareProfile = new AzureNative.Compute.Inputs.HardwareProfileArgs\n {\n VmSize = AzureNative.Compute.VirtualMachineSizeTypes.Standard_DS1_v2,\n },\n Location = \"westus\",\n NetworkProfile = new AzureNative.Compute.Inputs.NetworkProfileArgs\n {\n NetworkInterfaces = new[]\n {\n new AzureNative.Compute.Inputs.NetworkInterfaceReferenceArgs\n {\n Id = \"/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}\",\n Primary = true,\n },\n },\n },\n OsProfile = new AzureNative.Compute.Inputs.OSProfileArgs\n {\n AdminPassword = \"{your-password}\",\n AdminUsername = \"{your-username}\",\n ComputerName = \"myVM\",\n },\n Plan = new AzureNative.Compute.Inputs.PlanArgs\n {\n Name = \"windows2016\",\n Product = \"windows-data-science-vm\",\n Publisher = \"microsoft-ads\",\n },\n ResourceGroupName = \"myResourceGroup\",\n StorageProfile = new AzureNative.Compute.Inputs.StorageProfileArgs\n {\n ImageReference = |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment