conversations
listlengths 3
3
|
---|
[
{
"from": "system",
"value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation."
},
{
"from": "human",
"value": "Can you explain Update the deployment template to reflect the newly scaled-up primary node type?"
},
{
"from": "gpt",
"value": "The required changes for this step have already been made for you in the [_Step3-CleanupOriginalPrimaryNodeType.json_](https://learn.microsoft.com/en-us/azure/service-fabric/<https:/github.com/microsoft/service-fabric-scripts-and-templates/tree/master/templates/nodetype-upgrade/Step3-CleanupOriginalPrimaryNodeType.json>) template file, and the following sections will explain these template changes in detail. If you prefer, you can skip the explanation and continue to [deploy the updated template](https://learn.microsoft.com/en-us/azure/service-fabric/<#deploy-the-finalized-template>) and complete the tutorial.\n[](https://learn.microsoft.com/en-us/azure/service-fabric/<#update-the-cluster-management-endpoint>)\n#### Update the cluster management endpoint\nUpdate the cluster `managementEndpoint` on the deployment template to reference the new IP (by updating _vmNodeType0Name_ with _vmNodeType1Name_).\n```\n \"managementEndpoint\": \"[concat('https://',reference(concat(variables('lbIPName'),'-',variables('vmNodeType1Name'))).dnsSettings.fqdn,':',variables('nt0fabricHttpGatewayPort'))]\",\n\n```\n\n[](https://learn.microsoft.com/en-us/azure/service-fabric/<#remove-the-original-node-type-reference>)\n#### Remove the original node type reference\nRemove the original node type reference from the Service Fabric resource in the deployment template:\n```\n\"name\": \"[variables('vmNodeType0Name')]\",\n\"applicationPorts\": {\n \"endPort\": \"[variables('nt0applicationEndPort')]\",\n \"startPort\": \"[variables('nt0applicationStartPort')]\"\n},\n\"clientConnectionEndpointPort\": \"[variables('nt0fabricTcpGatewayPort')]\",\n\"durabilityLevel\": \"Bronze\",\n\"ephemeralPorts\": {\n \"endPort\": \"[variables('nt0ephemeralEndPort')]\",\n \"startPort\": \"[variables('nt0ephemeralStartPort')]\"\n},\n\"httpGatewayEndpointPort\": \"[variables('nt0fabricHttpGatewayPort')]\",\n\"isPrimary\": true,\n\"reverseProxyEndpointPort\": \"[variables('nt0reverseProxyEndpointPort')]\",\n\"vmInstanceCount\": \"[parameters('nt0InstanceCount')]\"\n\n```\n\n[](https://learn.microsoft.com/en-us/azure/service-fabric/<#configure-health-policies-to-ignore-existing-errors>)\n#### Configure health policies to ignore existing errors\nOnly for Silver and higher durability clusters, update the cluster resource in the template and configure health policies to ignore `fabric:/System` application health by adding _applicationDeltaHealthPolicies_ under cluster resource properties as given below. The below policy will ignore existing errors but not allow new health errors.\n```\n\"upgradeDescription\":\n{\n \"forceRestart\": false,\n \"upgradeReplicaSetCheckTimeout\": \"10675199.02:48:05.4775807\",\n \"healthCheckWaitDuration\": \"00:05:00\",\n \"healthCheckStableDuration\": \"00:05:00\",\n \"healthCheckRetryTimeout\": \"00:45:00\",\n \"upgradeTimeout\": \"12:00:00\",\n \"upgradeDomainTimeout\": \"02:00:00\",\n \"healthPolicy\": {\n \"maxPercentUnhealthyNodes\": 100,\n \"maxPercentUnhealthyApplications\": 100\n },\n \"deltaHealthPolicy\":\n {\n \"maxPercentDeltaUnhealthyNodes\": 0,\n \"maxPercentUpgradeDomainDeltaUnhealthyNodes\": 0,\n \"maxPercentDeltaUnhealthyApplications\": 0,\n \"applicationDeltaHealthPolicies\":\n {\n \"fabric:/System\":\n {\n \"defaultServiceTypeDeltaHealthPolicy\":\n {\n \"maxPercentDeltaUnhealthyServices\": 0\n }\n }\n }\n }\n}\n\n```\n\n[](https://learn.microsoft.com/en-us/azure/service-fabric/<#remove-supporting-resources-for-the-original-node-type>)\n#### Remove supporting resources for the original node type\nRemove all other resources related to the original node type from the ARM template and the parameters file. Delete the following:\n```\n \"vmImagePublisher\": {\n \"value\": \"MicrosoftWindowsServer\"\n },\n \"vmImageOffer\": {\n \"value\": \"WindowsServer\"\n },\n \"vmImageSku\": {\n \"value\": \"2019-Datacenter\"\n },\n \"vmImageVersion\": {\n \"value\": \"latest\"\n },\n\n```\n\n[](https://learn.microsoft.com/en-us/azure/service-fabric/<#deploy-the-finalized-template>)\n#### Deploy the finalized template\nFinally, deploy the modified Azure Resource Manager template.\n```\n# Deploy the updated template file\n$templateFilePath = \"C:\\Step3-CleanupOriginalPrimaryNodeType\"\nNew-AzResourceGroupDeployment `\n -ResourceGroupName $resourceGroupName `\n -TemplateFile $templateFilePath `\n -TemplateParameterFile $parameterFilePath `\n -CertificateThumbprint $thumb `\n -CertificateUrlValue $certUrlValue `\n -SourceVaultValue $sourceVaultValue `\n -Verbose\n\n```\n\nNote\nThis step will take a while, usually up to two hours.\nThe upgrade will change settings to the _InfrastructureService_ ; therefore, a node restart is needed. In this case, _forceRestart_ is ignored. The parameter `upgradeReplicaSetCheckTimeout` specifies the maximum time that Service Fabric waits for a partition to be in a safe state, if not already in a safe state. Once safety checks pass for all partitions on a node, Service Fabric proceeds with the upgrade on that node. The value for the parameter `upgradeTimeout` can be reduced to 6 hours, but for maximal safety 12 hours should be used.\nOnce the deployment has completed, verify in Azure portal that the Service Fabric resource Status is _Ready_. Verify you can reach the new Service Fabric Explorer endpoint, the **Cluster Health State** is _OK_ , and any deployed applications function properly.\nNow, you've vertically scaled a cluster primary node type!\n[](https://learn.microsoft.com/en-us/azure/service-fabric/<#next-steps>)"
}
] |
[
{
"from": "system",
"value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation."
},
{
"from": "human",
"value": "Can you explain Next steps?"
},
{
"from": "gpt",
"value": "* Learn how to [add a node type to a cluster](https://learn.microsoft.com/en-us/azure/service-fabric/<virtual-machine-scale-set-scale-node-type-scale-out>)\n * Learn about [application scalability](https://learn.microsoft.com/en-us/azure/service-fabric/<service-fabric-concepts-scalability>).\n * [Scale an Azure cluster in or out](https://learn.microsoft.com/en-us/azure/service-fabric/<service-fabric-tutorial-scale-cluster>).\n * [Scale an Azure cluster programmatically](https://learn.microsoft.com/en-us/azure/service-fabric/<service-fabric-cluster-programmatic-scaling>) using the fluent Azure compute SDK.\n * [Scale a standalone cluster in or out](https://learn.microsoft.com/en-us/azure/service-fabric/<service-fabric-cluster-windows-server-add-remove-nodes>)."
}
] |
[
{
"from": "system",
"value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation."
},
{
"from": "human",
"value": "Can you explain Feedback?"
},
{
"from": "gpt",
"value": "Was this page helpful?\nYes No\n[ Provide product feedback ](https://learn.microsoft.com/en-us/azure/service-fabric/<https:/feedback.azure.com/d365community/forum/e622b37a-2225-ec11-b6e6-000d3a4f0f84>)|\n[ Get help at Microsoft Q&A ](https://learn.microsoft.com/en-us/azure/service-fabric/<https:/learn.microsoft.com/answers/tags/39/azure-service-fabric/>)"
}
] |
[
{
"from": "system",
"value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation."
},
{
"from": "human",
"value": "Can you explain Additional resources?"
},
{
"from": "gpt",
"value": "[ English (United States)](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/locale?target=https%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fazure%2Fservice-fabric%2Fservice-fabric-scale-up-primary-node-type>)\n[ California Consumer Privacy Act (CCPA) Opt-Out Icon Your Privacy Choices ](https://learn.microsoft.com/en-us/azure/service-fabric/<https:/aka.ms/yourcaliforniaprivacychoices>)\nTheme\n * Light\n * Dark\n * High contrast\n\n * [Previous Versions](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/previous-versions/>)\n * [Blog](https://learn.microsoft.com/en-us/azure/service-fabric/<https:/techcommunity.microsoft.com/t5/microsoft-learn-blog/bg-p/MicrosoftLearnBlog>)\n * [Contribute](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/contribute/>)\n * [Privacy](https://learn.microsoft.com/en-us/azure/service-fabric/<https:/go.microsoft.com/fwlink/?LinkId=521839>)\n * [Terms of Use](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/legal/termsofuse>)\n * [Trademarks](https://learn.microsoft.com/en-us/azure/service-fabric/<https:/www.microsoft.com/legal/intellectualproperty/Trademarks/>)\n * © Microsoft 2025"
}
] |
[
{
"from": "system",
"value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation."
},
{
"from": "human",
"value": "Can you explain In this article?"
},
{
"from": "gpt",
"value": "[ English (United States)](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/locale?target=https%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fazure%2Fservice-fabric%2Fservice-fabric-scale-up-primary-node-type>)\n[ California Consumer Privacy Act (CCPA) Opt-Out Icon Your Privacy Choices ](https://learn.microsoft.com/en-us/azure/service-fabric/<https:/aka.ms/yourcaliforniaprivacychoices>)\nTheme\n * Light\n * Dark\n * High contrast\n\n * [Previous Versions](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/previous-versions/>)\n * [Blog](https://learn.microsoft.com/en-us/azure/service-fabric/<https:/techcommunity.microsoft.com/t5/microsoft-learn-blog/bg-p/MicrosoftLearnBlog>)\n * [Contribute](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/contribute/>)\n * [Privacy](https://learn.microsoft.com/en-us/azure/service-fabric/<https:/go.microsoft.com/fwlink/?LinkId=521839>)\n * [Terms of Use](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/legal/termsofuse>)\n * [Trademarks](https://learn.microsoft.com/en-us/azure/service-fabric/<https:/www.microsoft.com/legal/intellectualproperty/Trademarks/>)\n * © Microsoft 2025"
}
] |
[
{
"from": "system",
"value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation."
},
{
"from": "human",
"value": "Can you explain [Skip to main content](https://learn.microsoft.com/en-us/azure/service-fabric/<#main>)?"
},
{
"from": "gpt",
"value": "This browser is no longer supported.\nUpgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.\n[Download Microsoft Edge](https://learn.microsoft.com/en-us/azure/service-fabric/<https:/go.microsoft.com/fwlink/p/?LinkID=2092881 >) [More info about Internet Explorer and Microsoft Edge](https://learn.microsoft.com/en-us/azure/service-fabric/<https:/learn.microsoft.com/en-us/lifecycle/faq/internet-explorer-microsoft-edge>)\n[ Learn ](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/>) [ ](https://learn.microsoft.com/en-us/azure/service-fabric/<https:/www.microsoft.com>)\nSuggestions will filter as you type\n[ Sign in ](https://learn.microsoft.com/en-us/azure/service-fabric/<#>)\n * [ Profile ](https://learn.microsoft.com/en-us/azure/service-fabric/<https:/learn.microsoft.com/en-us/users/me/activity/>)\n * [ Settings ](https://learn.microsoft.com/en-us/azure/service-fabric/<https:/learn.microsoft.com/en-us/users/me/settings/>)\n\n[ Sign out ](https://learn.microsoft.com/en-us/azure/service-fabric/<#>)\n[ ](https://learn.microsoft.com/en-us/azure/service-fabric/<https:/www.microsoft.com>) [ Learn ](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/>)\n * Discover\n * [ Documentation ](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/docs/>)\nIn-depth articles on Microsoft developer tools and technologies\n * [ Training ](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/training/>)\nPersonalized learning paths and courses\n * [ Credentials ](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/credentials/>)\nGlobally recognized, industry-endorsed credentials\n * [ Q&A ](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/answers/>)\nTechnical questions and answers moderated by Microsoft\n * [ Code Samples ](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/samples/>)\nCode sample library for Microsoft developer tools and technologies\n * [ Assessments ](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/assessments/>)\nInteractive, curated guidance and recommendations\n * [ Shows ](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/shows/>)\nThousands of hours of original programming from Microsoft experts\nMicrosoft Learn for Organizations\n[ Boost your team's technical skills ](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/training/organizations/>)\nAccess curated resources to upskill your team and close skills gaps.\n * Product documentation\n * [ ASP.NET ](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/aspnet/>)\n * [ Azure ](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/azure/>)\n * [ Dynamics 365 ](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/dynamics365/>)\n * [ Microsoft 365 ](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/microsoft-365/>)\n * [ Microsoft Copilot ](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/copilot/>)\n * [ Microsoft Edge ](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/microsoft-edge/>)\n * [ Microsoft Entra ](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/entra/>)\n * [ Microsoft Graph ](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/graph/>)\n * [ Microsoft Intune ](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/mem/>)\n * [ Microsoft Purview ](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/purview/>)\n * [ Microsoft Teams ](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/microsoftteams/>)\n * [ .NET ](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/dotnet/>)\n * [ Power Apps ](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/power-apps/>)\n * [ Power BI ](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/power-bi/>)\n * [ Power Platform ](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/power-platform/>)\n * [ PowerShell ](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/powershell/>)\n * [ SQL ](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/sql/>)\n * [ Sysinternals ](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/sysinternals/>)\n * [ Visual Studio ](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/visualstudio/>)\n * [ Windows ](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/windows/>)\n * [ Windows Server ](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/windows-server/>)\n[ View all products ](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/docs/>)\nMicrosoft Learn for Organizations\n[ Boost your team's technical skills ](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/training/organizations/>)\nAccess curated resources to upskill your team and close skills gaps.\n * Development languages\n * [ C++ ](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/cpp/>)\n * [ C# ](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/dotnet/csharp/>)\n * [ DAX ](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/dax/>)\n * [ Java ](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/java/>)\n * [ OData ](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/odata/>)\n * [ OpenAPI ](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/openapi/>)\n * [ Power Query M ](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/powerquery-m/>)\n * [ VBA ](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/office/vba/>)\nMicrosoft Learn for Organizations\n[ Boost your team's technical skills ](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/training/organizations/>)\nAccess curated resources to upskill your team and close skills gaps.\n * Topics\n * [ Artificial intelligence ](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/ai/>)\n * [ Compliance ](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/compliance/>)\n * [ DevOps ](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/devops/>)\n * [ Platform engineering ](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/platform-engineering/>)\n * [ Security ](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/security/>)\nMicrosoft Learn for Organizations\n[ Boost your team's technical skills ](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/training/organizations/>)\nAccess curated resources to upskill your team and close skills gaps.\n\nSuggestions will filter as you type\n[ Sign in ](https://learn.microsoft.com/en-us/azure/service-fabric/<#>)\n * [ Profile ](https://learn.microsoft.com/en-us/azure/service-fabric/<https:/learn.microsoft.com/en-us/users/me/activity/>)\n * [ Settings ](https://learn.microsoft.com/en-us/azure/service-fabric/<https:/learn.microsoft.com/en-us/users/me/settings/>)\n\n[ Sign out ](https://learn.microsoft.com/en-us/azure/service-fabric/<#>)\n[ Azure ](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/azure/>)\n * Products\n * Popular products\n * [ Azure AI Services ](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/azure/ai-services/>)\n * [ Azure App Service ](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/azure/app-service/>)\n * [ Azure Databricks ](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/azure/databricks/>)\n * [ Azure DevOps ](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/azure/devops/>)\n * [ Azure Functions ](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/azure/azure-functions/>)\n * [ Azure Monitor ](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/azure/azure-monitor/>)\n * [ Azure Virtual Machines ](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/azure/virtual-machines/>)\n * Popular categories\n * [ Compute ](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/azure/?product=compute>)\n * [ Networking ](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/azure/?product=networking>)\n * [ Storage ](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/azure/?product=storage>)\n * [ AI & machine learning ](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/azure/?product=ai-machine-learning>)\n * [ Analytics ](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/azure/?product=analytics>)\n * [ Databases ](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/azure/?product=databases>)\n * [ Security ](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/azure/?product=security>)\n * [ View all products ](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/azure/>)\n * Architecture\n * [ Cloud Adoption Framework ](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/azure/cloud-adoption-framework/>)\n * [ Well-Architected Framework ](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/azure/well-architected/>)\n * [ Azure Architecture Center ](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/azure/architecture/>)\n * Develop\n * [ Python ](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/azure/developer/python/>)\n * [ .NET ](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/dotnet/azure/>)\n * [ JavaScript ](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/azure/developer/javascript/>)\n * [ Java ](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/azure/developer/java/>)\n * [ PowerShell ](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/powershell/azure/>)\n * [ Azure CLI ](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/cli/azure/>)\n * [ View all developer resources ](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/azure/developer/>)\n * Learn Azure\n * [ Start your AI learning assessment ](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/assessments/1c032171-8ca0-4032-8962-a38a5cc424a8/>)\n * Top learning paths\n * [ Cloud concepts ](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/training/paths/microsoft-azure-fundamentals-describe-cloud-concepts/>)\n * [ AI fundamentals ](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/training/paths/get-started-with-artificial-intelligence-on-azure/>)\n * [ Intro to generative AI ](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/training/paths/introduction-generative-ai/>)\n * [ Azure Architecture fundamentals ](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/training/paths/azure-fundamentals-describe-azure-architecture-services/>)\n * [ Earn credentials ](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/credentials/browse/?products=azure>)\n * [ Instructor-led courses ](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/training/browse/?products=azure&resource_type=course>)\n * [ View all training ](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/training/azure/>)\n * [ Troubleshooting ](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/troubleshoot/azure/>)\n * Resources\n * [ Product overview ](https://learn.microsoft.com/en-us/azure/service-fabric/<https:/azure.microsoft.com/get-started>)\n * [ Latest blog posts ](https://learn.microsoft.com/en-us/azure/service-fabric/<https:/azure.microsoft.com/blog/>)\n * [ Pricing information ](https://learn.microsoft.com/en-us/azure/service-fabric/<https:/azure.microsoft.com/pricing/>)\n * [ Support options ](https://learn.microsoft.com/en-us/azure/service-fabric/<https:/azure.microsoft.com/support/options/>)\n * More\n * Products\n * Popular products\n * [ Azure AI Services ](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/azure/ai-services/>)\n * [ Azure App Service ](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/azure/app-service/>)\n * [ Azure Databricks ](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/azure/databricks/>)\n * [ Azure DevOps ](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/azure/devops/>)\n * [ Azure Functions ](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/azure/azure-functions/>)\n * [ Azure Monitor ](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/azure/azure-monitor/>)\n * [ Azure Virtual Machines ](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/azure/virtual-machines/>)\n * Popular categories\n * [ Compute ](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/azure/?product=compute>)\n * [ Networking ](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/azure/?product=networking>)\n * [ Storage ](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/azure/?product=storage>)\n * [ AI & machine learning ](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/azure/?product=ai-machine-learning>)\n * [ Analytics ](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/azure/?product=analytics>)\n * [ Databases ](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/azure/?product=databases>)\n * [ Security ](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/azure/?product=security>)\n * [ View all products ](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/azure/>)\n * Architecture\n * [ Cloud Adoption Framework ](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/azure/cloud-adoption-framework/>)\n * [ Well-Architected Framework ](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/azure/well-architected/>)\n * [ Azure Architecture Center ](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/azure/architecture/>)\n * Develop\n * [ Python ](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/azure/developer/python/>)\n * [ .NET ](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/dotnet/azure/>)\n * [ JavaScript ](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/azure/developer/javascript/>)\n * [ Java ](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/azure/developer/java/>)\n * [ PowerShell ](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/powershell/azure/>)\n * [ Azure CLI ](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/cli/azure/>)\n * [ View all developer resources ](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/azure/developer/>)\n * Learn Azure\n * [ Start your AI learning assessment ](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/assessments/1c032171-8ca0-4032-8962-a38a5cc424a8/>)\n * Top learning paths\n * [ Cloud concepts ](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/training/paths/microsoft-azure-fundamentals-describe-cloud-concepts/>)\n * [ AI fundamentals ](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/training/paths/get-started-with-artificial-intelligence-on-azure/>)\n * [ Intro to generative AI ](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/training/paths/introduction-generative-ai/>)\n * [ Azure Architecture fundamentals ](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/training/paths/azure-fundamentals-describe-azure-architecture-services/>)\n * [ Earn credentials ](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/credentials/browse/?products=azure>)\n * [ Instructor-led courses ](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/training/browse/?products=azure&resource_type=course>)\n * [ View all training ](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/training/azure/>)\n * [ Troubleshooting ](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/troubleshoot/azure/>)\n * Resources\n * [ Product overview ](https://learn.microsoft.com/en-us/azure/service-fabric/<https:/azure.microsoft.com/get-started>)\n * [ Latest blog posts ](https://learn.microsoft.com/en-us/azure/service-fabric/<https:/azure.microsoft.com/blog/>)\n * [ Pricing information ](https://learn.microsoft.com/en-us/azure/service-fabric/<https:/azure.microsoft.com/pricing/>)\n * [ Support options ](https://learn.microsoft.com/en-us/azure/service-fabric/<https:/azure.microsoft.com/support/options/>)\n\n[ Portal ](https://learn.microsoft.com/en-us/azure/service-fabric/<https:/portal.azure.com>) [ Free account ](https://learn.microsoft.com/en-us/azure/service-fabric/<https:/azure.microsoft.com/free/>)\nTable of contents Exit focus mode\nSearch\nSuggestions will filter as you type\n * [Service Fabric Documentation](https://learn.microsoft.com/en-us/azure/service-fabric/<https:/learn.microsoft.com/en-us/azure/service-fabric/>)\n * Overview\n * Quickstarts\n * [Managed cluster with Azure portal](https://learn.microsoft.com/en-us/azure/service-fabric/<https:/learn.microsoft.com/en-us/azure/service-fabric/quickstart-managed-cluster-portal>)\n * [Managed cluster with ARM template](https://learn.microsoft.com/en-us/azure/service-fabric/<https:/learn.microsoft.com/en-us/azure/service-fabric/quickstart-managed-cluster-template>)\n * [Service Fabric cluster with Azure portal](https://learn.microsoft.com/en-us/azure/service-fabric/<https:/learn.microsoft.com/en-us/azure/service-fabric/quickstart-classic-cluster-portal>)\n * [Service Fabric cluster with Bicep](https://learn.microsoft.com/en-us/azure/service-fabric/<https:/learn.microsoft.com/en-us/azure/service-fabric/quickstart-cluster-bicep>)\n * [Service Fabric cluster with ARM template](https://learn.microsoft.com/en-us/azure/service-fabric/<https:/learn.microsoft.com/en-us/azure/service-fabric/quickstart-cluster-template>)\n * [Create .NET application](https://learn.microsoft.com/en-us/azure/service-fabric/<https:/learn.microsoft.com/en-us/azure/service-fabric/service-fabric-quickstart-dotnet>)\n * [Deploy a Linux container application](https://learn.microsoft.com/en-us/azure/service-fabric/<https:/learn.microsoft.com/en-us/azure/service-fabric/service-fabric-quickstart-containers-linux>)\n * [Deploy a Windows container application](https://learn.microsoft.com/en-us/azure/service-fabric/<https:/learn.microsoft.com/en-us/azure/service-fabric/service-fabric-quickstart-containers>)\n * Java Quickstarts\n * Tutorials\n * Best practices\n * Samples\n * Concepts\n * [Understand microservices](https://learn.microsoft.com/en-us/azure/service-fabric/<https:/learn.microsoft.com/en-us/azure/service-fabric/service-fabric-overview-microservices>)\n * [Big picture](https://learn.microsoft.com/en-us/azure/service-fabric/<https:/learn.microsoft.com/en-us/azure/service-fabric/service-fabric-content-roadmap>)\n * [Application scenarios](https://learn.microsoft.com/en-us/azure/service-fabric/<https:/learn.microsoft.com/en-us/azure/service-fabric/service-fabric-application-scenarios>)\n * [Architecture](https://learn.microsoft.com/en-us/azure/service-fabric/<https:/learn.microsoft.com/en-us/azure/service-fabric/service-fabric-architecture>)\n * Security\n * [Terminology](https://learn.microsoft.com/en-us/azure/service-fabric/<https:/learn.microsoft.com/en-us/azure/service-fabric/service-fabric-technical-overview>)\n * Building applications\n * Applications and services\n * [Application model](https://learn.microsoft.com/en-us/azure/service-fabric/<https:/learn.microsoft.com/en-us/azure/service-fabric/service-fabric-application-model>)\n * [Create application model templates](https://learn.microsoft.com/en-us/azure/service-fabric/<https:/learn.microsoft.com/en-us/azure/service-fabric/service-fabric-concept-resource-model>)\n * [Application and service manifests](https://learn.microsoft.com/en-us/azure/service-fabric/<https:/learn.microsoft.com/en-us/azure/service-fabric/service-fabric-application-and-service-manifests>)\n * [Service Configuration using StartupServices model](https://learn.microsoft.com/en-us/azure/service-fabric/<https:/learn.microsoft.com/en-us/azure/service-fabric/service-fabric-startupservices-model>)\n * Application and service manifest examples\n * [Hosting model](https://learn.microsoft.com/en-us/azure/service-fabric/<https:/learn.microsoft.com/en-us/azure/service-fabric/service-fabric-hosting-model>)\n * [Hosting activation and deactivation lifecycle advanced topics](https://learn.microsoft.com/en-us/azure/service-fabric/<https:/learn.microsoft.com/en-us/azure/service-fabric/service-fabric-hosting-lifecycle>)\n * [Application security](https://learn.microsoft.com/en-us/azure/service-fabric/<https:/learn.microsoft.com/en-us/azure/service-fabric/service-fabric-application-and-service-security>)\n * [Service state](https://learn.microsoft.com/en-us/azure/service-fabric/<https:/learn.microsoft.com/en-us/azure/service-fabric/service-fabric-concepts-state>)\n * [Scalability of applications](https://learn.microsoft.com/en-us/azure/service-fabric/<https:/learn.microsoft.com/en-us/azure/service-fabric/service-fabric-concepts-scalability>)\n * [Availability of services](https://learn.microsoft.com/en-us/azure/service-fabric/<https:/learn.microsoft.com/en-us/azure/service-fabric/service-fabric-availability-services>)\n * Service communication\n * [Service communication overview](https://learn.microsoft.com/en-us/azure/service-fabric/<https:/learn.microsoft.com/en-us/azure/service-fabric/service-fabric-connect-and-communicate-with-services>)\n * [DNS service](https://learn.microsoft.com/en-us/azure/service-fabric/<https:/learn.microsoft.com/en-us/azure/service-fabric/service-fabric-dnsservice>)\n * [Reverse proxy](https://learn.microsoft.com/en-us/azure/service-fabric/<https:/learn.microsoft.com/en-us/azure/service-fabric/service-fabric-reverseproxy>)\n * [ASP.NET Core](https://learn.microsoft.com/en-us/azure/service-fabric/<https:/learn.microsoft.com/en-us/azure/service-fabric/service-fabric-reliable-services-communication-aspnetcore>)\n * Application lifecycle\n * [Service resources](https://learn.microsoft.com/en-us/azure/service-fabric/<https:/learn.microsoft.com/en-us/azure/service-fabric/service-fabric-service-manifest-resources>)\n * Periodic backup and restore\n * [Initializer CodePackages](https://learn.microsoft.com/en-us/azure/service-fabric/<https:/learn.microsoft.com/en-us/azure/service-fabric/initializer-codepackages>)\n * [RunToCompletion](https://learn.microsoft.com/en-us/azure/service-fabric/<https:/learn.microsoft.com/en-us/azure/service-fabric/run-to-completion>)\n * Clusters\n * Monitoring and diagnostics\n * [Integration with API Management](https://learn.microsoft.com/en-us/azure/service-fabric/<https:/learn.microsoft.com/en-us/azure/service-fabric/service-fabric-api-management-overview>)\n * [App Resource model](https://learn.microsoft.com/en-us/azure/service-fabric/<https:/learn.microsoft.com/en-us/azure/service-fabric/service-fabric-concept-resource-model>)\n * [Managed Identity](https://learn.microsoft.com/en-us/azure/service-fabric/<https:/learn.microsoft.com/en-us/azure/service-fabric/concepts-managed-identity>)\n * [Configure container repository credentials](https://learn.microsoft.com/en-us/azure/service-fabric/<https:/learn.microsoft.com/en-us/azure/service-fabric/configure-container-repository-credentials>)\n * [Managed cluster deny assignment policy](https://learn.microsoft.com/en-us/azure/service-fabric/<https:/learn.microsoft.com/en-us/azure/service-fabric/managed-cluster-deny-assignment>)\n * [Service Fabric Explorer blocking operations for managed clusters](https://learn.microsoft.com/en-us/azure/service-fabric/<https:/learn.microsoft.com/en-us/azure/service-fabric/managed-cluster-service-fabric-explorer-blocking-operation>)\n * How-to guides\n * Reference\n * Resources\n * [Support and troubleshooting](https://learn.microsoft.com/en-us/azure/service-fabric/<https:/learn.microsoft.com/en-us/azure/service-fabric/service-fabric-support>)\n\nDownload PDF\n 1. [ Learn ](https://learn.microsoft.com/en-us/azure/service-fabric/<https:/learn.microsoft.com/en-us/>)\n 2. [ Azure ](https://learn.microsoft.com/en-us/azure/service-fabric/<https:/learn.microsoft.com/en-us/azure/>)\n 3. [ Service Fabric ](https://learn.microsoft.com/en-us/azure/service-fabric/<https:/learn.microsoft.com/en-us/azure/service-fabric/>)\n\n 1. [Learn](https://learn.microsoft.com/en-us/azure/service-fabric/<https:/learn.microsoft.com/en-us/>)\n 2. [Azure](https://learn.microsoft.com/en-us/azure/service-fabric/<https:/learn.microsoft.com/en-us/azure/>)\n 3. [Service Fabric](https://learn.microsoft.com/en-us/azure/service-fabric/<https:/learn.microsoft.com/en-us/azure/service-fabric/>)\n\n[ Read in English ](https://learn.microsoft.com/en-us/azure/service-fabric/<https:/learn.microsoft.com/en-us/azure/service-fabric/service-fabric-connect-and-communicate-with-services> \"Read in English\") Save\n * Add to Collections\n * Add to Plan\n\n[ ](https://learn.microsoft.com/en-us/azure/service-fabric/<https:/github.com/MicrosoftDocs/azure-compute-docs/blob/main/articles/service-fabric/service-fabric-connect-and-communicate-with-services.md> \"Edit This Document\")\nTable of contents[ Read in English ](https://learn.microsoft.com/en-us/azure/service-fabric/<https:/learn.microsoft.com/en-us/azure/service-fabric/service-fabric-connect-and-communicate-with-services> \"Read in English\") Add to Collections Add to Plan [ Edit ](https://learn.microsoft.com/en-us/azure/service-fabric/<https:/github.com/MicrosoftDocs/azure-compute-docs/blob/main/articles/service-fabric/service-fabric-connect-and-communicate-with-services.md> \"Edit This Document\")\n#### Share via\n[ Facebook ](https://learn.microsoft.com/en-us/azure/service-fabric/<https:/www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fazure%2Fservice-fabric%2Fservice-fabric-connect-and-communicate-with-services%3FWT.mc_id%3Dfacebook>) [ x.com ](https://learn.microsoft.com/en-us/azure/service-fabric/<https:/twitter.com/intent/tweet?original_referer=https%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fazure%2Fservice-fabric%2Fservice-fabric-connect-and-communicate-with-services%3FWT.mc_id%3Dtwitter&text=Today%20I%20completed%20%22Connect%20and%20communicate%20with%20services%20in%20Azure%20Service%20Fabric%20-%20Azure%20Service%20Fabric%20%7C%20Microsoft%20Learn%22!%20I'm%20so%20proud%20to%20be%20celebrating%20this%20achievement%20and%20hope%20this%20inspires%20you%20to%20start%20your%20own%20%40MicrosoftLearn%20journey!&tw_p=tweetbutton&url=https%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fazure%2Fservice-fabric%2Fservice-fabric-connect-and-communicate-with-services%3FWT.mc_id%3Dtwitter>) [ LinkedIn ](https://learn.microsoft.com/en-us/azure/service-fabric/<https:/www.linkedin.com/feed/?shareActive=true&text=Today%20I%20completed%20%22Connect%20and%20communicate%20with%20services%20in%20Azure%20Service%20Fabric%20-%20Azure%20Service%20Fabric%20%7C%20Microsoft%20Learn%22!%20I'm%20so%20proud%20to%20be%20celebrating%20this%20achievement%20and%20hope%20this%20inspires%20you%20to%20start%20your%20own%20%40MicrosoftLearn%20journey!%0A%0D%0Ahttps%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fazure%2Fservice-fabric%2Fservice-fabric-connect-and-communicate-with-services%3FWT.mc_id%3Dlinkedin>) Email Print\nTable of contents\n# Connect and communicate with services in Service Fabric\n * Article\n * 08/22/2024\n * 17 contributors\n\nFeedback"
}
] |
[
{
"from": "system",
"value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation."
},
{
"from": "human",
"value": "Can you explain In this article?"
},
{
"from": "gpt",
"value": "1. [Bring your own protocol](https://learn.microsoft.com/en-us/azure/service-fabric/<#bring-your-own-protocol>)\n 2. [Service discovery and resolution](https://learn.microsoft.com/en-us/azure/service-fabric/<#service-discovery-and-resolution>)\n 3. [Connecting to other services](https://learn.microsoft.com/en-us/azure/service-fabric/<#connecting-to-other-services>)\n 4. [Connections from external clients](https://learn.microsoft.com/en-us/azure/service-fabric/<#connections-from-external-clients>)\n 5. [Service Fabric in Azure](https://learn.microsoft.com/en-us/azure/service-fabric/<#service-fabric-in-azure>)\n 6. [Reliable Services: Built-in communication API options](https://learn.microsoft.com/en-us/azure/service-fabric/<#reliable-services-built-in-communication-api-options>)\n 7. [Using custom protocols and other communication frameworks](https://learn.microsoft.com/en-us/azure/service-fabric/<#using-custom-protocols-and-other-communication-frameworks>)\n 8. [Next steps](https://learn.microsoft.com/en-us/azure/service-fabric/<#next-steps>)\n\nShow 4 more\nIn Service Fabric, a service runs somewhere in a Service Fabric cluster, typically distributed across multiple VMs. It can be moved from one place to another, either by the service owner, or automatically by Service Fabric. Services are not statically tied to a particular machine or address.\nA Service Fabric application is generally composed of many different services, where each service performs a specialized task. These services may communicate with each other to form a complete function, such as rendering different parts of a web application. There are also client applications that connect to and communicate with services. This document discusses how to set up communication with and between your services in Service Fabric.\n[Check this page for a training video that also discusses service communication:](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/shows/building-microservices-applications-on-azure-service-fabric/service-network-communication>)\n[](https://learn.microsoft.com/en-us/azure/service-fabric/<#bring-your-own-protocol>)"
}
] |
[
{
"from": "system",
"value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation."
},
{
"from": "human",
"value": "Can you explain Bring your own protocol?"
},
{
"from": "gpt",
"value": "Service Fabric helps manage the lifecycle of your services but it does not make decisions about what your services do. This includes communication. When your service is opened by Service Fabric, that's your service's opportunity to set up an endpoint for incoming requests, using whatever protocol or communication stack you want. Your service will listen on a normal **IP:port** address using any addressing scheme, such as a URI. Multiple service instances or replicas may share a host process, in which case they will either need to use different ports or use a port-sharing mechanism, such as the http.sys kernel driver in Windows. In either case, each service instance or replica in a host process must be uniquely addressable.\n\n[](https://learn.microsoft.com/en-us/azure/service-fabric/<#service-discovery-and-resolution>)"
}
] |
[
{
"from": "system",
"value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation."
},
{
"from": "human",
"value": "Can you explain Service discovery and resolution?"
},
{
"from": "gpt",
"value": "In a distributed system, services may move from one machine to another over time. This can happen for various reasons, including resource balancing, upgrades, failovers, or scale-out. This means service endpoint addresses change as the service moves to nodes with different IP addresses, and may open on different ports if the service uses a dynamically selected port.\n\nService Fabric provides a discovery and resolution service called the Naming Service. The Naming Service maintains a table that maps named service instances to the endpoint addresses they listen on. All named service instances in Service Fabric have unique names represented as URIs, for example, `\"fabric:/MyApplication/MyService\"`. The name of the service does not change over the lifetime of the service, it's only the endpoint addresses that can change when services move. This is analogous to websites that have constant URLs but where the IP address may change. And similar to DNS on the web, which resolves website URLs to IP addresses, Service Fabric has a registrar that maps service names to their endpoint address.\n\nResolving and connecting to services involves the following steps run in a loop:\n * **Resolve** : Get the endpoint that a service has published from the Naming Service.\n * **Connect** : Connect to the service over whatever protocol it uses on that endpoint.\n * **Retry** : A connection attempt may fail for any number of reasons, for example if the service has moved since the last time the endpoint address was resolved. In that case, the preceding resolve and connect steps need to be retried, and this cycle is repeated until the connection succeeds.\n\n[](https://learn.microsoft.com/en-us/azure/service-fabric/<#connecting-to-other-services>)"
}
] |
[
{
"from": "system",
"value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation."
},
{
"from": "human",
"value": "Can you explain Connecting to other services?"
},
{
"from": "gpt",
"value": "Services connecting to each other inside a cluster generally can directly access the endpoints of other services because the nodes in a cluster are on the same local network. To make is easier to connect between services, Service Fabric provides additional services that use the Naming Service. A DNS service and a reverse proxy service.\n[](https://learn.microsoft.com/en-us/azure/service-fabric/<#dns-service>)"
}
] |
[
{
"from": "system",
"value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation."
},
{
"from": "human",
"value": "Can you explain DNS service?"
},
{
"from": "gpt",
"value": "Since many services, especially containerized services, can have an existing URL name, being able to resolve these using the standard DNS protocol (rather than the Naming Service protocol) is very convenient, especially in application \"lift and shift\" scenarios. This is exactly what the DNS service does. It enables you to map DNS names to a service name and hence resolve endpoint IP addresses.\nAs shown in the following diagram, the DNS service, running in the Service Fabric cluster, maps DNS names to service names which are then resolved by the Naming Service to return the endpoint addresses to connect to. The DNS name for the service is provided at the time of creation.\n\nFor more details on how to use the DNS service see [DNS service in Azure Service Fabric](https://learn.microsoft.com/en-us/azure/service-fabric/<service-fabric-dnsservice>) article.\n[](https://learn.microsoft.com/en-us/azure/service-fabric/<#reverse-proxy-service>)"
}
] |
[
{
"from": "system",
"value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation."
},
{
"from": "human",
"value": "Can you explain Reverse proxy service?"
},
{
"from": "gpt",
"value": "The reverse proxy addresses services in the cluster that exposes HTTP endpoints including HTTPS. The reverse proxy greatly simplifies calling other services and their methods by having a specific URI format and handles the resolve, connect, retry steps required for one service to communicate with another using the Naming Service. In other words, it hides the Naming Service from you when calling other services by making this as simple as calling a URL.\n\nFor more details on how to use the reverse proxy service see [Reverse proxy in Azure Service Fabric](https://learn.microsoft.com/en-us/azure/service-fabric/<service-fabric-reverseproxy>) article.\n[](https://learn.microsoft.com/en-us/azure/service-fabric/<#connections-from-external-clients>)"
}
] |
[
{
"from": "system",
"value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation."
},
{
"from": "human",
"value": "Can you explain Connections from external clients?"
},
{
"from": "gpt",
"value": "Services connecting to each other inside a cluster generally can directly access the endpoints of other services because the nodes in a cluster are on the same local network. In some environments, however, a cluster may be behind a load balancer that routes ingress traffic through a limited set of ports. In these cases, services can still communicate with each other and resolve addresses using the Naming Service, but extra steps must be taken to allow external clients to connect to services.\n[](https://learn.microsoft.com/en-us/azure/service-fabric/<#service-fabric-in-azure>)"
}
] |
[
{
"from": "system",
"value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation."
},
{
"from": "human",
"value": "Can you explain Service Fabric in Azure?"
},
{
"from": "gpt",
"value": "A Service Fabric cluster in Azure is placed behind an Azure Load Balancer. All external traffic to the cluster must pass through the load balancer. The load balancer will automatically forward traffic inbound on a given port to a random _node_ that has the same port open. The Azure Load Balancer only knows about ports open on the _nodes_ , it does not know about ports open by individual _services_.\n\nFor example, in order to accept external traffic on port **80** , the following things must be configured:\n 1. Write a service that listens on port 80. Configure port 80 in the service's ServiceManifest.xml and open a listener in the service, for example, a self-hosted web server.\nXML Copy\n```\n<Resources>\n <Endpoints>\n <Endpoint Name=\"WebEndpoint\" Protocol=\"http\" Port=\"80\" />\n </Endpoints>\n</Resources>\n\n```\n\nC# Copy\n```\n class HttpCommunicationListener : ICommunicationListener\n {\n ...\n public Task<string> OpenAsync(CancellationToken cancellationToken)\n {\n EndpointResourceDescription endpoint =\n serviceContext.CodePackageActivationContext.GetEndpoint(\"WebEndpoint\");\n string uriPrefix = $\"{endpoint.Protocol}://+:{endpoint.Port}/myapp/\";\n this.httpListener = new HttpListener();\n this.httpListener.Prefixes.Add(uriPrefix);\n this.httpListener.Start();\n string publishUri = uriPrefix.Replace(\"+\", FabricRuntime.GetNodeContext().IPAddressOrFQDN);\n return Task.FromResult(publishUri);\n }\n ...\n }\n class WebService : StatelessService\n {\n ...\n protected override IEnumerable<ServiceInstanceListener> CreateServiceInstanceListeners()\n {\n return new[] { new ServiceInstanceListener(context => new HttpCommunicationListener(context))};\n }\n ...\n }\n\n```\n\nJava Copy\n```\n class HttpCommunicationlistener implements CommunicationListener {\n ...\n @Override\n public CompletableFuture<String> openAsync(CancellationToken arg0) {\n EndpointResourceDescription endpoint =\n this.serviceContext.getCodePackageActivationContext().getEndpoint(\"WebEndpoint\");\n try {\n HttpServer server = com.sun.net.httpserver.HttpServer.create(new InetSocketAddress(endpoint.getPort()), 0);\n server.start();\n String publishUri = String.format(\"http://%s:%d/\",\n this.serviceContext.getNodeContext().getIpAddressOrFQDN(), endpoint.getPort());\n return CompletableFuture.completedFuture(publishUri);\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n ...\n }\n class WebService extends StatelessService {\n ...\n @Override\n protected List<ServiceInstanceListener> createServiceInstanceListeners() {\n <ServiceInstanceListener> listeners = new ArrayList<ServiceInstanceListener>();\n listeners.add(new ServiceInstanceListener((context) -> new HttpCommunicationlistener(context)));\n return listeners;\n }\n ...\n }\n\n```\n\n 2. Create a Service Fabric Cluster in Azure and specify port **80** as a custom endpoint port for the node type that will host the service. If you have more than one node type, you can set up a _placement constraint_ on the service to ensure it only runs on the node type that has the custom endpoint port opened.\n\n 3. Once the cluster has been created, configure the Azure Load Balancer in the cluster's Resource Group to forward traffic on port 80. When creating a cluster through the Azure portal, this is set up automatically for each custom endpoint port that was configured.\n\n 4. The Azure Load Balancer uses a probe to determine whether or not to send traffic to a particular node. The probe periodically checks an endpoint on each node to determine whether or not the node is responding. If the probe fails to receive a response after a configured number of times, the load balancer stops sending traffic to that node. When creating a cluster through the Azure portal, a probe is automatically set up for each custom endpoint port that was configured.\n\n\nIt's important to remember that the Azure Load Balancer and the probe only know about the _nodes_ , not the _services_ running on the nodes. The Azure Load Balancer will always send traffic to nodes that respond to the probe, so care must be taken to ensure services are available on the nodes that are able to respond to the probe.\n[](https://learn.microsoft.com/en-us/azure/service-fabric/<#reliable-services-built-in-communication-api-options>)"
}
] |
[
{
"from": "system",
"value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation."
},
{
"from": "human",
"value": "Can you explain Reliable Services: Built-in communication API options?"
},
{
"from": "gpt",
"value": "The Reliable Services framework ships with several pre-built communication options. The decision about which one will work best for you depends on the choice of the programming model, the communication framework, and the programming language that your services are written in.\n * **No specific protocol:** If you don't have a particular choice of communication framework, but you want to get something up and running quickly, then the ideal option for you is [service remoting](https://learn.microsoft.com/en-us/azure/service-fabric/<service-fabric-reliable-services-communication-remoting>), which allows strongly-typed remote procedure calls for Reliable Services and Reliable Actors. This is the easiest and fastest way to get started with service communication. Service remoting handles resolution of service addresses, connection, retry, and error handling. This is available for both C# and Java applications.\n * **HTTP** : For language-agnostic communication, HTTP provides an industry-standard choice with tools and HTTP servers available in many different languages, all supported by Service Fabric. Services can use any HTTP stack available, including [ASP.NET Web API](https://learn.microsoft.com/en-us/azure/service-fabric/<service-fabric-reliable-services-communication-aspnetcore>) for C# applications. Clients written in C# can leverage the `ICommunicationClient` and `ServicePartitionClient` classes, whereas for Java, use the `CommunicationClient` and `FabricServicePartitionClient` classes, [for service resolution, HTTP connections, and retry loops](https://learn.microsoft.com/en-us/azure/service-fabric/<service-fabric-reliable-services-communication>).\n * **WCF** : If you have existing code that uses WCF as your communication framework, then you can use the `WcfCommunicationListener` for the server side and `WcfCommunicationClient` and `ServicePartitionClient` classes for the client. This however is only available for C# applications on Windows based clusters. For more details, see this article about [WCF-based implementation of the communication stack](https://learn.microsoft.com/en-us/azure/service-fabric/<service-fabric-reliable-services-communication-wcf>).\n\n[](https://learn.microsoft.com/en-us/azure/service-fabric/<#using-custom-protocols-and-other-communication-frameworks>)"
}
] |
[
{
"from": "system",
"value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation."
},
{
"from": "human",
"value": "Can you explain Using custom protocols and other communication frameworks?"
},
{
"from": "gpt",
"value": "Services can use any protocol or framework for communication, whether its a custom binary protocol over TCP sockets, or streaming events through [Azure Event Hubs](https://learn.microsoft.com/en-us/azure/service-fabric/<https:/azure.microsoft.com/services/event-hubs/>) or [Azure IoT Hub](https://learn.microsoft.com/en-us/azure/service-fabric/<https:/azure.microsoft.com/services/iot-hub/>). Service Fabric provides communication APIs that you can plug your communication stack into, while all the work to discover and connect is abstracted from you. See this article about the [Reliable Service communication model](https://learn.microsoft.com/en-us/azure/service-fabric/<service-fabric-reliable-services-communication>) for more details.\n[](https://learn.microsoft.com/en-us/azure/service-fabric/<#next-steps>)"
}
] |
[
{
"from": "system",
"value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation."
},
{
"from": "human",
"value": "Can you explain Next steps?"
},
{
"from": "gpt",
"value": "Learn more about the concepts and APIs available in the [Reliable Services communication model](https://learn.microsoft.com/en-us/azure/service-fabric/<service-fabric-reliable-services-communication>), then get started quickly with [service remoting](https://learn.microsoft.com/en-us/azure/service-fabric/<service-fabric-reliable-services-communication-remoting>) or go in-depth to learn how to write a communication listener using [Web API with OWIN self-host](https://learn.microsoft.com/en-us/azure/service-fabric/<service-fabric-reliable-services-communication-aspnetcore>)."
}
] |
[
{
"from": "system",
"value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation."
},
{
"from": "human",
"value": "Can you explain Feedback?"
},
{
"from": "gpt",
"value": "Was this page helpful?\nYes No\n[ Provide product feedback ](https://learn.microsoft.com/en-us/azure/service-fabric/<https:/feedback.azure.com/d365community/forum/e622b37a-2225-ec11-b6e6-000d3a4f0f84>)|\n[ Get help at Microsoft Q&A ](https://learn.microsoft.com/en-us/azure/service-fabric/<https:/learn.microsoft.com/answers/tags/39/azure-service-fabric/>)"
}
] |
[
{
"from": "system",
"value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation."
},
{
"from": "human",
"value": "Can you explain Additional resources?"
},
{
"from": "gpt",
"value": "[ English (United States)](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/locale?target=https%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fazure%2Fservice-fabric%2Fservice-fabric-connect-and-communicate-with-services>)\n[ California Consumer Privacy Act (CCPA) Opt-Out Icon Your Privacy Choices ](https://learn.microsoft.com/en-us/azure/service-fabric/<https:/aka.ms/yourcaliforniaprivacychoices>)\nTheme\n * Light\n * Dark\n * High contrast\n\n * [Previous Versions](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/previous-versions/>)\n * [Blog](https://learn.microsoft.com/en-us/azure/service-fabric/<https:/techcommunity.microsoft.com/t5/microsoft-learn-blog/bg-p/MicrosoftLearnBlog>)\n * [Contribute](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/contribute/>)\n * [Privacy](https://learn.microsoft.com/en-us/azure/service-fabric/<https:/go.microsoft.com/fwlink/?LinkId=521839>)\n * [Terms of Use](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/legal/termsofuse>)\n * [Trademarks](https://learn.microsoft.com/en-us/azure/service-fabric/<https:/www.microsoft.com/legal/intellectualproperty/Trademarks/>)\n * © Microsoft 2025"
}
] |
[
{
"from": "system",
"value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation."
},
{
"from": "human",
"value": "Can you explain In this article?"
},
{
"from": "gpt",
"value": "[ English (United States)](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/locale?target=https%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fazure%2Fservice-fabric%2Fservice-fabric-connect-and-communicate-with-services>)\n[ California Consumer Privacy Act (CCPA) Opt-Out Icon Your Privacy Choices ](https://learn.microsoft.com/en-us/azure/service-fabric/<https:/aka.ms/yourcaliforniaprivacychoices>)\nTheme\n * Light\n * Dark\n * High contrast\n\n * [Previous Versions](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/previous-versions/>)\n * [Blog](https://learn.microsoft.com/en-us/azure/service-fabric/<https:/techcommunity.microsoft.com/t5/microsoft-learn-blog/bg-p/MicrosoftLearnBlog>)\n * [Contribute](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/contribute/>)\n * [Privacy](https://learn.microsoft.com/en-us/azure/service-fabric/<https:/go.microsoft.com/fwlink/?LinkId=521839>)\n * [Terms of Use](https://learn.microsoft.com/en-us/azure/service-fabric/</en-us/legal/termsofuse>)\n * [Trademarks](https://learn.microsoft.com/en-us/azure/service-fabric/<https:/www.microsoft.com/legal/intellectualproperty/Trademarks/>)\n * © Microsoft 2025"
}
] |
[
{
"from": "system",
"value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation."
},
{
"from": "human",
"value": "Can you explain [Skip to main content](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/<#main>)?"
},
{
"from": "gpt",
"value": "This browser is no longer supported.\nUpgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.\n[Download Microsoft Edge](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/<https:/go.microsoft.com/fwlink/p/?LinkID=2092881 >) [More info about Internet Explorer and Microsoft Edge](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/<https:/learn.microsoft.com/en-us/lifecycle/faq/internet-explorer-microsoft-edge>)\n[ Learn ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/>) [ ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/<https:/www.microsoft.com>)\nSuggestions will filter as you type\n[ Sign in ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/<#>)\n * [ Profile ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/<https:/learn.microsoft.com/en-us/users/me/activity/>)\n * [ Settings ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/<https:/learn.microsoft.com/en-us/users/me/settings/>)\n\n[ Sign out ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/<#>)\n[ ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/<https:/www.microsoft.com>) [ Learn ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/>)\n * Discover\n * [ Documentation ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/docs/>)\nIn-depth articles on Microsoft developer tools and technologies\n * [ Training ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/training/>)\nPersonalized learning paths and courses\n * [ Credentials ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/credentials/>)\nGlobally recognized, industry-endorsed credentials\n * [ Q&A ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/answers/>)\nTechnical questions and answers moderated by Microsoft\n * [ Code Samples ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/samples/>)\nCode sample library for Microsoft developer tools and technologies\n * [ Assessments ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/assessments/>)\nInteractive, curated guidance and recommendations\n * [ Shows ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/shows/>)\nThousands of hours of original programming from Microsoft experts\nMicrosoft Learn for Organizations\n[ Boost your team's technical skills ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/training/organizations/>)\nAccess curated resources to upskill your team and close skills gaps.\n * Product documentation\n * [ ASP.NET ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/aspnet/>)\n * [ Azure ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/azure/>)\n * [ Dynamics 365 ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/dynamics365/>)\n * [ Microsoft 365 ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/microsoft-365/>)\n * [ Microsoft Copilot ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/copilot/>)\n * [ Microsoft Edge ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/microsoft-edge/>)\n * [ Microsoft Entra ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/entra/>)\n * [ Microsoft Graph ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/graph/>)\n * [ Microsoft Intune ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/mem/>)\n * [ Microsoft Purview ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/purview/>)\n * [ Microsoft Teams ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/microsoftteams/>)\n * [ .NET ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/dotnet/>)\n * [ Power Apps ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/power-apps/>)\n * [ Power BI ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/power-bi/>)\n * [ Power Platform ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/power-platform/>)\n * [ PowerShell ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/powershell/>)\n * [ SQL ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/sql/>)\n * [ Sysinternals ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/sysinternals/>)\n * [ Visual Studio ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/visualstudio/>)\n * [ Windows ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/windows/>)\n * [ Windows Server ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/windows-server/>)\n[ View all products ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/docs/>)\nMicrosoft Learn for Organizations\n[ Boost your team's technical skills ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/training/organizations/>)\nAccess curated resources to upskill your team and close skills gaps.\n * Development languages\n * [ C++ ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/cpp/>)\n * [ C# ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/dotnet/csharp/>)\n * [ DAX ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/dax/>)\n * [ Java ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/java/>)\n * [ OData ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/odata/>)\n * [ OpenAPI ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/openapi/>)\n * [ Power Query M ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/powerquery-m/>)\n * [ VBA ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/office/vba/>)\nMicrosoft Learn for Organizations\n[ Boost your team's technical skills ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/training/organizations/>)\nAccess curated resources to upskill your team and close skills gaps.\n * Topics\n * [ Artificial intelligence ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/ai/>)\n * [ Compliance ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/compliance/>)\n * [ DevOps ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/devops/>)\n * [ Platform engineering ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/platform-engineering/>)\n * [ Security ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/security/>)\nMicrosoft Learn for Organizations\n[ Boost your team's technical skills ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/training/organizations/>)\nAccess curated resources to upskill your team and close skills gaps.\n\nSuggestions will filter as you type\n[ Sign in ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/<#>)\n * [ Profile ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/<https:/learn.microsoft.com/en-us/users/me/activity/>)\n * [ Settings ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/<https:/learn.microsoft.com/en-us/users/me/settings/>)\n\n[ Sign out ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/<#>)\n[ Azure ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/azure/>)\n * Products\n * Popular products\n * [ Azure AI Services ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/azure/ai-services/>)\n * [ Azure App Service ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/azure/app-service/>)\n * [ Azure Databricks ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/azure/databricks/>)\n * [ Azure DevOps ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/azure/devops/>)\n * [ Azure Functions ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/azure/azure-functions/>)\n * [ Azure Monitor ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/azure/azure-monitor/>)\n * [ Azure Virtual Machines ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/azure/virtual-machines/>)\n * Popular categories\n * [ Compute ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/azure/?product=compute>)\n * [ Networking ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/azure/?product=networking>)\n * [ Storage ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/azure/?product=storage>)\n * [ AI & machine learning ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/azure/?product=ai-machine-learning>)\n * [ Analytics ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/azure/?product=analytics>)\n * [ Databases ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/azure/?product=databases>)\n * [ Security ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/azure/?product=security>)\n * [ View all products ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/azure/>)\n * Architecture\n * [ Cloud Adoption Framework ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/azure/cloud-adoption-framework/>)\n * [ Well-Architected Framework ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/azure/well-architected/>)\n * [ Azure Architecture Center ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/azure/architecture/>)\n * Develop\n * [ Python ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/azure/developer/python/>)\n * [ .NET ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/dotnet/azure/>)\n * [ JavaScript ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/azure/developer/javascript/>)\n * [ Java ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/azure/developer/java/>)\n * [ PowerShell ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/powershell/azure/>)\n * [ Azure CLI ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/cli/azure/>)\n * [ View all developer resources ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/azure/developer/>)\n * Learn Azure\n * [ Start your AI learning assessment ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/assessments/1c032171-8ca0-4032-8962-a38a5cc424a8/>)\n * Top learning paths\n * [ Cloud concepts ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/training/paths/microsoft-azure-fundamentals-describe-cloud-concepts/>)\n * [ AI fundamentals ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/training/paths/get-started-with-artificial-intelligence-on-azure/>)\n * [ Intro to generative AI ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/training/paths/introduction-generative-ai/>)\n * [ Azure Architecture fundamentals ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/training/paths/azure-fundamentals-describe-azure-architecture-services/>)\n * [ Earn credentials ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/credentials/browse/?products=azure>)\n * [ Instructor-led courses ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/training/browse/?products=azure&resource_type=course>)\n * [ View all training ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/training/azure/>)\n * [ Troubleshooting ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/troubleshoot/azure/>)\n * Resources\n * [ Product overview ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/<https:/azure.microsoft.com/get-started>)\n * [ Latest blog posts ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/<https:/azure.microsoft.com/blog/>)\n * [ Pricing information ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/<https:/azure.microsoft.com/pricing/>)\n * [ Support options ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/<https:/azure.microsoft.com/support/options/>)\n * More\n * Products\n * Popular products\n * [ Azure AI Services ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/azure/ai-services/>)\n * [ Azure App Service ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/azure/app-service/>)\n * [ Azure Databricks ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/azure/databricks/>)\n * [ Azure DevOps ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/azure/devops/>)\n * [ Azure Functions ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/azure/azure-functions/>)\n * [ Azure Monitor ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/azure/azure-monitor/>)\n * [ Azure Virtual Machines ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/azure/virtual-machines/>)\n * Popular categories\n * [ Compute ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/azure/?product=compute>)\n * [ Networking ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/azure/?product=networking>)\n * [ Storage ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/azure/?product=storage>)\n * [ AI & machine learning ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/azure/?product=ai-machine-learning>)\n * [ Analytics ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/azure/?product=analytics>)\n * [ Databases ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/azure/?product=databases>)\n * [ Security ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/azure/?product=security>)\n * [ View all products ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/azure/>)\n * Architecture\n * [ Cloud Adoption Framework ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/azure/cloud-adoption-framework/>)\n * [ Well-Architected Framework ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/azure/well-architected/>)\n * [ Azure Architecture Center ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/azure/architecture/>)\n * Develop\n * [ Python ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/azure/developer/python/>)\n * [ .NET ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/dotnet/azure/>)\n * [ JavaScript ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/azure/developer/javascript/>)\n * [ Java ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/azure/developer/java/>)\n * [ PowerShell ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/powershell/azure/>)\n * [ Azure CLI ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/cli/azure/>)\n * [ View all developer resources ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/azure/developer/>)\n * Learn Azure\n * [ Start your AI learning assessment ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/assessments/1c032171-8ca0-4032-8962-a38a5cc424a8/>)\n * Top learning paths\n * [ Cloud concepts ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/training/paths/microsoft-azure-fundamentals-describe-cloud-concepts/>)\n * [ AI fundamentals ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/training/paths/get-started-with-artificial-intelligence-on-azure/>)\n * [ Intro to generative AI ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/training/paths/introduction-generative-ai/>)\n * [ Azure Architecture fundamentals ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/training/paths/azure-fundamentals-describe-azure-architecture-services/>)\n * [ Earn credentials ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/credentials/browse/?products=azure>)\n * [ Instructor-led courses ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/training/browse/?products=azure&resource_type=course>)\n * [ View all training ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/training/azure/>)\n * [ Troubleshooting ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/troubleshoot/azure/>)\n * Resources\n * [ Product overview ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/<https:/azure.microsoft.com/get-started>)\n * [ Latest blog posts ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/<https:/azure.microsoft.com/blog/>)\n * [ Pricing information ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/<https:/azure.microsoft.com/pricing/>)\n * [ Support options ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/<https:/azure.microsoft.com/support/options/>)\n\n[ Portal ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/<https:/portal.azure.com>) [ Free account ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/<https:/azure.microsoft.com/free/>)\nTable of contents Exit focus mode\nSearch\nSuggestions will filter as you type\n * [Virtual Machines Scale Sets Documentation](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/<https:/learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/>)\n * Overview\n * [What are Virtual Machine Scale Sets?](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/<https:/learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/overview>)\n * [Orchestration modes](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/<https:/learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-orchestration-modes>)\n * [Scale Set FAQ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/<https:/learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-faq>)\n * [What's new](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/<https:/learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/whats-new>)\n * Quickstarts\n * Tutorials\n * Scale\n * Reliability\n * Cost optimization\n * Management\n * Monitoring\n * Updates and maintenance\n * Disks\n * Networking\n * [Networking Overview](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/<https:/learn.microsoft.com/en-us/azure/virtual-network/network-overview?toc=https%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fazure%2Fvirtual-machine-scale-sets%2Ftoc.json&bc=https%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fazure%2Fbreadcrumb%2Fazure-compute%2Ftoc.json>)\n * [Default outbound access in Azure](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/<https:/learn.microsoft.com/en-us/azure/virtual-network/ip-services/default-outbound-access?toc=https%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fazure%2Fvirtual-machine-scale-sets%2Ftoc.json&bc=https%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fazure%2Fbreadcrumb%2Fazure-compute%2Ftoc.json>)\n * [Networking for scale sets](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/<https:/learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-networking>)\n * [Use an existing virtual network](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/<https:/learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-mvss-existing-vnet>)\n * Security\n * Reference\n * Resources\n * [Support and troubleshooting](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/<https:/learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/vmss-support-help>)\n\nDownload PDF\n 1. [ Learn ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/<https:/learn.microsoft.com/en-us/>)\n 2. [ Azure ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/<https:/learn.microsoft.com/en-us/azure/>)\n 3. [ Virtual Machine Scale Sets ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/<https:/learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/>)\n\n 1. [Learn](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/<https:/learn.microsoft.com/en-us/>)\n 2. [Azure](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/<https:/learn.microsoft.com/en-us/azure/>)\n 3. [Virtual Machine Scale Sets](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/<https:/learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/>)\n\n[ Read in English ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/<https:/learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-networking?tabs=portal1> \"Read in English\") Save\n * Add to Collections\n * Add to Plan\n\n[ ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/<https:/github.com/MicrosoftDocs/azure-compute-docs/blob/main/articles/virtual-machine-scale-sets/virtual-machine-scale-sets-networking.md> \"Edit This Document\")\nTable of contents[ Read in English ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/<https:/learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-networking?tabs=portal1> \"Read in English\") Add to Collections Add to Plan [ Edit ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/<https:/github.com/MicrosoftDocs/azure-compute-docs/blob/main/articles/virtual-machine-scale-sets/virtual-machine-scale-sets-networking.md> \"Edit This Document\")\n#### Share via\n[ Facebook ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/<https:/www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fazure%2Fvirtual-machine-scale-sets%2Fvirtual-machine-scale-sets-networking%3Ftabs%3Dportal1%26WT.mc_id%3Dfacebook>) [ x.com ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/<https:/twitter.com/intent/tweet?original_referer=https%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fazure%2Fvirtual-machine-scale-sets%2Fvirtual-machine-scale-sets-networking%3Ftabs%3Dportal1%26WT.mc_id%3Dtwitter&text=Today%20I%20completed%20%22Networking%20for%20Azure%20Virtual%20Machine%20Scale%20Sets%20-%20Azure%20Virtual%20Machine%20Scale%20Sets%20%7C%20Microsoft%20Learn%22!%20I'm%20so%20proud%20to%20be%20celebrating%20this%20achievement%20and%20hope%20this%20inspires%20you%20to%20start%20your%20own%20%40MicrosoftLearn%20journey!&tw_p=tweetbutton&url=https%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fazure%2Fvirtual-machine-scale-sets%2Fvirtual-machine-scale-sets-networking%3Ftabs%3Dportal1%26WT.mc_id%3Dtwitter>) [ LinkedIn ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/<https:/www.linkedin.com/feed/?shareActive=true&text=Today%20I%20completed%20%22Networking%20for%20Azure%20Virtual%20Machine%20Scale%20Sets%20-%20Azure%20Virtual%20Machine%20Scale%20Sets%20%7C%20Microsoft%20Learn%22!%20I'm%20so%20proud%20to%20be%20celebrating%20this%20achievement%20and%20hope%20this%20inspires%20you%20to%20start%20your%20own%20%40MicrosoftLearn%20journey!%0A%0D%0Ahttps%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fazure%2Fvirtual-machine-scale-sets%2Fvirtual-machine-scale-sets-networking%3Ftabs%3Dportal1%26WT.mc_id%3Dlinkedin>) Email Print\nTable of contents\n# Networking for Azure Virtual Machine Scale Sets\n * Article\n * 08/22/2024\n * 26 contributors\n\nFeedback"
}
] |
[
{
"from": "system",
"value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation."
},
{
"from": "human",
"value": "Can you explain In this article?"
},
{
"from": "gpt",
"value": "1. [Accelerated Networking](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/<#accelerated-networking>)\n 2. [Azure Virtual Machine Scale Sets with Azure Load Balancer](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/<#azure-virtual-machine-scale-sets-with-azure-load-balancer>)\n 3. [Add a Virtual Machine Scale Set to an Application Gateway](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/<#add-a-virtual-machine-scale-set-to-an-application-gateway>)\n 4. [Configurable DNS Settings](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/<#configurable-dns-settings>)\n 5. [Public IPv4 per virtual machine](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/<#public-ipv4-per-virtual-machine>)\n 6. [Multiple IP addresses per NIC](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/<#multiple-ip-addresses-per-nic>)\n 7. [Multiple NICs per virtual machine](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/<#multiple-nics-per-virtual-machine>)\n 8. [NSG & ASGs per scale set](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/<#nsg--asgs-per-scale-set>)\n 9. [Make networking updates to specific instances](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/<#make-networking-updates-to-specific-instances>)\n 10. [Explicit network outbound connectivity for Flexible scale sets](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/<#explicit-network-outbound-connectivity-for-flexible-scale-sets>)\n 11. [Next steps](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/<#next-steps>)\n\nShow 7 more\nWhen you deploy an Azure Virtual Machine Scale Set through the portal, certain network properties are defaulted, for example an Azure Load Balancer with inbound NAT rules. This article describes how to use some of the more advanced networking features that you can configure with scale sets.\nYou can configure all of the features covered in this article using Azure Resource Manager templates. Azure CLI and PowerShell examples are also included for selected features.\nNote\nMoving a Virtual Machine Scale Set from one VNET to another VNET is not possible. You have to recreate the scale set in the destination VNET.\n[](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/<#accelerated-networking>)"
}
] |
[
{
"from": "system",
"value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation."
},
{
"from": "human",
"value": "Can you explain Accelerated Networking?"
},
{
"from": "gpt",
"value": "Azure Accelerated Networking improves network performance by enabling single root I/O virtualization (SR-IOV) to a virtual machine. To learn more about using Accelerated networking, see Accelerated networking for [Windows](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/azure/virtual-network/create-vm-accelerated-networking-powershell>) or [Linux](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/azure/virtual-network/create-vm-accelerated-networking-cli>) virtual machines. To use accelerated networking with scale sets, set enableAcceleratedNetworking to **true** in your scale set's networkInterfaceConfigurations settings. For example:\nJSON Copy\n```\n\"networkProfile\": {\n \"networkInterfaceConfigurations\": [\n {\n \"name\": \"niconfig1\",\n \"properties\": {\n \"primary\": true,\n \"enableAcceleratedNetworking\" : true,\n \"ipConfigurations\": [\n ...\n ]\n }\n }\n ]\n}\n\n```\n\n[](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/<#azure-virtual-machine-scale-sets-with-azure-load-balancer>)"
}
] |
[
{
"from": "system",
"value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation."
},
{
"from": "human",
"value": "Can you explain Azure Virtual Machine Scale Sets with Azure Load Balancer?"
},
{
"from": "gpt",
"value": "See [Azure Load Balancer and Virtual Machine Scale Sets](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/azure/load-balancer/load-balancer-standard-virtual-machine-scale-sets>) to learn more about how to configure your Standard Load Balancer with Virtual Machine Scale Sets based on your scenario.\n[](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/<#add-a-virtual-machine-scale-set-to-an-application-gateway>)"
}
] |
[
{
"from": "system",
"value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation."
},
{
"from": "human",
"value": "Can you explain Add a Virtual Machine Scale Set to an Application Gateway?"
},
{
"from": "gpt",
"value": "To add a scale set to the backend pool of an Application Gateway, reference the Application Gateway backend pool in your scale set's network profile. This can be done either when creating the scale set (see ARM Template below) or on an existing scale set.\n[](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/<#adding-uniform-orchestration-virtual-machine-scale-sets-to-an-application-gateway>)"
}
] |
[
{
"from": "system",
"value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation."
},
{
"from": "human",
"value": "Can you explain Adding Uniform Orchestration Virtual Machine Scale Sets to an Application Gateway?"
},
{
"from": "gpt",
"value": "When adding Uniform Virtual Machine Scale Sets to an Application Gateway's backend pool, the process will differ for new or existing scale sets:\n * For new scale sets, reference the Application Gateway's backend pool ID in your scale set model's network profile, under one or more network interface IP configurations. When deployed, instances added to your scale set will be placed in the Application Gateway's backend pool.\n * For existing scale sets, first add the Application Gateway's backend pool ID in your scale set model's network profile, then apply the model your existing instances by an upgrade. If the scale set's upgrade policy is `Automatic` or `Rolling`, instances will be updated for you. If it is `Manual`, you need to upgrade the instances manually.\n\n * [Portal](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/<#tabpanel_1_portal1>)\n * [PowerShell](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/<#tabpanel_1_powershell1>)\n * [CLI](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/<#tabpanel_1_cli1>)\n * [ARM template](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/<#tabpanel_1_arm1>)\n\n 1. Create an Application Gateway and backend pool in the same region as your scale set, if you do not already have one\n 2. Navigate to the Virtual Machine Scale Set in the Portal\n 3. Under **Settings** , open the **Networking** pane\n 4. In the Networking pane, select the **Load balancing** tab and click **Add Load Balancing**\n 5. Select **Application Gateway** from the Load Balancing Options dropdown, and choose an existing Application Gateway\n 6. Select the target backend pool and click **Save**\n 7. If your scale set Upgrade Policy is 'Manual', navigate to the **Settings** > **Instances** pane to select and upgrade each of your instances\n\nAzure PowerShell Copy\n```\n $appGW = Get-AzApplicationGateway -Name <appGWName> -ResourceGroup <AppGWResourceGroupName>\n $backendPool = Get-AzApplicationGatewayBackendAddressPool -Name <backendAddressPoolName> -ApplicationGateway $appGW\n $vmss = Get-AzVMSS -Name <VMSSName> -ResourceGroup <VMSSResourceGroupName>\n $backendPoolMembership = New-Object System.Collections.Generic.List[Microsoft.Azure.Management.Compute.Models.SubResource]\n # add existing backend pool membership to new pool membership of first NIC and ip config\n If ($vmss.VirtualMachineProfile.NetworkProfile.NetworkInterfaceConfigurations[0].IpConfigurations[0].ApplicationGatewayBackendAddressPools) {\n $backendPoolMembership.AddRange($vmss.VirtualMachineProfile.NetworkProfile.NetworkInterfaceConfigurations[0].IpConfigurations[0].ApplicationGatewayBackendAddressPools)\n }\n # add new backend pool to pool membership\n $backendPoolMembership.Add($backendPool.id)\n # set VMSS model to use to backend pool membership\n $vmss.VirtualMachineProfile.NetworkProfile.NetworkInterfaceConfigurations[0].IpConfigurations[0].ApplicationGatewayBackendAddressPools = $backendPoolMembership\n # update the VMSS model\n $vmss | Update-AzVMSS\n # update VMSS instances, if necessary\n If ($vmss.UpgradePolicy.Mode -eq 'Manual') {\n $vmss | Get-AzVmssVM | Foreach-Object { $_ | Update-AzVMSSInstance -InstanceId $_.instanceId}\n }\n\n```\n\nAzure CLI Copy Open Cloud Shell\n```\nappGWName=<appGwName>\nappGWResourceGroup=<appGWRGName>\nbackendPoolName=<backendPoolName>\nbackendPoolId=$(az network application-gateway address-pool show --gateway-name $appGWName -g $appGWResourceGroup -n $backendPoolName --query id -otsv)\nvmssName=<vmssName>\nvmssResourceGroup=<vmssRGName>\n# add app gw backend pool to first nic's first ip config\naz vmss update -n $vmssName -g $vmssResourceGroup --add \"virtualMachineProfile.NetworkProfile.NetworkInterfaceConfigurations[0].ipConfigurations[0].applicationGatewayBackendAddressPools\" \"id=$backendPoolId\"\n# update instances\naz vmss update-instances --instance-ids * --name $vmssName --resource-group $vmssResourceGroup\n\n```\n\nJSON Copy\n```\n\"ipConfigurations\": [{\n \"name\": \"{config-name}\",\n \"properties\": {\n \"subnet\": {\n \"id\": \"{subnet-id}\"\n },\n \"ApplicationGatewayBackendAddressPools\": [{\n \"id\": \"/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/providers/Microsoft.Network/applicationGateways/{gateway-name}/backendAddressPools/{pool-name}\"\n }]\n}]\n\n```\n\n[](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/<#adding-flexible-orchestration-virtual-machine-scale-sets-to-an-application-gateway>)"
}
] |
[
{
"from": "system",
"value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation."
},
{
"from": "human",
"value": "Can you explain Adding Flexible Orchestration Virtual Machine Scale Sets to an Application Gateway?"
},
{
"from": "gpt",
"value": "When adding a Flexible scale set to an Application Gateway, the process is the same as adding standalone VMs to an Application Gateway's backend pool--you update the virtual machine's network interface IP configuration to be part of the backend pool. This can be done either [through the Application Gateway's configuration](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/azure/application-gateway/create-multiple-sites-portal#add-backend-servers-to-backend-pools>) or by configuring the virtual machine's network interface configuration.\nNote\nNote that the application gateway must be in the same virtual network as the scale set but must be in a different subnet from the scale set.\n[](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/<#configurable-dns-settings>)"
}
] |
[
{
"from": "system",
"value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation."
},
{
"from": "human",
"value": "Can you explain Configurable DNS Settings?"
},
{
"from": "gpt",
"value": "By default, scale sets take on the specific DNS settings of the VNET and subnet they were created in. You can however, configure the DNS settings for a scale set directly.\n[](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/<#creating-a-scale-set-with-configurable-dns-servers>)"
}
] |
[
{
"from": "system",
"value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation."
},
{
"from": "human",
"value": "Can you explain Creating a scale set with configurable DNS servers?"
},
{
"from": "gpt",
"value": "To create a scale set with a custom DNS configuration using the Azure CLI, add the **--dns-servers** argument to the **vmss create** command, followed by space separated server ip addresses. For example:\nBash Copy\n```\n--dns-servers 10.0.0.6 10.0.0.5\n\n```\n\nTo configure custom DNS servers in an Azure template, add a dnsSettings property to the scale set networkInterfaceConfigurations section. For example:\nJSON Copy\n```\n\"dnsSettings\":{\n \"dnsServers\":[\"10.0.0.6\", \"10.0.0.5\"]\n}\n\n```\n\n[](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/<#creating-a-scale-set-with-configurable-virtual-machine-domain-names>)"
}
] |
[
{
"from": "system",
"value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation."
},
{
"from": "human",
"value": "Can you explain Creating a scale set with configurable virtual machine domain names?"
},
{
"from": "gpt",
"value": "To create a scale set with a custom DNS name for virtual machines using the CLI, add the **--vm-domain-name** argument to the **Virtual Machine Scale Set create** command, followed by a string representing the domain name.\nTo set the domain name in an Azure template, add a **dnsSettings** property to the scale set **networkInterfaceConfigurations** section. For example:\nJSON Copy\n```\n\"networkProfile\": {\n \"networkInterfaceConfigurations\": [\n {\n \"name\": \"nic1\",\n \"properties\": {\n \"primary\": true,\n \"ipConfigurations\": [\n {\n \"name\": \"ip1\",\n \"properties\": {\n \"subnet\": {\n \"id\": \"[concat('/subscriptions/', subscription().subscriptionId,'/resourceGroups/', resourceGroup().name, '/providers/Microsoft.Network/virtualNetworks/', variables('vnetName'), '/subnets/subnet1')]\"\n },\n \"publicIPAddressconfiguration\": {\n \"name\": \"publicip\",\n \"properties\": {\n \"idleTimeoutInMinutes\": 10,\n \"dnsSettings\": {\n \"domainNameLabel\": \"[parameters('vmssDnsName')]\"\n }\n }\n }\n }\n }\n ]\n }\n}\n\n```\n\nThe output, for an individual virtual machine dns name would be in the following form:\nOutput Copy\n```\n<vm><vmindex>.<specifiedVmssDomainNameLabel>\n\n```\n\n[](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/<#public-ipv4-per-virtual-machine>)"
}
] |
[
{
"from": "system",
"value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation."
},
{
"from": "human",
"value": "Can you explain Public IPv4 per virtual machine?"
},
{
"from": "gpt",
"value": "In general, Azure scale set virtual machines do not require their own public IP addresses. For most scenarios, it is more economical and secure to associate a public IP address to a load balancer or to an individual virtual machine (also known as a jumpbox), which then routes incoming connections to scale set virtual machines as needed (for example, through inbound NAT rules).\nHowever, some scenarios do require scale set virtual machines to have their own public IP addresses. An example is gaming, where a console needs to make a direct connection to a cloud virtual machine, which is doing game physics processing. Another example is where virtual machines need to make external connections to one another across regions in a distributed database.\n[](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/<#creating-a-scale-set-with-public-ip-per-virtual-machine>)"
}
] |
[
{
"from": "system",
"value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation."
},
{
"from": "human",
"value": "Can you explain Creating a scale set with public IP per virtual machine?"
},
{
"from": "gpt",
"value": "To create a scale set that assigns a public IP address to each virtual machine with the CLI, add the **--public-ip-per-vm** parameter to the **vmss create** command.\nTo create a scale set using an Azure template, make sure the API version of the Microsoft.Compute/virtualMachineScaleSets resource is at least **2017-03-30** , and add a **publicIpAddressConfiguration** JSON property to the scale set ipConfigurations section. For example:\nJSON Copy\n```\n\"publicIpAddressConfiguration\": {\n \"name\": \"pub1\",\n \"sku\": {\n \"name\": \"Standard\"\n },\n \"properties\": {\n \"idleTimeoutInMinutes\": 15\n }\n}\n\n```\n\nNote when Virtual Machine Scale Sets with public IPs per instance are created with a load balancer in front, the of the instance IPs is determined by the SKU of the Load Balancer (i.e. Basic or Standard). If the Virtual Machine Scale Set is created without a load balancer, the SKU of the instance IPs can be set directly by using the SKU section of the template as shown above.\nExample template using a Basic Load Balancer: [vmss-public-ip-linux](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/<https:/github.com/Azure/azure-quickstart-templates/tree/master/quickstarts/microsoft.compute/vmss-public-ip-linux>)\nAlternatively, a [Public IP Prefix](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/azure/virtual-network/ip-services/public-ip-address-prefix>) (a contiguous block of Standard SKU Public IPs) can be used to generate instance-level IPs in a Virtual Machine Scale Set. The zonal properties of the prefix will be passed to the instance IPs, though they will not be shown in the output.\nExample template using a Public IP Prefix: [vmms-with-public-ip-prefix](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/<https:/github.com/Azure/azure-quickstart-templates/tree/master/quickstarts/microsoft.compute/vmss-with-public-ip-prefix>)\n[](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/<#querying-the-public-ip-addresses-of-the-virtual-machines-in-a-scale-set>)"
}
] |
[
{
"from": "system",
"value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation."
},
{
"from": "human",
"value": "Can you explain Querying the public IP addresses of the virtual machines in a scale set?"
},
{
"from": "gpt",
"value": "To list the public IP addresses assigned to scale set virtual machines using the CLI, use the **az vmss list-instance-public-ips** command.\nTo list scale set public IP addresses using PowerShell, use the _Get-AzPublicIpAddress_ command. For example:\nPowerShell Copy\n```\nGet-AzPublicIpAddress -ResourceGroupName myrg -VirtualMachineScaleSetName myvmss\n\n```\n\nYou can also query the public IP addresses by referencing the resource ID of the public IP address configuration directly. For example:\nPowerShell Copy\n```\nGet-AzPublicIpAddress -ResourceGroupName myrg -Name myvmsspip\n\n```\n\nYou can also display the public IP addresses assigned to the scale set virtual machines by querying the [Azure Resource Explorer](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/<https:/resources.azure.com>) or the Azure REST API with version **2017-03-30** or higher.\nTo query the [Azure Resource Explorer](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/<https:/resources.azure.com>):\n 1. Open [Azure Resource Explorer](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/<https:/resources.azure.com>) in a web browser.\n 2. Expand _subscriptions_ on the left side by clicking the _+_ next to it. If you only have one item under _subscriptions_ , it may already be expanded.\n 3. Expand your subscription.\n 4. Expand your resource group.\n 5. Expand _providers_.\n 6. Expand _Microsoft.Compute_.\n 7. Expand _virtualMachineScaleSets_.\n 8. Expand your scale set.\n 9. Click on _publicipaddresses_.\n\nTo query the Azure REST API:\nBash Copy\n```\nGET https://management.azure.com/subscriptions/{your sub ID}/resourceGroups/{RG name}/providers/Microsoft.Compute/virtualMachineScaleSets/{scale set name}/publicipaddresses?api-version=2017-03-30\n\n```\n\nExample output from the [Azure Resource Explorer](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/<https:/resources.azure.com>) and Azure REST API:\nJSON Copy\n```\n{\n \"value\": [\n {\n \"name\": \"pub1\",\n \"id\": \"/subscriptions/your-subscription-id/resourceGroups/your-rg/providers/Microsoft.Compute/virtualMachineScaleSets/pipvmss/virtualMachines/0/networkInterfaces/pipvmssnic/ipConfigurations/yourvmssipconfig/publicIPAddresses/pub1\",\n \"etag\": \"W/\\\"a64060d5-4dea-4379-a11d-b23cd49a3c8d\\\"\",\n \"properties\": {\n \"provisioningState\": \"Succeeded\",\n \"resourceGuid\": \"ee8cb20f-af8e-4cd6-892f-441ae2bf701f\",\n \"ipAddress\": \"13.84.190.11\",\n \"publicIPAddressVersion\": \"IPv4\",\n \"publicIPAllocationMethod\": \"Dynamic\",\n \"idleTimeoutInMinutes\": 15,\n \"ipConfiguration\": {\n \"id\": \"/subscriptions/your-subscription-id/resourceGroups/your-rg/providers/Microsoft.Compute/virtualMachineScaleSets/yourvmss/virtualMachines/0/networkInterfaces/yourvmssnic/ipConfigurations/yourvmssipconfig\"\n }\n }\n },\n {\n \"name\": \"pub1\",\n \"id\": \"/subscriptions/your-subscription-id/resourceGroups/your-rg/providers/Microsoft.Compute/virtualMachineScaleSets/yourvmss/virtualMachines/3/networkInterfaces/yourvmssnic/ipConfigurations/yourvmssipconfig/publicIPAddresses/pub1\",\n \"etag\": \"W/\\\"5f6ff30c-a24c-4818-883c-61ebd5f9eee8\\\"\",\n \"properties\": {\n \"provisioningState\": \"Succeeded\",\n \"resourceGuid\": \"036ce266-403f-41bd-8578-d446d7397c2f\",\n \"ipAddress\": \"13.84.159.176\",\n \"publicIPAddressVersion\": \"IPv4\",\n \"publicIPAllocationMethod\": \"Dynamic\",\n \"idleTimeoutInMinutes\": 15,\n \"ipConfiguration\": {\n \"id\": \"/subscriptions/your-subscription-id/resourceGroups/your-rg/providers/Microsoft.Compute/virtualMachineScaleSets/yourvmss/virtualMachines/3/networkInterfaces/yourvmssnic/ipConfigurations/yourvmssipconfig\"\n }\n }\n }\n\n```\n\n[](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/<#multiple-ip-addresses-per-nic>)"
}
] |
[
{
"from": "system",
"value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation."
},
{
"from": "human",
"value": "Can you explain Multiple IP addresses per NIC?"
},
{
"from": "gpt",
"value": "Every NIC attached to a VM in a scale set can have one or more IP configurations associated with it. Each configuration is assigned one private IP address. Each configuration may also have one public IP address resource associated with it. To understand how many IP addresses can be assigned to a NIC, and how many public IP addresses you can use in an Azure subscription, refer to [Azure limits](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/azure/azure-resource-manager/management/azure-subscription-service-limits?toc=%2fazure%2fvirtual-network%2ftoc.json#azure-resource-manager-virtual-networking-limits>).\n[](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/<#multiple-nics-per-virtual-machine>)"
}
] |
[
{
"from": "system",
"value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation."
},
{
"from": "human",
"value": "Can you explain Multiple NICs per virtual machine?"
},
{
"from": "gpt",
"value": "You can have up to 8 NICs per virtual machine, depending on machine size. The maximum number of NICs per machine is available in the [VM size article](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/<../virtual-machines/sizes>). All NICs connected to a VM instance must connect to the same virtual network. The NICs can connect to different subnets, but all subnets must be part of the same virtual network.\nThe following example is a scale set network profile showing multiple NIC entries, and multiple public IPs per virtual machine:\nJSON Copy\n```\n\"networkProfile\": {\n \"networkInterfaceConfigurations\": [\n {\n \"name\": \"nic1\",\n \"properties\": {\n \"primary\": true,\n \"ipConfigurations\": [\n {\n \"name\": \"ip1\",\n \"properties\": {\n \"subnet\": {\n \"id\": \"[concat('/subscriptions/', subscription().subscriptionId,'/resourceGroups/', resourceGroup().name, '/providers/Microsoft.Network/virtualNetworks/', variables('vnetName'), '/subnets/subnet1')]\"\n },\n \"publicipaddressconfiguration\": {\n \"name\": \"pub1\",\n \"properties\": {\n \"idleTimeoutInMinutes\": 15\n }\n },\n \"loadBalancerInboundNatPools\": [\n {\n \"id\": \"[concat('/subscriptions/', subscription().subscriptionId,'/resourceGroups/', resourceGroup().name, '/providers/Microsoft.Network/loadBalancers/', variables('lbName'), '/inboundNatPools/natPool1')]\"\n }\n ],\n \"loadBalancerBackendAddressPools\": [\n {\n \"id\": \"[concat('/subscriptions/', subscription().subscriptionId,'/resourceGroups/', resourceGroup().name, '/providers/Microsoft.Network/loadBalancers/', variables('lbName'), '/backendAddressPools/addressPool1')]\"\n }\n ]\n }\n }\n ]\n }\n },\n {\n \"name\": \"nic2\",\n \"properties\": {\n \"primary\": false,\n \"ipConfigurations\": [\n {\n \"name\": \"ip1\",\n \"properties\": {\n \"subnet\": {\n \"id\": \"[concat('/subscriptions/', subscription().subscriptionId,'/resourceGroups/', resourceGroup().name, '/providers/Microsoft.Network/virtualNetworks/', variables('vnetName'), '/subnets/subnet1')]\"\n },\n \"publicipaddressconfiguration\": {\n \"name\": \"pub1\",\n \"properties\": {\n \"idleTimeoutInMinutes\": 15\n }\n },\n \"loadBalancerInboundNatPools\": [\n {\n \"id\": \"[concat('/subscriptions/', subscription().subscriptionId,'/resourceGroups/', resourceGroup().name, '/providers/Microsoft.Network/loadBalancers/', variables('lbName'), '/inboundNatPools/natPool1')]\"\n }\n ],\n \"loadBalancerBackendAddressPools\": [\n {\n \"id\": \"[concat('/subscriptions/', subscription().subscriptionId,'/resourceGroups/', resourceGroup().name, '/providers/Microsoft.Network/loadBalancers/', variables('lbName'), '/backendAddressPools/addressPool1')]\"\n }\n ]\n }\n }\n ]\n }\n }\n ]\n}\n\n```\n\n[](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/<#nsg--asgs-per-scale-set>)"
}
] |
[
{
"from": "system",
"value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation."
},
{
"from": "human",
"value": "Can you explain NSG & ASGs per scale set?"
},
{
"from": "gpt",
"value": "[Network Security Groups](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/azure/virtual-network/network-security-groups-overview>) allow you to filter traffic to and from Azure resources in an Azure virtual network using security rules. [Application Security Groups](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/azure/virtual-network/network-security-groups-overview#application-security-groups>) enable you to handle network security of Azure resources and group them as an extension of your application's structure.\nNetwork Security Groups can be applied directly to a scale set, by adding a reference to the network interface configuration section of the scale set virtual machine properties.\nApplication Security Groups can also be specified directly to a scale set, by adding a reference to the network interface ip configurations section of the scale set virtual machine properties.\nFor example:\nJSON Copy\n```\n\"networkProfile\": {\n \"networkInterfaceConfigurations\": [\n {\n \"name\": \"nic1\",\n \"properties\": {\n \"primary\": true,\n \"ipConfigurations\": [\n {\n \"name\": \"ip1\",\n \"properties\": {\n \"subnet\": {\n \"id\": \"[concat('/subscriptions/', subscription().subscriptionId,'/resourceGroups/', resourceGroup().name, '/providers/Microsoft.Network/virtualNetworks/', variables('vnetName'), '/subnets/subnet1')]\"\n },\n \"applicationSecurityGroups\": [\n {\n \"id\": \"[concat('/subscriptions/', subscription().subscriptionId,'/resourceGroups/', resourceGroup().name, '/providers/Microsoft.Network/applicationSecurityGroups/', variables('asgName'))]\"\n }\n ],\n \"loadBalancerInboundNatPools\": [\n {\n \"id\": \"[concat('/subscriptions/', subscription().subscriptionId,'/resourceGroups/', resourceGroup().name, '/providers/Microsoft.Network/loadBalancers/', variables('lbName'), '/inboundNatPools/natPool1')]\"\n }\n ],\n \"loadBalancerBackendAddressPools\": [\n {\n \"id\": \"[concat('/subscriptions/', subscription().subscriptionId,'/resourceGroups/', resourceGroup().name, '/providers/Microsoft.Network/loadBalancers/', variables('lbName'), '/backendAddressPools/addressPool1')]\"\n }\n ]\n }\n }\n ],\n \"networkSecurityGroup\": {\n \"id\": \"[concat('/subscriptions/', subscription().subscriptionId,'/resourceGroups/', resourceGroup().name, '/providers/Microsoft.Network/networkSecurityGroups/', variables('nsgName'))]\"\n }\n }\n }\n ]\n}\n\n```\n\nTo verify your Network Security Group is associated with your scale set, use the `az vmss show` command. The below example uses `--query` to filter the results and only show the relevant section of the output.\nAzure CLI Copy\n```\naz vmss show \\\n -g myResourceGroup \\\n -n myScaleSet \\\n --query virtualMachineProfile.networkProfile.networkInterfaceConfigurations[].networkSecurityGroup\n[\n {\n \"id\": \"/subscriptions/.../resourceGroups/myResourceGroup/providers/Microsoft.Network/networkSecurityGroups/nsgName\",\n \"resourceGroup\": \"myResourceGroup\"\n }\n]\n\n```\n\nTo verify your Application Security Group is associated with your scale set, use the `az vmss show` command. The below example uses `--query` to filter the results and only show the relevant section of the output.\nAzure CLI Copy\n```\naz vmss show \\\n -g myResourceGroup \\\n -n myScaleSet \\\n --query virtualMachineProfile.networkProfile.networkInterfaceConfigurations[].ipConfigurations[].applicationSecurityGroups\n[\n [\n {\n \"id\": \"/subscriptions/.../resourceGroups/myResourceGroup/providers/Microsoft.Network/applicationSecurityGroups/asgName\",\n \"resourceGroup\": \"myResourceGroup\"\n }\n ]\n]\n\n```\n\n[](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/<#make-networking-updates-to-specific-instances>)"
}
] |
[
{
"from": "system",
"value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation."
},
{
"from": "human",
"value": "Can you explain Make networking updates to specific instances?"
},
{
"from": "gpt",
"value": "You can make networking updates to specific Virtual Machine Scale Set instances.\nYou can `PUT` against the instance to update the network configuration. This can be used to do things like add or remove network interface cards (NICs), or remove an instance from a backend pool.\nCopy\n```\nPUT https://management.azure.com/subscriptions/.../resourceGroups/vmssnic/providers/Microsoft.Compute/virtualMachineScaleSets/vmssnic/virtualMachines/1/?api-version=2019-07-01\n\n```\n\nThe following example shows how to add a second IP Configuration to your NIC.\n 1. `GET` the details for a specific Virtual Machine Scale Set instance.\nCopy\n```\nGET https://management.azure.com/subscriptions/.../resourceGroups/vmssnic/providers/Microsoft.Compute/virtualMachineScaleSets/vmssnic/virtualMachines/1/?api-version=2019-07-01\n\n```\n\n_The following was simplified to show only networking parameters for this example._\nJSON Copy\n```\n{\n ...\n \"properties\": {\n ...\n \"networkProfileConfiguration\": {\n \"networkInterfaceConfigurations\": [\n {\n \"name\": \"vmssnic-vnet-nic01\",\n \"properties\": {\n \"primary\": true,\n \"enableAcceleratedNetworking\": false,\n \"networkSecurityGroup\": {\n \"id\": \"/subscriptions/123a1a12-a123-1ab1-12a1-12a1a1234ab1/resourceGroups/vmssnic/providers/Microsoft.Network/networkSecurityGroups/basicNsgvmssnic-vnet-nic01\"\n },\n \"dnsSettings\": {\n \"dnsServers\": []\n },\n \"enableIPForwarding\": false,\n \"ipConfigurations\": [\n {\n \"name\": \"vmssnic-vnet-nic01-defaultIpConfiguration\",\n \"properties\": {\n \"publicIPAddressConfiguration\": {\n \"name\": \"publicIp-vmssnic-vnet-nic01\",\n \"properties\": {\n \"idleTimeoutInMinutes\": 15,\n \"ipTags\": [],\n \"publicIPAddressVersion\": \"IPv4\"\n }\n },\n \"primary\": true,\n \"subnet\": {\n \"id\": \"/subscriptions/123a1a12-a123-1ab1-12a1-12a1a1234ab1/resourceGroups/vmssnic/providers/Microsoft.Network/virtualNetworks/vmssnic-vnet/subnets/default\"\n },\n \"privateIPAddressVersion\": \"IPv4\"\n }\n }\n ]\n }\n }\n ]\n },\n ...\n }\n}\n\n```\n\n 2. `PUT` against the instance, updating to add the additional IP configuration. This is similar for adding additional `networkInterfaceConfiguration`.\nCopy\n```\nPUT https://management.azure.com/subscriptions/.../resourceGroups/vmssnic/providers/Microsoft.Compute/virtualMachineScaleSets/vmssnic/virtualMachines/1/?api-version=2019-07-01\n\n```\n\n_The following was simplified to show only networking parameters for this example._\nJSON Copy\n```\n {\n ...\n \"properties\": {\n ...\n \"networkProfileConfiguration\": {\n \"networkInterfaceConfigurations\": [\n {\n \"name\": \"vmssnic-vnet-nic01\",\n \"properties\": {\n \"primary\": true,\n \"enableAcceleratedNetworking\": false,\n \"networkSecurityGroup\": {\n \"id\": \"/subscriptions/123a1a12-a123-1ab1-12a1-12a1a1234ab1/resourceGroups/vmssnic/providers/Microsoft.Network/networkSecurityGroups/basicNsgvmssnic-vnet-nic01\"\n },\n \"dnsSettings\": {\n \"dnsServers\": []\n },\n \"enableIPForwarding\": false,\n \"ipConfigurations\": [\n {\n \"name\": \"vmssnic-vnet-nic01-defaultIpConfiguration\",\n \"properties\": {\n \"publicIPAddressConfiguration\": {\n \"name\": \"publicIp-vmssnic-vnet-nic01\",\n \"properties\": {\n \"idleTimeoutInMinutes\": 15,\n \"ipTags\": [],\n \"publicIPAddressVersion\": \"IPv4\"\n }\n },\n \"primary\": true,\n \"subnet\": {\n \"id\": \"/subscriptions/123a1a12-a123-1ab1-12a1-12a1a1234ab1/resourceGroups/vmssnic/providers/Microsoft.Network/virtualNetworks/vmssnic-vnet/subnets/default\"\n },\n \"privateIPAddressVersion\": \"IPv4\"\n }\n },\n {\n \"name\": \"my-second-config\",\n \"properties\": {\n \"subnet\": {\n \"id\": \"/subscriptions/123a1a12-a123-1ab1-12a1-12a1a1234ab1/resourceGroups/vmssnic/providers/Microsoft.Network/virtualNetworks/vmssnic-vnet/subnets/default\"\n },\n \"privateIPAddressVersion\": \"IPv4\"\n }\n }\n ]\n }\n }\n ]\n },\n ...\n }\n}\n\n```\n\n[](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/<#explicit-network-outbound-connectivity-for-flexible-scale-sets>)"
}
] |
[
{
"from": "system",
"value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation."
},
{
"from": "human",
"value": "Can you explain Explicit network outbound connectivity for Flexible scale sets?"
},
{
"from": "gpt",
"value": "In order to enhance default network security, [Virtual Machine Scale Sets with Flexible orchestration](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/<../virtual-machines/flexible-virtual-machine-scale-sets>) will require that instances created implicitly via the autoscaling profile have outbound connectivity defined explicitly through one of the following methods:\n * For most scenarios, we recommend [NAT Gateway attached to the subnet](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/azure/virtual-network/nat-gateway/quickstart-create-nat-gateway-portal>).\n * For scenarios with high security requirements or when using Azure Firewall or Network Virtual Appliance (NVA), you can specify a custom User Defined Route as next hop through firewall.\n * Instances are in the backend pool of a Standard SKU Azure Load Balancer.\n * Attach a Public IP Address to the instance network interface.\n\nWith single instance VMs and Virtual Machine Scale Sets with Uniform orchestration, outbound connectivity is provided automatically.\nCommon scenarios that will require explicit outbound connectivity include:\n * Windows VM activation will require that you have defined outbound connectivity from the VM instance to the Windows Activation Key Management Service (KMS). See [Troubleshoot Windows VM activation problems](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/troubleshoot/azure/virtual-machines/troubleshoot-activation-problems>) for more information.\n * Access to storage accounts or Key Vault. Connectivity to Azure services can also be established via [Private Link](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/azure/private-link/private-link-overview>).\n\nSee [Default outbound access in Azure](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/azure/virtual-network/ip-services/default-outbound-access>) for more details on defining secure outbound connections.\n[](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/<#next-steps>)"
}
] |
[
{
"from": "system",
"value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation."
},
{
"from": "human",
"value": "Can you explain Next steps?"
},
{
"from": "gpt",
"value": "For more information about Azure virtual networks, see [Azure virtual networks overview](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/azure/virtual-network/virtual-networks-overview>)."
}
] |
[
{
"from": "system",
"value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation."
},
{
"from": "human",
"value": "Can you explain Feedback?"
},
{
"from": "gpt",
"value": "Was this page helpful?\nYes No\n[ Provide product feedback ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/<https:/feedback.azure.com/d365community/forum/ec2f1827-be25-ec11-b6e6-000d3a4f0f1c>)|\n[ Get help at Microsoft Q&A ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/<https:/learn.microsoft.com/answers/tags/393/azure-vm-scalesets/>)"
}
] |
[
{
"from": "system",
"value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation."
},
{
"from": "human",
"value": "Can you explain Additional resources?"
},
{
"from": "gpt",
"value": "[ English (United States)](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/locale?target=https%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fazure%2Fvirtual-machine-scale-sets%2Fvirtual-machine-scale-sets-networking>)\n[ California Consumer Privacy Act (CCPA) Opt-Out Icon Your Privacy Choices ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/<https:/aka.ms/yourcaliforniaprivacychoices>)\nTheme\n * Light\n * Dark\n * High contrast\n\n * [Previous Versions](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/previous-versions/>)\n * [Blog](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/<https:/techcommunity.microsoft.com/t5/microsoft-learn-blog/bg-p/MicrosoftLearnBlog>)\n * [Contribute](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/contribute/>)\n * [Privacy](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/<https:/go.microsoft.com/fwlink/?LinkId=521839>)\n * [Terms of Use](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/legal/termsofuse>)\n * [Trademarks](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/<https:/www.microsoft.com/legal/intellectualproperty/Trademarks/>)\n * © Microsoft 2025"
}
] |
[
{
"from": "system",
"value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation."
},
{
"from": "human",
"value": "Can you explain In this article?"
},
{
"from": "gpt",
"value": "[ English (United States)](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/locale?target=https%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fazure%2Fvirtual-machine-scale-sets%2Fvirtual-machine-scale-sets-networking>)\n[ California Consumer Privacy Act (CCPA) Opt-Out Icon Your Privacy Choices ](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/<https:/aka.ms/yourcaliforniaprivacychoices>)\nTheme\n * Light\n * Dark\n * High contrast\n\n * [Previous Versions](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/previous-versions/>)\n * [Blog](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/<https:/techcommunity.microsoft.com/t5/microsoft-learn-blog/bg-p/MicrosoftLearnBlog>)\n * [Contribute](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/contribute/>)\n * [Privacy](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/<https:/go.microsoft.com/fwlink/?LinkId=521839>)\n * [Terms of Use](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/</en-us/legal/termsofuse>)\n * [Trademarks](https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/<https:/www.microsoft.com/legal/intellectualproperty/Trademarks/>)\n * © Microsoft 2025"
}
] |
[
{
"from": "system",
"value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation."
},
{
"from": "human",
"value": "Can you explain [Skip to main content](https://learn.microsoft.com/en-us/azure/virtual-machines/<#main>)?"
},
{
"from": "gpt",
"value": "This browser is no longer supported.\nUpgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.\n[Download Microsoft Edge](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/go.microsoft.com/fwlink/p/?LinkID=2092881 >) [More info about Internet Explorer and Microsoft Edge](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/learn.microsoft.com/en-us/lifecycle/faq/internet-explorer-microsoft-edge>)\n[ Learn ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/>) [ ](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/www.microsoft.com>)\nSuggestions will filter as you type\n[ Sign in ](https://learn.microsoft.com/en-us/azure/virtual-machines/<#>)\n * [ Profile ](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/learn.microsoft.com/en-us/users/me/activity/>)\n * [ Settings ](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/learn.microsoft.com/en-us/users/me/settings/>)\n\n[ Sign out ](https://learn.microsoft.com/en-us/azure/virtual-machines/<#>)\n[ ](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/www.microsoft.com>) [ Learn ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/>)\n * Discover\n * [ Documentation ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/docs/>)\nIn-depth articles on Microsoft developer tools and technologies\n * [ Training ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/training/>)\nPersonalized learning paths and courses\n * [ Credentials ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/credentials/>)\nGlobally recognized, industry-endorsed credentials\n * [ Q&A ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/answers/>)\nTechnical questions and answers moderated by Microsoft\n * [ Code Samples ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/samples/>)\nCode sample library for Microsoft developer tools and technologies\n * [ Assessments ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/assessments/>)\nInteractive, curated guidance and recommendations\n * [ Shows ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/shows/>)\nThousands of hours of original programming from Microsoft experts\nMicrosoft Learn for Organizations\n[ Boost your team's technical skills ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/training/organizations/>)\nAccess curated resources to upskill your team and close skills gaps.\n * Product documentation\n * [ ASP.NET ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/aspnet/>)\n * [ Azure ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/>)\n * [ Dynamics 365 ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/dynamics365/>)\n * [ Microsoft 365 ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/microsoft-365/>)\n * [ Microsoft Copilot ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/copilot/>)\n * [ Microsoft Edge ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/microsoft-edge/>)\n * [ Microsoft Entra ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/entra/>)\n * [ Microsoft Graph ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/graph/>)\n * [ Microsoft Intune ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/mem/>)\n * [ Microsoft Purview ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/purview/>)\n * [ Microsoft Teams ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/microsoftteams/>)\n * [ .NET ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/dotnet/>)\n * [ Power Apps ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/power-apps/>)\n * [ Power BI ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/power-bi/>)\n * [ Power Platform ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/power-platform/>)\n * [ PowerShell ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/powershell/>)\n * [ SQL ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/sql/>)\n * [ Sysinternals ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/sysinternals/>)\n * [ Visual Studio ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/visualstudio/>)\n * [ Windows ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/windows/>)\n * [ Windows Server ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/windows-server/>)\n[ View all products ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/docs/>)\nMicrosoft Learn for Organizations\n[ Boost your team's technical skills ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/training/organizations/>)\nAccess curated resources to upskill your team and close skills gaps.\n * Development languages\n * [ C++ ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/cpp/>)\n * [ C# ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/dotnet/csharp/>)\n * [ DAX ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/dax/>)\n * [ Java ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/java/>)\n * [ OData ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/odata/>)\n * [ OpenAPI ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/openapi/>)\n * [ Power Query M ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/powerquery-m/>)\n * [ VBA ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/office/vba/>)\nMicrosoft Learn for Organizations\n[ Boost your team's technical skills ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/training/organizations/>)\nAccess curated resources to upskill your team and close skills gaps.\n * Topics\n * [ Artificial intelligence ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/ai/>)\n * [ Compliance ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/compliance/>)\n * [ DevOps ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/devops/>)\n * [ Platform engineering ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/platform-engineering/>)\n * [ Security ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/security/>)\nMicrosoft Learn for Organizations\n[ Boost your team's technical skills ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/training/organizations/>)\nAccess curated resources to upskill your team and close skills gaps.\n\nSuggestions will filter as you type\n[ Sign in ](https://learn.microsoft.com/en-us/azure/virtual-machines/<#>)\n * [ Profile ](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/learn.microsoft.com/en-us/users/me/activity/>)\n * [ Settings ](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/learn.microsoft.com/en-us/users/me/settings/>)\n\n[ Sign out ](https://learn.microsoft.com/en-us/azure/virtual-machines/<#>)\n[ Azure ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/>)\n * Products\n * Popular products\n * [ Azure AI Services ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/ai-services/>)\n * [ Azure App Service ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/app-service/>)\n * [ Azure Databricks ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/databricks/>)\n * [ Azure DevOps ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/devops/>)\n * [ Azure Functions ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/azure-functions/>)\n * [ Azure Monitor ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/azure-monitor/>)\n * [ Azure Virtual Machines ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/virtual-machines/>)\n * Popular categories\n * [ Compute ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/?product=compute>)\n * [ Networking ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/?product=networking>)\n * [ Storage ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/?product=storage>)\n * [ AI & machine learning ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/?product=ai-machine-learning>)\n * [ Analytics ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/?product=analytics>)\n * [ Databases ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/?product=databases>)\n * [ Security ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/?product=security>)\n * [ View all products ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/>)\n * Architecture\n * [ Cloud Adoption Framework ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/cloud-adoption-framework/>)\n * [ Well-Architected Framework ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/well-architected/>)\n * [ Azure Architecture Center ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/architecture/>)\n * Develop\n * [ Python ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/developer/python/>)\n * [ .NET ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/dotnet/azure/>)\n * [ JavaScript ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/developer/javascript/>)\n * [ Java ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/developer/java/>)\n * [ PowerShell ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/powershell/azure/>)\n * [ Azure CLI ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/cli/azure/>)\n * [ View all developer resources ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/developer/>)\n * Learn Azure\n * [ Start your AI learning assessment ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/assessments/1c032171-8ca0-4032-8962-a38a5cc424a8/>)\n * Top learning paths\n * [ Cloud concepts ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/training/paths/microsoft-azure-fundamentals-describe-cloud-concepts/>)\n * [ AI fundamentals ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/training/paths/get-started-with-artificial-intelligence-on-azure/>)\n * [ Intro to generative AI ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/training/paths/introduction-generative-ai/>)\n * [ Azure Architecture fundamentals ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/training/paths/azure-fundamentals-describe-azure-architecture-services/>)\n * [ Earn credentials ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/credentials/browse/?products=azure>)\n * [ Instructor-led courses ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/training/browse/?products=azure&resource_type=course>)\n * [ View all training ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/training/azure/>)\n * [ Troubleshooting ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/troubleshoot/azure/>)\n * Resources\n * [ Product overview ](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/azure.microsoft.com/get-started>)\n * [ Latest blog posts ](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/azure.microsoft.com/blog/>)\n * [ Pricing information ](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/azure.microsoft.com/pricing/>)\n * [ Support options ](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/azure.microsoft.com/support/options/>)\n * More\n * Products\n * Popular products\n * [ Azure AI Services ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/ai-services/>)\n * [ Azure App Service ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/app-service/>)\n * [ Azure Databricks ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/databricks/>)\n * [ Azure DevOps ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/devops/>)\n * [ Azure Functions ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/azure-functions/>)\n * [ Azure Monitor ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/azure-monitor/>)\n * [ Azure Virtual Machines ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/virtual-machines/>)\n * Popular categories\n * [ Compute ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/?product=compute>)\n * [ Networking ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/?product=networking>)\n * [ Storage ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/?product=storage>)\n * [ AI & machine learning ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/?product=ai-machine-learning>)\n * [ Analytics ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/?product=analytics>)\n * [ Databases ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/?product=databases>)\n * [ Security ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/?product=security>)\n * [ View all products ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/>)\n * Architecture\n * [ Cloud Adoption Framework ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/cloud-adoption-framework/>)\n * [ Well-Architected Framework ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/well-architected/>)\n * [ Azure Architecture Center ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/architecture/>)\n * Develop\n * [ Python ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/developer/python/>)\n * [ .NET ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/dotnet/azure/>)\n * [ JavaScript ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/developer/javascript/>)\n * [ Java ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/developer/java/>)\n * [ PowerShell ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/powershell/azure/>)\n * [ Azure CLI ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/cli/azure/>)\n * [ View all developer resources ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/developer/>)\n * Learn Azure\n * [ Start your AI learning assessment ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/assessments/1c032171-8ca0-4032-8962-a38a5cc424a8/>)\n * Top learning paths\n * [ Cloud concepts ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/training/paths/microsoft-azure-fundamentals-describe-cloud-concepts/>)\n * [ AI fundamentals ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/training/paths/get-started-with-artificial-intelligence-on-azure/>)\n * [ Intro to generative AI ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/training/paths/introduction-generative-ai/>)\n * [ Azure Architecture fundamentals ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/training/paths/azure-fundamentals-describe-azure-architecture-services/>)\n * [ Earn credentials ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/credentials/browse/?products=azure>)\n * [ Instructor-led courses ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/training/browse/?products=azure&resource_type=course>)\n * [ View all training ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/training/azure/>)\n * [ Troubleshooting ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/troubleshoot/azure/>)\n * Resources\n * [ Product overview ](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/azure.microsoft.com/get-started>)\n * [ Latest blog posts ](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/azure.microsoft.com/blog/>)\n * [ Pricing information ](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/azure.microsoft.com/pricing/>)\n * [ Support options ](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/azure.microsoft.com/support/options/>)\n\n[ Portal ](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/portal.azure.com>) [ Free account ](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/azure.microsoft.com/free/>)\nTable of contents Exit focus mode\nSearch\nSuggestions will filter as you type\n * [Virtual Machines Documentation](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/learn.microsoft.com/en-us/azure/virtual-machines/>)\n * [Overview](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/learn.microsoft.com/en-us/azure/virtual-machines/overview>)\n * Quickstarts\n * Create a Linux VM\n * Create a Windows VM\n * Create a Virtual Machine Scale Set\n * Tutorials\n * Develop\n * Workloads\n * Instances\n * Sizes\n * Azure Compute Gallery\n * Images\n * Find Azure Marketplace images\n * [Generalizing a VM](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/learn.microsoft.com/en-us/azure/virtual-machines/generalize>)\n * Linux custom images\n * Windows custom images\n * VM Image Builder\n * [Overview](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/learn.microsoft.com/en-us/azure/virtual-machines/image-builder-overview>)\n * CLI\n * PowerShell\n * Security\n * [Isolated image builds](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/learn.microsoft.com/en-us/azure/virtual-machines/security-isolated-image-builds-image-builder>)\n * [Security controls by Azure Policy](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/learn.microsoft.com/en-us/azure/virtual-machines/security-controls-policy-image-builder>)\n * Use a virtual network\n * [Networking options](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/learn.microsoft.com/en-us/azure/virtual-machines/linux/image-builder-networking>)\n * Configure permissions\n * [DevOps task](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/learn.microsoft.com/en-us/azure/virtual-machines/linux/image-builder-devops-task>)\n * [VM Image Builder template reference](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/learn.microsoft.com/en-us/azure/virtual-machines/linux/image-builder-json>)\n * Build for image galleries\n * Update an existing image\n * [How to enable automatic image creation](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/learn.microsoft.com/en-us/azure/virtual-machines/image-builder-triggers-how-to>)\n * [Store scripts](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/learn.microsoft.com/en-us/azure/virtual-machines/linux/image-builder-user-assigned-identity>)\n * [What's new in Azure VM Image Builder](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/learn.microsoft.com/en-us/azure/virtual-machines/image-builder-api-update-release-notes>)\n * [Troubleshoot](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/learn.microsoft.com/en-us/azure/virtual-machines/linux/image-builder-troubleshoot>)\n * [Best practices](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/learn.microsoft.com/en-us/azure/virtual-machines/image-builder-best-practices>)\n * [Connecting to Build VM](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/learn.microsoft.com/en-us/azure/virtual-machines/linux/image-builder-connect-to-build-vm>)\n * [Image Builder Reliability](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/learn.microsoft.com/en-us/azure/reliability/reliability-image-builder?toc=/azure/virtual-machines/toc.json&bc=/azure/virtual-machines/breadcrumb/toc.json>)\n * [Image Optimization](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/learn.microsoft.com/en-us/azure/virtual-machines/vm-boot-optimization>)\n * Build image with Packer\n * [Capture a legacy managed image](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/learn.microsoft.com/en-us/azure/virtual-machines/capture-image-resource>)\n * Dedicated hosts\n * Azure Spot Virtual Machines\n * [Azure Boost](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/learn.microsoft.com/en-us/azure/azure-boost/overview>)\n * Azure Hybrid Benefit\n * Reserved instances\n * Capacity reservation\n * Create Virtual Machines\n * [Auto-shutdown a VM](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/learn.microsoft.com/en-us/azure/virtual-machines/auto-shutdown-vm>)\n * Hibernating Virtual Machines\n * [Delete a VM and its resources](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/learn.microsoft.com/en-us/azure/virtual-machines/delete>)\n * Connect to Virtual Machines\n * Time sync\n * Run Command\n * Extensions\n * [Nested virtualization](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/learn.microsoft.com/en-us/virtualization/hyper-v-on-windows/user-guide/nested-virtualization>)\n * Migrate to Azure Resource Manager\n * [Estimated VM cost card in Portal (Preview)](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/learn.microsoft.com/en-us/azure/virtual-machines/estimated-vm-create-cost-card>)\n * Availability and scale\n * Disks\n * Networking\n * Security\n * Updates and maintenance\n * Monitoring\n * Backup and recovery\n * Reliability in Virtual Machines\n * Infrastructure automation\n * Cost optimization\n * Resources\n * [Support and troubleshooting](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/learn.microsoft.com/en-us/azure/virtual-machines/vm-support-help>)\n\nDownload PDF\n 1. [ Learn ](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/learn.microsoft.com/en-us/>)\n 2. [ Azure ](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/learn.microsoft.com/en-us/azure/>)\n 3. [ Virtual Machines ](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/learn.microsoft.com/en-us/azure/virtual-machines/>)\n\n 1. [Learn](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/learn.microsoft.com/en-us/>)\n 2. [Azure](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/learn.microsoft.com/en-us/azure/>)\n 3. [Virtual Machines](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/learn.microsoft.com/en-us/azure/virtual-machines/>)\n\n[ Read in English ](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/learn.microsoft.com/en-us/azure/virtual-machines/security-isolated-image-builds-image-builder> \"Read in English\") Save\n * Add to Collections\n * Add to Plan\n\n[ ](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/github.com/MicrosoftDocs/azure-compute-docs/blob/main/articles/virtual-machines/security-isolated-image-builds-image-builder.md> \"Edit This Document\")\nTable of contents[ Read in English ](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/learn.microsoft.com/en-us/azure/virtual-machines/security-isolated-image-builds-image-builder> \"Read in English\") Add to Collections Add to Plan [ Edit ](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/github.com/MicrosoftDocs/azure-compute-docs/blob/main/articles/virtual-machines/security-isolated-image-builds-image-builder.md> \"Edit This Document\")\n#### Share via\n[ Facebook ](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fazure%2Fvirtual-machines%2Fsecurity-isolated-image-builds-image-builder%3FWT.mc_id%3Dfacebook>) [ x.com ](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/twitter.com/intent/tweet?original_referer=https%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fazure%2Fvirtual-machines%2Fsecurity-isolated-image-builds-image-builder%3FWT.mc_id%3Dtwitter&text=Today%20I%20completed%20%22Isolated%20Image%20Builds%20for%20Azure%20VM%20Image%20Builder%20-%20Azure%20Virtual%20Machines%20%7C%20Microsoft%20Learn%22!%20I'm%20so%20proud%20to%20be%20celebrating%20this%20achievement%20and%20hope%20this%20inspires%20you%20to%20start%20your%20own%20%40MicrosoftLearn%20journey!&tw_p=tweetbutton&url=https%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fazure%2Fvirtual-machines%2Fsecurity-isolated-image-builds-image-builder%3FWT.mc_id%3Dtwitter>) [ LinkedIn ](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/www.linkedin.com/feed/?shareActive=true&text=Today%20I%20completed%20%22Isolated%20Image%20Builds%20for%20Azure%20VM%20Image%20Builder%20-%20Azure%20Virtual%20Machines%20%7C%20Microsoft%20Learn%22!%20I'm%20so%20proud%20to%20be%20celebrating%20this%20achievement%20and%20hope%20this%20inspires%20you%20to%20start%20your%20own%20%40MicrosoftLearn%20journey!%0A%0D%0Ahttps%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fazure%2Fvirtual-machines%2Fsecurity-isolated-image-builds-image-builder%3FWT.mc_id%3Dlinkedin>) Email Print\nTable of contents\n# Isolated Image Builds for Azure VM Image Builder\n * Article\n * 09/06/2024\n * 4 contributors\n\nFeedback"
}
] |
[
{
"from": "system",
"value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation."
},
{
"from": "human",
"value": "Can you explain In this article?"
},
{
"from": "gpt",
"value": "1. [Advantages of Isolated Image Builds](https://learn.microsoft.com/en-us/azure/virtual-machines/<#advantages-of-isolated-image-builds>)\n 2. [Network topologies](https://learn.microsoft.com/en-us/azure/virtual-machines/<#network-topologies>)\n 3. [Backward compatibility](https://learn.microsoft.com/en-us/azure/virtual-machines/<#backward-compatibility>)\n 4. [Next steps](https://learn.microsoft.com/en-us/azure/virtual-machines/<#next-steps>)\n\nIsolated Image Builds is a feature of Azure VM Image Builder (AIB). It transitions the core process of VM image customization/validation from shared platform infrastructure to dedicated Azure Container Instances (ACI) resources in your subscription, providing compute and network isolation.\n[](https://learn.microsoft.com/en-us/azure/virtual-machines/<#advantages-of-isolated-image-builds>)"
}
] |
[
{
"from": "system",
"value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation."
},
{
"from": "human",
"value": "Can you explain Advantages of Isolated Image Builds?"
},
{
"from": "gpt",
"value": "Isolated Image Builds enables defense-in-depth by limiting network access of your build VM to just your subscription. Isolated Image Builds also provides you with more transparency by allowing your inspection of the processing done by AIB to customize/validate your VM image. Further, Isolated Image Builds eases viewing of live build logs. Specifically:\n 1. **Compute Isolation:** Isolated Image Builds performs major portion of image building processing in ACI resources in your subscription instead of on AIB's shared platform resources. ACI provides hypervisor isolation for each container group to ensure containers run in isolation without sharing a kernel.\n 2. **Network Isolation:** Isolated Image Builds removes all direct network WinRM/ssh communication between your build VM and backend components of the AIB service.\n * If you're provisioning an AIB template without your own subnet for build VM, then a Public IP Address resource is no more provisioned in your staging resource group at image build time.\n * If you're provisioning an AIB template with an existing subnet for build VM, then a Private Link based communication channel is no more setup between your build VM and AIB's backend platform resources. Instead, the communication channel is set up between the ACI and the build VM resources - both of which reside in the staging resource group in your subscription.\n * Starting API version 2024-02-01, you can specify a second subnet for deploying the ACI in addition to the subnet for build VM. If specified, AIB deploys ACI on this subnet and there's no need for AIB to set up the Private Link based communication channel between the ACI and the build VM. For more information about the second subnet, see the section [here](https://learn.microsoft.com/en-us/azure/virtual-machines/<security-isolated-image-builds-image-builder#bring-your-own-build-vm-subnet-and-bring-your-own-aci-subnet>).\n 3. **Transparency:** AIB is built on HashiCorp [Packer](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/www.packer.io/>). Isolated Image Builds executes Packer in the ACI in your subscription, which allows you to inspect the ACI resource and its containers. Similarly, having the entire network communication pipeline in your subscription allows you to inspect all the network resources, their settings, and their allowances.\n 4. **Better viewing of live logs:** AIB writes customization logs to a storage account in the staging resource group in your subscription. Isolated Image Builds provides with another way to follow the same logs directly in the Azure portal, which can be done by navigating to AIB's container in the ACI resource.\n\nNote\nTo access the live logs during the image build or the customization and validation log files after the build is complete, please refer to the [troubleshooting guide](https://learn.microsoft.com/en-us/azure/virtual-machines/<linux/image-builder-troubleshoot#accessing-live-logs-during-image-build>).\n[](https://learn.microsoft.com/en-us/azure/virtual-machines/<#network-topologies>)"
}
] |
[
{
"from": "system",
"value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation."
},
{
"from": "human",
"value": "Can you explain Network topologies?"
},
{
"from": "gpt",
"value": "Isolated Image Builds deploys the ACI and the build VM both in the staging resource group in your subscription. For AIB to customize/validate your image, container instances running in the ACI need to have a network path to the build VM. Based on your custom networking needs and policies, you can configure AIB to use different network topologies for this purpose:\n[](https://learn.microsoft.com/en-us/azure/virtual-machines/<#dont-bring-your-own-build-vm-subnet>)"
}
] |
[
{
"from": "system",
"value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation."
},
{
"from": "human",
"value": "Can you explain Don't bring your own Build VM subnet?"
},
{
"from": "gpt",
"value": "* You can select this topology by not specifying the `vnetConfig` field in the Image Template or by specifying the field but without `subnetId` and `containerInstanceSubnetId` subfields.\n * In this case, AIB deploys a Virtual Network in the staging resource group along with two subnets and Network Security Groups (NSGs). One of the subnets is used to deploy the ACI, while the other subnet is used to deploy the Build VM. NSGs are set up to allow communication between the two subnets.\n * AIB doesn't deploy a Public IP resource or a Private link based communication pipeline in this case.\n\n[](https://learn.microsoft.com/en-us/azure/virtual-machines/<#bring-your-own-build-vm-subnet-but-dont-bring-your-own-aci-subnet>)"
}
] |
[
{
"from": "system",
"value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation."
},
{
"from": "human",
"value": "Can you explain Bring your own Build VM subnet but don't bring your own ACI subnet?"
},
{
"from": "gpt",
"value": "* You can select this topology by specifying the `vnetConfig` field along with the `subnetId` subfield, but not the `containerInstanceSubnetId` subfield in the Image Template.\n * In this case, AIB deploys a temporary Virtual Network in the staging resource group along with two subnets and Network Security Groups (NSGs). One of the subnets is used to deploy the ACI, while the other subnet is used to deploy the Private Endpoint resource. The build VM is deployed in your specified subnet. A Private link based communication pipeline consisting of a Private Endpoint, Private Link Service, Azure Load Balancer, and Proxy Virtual Machine is also deployed in the staging resource group to facilitate communication between the ACI subnet and your build VM subnet.\n\n[](https://learn.microsoft.com/en-us/azure/virtual-machines/<#bring-your-own-build-vm-subnet-and-bring-your-own-aci-subnet>)"
}
] |
[
{
"from": "system",
"value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation."
},
{
"from": "human",
"value": "Can you explain Bring your own Build VM subnet and bring your own ACI subnet?"
},
{
"from": "gpt",
"value": "* You can select this topology by specifying the `vnetConfig` field along with the `subnetId` & `containerInstanceSubnetId` subfields in the Image Template. This option (and subfield `containerInstanceSubnetId`) is available starting API version 2024-02-01. You can also update your existing templates to use this topology.\n * In this case, AIB deploys build VM to the specified build VM subnet and ACI to the specified ACI subnet.\n * AIB doesn't deploy any of the networking resources in the staging resource group including Public IP, Virtual Network, subnets, Network Security Groups, Private Endpoint, Private Link Service, Azure Load Balancer, and Proxy Virtual Machine. This topology can be used if you have quota restrictions or policies disallowing deployment of these resources.\n * The ACI subnet must meet certain conditions to allow its use with Isolated Image Builds.\n\nYou can see details about these fields in the [template reference](https://learn.microsoft.com/en-us/azure/virtual-machines/<linux/image-builder-json#vnetconfig-optional>). Networking options are discussed in detail [here](https://learn.microsoft.com/en-us/azure/virtual-machines/<linux/image-builder-networking>).\n[](https://learn.microsoft.com/en-us/azure/virtual-machines/<#backward-compatibility>)"
}
] |
[
{
"from": "system",
"value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation."
},
{
"from": "human",
"value": "Can you explain Backward compatibility?"
},
{
"from": "gpt",
"value": "Isolated Image Builds is a platform level change and doesn't affect AIB's interfaces. So, your existing Image Template and Trigger resources continue to function and there's no change in the way you deploy new resources of these types. You need to create new templates or update existing templates if you want to use [the network topology allowing bringing your own ACI subnet](https://learn.microsoft.com/en-us/azure/virtual-machines/<security-isolated-image-builds-image-builder#bring-your-own-build-vm-subnet-and-bring-your-own-aci-subnet>).\nYour image builds are automatically migrated to Isolated Image Builds and you need to take no action to opt in. Also, customization logs continue to be available in the storage account.\nDepending on the network topology specified in the Image Template, you might observe a few new resources temporarily appear in the staging resource group (for example, ACI, Virtual Network, Network Security Group, and Private Endpoint) while some other resources no longer appear (for example, Public IP Address). As earlier, these temporary resources exist only during the build and AIB deletes them thereafter.\nImportant\nMake sure your subscription is registered for `Microsoft.ContainerInstance provider`:\n * Azure CLI: `az provider register -n Microsoft.ContainerInstance`\n * PowerShell: `Register-AzResourceProvider -ProviderNamespace Microsoft.ContainerInstance`\n\nAfter successfully registering your subscription, make sure there are no Azure Policies in your subscription that deny deployment of ACI resoures. Policies allowing only a restricted set of resource types not including ACI would cause Isolated Image Builds to fail.\nEnsure that your subscription also has a sufficient [quota of resources](https://learn.microsoft.com/en-us/azure/virtual-machines/<../container-instances/container-instances-resource-and-quota-limits>) required for deployment of ACI resources.\nImportant\nDepending on the network topology specified in the Image Template, AIB may need to deploy temporary networking related resources in the staging resource group in your subscription. Ensure that no Azure Policies deny the deployment of such resources (Virtual Network with Subnets, Network Security Group, Private endpoint) in the resource group.\nIf you have Azure Policies applying DDoS protection plans to any newly created Virtual Network, either relax the Policy for the resource group or ensure that the Template Managed Identity has permissions to join the plan. Alternatively, you can use the network topology that does not require deployment of a new Virtual Network by AIB.\nImportant\nMake sure you follow all [best practices](https://learn.microsoft.com/en-us/azure/virtual-machines/<image-builder-best-practices>) while using AIB.\nNote\nAIB is in the process of rolling this change out to all locations and customers. Some of these details (especially around deployment of new Networking related resources) might change as the process is fine-tuned based on service telemetry and feedback. For any errors, please refer to the [troubleshooting guide](https://learn.microsoft.com/en-us/azure/virtual-machines/<linux/image-builder-troubleshoot#troubleshoot-build-failures>).\n[](https://learn.microsoft.com/en-us/azure/virtual-machines/<#next-steps>)"
}
] |
[
{
"from": "system",
"value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation."
},
{
"from": "human",
"value": "Can you explain Next steps?"
},
{
"from": "gpt",
"value": "* [Azure VM Image Builder overview](https://learn.microsoft.com/en-us/azure/virtual-machines/<image-builder-overview>)\n * [Getting started with Azure Container Instances](https://learn.microsoft.com/en-us/azure/virtual-machines/<../container-instances/container-instances-overview>)\n * [Securing your Azure resources](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/security/fundamentals/overview>)\n * [Troubleshooting guide for Azure VM Image Builder](https://learn.microsoft.com/en-us/azure/virtual-machines/<linux/image-builder-troubleshoot#troubleshoot-build-failures>)"
}
] |
[
{
"from": "system",
"value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation."
},
{
"from": "human",
"value": "Can you explain Feedback?"
},
{
"from": "gpt",
"value": "Was this page helpful?\nYes No\n[ Provide product feedback ](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/feedback.azure.com/d365community/forum/ec2f1827-be25-ec11-b6e6-000d3a4f0f1c>)|\n[ Get help at Microsoft Q&A ](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/learn.microsoft.com/answers/tags/94/azure-virtual-machines/>)"
}
] |
[
{
"from": "system",
"value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation."
},
{
"from": "human",
"value": "Can you explain Additional resources?"
},
{
"from": "gpt",
"value": "[ English (United States)](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/locale?target=https%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fazure%2Fvirtual-machines%2Fsecurity-isolated-image-builds-image-builder>)\n[ California Consumer Privacy Act (CCPA) Opt-Out Icon Your Privacy Choices ](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/aka.ms/yourcaliforniaprivacychoices>)\nTheme\n * Light\n * Dark\n * High contrast\n\n * [Previous Versions](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/previous-versions/>)\n * [Blog](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/techcommunity.microsoft.com/t5/microsoft-learn-blog/bg-p/MicrosoftLearnBlog>)\n * [Contribute](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/contribute/>)\n * [Privacy](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/go.microsoft.com/fwlink/?LinkId=521839>)\n * [Terms of Use](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/legal/termsofuse>)\n * [Trademarks](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/www.microsoft.com/legal/intellectualproperty/Trademarks/>)\n * © Microsoft 2025"
}
] |
[
{
"from": "system",
"value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation."
},
{
"from": "human",
"value": "Can you explain In this article?"
},
{
"from": "gpt",
"value": "[ English (United States)](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/locale?target=https%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fazure%2Fvirtual-machines%2Fsecurity-isolated-image-builds-image-builder>)\n[ California Consumer Privacy Act (CCPA) Opt-Out Icon Your Privacy Choices ](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/aka.ms/yourcaliforniaprivacychoices>)\nTheme\n * Light\n * Dark\n * High contrast\n\n * [Previous Versions](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/previous-versions/>)\n * [Blog](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/techcommunity.microsoft.com/t5/microsoft-learn-blog/bg-p/MicrosoftLearnBlog>)\n * [Contribute](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/contribute/>)\n * [Privacy](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/go.microsoft.com/fwlink/?LinkId=521839>)\n * [Terms of Use](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/legal/termsofuse>)\n * [Trademarks](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/www.microsoft.com/legal/intellectualproperty/Trademarks/>)\n * © Microsoft 2025"
}
] |
[
{
"from": "system",
"value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation."
},
{
"from": "human",
"value": "Can you explain [Skip to main content](https://learn.microsoft.com/en-us/azure/virtual-machines/<#main>)?"
},
{
"from": "gpt",
"value": "This browser is no longer supported.\nUpgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.\n[Download Microsoft Edge](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/go.microsoft.com/fwlink/p/?LinkID=2092881 >) [More info about Internet Explorer and Microsoft Edge](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/learn.microsoft.com/en-us/lifecycle/faq/internet-explorer-microsoft-edge>)\n[ Learn ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/>) [ ](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/www.microsoft.com>)\nSuggestions will filter as you type\n[ Sign in ](https://learn.microsoft.com/en-us/azure/virtual-machines/<#>)\n * [ Profile ](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/learn.microsoft.com/en-us/users/me/activity/>)\n * [ Settings ](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/learn.microsoft.com/en-us/users/me/settings/>)\n\n[ Sign out ](https://learn.microsoft.com/en-us/azure/virtual-machines/<#>)\n[ ](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/www.microsoft.com>) [ Learn ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/>)\n * Discover\n * [ Documentation ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/docs/>)\nIn-depth articles on Microsoft developer tools and technologies\n * [ Training ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/training/>)\nPersonalized learning paths and courses\n * [ Credentials ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/credentials/>)\nGlobally recognized, industry-endorsed credentials\n * [ Q&A ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/answers/>)\nTechnical questions and answers moderated by Microsoft\n * [ Code Samples ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/samples/>)\nCode sample library for Microsoft developer tools and technologies\n * [ Assessments ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/assessments/>)\nInteractive, curated guidance and recommendations\n * [ Shows ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/shows/>)\nThousands of hours of original programming from Microsoft experts\nMicrosoft Learn for Organizations\n[ Boost your team's technical skills ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/training/organizations/>)\nAccess curated resources to upskill your team and close skills gaps.\n * Product documentation\n * [ ASP.NET ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/aspnet/>)\n * [ Azure ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/>)\n * [ Dynamics 365 ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/dynamics365/>)\n * [ Microsoft 365 ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/microsoft-365/>)\n * [ Microsoft Copilot ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/copilot/>)\n * [ Microsoft Edge ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/microsoft-edge/>)\n * [ Microsoft Entra ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/entra/>)\n * [ Microsoft Graph ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/graph/>)\n * [ Microsoft Intune ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/mem/>)\n * [ Microsoft Purview ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/purview/>)\n * [ Microsoft Teams ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/microsoftteams/>)\n * [ .NET ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/dotnet/>)\n * [ Power Apps ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/power-apps/>)\n * [ Power BI ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/power-bi/>)\n * [ Power Platform ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/power-platform/>)\n * [ PowerShell ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/powershell/>)\n * [ SQL ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/sql/>)\n * [ Sysinternals ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/sysinternals/>)\n * [ Visual Studio ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/visualstudio/>)\n * [ Windows ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/windows/>)\n * [ Windows Server ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/windows-server/>)\n[ View all products ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/docs/>)\nMicrosoft Learn for Organizations\n[ Boost your team's technical skills ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/training/organizations/>)\nAccess curated resources to upskill your team and close skills gaps.\n * Development languages\n * [ C++ ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/cpp/>)\n * [ C# ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/dotnet/csharp/>)\n * [ DAX ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/dax/>)\n * [ Java ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/java/>)\n * [ OData ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/odata/>)\n * [ OpenAPI ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/openapi/>)\n * [ Power Query M ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/powerquery-m/>)\n * [ VBA ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/office/vba/>)\nMicrosoft Learn for Organizations\n[ Boost your team's technical skills ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/training/organizations/>)\nAccess curated resources to upskill your team and close skills gaps.\n * Topics\n * [ Artificial intelligence ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/ai/>)\n * [ Compliance ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/compliance/>)\n * [ DevOps ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/devops/>)\n * [ Platform engineering ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/platform-engineering/>)\n * [ Security ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/security/>)\nMicrosoft Learn for Organizations\n[ Boost your team's technical skills ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/training/organizations/>)\nAccess curated resources to upskill your team and close skills gaps.\n\nSuggestions will filter as you type\n[ Sign in ](https://learn.microsoft.com/en-us/azure/virtual-machines/<#>)\n * [ Profile ](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/learn.microsoft.com/en-us/users/me/activity/>)\n * [ Settings ](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/learn.microsoft.com/en-us/users/me/settings/>)\n\n[ Sign out ](https://learn.microsoft.com/en-us/azure/virtual-machines/<#>)\n[ Azure ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/>)\n * Products\n * Popular products\n * [ Azure AI Services ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/ai-services/>)\n * [ Azure App Service ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/app-service/>)\n * [ Azure Databricks ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/databricks/>)\n * [ Azure DevOps ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/devops/>)\n * [ Azure Functions ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/azure-functions/>)\n * [ Azure Monitor ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/azure-monitor/>)\n * [ Azure Virtual Machines ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/virtual-machines/>)\n * Popular categories\n * [ Compute ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/?product=compute>)\n * [ Networking ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/?product=networking>)\n * [ Storage ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/?product=storage>)\n * [ AI & machine learning ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/?product=ai-machine-learning>)\n * [ Analytics ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/?product=analytics>)\n * [ Databases ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/?product=databases>)\n * [ Security ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/?product=security>)\n * [ View all products ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/>)\n * Architecture\n * [ Cloud Adoption Framework ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/cloud-adoption-framework/>)\n * [ Well-Architected Framework ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/well-architected/>)\n * [ Azure Architecture Center ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/architecture/>)\n * Develop\n * [ Python ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/developer/python/>)\n * [ .NET ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/dotnet/azure/>)\n * [ JavaScript ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/developer/javascript/>)\n * [ Java ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/developer/java/>)\n * [ PowerShell ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/powershell/azure/>)\n * [ Azure CLI ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/cli/azure/>)\n * [ View all developer resources ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/developer/>)\n * Learn Azure\n * [ Start your AI learning assessment ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/assessments/1c032171-8ca0-4032-8962-a38a5cc424a8/>)\n * Top learning paths\n * [ Cloud concepts ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/training/paths/microsoft-azure-fundamentals-describe-cloud-concepts/>)\n * [ AI fundamentals ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/training/paths/get-started-with-artificial-intelligence-on-azure/>)\n * [ Intro to generative AI ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/training/paths/introduction-generative-ai/>)\n * [ Azure Architecture fundamentals ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/training/paths/azure-fundamentals-describe-azure-architecture-services/>)\n * [ Earn credentials ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/credentials/browse/?products=azure>)\n * [ Instructor-led courses ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/training/browse/?products=azure&resource_type=course>)\n * [ View all training ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/training/azure/>)\n * [ Troubleshooting ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/troubleshoot/azure/>)\n * Resources\n * [ Product overview ](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/azure.microsoft.com/get-started>)\n * [ Latest blog posts ](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/azure.microsoft.com/blog/>)\n * [ Pricing information ](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/azure.microsoft.com/pricing/>)\n * [ Support options ](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/azure.microsoft.com/support/options/>)\n * More\n * Products\n * Popular products\n * [ Azure AI Services ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/ai-services/>)\n * [ Azure App Service ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/app-service/>)\n * [ Azure Databricks ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/databricks/>)\n * [ Azure DevOps ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/devops/>)\n * [ Azure Functions ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/azure-functions/>)\n * [ Azure Monitor ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/azure-monitor/>)\n * [ Azure Virtual Machines ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/virtual-machines/>)\n * Popular categories\n * [ Compute ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/?product=compute>)\n * [ Networking ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/?product=networking>)\n * [ Storage ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/?product=storage>)\n * [ AI & machine learning ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/?product=ai-machine-learning>)\n * [ Analytics ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/?product=analytics>)\n * [ Databases ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/?product=databases>)\n * [ Security ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/?product=security>)\n * [ View all products ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/>)\n * Architecture\n * [ Cloud Adoption Framework ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/cloud-adoption-framework/>)\n * [ Well-Architected Framework ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/well-architected/>)\n * [ Azure Architecture Center ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/architecture/>)\n * Develop\n * [ Python ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/developer/python/>)\n * [ .NET ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/dotnet/azure/>)\n * [ JavaScript ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/developer/javascript/>)\n * [ Java ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/developer/java/>)\n * [ PowerShell ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/powershell/azure/>)\n * [ Azure CLI ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/cli/azure/>)\n * [ View all developer resources ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/developer/>)\n * Learn Azure\n * [ Start your AI learning assessment ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/assessments/1c032171-8ca0-4032-8962-a38a5cc424a8/>)\n * Top learning paths\n * [ Cloud concepts ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/training/paths/microsoft-azure-fundamentals-describe-cloud-concepts/>)\n * [ AI fundamentals ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/training/paths/get-started-with-artificial-intelligence-on-azure/>)\n * [ Intro to generative AI ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/training/paths/introduction-generative-ai/>)\n * [ Azure Architecture fundamentals ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/training/paths/azure-fundamentals-describe-azure-architecture-services/>)\n * [ Earn credentials ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/credentials/browse/?products=azure>)\n * [ Instructor-led courses ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/training/browse/?products=azure&resource_type=course>)\n * [ View all training ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/training/azure/>)\n * [ Troubleshooting ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/troubleshoot/azure/>)\n * Resources\n * [ Product overview ](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/azure.microsoft.com/get-started>)\n * [ Latest blog posts ](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/azure.microsoft.com/blog/>)\n * [ Pricing information ](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/azure.microsoft.com/pricing/>)\n * [ Support options ](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/azure.microsoft.com/support/options/>)\n\n[ Portal ](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/portal.azure.com>) [ Free account ](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/azure.microsoft.com/free/>)\nTable of contents Exit focus mode\nSearch\nSuggestions will filter as you type\n * [Virtual Machines Documentation](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/learn.microsoft.com/en-us/azure/virtual-machines/>)\n * [Overview](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/learn.microsoft.com/en-us/azure/virtual-machines/overview>)\n * Quickstarts\n * Create a Linux VM\n * Create a Windows VM\n * Create a Virtual Machine Scale Set\n * Tutorials\n * Develop\n * Workloads\n * Instances\n * Sizes\n * Azure Compute Gallery\n * Images\n * Dedicated hosts\n * Azure Spot Virtual Machines\n * [Azure Boost](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/learn.microsoft.com/en-us/azure/azure-boost/overview>)\n * Azure Hybrid Benefit\n * Reserved instances\n * Capacity reservation\n * [Overview](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/learn.microsoft.com/en-us/azure/virtual-machines/capacity-reservation-overview>)\n * [Create a capacity reservation](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/learn.microsoft.com/en-us/azure/virtual-machines/capacity-reservation-create>)\n * [Overallocating capacity reservation](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/learn.microsoft.com/en-us/azure/virtual-machines/capacity-reservation-overallocate>)\n * [Modify a capacity reservation](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/learn.microsoft.com/en-us/azure/virtual-machines/capacity-reservation-modify>)\n * [Associate a VM](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/learn.microsoft.com/en-us/azure/virtual-machines/capacity-reservation-associate-vm>)\n * [Remove a VM](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/learn.microsoft.com/en-us/azure/virtual-machines/capacity-reservation-remove-vm>)\n * [Associate a scale set - Flexible](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/learn.microsoft.com/en-us/azure/virtual-machines/capacity-reservation-associate-virtual-machine-scale-set-flex>)\n * [Associate a scale set - Uniform](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/learn.microsoft.com/en-us/azure/virtual-machines/capacity-reservation-associate-virtual-machine-scale-set>)\n * [Remove a scale set](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/learn.microsoft.com/en-us/azure/virtual-machines/capacity-reservation-remove-virtual-machine-scale-set>)\n * Create Virtual Machines\n * [Auto-shutdown a VM](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/learn.microsoft.com/en-us/azure/virtual-machines/auto-shutdown-vm>)\n * Hibernating Virtual Machines\n * [Delete a VM and its resources](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/learn.microsoft.com/en-us/azure/virtual-machines/delete>)\n * Connect to Virtual Machines\n * Time sync\n * Run Command\n * Extensions\n * [Nested virtualization](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/learn.microsoft.com/en-us/virtualization/hyper-v-on-windows/user-guide/nested-virtualization>)\n * Migrate to Azure Resource Manager\n * [Estimated VM cost card in Portal (Preview)](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/learn.microsoft.com/en-us/azure/virtual-machines/estimated-vm-create-cost-card>)\n * Availability and scale\n * Disks\n * Networking\n * Security\n * Updates and maintenance\n * Monitoring\n * Backup and recovery\n * Reliability in Virtual Machines\n * Infrastructure automation\n * Cost optimization\n * Resources\n * [Support and troubleshooting](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/learn.microsoft.com/en-us/azure/virtual-machines/vm-support-help>)\n\nDownload PDF\n 1. [ Learn ](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/learn.microsoft.com/en-us/>)\n 2. [ Azure ](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/learn.microsoft.com/en-us/azure/>)\n 3. [ Virtual Machines ](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/learn.microsoft.com/en-us/azure/virtual-machines/>)\n\n 1. [Learn](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/learn.microsoft.com/en-us/>)\n 2. [Azure](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/learn.microsoft.com/en-us/azure/>)\n 3. [Virtual Machines](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/learn.microsoft.com/en-us/azure/virtual-machines/>)\n\n[ Read in English ](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/learn.microsoft.com/en-us/azure/virtual-machines/capacity-reservation-associate-virtual-machine-scale-set?tabs=api1%2Capi2%2Capi3> \"Read in English\") Save\n * Add to Collections\n * Add to Plan\n\n[ ](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/github.com/MicrosoftDocs/azure-compute-docs/blob/main/articles/virtual-machines/capacity-reservation-associate-virtual-machine-scale-set.md> \"Edit This Document\")\nTable of contents[ Read in English ](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/learn.microsoft.com/en-us/azure/virtual-machines/capacity-reservation-associate-virtual-machine-scale-set?tabs=api1%2Capi2%2Capi3> \"Read in English\") Add to Collections Add to Plan [ Edit ](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/github.com/MicrosoftDocs/azure-compute-docs/blob/main/articles/virtual-machines/capacity-reservation-associate-virtual-machine-scale-set.md> \"Edit This Document\")\n#### Share via\n[ Facebook ](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fazure%2Fvirtual-machines%2Fcapacity-reservation-associate-virtual-machine-scale-set%3Ftabs%3Dapi1%252Capi2%252Capi3%26WT.mc_id%3Dfacebook>) [ x.com ](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/twitter.com/intent/tweet?original_referer=https%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fazure%2Fvirtual-machines%2Fcapacity-reservation-associate-virtual-machine-scale-set%3Ftabs%3Dapi1%252Capi2%252Capi3%26WT.mc_id%3Dtwitter&text=Today%20I%20completed%20%22Associate%20a%20virtual%20machine%20scale%20set%20with%20Uniform%20Orchestration%20to%20a%20capacity%20reservation%20group.%20-%20Azure%20Virtual%20Machines%20%7C%20Microsoft%20Learn%22!%20I'm%20so%20proud%20to%20be%20celebrating%20this%20achievement%20and%20hope%20this%20inspires%20you%20to%20start%20your%20own%20%40MicrosoftLearn%20journey!&tw_p=tweetbutton&url=https%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fazure%2Fvirtual-machines%2Fcapacity-reservation-associate-virtual-machine-scale-set%3Ftabs%3Dapi1%252Capi2%252Capi3%26WT.mc_id%3Dtwitter>) [ LinkedIn ](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/www.linkedin.com/feed/?shareActive=true&text=Today%20I%20completed%20%22Associate%20a%20virtual%20machine%20scale%20set%20with%20Uniform%20Orchestration%20to%20a%20capacity%20reservation%20group.%20-%20Azure%20Virtual%20Machines%20%7C%20Microsoft%20Learn%22!%20I'm%20so%20proud%20to%20be%20celebrating%20this%20achievement%20and%20hope%20this%20inspires%20you%20to%20start%20your%20own%20%40MicrosoftLearn%20journey!%0A%0D%0Ahttps%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fazure%2Fvirtual-machines%2Fcapacity-reservation-associate-virtual-machine-scale-set%3Ftabs%3Dapi1%252Capi2%252Capi3%26WT.mc_id%3Dlinkedin>) Email Print\nTable of contents\n# Associate a virtual machine scale set to Uniform Orchestration to a capacity reservation group\n * Article\n * 09/10/2024\n * 8 contributors\n\nFeedback"
}
] |
[
{
"from": "system",
"value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation."
},
{
"from": "human",
"value": "Can you explain In this article?"
},
{
"from": "gpt",
"value": "1. [Limitations of scale sets in Uniform Orchestration](https://learn.microsoft.com/en-us/azure/virtual-machines/<#limitations-of-scale-sets-in-uniform-orchestration>)\n 2. [Associate a new virtual machine scale set to a capacity reservation group](https://learn.microsoft.com/en-us/azure/virtual-machines/<#associate-a-new-virtual-machine-scale-set-to-a-capacity-reservation-group>)\n 3. [Associate an existing virtual machine scale set to a capacity reservation group](https://learn.microsoft.com/en-us/azure/virtual-machines/<#associate-an-existing-virtual-machine-scale-set-to-a-capacity-reservation-group>)\n 4. [View virtual machine scale set association with the Instance View](https://learn.microsoft.com/en-us/azure/virtual-machines/<#view-virtual-machine-scale-set-association-with-the-instance-view>)\n 5. [Region and availability zone considerations](https://learn.microsoft.com/en-us/azure/virtual-machines/<#region-and-availability-zone-considerations>)\n 6. [Next step](https://learn.microsoft.com/en-us/azure/virtual-machines/<#next-step>)\n\nShow 2 more\n**Applies to:** ✔️ Uniform scale set\nAzure Virtual Machine Scale Sets has two modes:\n * **Uniform Orchestration** : In this mode, virtual machine scale sets use a virtual machine (VM) profile or a template to scale up to the capacity you want. Although there's some ability to manage or customize individual VM instances, Uniform Orchestration uses identical VM instances. These instances are exposed through the virtual machine scale set's VM APIs and aren't compatible with the API commands that are standard for Azure infrastructure as a service (IaaS) VMs. Because the scale set performs all the actual VM operations, reservations are associated to the virtual machine scale set directly. After the scale set is associated to the reservation, all the subsequent VM allocations are done against the reservation.\n * **Flexible Orchestration** : In this mode, you get more flexibility to manage the individual virtual machine scale set VM instances. They can use the standard Azure IaaS VM APIs instead of by using the scale set interface. To use reservations with Flexible Orchestration mode, define both the virtual machine scale set property and the capacity reservation property on each VM.\n\nTo learn more about these modes, see [Virtual Machine Scale Sets orchestration modes](https://learn.microsoft.com/en-us/azure/virtual-machines/<../virtual-machine-scale-sets/virtual-machine-scale-sets-orchestration-modes>).\nThis content applies to the Uniform Orchestration mode. For Flexible Orchestration mode, see [Associate a virtual machine scale set with Flexible Orchestration to a capacity reservation group](https://learn.microsoft.com/en-us/azure/virtual-machines/<capacity-reservation-associate-virtual-machine-scale-set-flex>).\n[](https://learn.microsoft.com/en-us/azure/virtual-machines/<#limitations-of-scale-sets-in-uniform-orchestration>)"
}
] |
[
{
"from": "system",
"value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation."
},
{
"from": "human",
"value": "Can you explain Limitations of scale sets in Uniform Orchestration?"
},
{
"from": "gpt",
"value": "* For virtual machine scale sets in Uniform Orchestration to be compatible with capacity reservation, the `singlePlacementGroup` property must be set to `False`.\n * The **Static Fixed Spreading** availability option for multizone uniform scale sets isn't supported with capacity reservation. This option requires the use of five fault domains. However, the reservations only support up to three fault domains for general purpose sizes. The approach we recommend is to use the **Max Spreading** option that spreads VMs across as many fault domains as possible within each zone. If needed, configure a custom fault domain configuration of three or less.\n\nThere are some other restrictions when you use capacity reservations. For the complete list, see the [overview of capacity reservations](https://learn.microsoft.com/en-us/azure/virtual-machines/<capacity-reservation-overview>).\n[](https://learn.microsoft.com/en-us/azure/virtual-machines/<#associate-a-new-virtual-machine-scale-set-to-a-capacity-reservation-group>)"
}
] |
[
{
"from": "system",
"value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation."
},
{
"from": "human",
"value": "Can you explain Associate a new virtual machine scale set to a capacity reservation group?"
},
{
"from": "gpt",
"value": "Important\nStarting November 2023, virtual machine scale sets created by using PowerShell and the Azure CLI default to Flexible Orchestration mode if no orchestration mode is specified. For more information about this change and what actions you should take, see [Breaking Change for VMSS PowerShell/CLI Customers - Microsoft Community Hub](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/techcommunity.microsoft.com/t5/azure-compute-blog/breaking-change-for-vmss-powershell-cli-customers/ba-p/3818295>).\n * [API](https://learn.microsoft.com/en-us/azure/virtual-machines/<#tabpanel_1_api1>)\n * [CLI](https://learn.microsoft.com/en-us/azure/virtual-machines/<#tabpanel_1_cli1>)\n * [PowerShell](https://learn.microsoft.com/en-us/azure/virtual-machines/<#tabpanel_1_powershell1>)\n * [ARM template](https://learn.microsoft.com/en-us/azure/virtual-machines/<#tabpanel_1_arm1>)\n\nTo associate a new uniform virtual machine scale set to a capacity reservation group, construct the following `PUT` request to the `Microsoft.Compute` provider:\nrest Copy\n```\nPUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{VMScaleSetName}?api-version=2021-04-01\n\n```\n\nAdd the `capacityReservationGroup` property in the `virtualMachineProfile` property:\nJSON Copy\n```\n{\n \"name\": \"<VMScaleSetName>\",\n \"id\": \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{VMScaleSetName}\",\n \"type\": \"Microsoft.Compute/virtualMachineScaleSets\",\n \"location\": \"eastus\",\n \"sku\": {\n \"name\": \"Standard_D2s_v3\",\n \"tier\": \"Standard\",\n \"capacity\": 3\n},\n\"properties\": {\n \"virtualMachineProfile\": {\n \"capacityReservation\": {\n \"capacityReservationGroup\":{\n \"id\":\"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/CapacityReservationGroup/{CapacityReservationGroupName}\"\n }\n },\n \"osProfile\": {\n …\n },\n \"storageProfile\": {\n …\n },\n \"networkProfile\": {\n …,\n \"extensionProfile\": {\n …\n }\n }\n }\n\n```\n\nUse `az vmss create` to create a new virtual machine scale set and add the `capacity-reservation-group` property to associate the scale set to an existing capacity reservation group. The following example creates a uniform scale set for a Standard_Ds1_v2 VM in the East US location and associates the scale set to a capacity reservation group.\nAzure CLI Copy Open Cloud Shell\n```\naz vmss create\n--resource-group myResourceGroup\n--name myVMSS\n--location eastus\n--orchestration-mode Uniform\n--vm-sku Standard_Ds1_v2\n--image Ubuntu2204\n--capacity-reservation-group /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}\n\n```\n\nUse `New-AzVmss` to create a new virtual machine scale set and add the `CapacityReservationGroupId` property to associate the scale set to an existing capacity reservation group. The following example creates a uniform scale set for a Standard_Ds1_v2 VM in the East US location and associates the scale set to a capacity reservation group.\nPowerShell Copy Open Cloud Shell\n```\n$vmssName = <\"VMSSNAME\">\n$vmPassword = ConvertTo-SecureString <\"PASSWORD\"> -AsPlainText -Force\n$vmCred = New-Object System.Management.Automation.PSCredential(<\"USERNAME\">, $vmPassword)\nNew-AzVmss\n–Credential $vmCred\n-VMScaleSetName $vmssName\n-ResourceGroupName \"myResourceGroup\"\n-CapacityReservationGroupId \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}\"\n-OrchestrationMode \"Uniform\"\n-PlatformFaultDomainCount 2\n\n```\n\nTo learn more, see the Azure PowerShell command [New-AzVmss](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/powershell/module/az.compute/new-azvmss>).\nAn [Azure Resource Manager template (ARM template)](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/azure-resource-manager/templates/overview>) is a JSON file that defines the infrastructure and configuration for your project. The template uses declarative syntax. In declarative syntax, you describe your intended deployment without writing the sequence of programming commands to create the deployment.\nARM templates let you deploy groups of related resources. In a single template, you can create capacity reservation group and capacity reservations. You can deploy templates through the Azure portal, the Azure CLI, or Azure PowerShell, or from continuous integration/continuous delivery (CI/CD) pipelines.\nTo associate a Virtual Machine Scale Set with a Capacity Reservation Group, see the following ARM template. Replace the resource names with your own. The following example creates a VM scale set of SKU D2s_v3 and associates to a capacity reservation group.\nJSON Copy\n```\n{\n \"$schema\": \"https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#\",\n \"contentVersion\": \"1.0.0.0\",\n \"parameters\": {\n \"vmSku\": {\n \"type\": \"string\",\n \"defaultValue\": \"Standard_D2s_v3\",\n \"metadata\": {\n \"description\": \"Size of VMs in the VM Scale Set.\"\n }\n },\n \"windowsOSVersion\": {\n \"type\": \"string\",\n \"defaultValue\": \"2019-Datacenter\",\n \"allowedValues\": [\n \"2008-R2-SP1\",\n \"2012-Datacenter\",\n \"2012-R2-Datacenter\",\n \"2016-Datacenter\",\n \"2019-Datacenter\"\n ],\n \"metadata\": {\n \"description\": \"The Windows version for the VM. This will pick a fully patched image of this given Windows version. Allowed values: 2008-R2-SP1, 2012-Datacenter, 2012-R2-Datacenter & 2016-Datacenter, 2019-Datacenter.\"\n }\n },\n \"vmssName\": {\n \"type\": \"string\",\n \"minLength\": 3,\n \"maxLength\": 61,\n \"metadata\": {\n \"description\": \"String used as a base for naming resources. Must be 3-61 characters in length and globally unique across Azure. A hash is prepended to this string for some resources, and resource-specific information is appended.\"\n }\n },\n \"instanceCount\": {\n \"type\": \"int\",\n \"defaultValue\": 1,\n \"minValue\": 1,\n \"maxValue\": 100,\n \"metadata\": {\n \"description\": \"Number of VM instances (100 or less).\"\n }\n },\n \"singlePlacementGroup\": {\n \"type\": \"bool\",\n \"defaultValue\": false,\n \"metadata\": {\n \"description\": \"When true this limits the scale set to a single placement group, of max size 100 virtual machines. NOTE: If singlePlacementGroup is true, it may be modified to false. However, if singlePlacementGroup is false, it may not be modified to true.\"\n }\n },\n \"adminUsername\": {\n \"type\": \"string\",\n \"defaultValue\": \"vmssadmin\",\n \"metadata\": {\n \"description\": \"Admin username on all VMs.\"\n }\n },\n \"adminPassword\": {\n \"type\": \"securestring\",\n \"metadata\": {\n \"description\": \"Admin password on all VMs.\"\n }\n },\n \"_artifactsLocation\": {\n \"type\": \"string\",\n \"defaultValue\": \"https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/201-vmss-windows-webapp-dsc-autoscale/\",\n \"metadata\": {\n \"description\": \"The base URI where artifacts required by this template are located. For example, if stored on a public GitHub repo, you'd use the following URI: https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/201-vmss-windows-webapp-dsc-autoscale/.\"\n }\n },\n \"_artifactsLocationSasToken\": {\n \"type\": \"securestring\",\n \"defaultValue\": \"\",\n \"metadata\": {\n \"description\": \"The sasToken required to access _artifactsLocation. If your artifacts are stored on a public repo or public storage account you can leave this blank.\"\n }\n },\n \"powershelldscZip\": {\n \"type\": \"string\",\n \"defaultValue\": \"DSC/InstallIIS.zip\",\n \"metadata\": {\n \"description\": \"Location of the PowerShell DSC zip file relative to the URI specified in the _artifactsLocation, i.e. DSC/IISInstall.ps1.zip\"\n }\n },\n \"webDeployPackage\": {\n \"type\": \"string\",\n \"defaultValue\": \"WebDeploy/DefaultASPWebApp.v1.0.zip\",\n \"metadata\": {\n \"description\": \"Location of the of the WebDeploy package zip file relative to the URI specified in _artifactsLocation, i.e. WebDeploy/DefaultASPWebApp.v1.0.zip\"\n }\n },\n \"powershelldscUpdateTagVersion\": {\n \"type\": \"string\",\n \"defaultValue\": \"1.0\",\n \"metadata\": {\n \"description\": \"Version number of the DSC deployment. Changing this value on subsequent deployments will trigger the extension to run.\"\n }\n },\n \"location\": {\n \"type\": \"string\",\n \"defaultValue\": \"[resourceGroup().location]\",\n \"metadata\": {\n \"description\": \"Location for all resources.\"\n }\n },\n \"platformFaultDomainCount\": {\n \"type\": \"int\",\n \"defaultValue\": 1,\n \"metadata\": {\n \"description\": \"Fault Domain count for each placement group.\"\n }\n }\n },\n \"variables\": {\n \"namingInfix\": \"[toLower(substring(concat(parameters('vmssName'), uniqueString(resourceGroup().id)), 0, 9))]\",\n \"longNamingInfix\": \"[toLower(parameters('vmssName'))]\",\n \"addressPrefix\": \"10.0.0.0/16\",\n \"subnetPrefix\": \"10.0.0.0/24\",\n \"virtualNetworkName\": \"[concat(variables('namingInfix'), 'vnet')]\",\n \"publicIPAddressName\": \"[concat(variables('namingInfix'), 'pip')]\",\n \"subnetName\": \"[concat(variables('namingInfix'), 'subnet')]\",\n \"loadBalancerName\": \"[concat(variables('namingInfix'), 'lb')]\",\n \"publicIPAddressID\": \"[resourceId('Microsoft.Network/publicIPAddresses',variables('publicIPAddressName'))]\",\n \"lbProbeID\": \"[resourceId('Microsoft.Network/loadBalancers/probes',variables('loadBalancerName'), 'tcpProbe')]\",\n \"natPoolName\": \"[concat(variables('namingInfix'), 'natpool')]\",\n \"bePoolName\": \"[concat(variables('namingInfix'), 'bepool')]\",\n \"lbPoolID\": \"[resourceId('Microsoft.Network/loadBalancers/backendAddressPools',variables('loadBalancerName'),variables('bePoolName'))]\",\n \"natStartPort\": 50000,\n \"natEndPort\": 50119,\n \"natBackendPort\": 3389,\n \"nicName\": \"[concat(variables('namingInfix'), 'nic')]\",\n \"ipConfigName\": \"[concat(variables('namingInfix'), 'ipconfig')]\",\n \"frontEndIPConfigID\": \"[resourceId('Microsoft.Network/loadBalancers/frontendIPConfigurations',variables('loadBalancerName'),'loadBalancerFrontEnd')]\",\n \"osType\": {\n \"publisher\": \"MicrosoftWindowsServer\",\n \"offer\": \"WindowsServer\",\n \"sku\": \"[parameters('windowsOSVersion')]\",\n \"version\": \"latest\"\n },\n \"imageReference\": {\n \"publisher\": \"MicrosoftWindowsServer\",\n \"offer\": \"WindowsServer\",\n \"sku\": \"[parameters('windowsOSVersion')]\",\n \"version\": \"latest\"\n },\n \"webDeployPackageFullPath\": \"[uri(parameters('_artifactsLocation'), concat(parameters('webDeployPackage'), parameters('_artifactsLocationSasToken')))]\",\n \"powershelldscZipFullPath\": \"[uri(parameters('_artifactsLocation'), concat(parameters('powershelldscZip'), parameters('_artifactsLocationSasToken')))]\"\n },\n \"resources\": [\n {\n \"type\": \"Microsoft.Network/loadBalancers\",\n \"apiVersion\": \"2020-06-01\",\n \"name\": \"[variables('loadBalancerName')]\",\n \"location\": \"[parameters('location')]\",\n \"dependsOn\": [\n \"[resourceId('Microsoft.Network/publicIPAddresses', variables('publicIPAddressName'))]\"\n ],\n \"properties\": {\n \"frontendIPConfigurations\": [\n {\n \"name\": \"LoadBalancerFrontEnd\",\n \"properties\": {\n \"publicIPAddress\": {\n \"id\": \"[variables('publicIPAddressID')]\"\n }\n }\n }\n ],\n \"backendAddressPools\": [\n {\n \"name\": \"[variables('bePoolName')]\"\n }\n ],\n \"inboundNatPools\": [\n {\n \"name\": \"[variables('natPoolName')]\",\n \"properties\": {\n \"frontendIPConfiguration\": {\n \"id\": \"[variables('frontEndIPConfigID')]\"\n },\n \"protocol\": \"Tcp\",\n \"frontendPortRangeStart\": \"[variables('natStartPort')]\",\n \"frontendPortRangeEnd\": \"[variables('natEndPort')]\",\n \"backendPort\": \"[variables('natBackendPort')]\"\n }\n }\n ],\n \"loadBalancingRules\": [\n {\n \"name\": \"LBRule\",\n \"properties\": {\n \"frontendIPConfiguration\": {\n \"id\": \"[variables('frontEndIPConfigID')]\"\n },\n \"backendAddressPool\": {\n \"id\": \"[variables('lbPoolID')]\"\n },\n \"protocol\": \"Tcp\",\n \"frontendPort\": 80,\n \"backendPort\": 80,\n \"enableFloatingIP\": false,\n \"idleTimeoutInMinutes\": 5,\n \"probe\": {\n \"id\": \"[variables('lbProbeID')]\"\n }\n }\n }\n ],\n \"probes\": [\n {\n \"name\": \"tcpProbe\",\n \"properties\": {\n \"protocol\": \"Tcp\",\n \"port\": 80,\n \"intervalInSeconds\": 5,\n \"numberOfProbes\": 2\n }\n }\n ]\n }\n },\n {\n \"type\": \"Microsoft.Compute/virtualMachineScaleSets\",\n \"apiVersion\": \"2020-06-01\",\n \"name\": \"[variables('namingInfix')]\",\n \"location\": \"[parameters('location')]\",\n \"sku\": {\n \"name\": \"[parameters('vmSku')]\",\n \"tier\": \"Standard\",\n \"capacity\": \"[parameters('instanceCount')]\"\n },\n \"dependsOn\": [\n \"[resourceId('Microsoft.Network/loadBalancers', variables('loadBalancerName'))]\",\n \"[resourceId('Microsoft.Network/virtualNetworks', variables('virtualNetworkName'))]\"\n ],\n \"properties\": {\n \"overprovision\": true,\n \"upgradePolicy\": {\n \"mode\": \"Automatic\"\n },\n \"singlePlacementGroup\": \"[parameters('singlePlacementGroup')]\",\n \"platformFaultDomainCount\": \"[parameters('platformFaultDomainCount')]\",\n \"virtualMachineProfile\": {\n \"storageProfile\": {\n \"osDisk\": {\n \"caching\": \"ReadWrite\",\n \"createOption\": \"FromImage\"\n },\n \"imageReference\": \"[variables('imageReference')]\"\n },\n \"osProfile\": {\n \"computerNamePrefix\": \"[variables('namingInfix')]\",\n \"adminUsername\": \"[parameters('adminUsername')]\",\n \"adminPassword\": \"[parameters('adminPassword')]\"\n },\n \"networkProfile\": {\n \"networkInterfaceConfigurations\": [\n {\n \"name\": \"[variables('nicName')]\",\n \"properties\": {\n \"primary\": true,\n \"ipConfigurations\": [\n {\n \"name\": \"[variables('ipConfigName')]\",\n \"properties\": {\n \"subnet\": {\n \"id\": \"[resourceId('Microsoft.Network/virtualNetworks/subnets', variables('virtualNetworkName'), variables('subnetName'))]\"\n },\n \"loadBalancerBackendAddressPools\": [\n {\n \"id\": \"[variables('lbPoolID')]\"\n }\n ],\n \"loadBalancerInboundNatPools\": [\n {\n \"id\": \"[resourceId('Microsoft.Network/loadBalancers/inboundNatPools', variables('loadBalancerName'), variables('natPoolName'))]\"\n }\n ]\n }\n }\n ]\n }\n }\n ]\n },\n \"capacityReservation\": {\n \"capacityReservationGroup\": {\n \"id\":\"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{CapacityReservationGroupName}\"\n }\n }\n }\n }\n },\n {\n \"type\": \"Microsoft.Network/publicIPAddresses\",\n \"apiVersion\": \"2020-06-01\",\n \"name\": \"[variables('publicIPAddressName')]\",\n \"location\": \"[parameters('location')]\",\n \"properties\": {\n \"publicIPAllocationMethod\": \"Static\",\n \"dnsSettings\": {\n \"domainNameLabel\": \"[variables('longNamingInfix')]\"\n }\n }\n },\n {\n \"type\": \"Microsoft.Network/virtualNetworks\",\n \"apiVersion\": \"2020-06-01\",\n \"name\": \"[variables('virtualNetworkName')]\",\n \"location\": \"[parameters('location')]\",\n \"properties\": {\n \"addressSpace\": {\n \"addressPrefixes\": [\n \"[variables('addressPrefix')]\"\n ]\n },\n \"subnets\": [\n {\n \"name\": \"[variables('subnetName')]\",\n \"properties\": {\n \"addressPrefix\": \"[variables('subnetPrefix')]\"\n }\n }\n ]\n }\n },\n {\n \"type\": \"Microsoft.Insights/autoscaleSettings\",\n \"apiVersion\": \"2015-04-01\",\n \"name\": \"autoscalehost\",\n \"location\": \"[parameters('location')]\",\n \"dependsOn\": [\n \"[resourceId('Microsoft.Compute/virtualMachineScaleSets/', variables('namingInfix'))]\"\n ],\n \"properties\": {\n \"name\": \"autoscalehost\",\n \"targetResourceUri\": \"[resourceId('Microsoft.Compute/virtualMachineScaleSets', variables('namingInfix'))]\",\n \"enabled\": true,\n \"profiles\": [\n {\n \"name\": \"Profile1\",\n \"capacity\": {\n \"minimum\": \"1\",\n \"maximum\": \"10\",\n \"default\": \"1\"\n },\n \"rules\": [\n {\n \"metricTrigger\": {\n \"metricName\": \"Percentage CPU\",\n \"metricResourceUri\": \"[resourceId('Microsoft.Compute/virtualMachineScaleSets', variables('namingInfix'))]\",\n \"timeGrain\": \"PT1M\",\n \"statistic\": \"Average\",\n \"timeWindow\": \"PT5M\",\n \"timeAggregation\": \"Average\",\n \"operator\": \"GreaterThan\",\n \"threshold\": 50\n },\n \"scaleAction\": {\n \"direction\": \"Increase\",\n \"type\": \"ChangeCount\",\n \"value\": \"1\",\n \"cooldown\": \"PT5M\"\n }\n },\n {\n \"metricTrigger\": {\n \"metricName\": \"Percentage CPU\",\n \"metricResourceUri\": \"[resourceId('Microsoft.Compute/virtualMachineScaleSets', variables('namingInfix'))]\",\n \"timeGrain\": \"PT1M\",\n \"statistic\": \"Average\",\n \"timeWindow\": \"PT5M\",\n \"timeAggregation\": \"Average\",\n \"operator\": \"LessThan\",\n \"threshold\": 30\n },\n \"scaleAction\": {\n \"direction\": \"Decrease\",\n \"type\": \"ChangeCount\",\n \"value\": \"1\",\n \"cooldown\": \"PT5M\"\n }\n }\n ]\n }\n ]\n }\n }\n ],\n \"outputs\": {\n \"applicationUrl\": {\n \"type\": \"string\",\n \"value\": \"[concat('http://', reference(variables('publicIPAddressName')).dnsSettings.fqdn, '/MyApp')]\"\n }\n }\n}\n\n```\n\n[](https://learn.microsoft.com/en-us/azure/virtual-machines/<#associate-an-existing-virtual-machine-scale-set-to-a-capacity-reservation-group>)"
}
] |
[
{
"from": "system",
"value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation."
},
{
"from": "human",
"value": "Can you explain Associate an existing virtual machine scale set to a capacity reservation group?"
},
{
"from": "gpt",
"value": "To add an existing capacity reservation group to an existing uniform scale set:\n * Stop the scale set to deallocate the VM instances.\n * Update the scale set to use a matching capacity reservation group.\n * Start the scale set.\n\nThis process ensures that the placement for the capacity reservations and scale set in the region are compatible.\n[](https://learn.microsoft.com/en-us/azure/virtual-machines/<#important-notes-on-upgrade-policies>)"
}
] |
[
{
"from": "system",
"value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation."
},
{
"from": "human",
"value": "Can you explain Important notes on upgrade policies?"
},
{
"from": "gpt",
"value": "* **Automatic upgrade** : In this mode, the scale set VM instances are automatically associated to the capacity reservation group without any further action from you. When the scale set VMs are reallocated, they start consuming the reserved capacity.\n * **Rolling upgrade** : In this mode, scale set VM instances are associated to the capacity reservation group without any further action from you. However, they're updated in batches with an optional pause time between them. When the scale set VMs are reallocated, they start consuming the reserved capacity.\n * **Manual upgrade** : In this mode, nothing happens to the scale set VM instances when the virtual machine scale set is attached to a capacity reservation group. You need to update to each scale set VM by [upgrading it with the latest scale set model](https://learn.microsoft.com/en-us/azure/virtual-machines/<../virtual-machine-scale-sets/virtual-machine-scale-sets-upgrade-policy>).\n\n * [API](https://learn.microsoft.com/en-us/azure/virtual-machines/<#tabpanel_2_api2>)\n * [CLI](https://learn.microsoft.com/en-us/azure/virtual-machines/<#tabpanel_2_cli2>)\n * [PowerShell](https://learn.microsoft.com/en-us/azure/virtual-machines/<#tabpanel_2_powershell2>)\n\n 1. Deallocate the virtual machine scale set:\nrest Copy\n```\nPOST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourcegroupname}/providers/Microsoft.Compute/virtualMachineScaleSets/{VMScaleSetName}/deallocate?api-version=2021-04-01\n\n```\n\n 2. Add the `capacityReservationGroup` property to the scale set model. Construct the following `PUT` request to `Microsoft.Compute` provider:\nrest Copy\n```\nPUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourcegroupname}/providers/Microsoft.Compute/virtualMachineScaleSets/{VMScaleSetName}?api-version=2021-04-01\n\n```\n\nIn the request body, include the `capacityReservationGroup` property:\nJSON Copy\n```\n\"location\": \"eastus\",\n\"properties\": {\n \"virtualMachineProfile\": {\n \"capacityReservation\": {\n \"capacityReservationGroup\": {\n \"id\": \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}\"\n }\n }\n }\n}\n\n```\n\n 1. Deallocate the virtual machine scale set:\nAzure CLI Copy Open Cloud Shell\n```\naz vmss deallocate\n--location eastus\n--resource-group myResourceGroup\n--name myVMSS\n\n```\n\n 2. Associate the scale set to the capacity reservation group:\nAzure CLI Copy Open Cloud Shell\n```\naz vmss update\n--resource-group myResourceGroup\n--name myVMSS\n--capacity-reservation-group /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}\n\n```\n\n 1. Deallocate the virtual machine scale set:\nPowerShell Copy Open Cloud Shell\n```\nStop-AzVmss\n-ResourceGroupName \"myResourceGroup”\n-VMScaleSetName \"myVmss”\n\n```\n\n 2. Associate the scale set to the capacity reservation group:\nPowerShell Copy Open Cloud Shell\n```\n$vmss =\nGet-AzVmss\n-ResourceGroupName \"myResourceGroup\"\n-VMScaleSetName \"myVmss\"\nUpdate-AzVmss\n-ResourceGroupName \"myResourceGroup\"\n-VMScaleSetName \"myVmss\"\n-VirtualMachineScaleSet $vmss\n-CapacityReservationGroupId \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}\"\n\n```\n\nTo learn more, see the Azure PowerShell commands [Stop-AzVmss](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/powershell/module/az.compute/stop-azvmss>), [Get-AzVmss](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/powershell/module/az.compute/get-azvmss>), and [Update-AzVmss](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/powershell/module/az.compute/update-azvmss>).\n[](https://learn.microsoft.com/en-us/azure/virtual-machines/<#view-virtual-machine-scale-set-association-with-the-instance-view>)"
}
] |
[
{
"from": "system",
"value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation."
},
{
"from": "human",
"value": "Can you explain View virtual machine scale set association with the Instance View?"
},
{
"from": "gpt",
"value": "After the uniform virtual machine scale set is associated to the capacity reservation group, all the subsequent VM allocations will happen against the capacity reservation. Azure automatically finds the matching capacity reservation in the group and consumes a reserved slot.\n * [API](https://learn.microsoft.com/en-us/azure/virtual-machines/<#tabpanel_3_api3>)\n * [CLI](https://learn.microsoft.com/en-us/azure/virtual-machines/<#tabpanel_3_cli3>)\n * [PowerShell](https://learn.microsoft.com/en-us/azure/virtual-machines/<#tabpanel_3_powershell3>)\n * [Portal](https://learn.microsoft.com/en-us/azure/virtual-machines/<#tabpanel_3_portal3>)\n\nThe capacity reservation group Instance View reflects the new scale set VMs under the `virtualMachinesAssociated` and `virtualMachinesAllocated` properties:\nrest Copy\n```\nGET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/CapacityReservationGroups/{CapacityReservationGroupName}?$expand=instanceview&api-version=2021-04-01\n\n```\n\nJSON Copy\n```\n{\n \"name\": \"<CapacityReservationGroupName>\",\n \"id\": \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{CapacityReservationGroupName}\",\n \"type\": \"Microsoft.Compute/capacityReservationGroups\",\n \"location\": \"eastus\"\n},\n \"properties\": {\n \"capacityReservations\": [\n {\n \"id\": \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{CapacityReservationGroupName}/capacityReservations/{CapacityReservationName}\"\n }\n ],\n \"virtualMachinesAssociated\": [\n {\n \"id\": \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{VMScaleSetName}/virtualMachines/{VirtualMachineId}\"\n }\n ],\n \"instanceView\": {\n \"capacityReservations\": [\n {\n \"name\": \"<CapacityReservationName>\",\n \"utilizationInfo\": {\n \"virtualMachinesAllocated\": [\n {\n \"id\": \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{VMScaleSetName}/virtualMachines/{VirtualMachineId}\"\n }\n ]\n },\n \"statuses\": [\n {\n \"code\": \"ProvisioningState/succeeded\",\n \"level\": \"Info\",\n \"displayStatus\": \"Provisioning succeeded\",\n \"time\": \"2021-05-25T15:12:10.4165243+00:00\"\n }\n ]\n }\n ]\n }\n }\n}\n\n```\n\nAzure CLI Copy Open Cloud Shell\n```\naz capacity reservation group show\n-g myResourceGroup\n-n myCapacityReservationGroup\n\n```\n\nView the association of your virtual machine scale set and capacity reservation group by using Instance View in PowerShell.\nPowerShell Copy Open Cloud Shell\n```\n$CapRes=\nGet-AzCapacityReservationGroup\n-ResourceGroupName <\"ResourceGroupName\">\n-Name <\"CapacityReservationGroupName\">\n-InstanceView\n$CapRes.InstanceView.Utilizationinfo.VirtualMachinesAllocated\n\n```\n\nTo learn more, see the Azure PowerShell command [Get-AzCapacityReservationGroup](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/powershell/module/az.compute/get-azcapacityreservationGroup>).\n 1. Open [Azure portal](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/portal.azure.com>).\n 2. Go to your capacity reservation group.\n 3. Under **Setting** , select **Resources**.\n 4. In the table, you can see all the scale set VMs that are associated to the capacity reservation group.\n\n[](https://learn.microsoft.com/en-us/azure/virtual-machines/<#region-and-availability-zone-considerations>)"
}
] |
[
{
"from": "system",
"value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation."
},
{
"from": "human",
"value": "Can you explain Region and availability zone considerations?"
},
{
"from": "gpt",
"value": "You can create virtual machine scale sets regionally or in one or more availability zones to help protect them from datacenter-level failure. To learn more about multizonal virtual machine scale sets, see [Virtual machine scale sets that use availability zones](https://learn.microsoft.com/en-us/azure/virtual-machines/<../virtual-machine-scale-sets/virtual-machine-scale-sets-use-availability-zones>).\nImportant\nThe location (region and availability zones) of the virtual machine scale set and the capacity reservation group must match for the association to succeed. For a regional scale set, the region must match between the scale set and the capacity reservation group. For a zonal scale set, both the regions and the zones must match between the scale set and the capacity reservation group.\nWhen a scale set is spread across multiple zones, it always attempts to deploy evenly across the included availability zones. Because of that even deployment, a capacity reservation group should always have the same quantity of reserved VMs in each zone. As an illustration of why this even deployment is important, consider the following example.\nIn this example, each zone has a different quantity reserved. Let's say that the virtual machine scale set scales out to 75 instances. Because a scale set always attempts to deploy evenly across zones, the VM distribution should look like this example:\nExpand table\nZone | Quantity reserved | Number of scale set VMs in each zone | Unused quantity reserved | Overallocated\n---|---|---|---|---\n1 | 40 | 25 | 15 | 0\n2 | 20 | 25 | 0 | 5\n3 | 15 | 25 | 0 | 10\nIn this case, the scale set incurs extra cost for 15 unused instances in Zone 1. The scale-out is also relying on 5 VMs in Zone 2 and 10 VMs in Zone 3 that aren't protected by capacity reservation. If each zone had 25 capacity instances reserved, then all 75 VMs would be protected by capacity reservation and the deployment wouldn't incur any extra cost for unused instances.\nBecause the reservations can be overallocated, the scale set can continue to scale normally beyond the limits of the reservation. The only difference is that the VMs allocated above the quantity reserved aren't covered by capacity reservation service-level agreement. To learn more, see [Overallocate capacity reservation](https://learn.microsoft.com/en-us/azure/virtual-machines/<capacity-reservation-overallocate>).\n[](https://learn.microsoft.com/en-us/azure/virtual-machines/<#next-step>)"
}
] |
[
{
"from": "system",
"value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation."
},
{
"from": "human",
"value": "Can you explain Next step?"
},
{
"from": "gpt",
"value": "[Learn how to remove a scale set association from a capacity reservation](https://learn.microsoft.com/en-us/azure/virtual-machines/<capacity-reservation-remove-virtual-machine-scale-set>)"
}
] |
[
{
"from": "system",
"value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation."
},
{
"from": "human",
"value": "Can you explain Feedback?"
},
{
"from": "gpt",
"value": "Was this page helpful?\nYes No\n[ Provide product feedback ](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/feedback.azure.com/d365community/forum/ec2f1827-be25-ec11-b6e6-000d3a4f0f1c>)|\n[ Get help at Microsoft Q&A ](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/learn.microsoft.com/answers/tags/94/azure-virtual-machines/>)"
}
] |
[
{
"from": "system",
"value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation."
},
{
"from": "human",
"value": "Can you explain Additional resources?"
},
{
"from": "gpt",
"value": "[ English (United States)](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/locale?target=https%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fazure%2Fvirtual-machines%2Fcapacity-reservation-associate-virtual-machine-scale-set>)\n[ California Consumer Privacy Act (CCPA) Opt-Out Icon Your Privacy Choices ](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/aka.ms/yourcaliforniaprivacychoices>)\nTheme\n * Light\n * Dark\n * High contrast\n\n * [Previous Versions](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/previous-versions/>)\n * [Blog](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/techcommunity.microsoft.com/t5/microsoft-learn-blog/bg-p/MicrosoftLearnBlog>)\n * [Contribute](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/contribute/>)\n * [Privacy](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/go.microsoft.com/fwlink/?LinkId=521839>)\n * [Terms of Use](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/legal/termsofuse>)\n * [Trademarks](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/www.microsoft.com/legal/intellectualproperty/Trademarks/>)\n * © Microsoft 2025"
}
] |
[
{
"from": "system",
"value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation."
},
{
"from": "human",
"value": "Can you explain In this article?"
},
{
"from": "gpt",
"value": "[ English (United States)](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/locale?target=https%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fazure%2Fvirtual-machines%2Fcapacity-reservation-associate-virtual-machine-scale-set>)\n[ California Consumer Privacy Act (CCPA) Opt-Out Icon Your Privacy Choices ](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/aka.ms/yourcaliforniaprivacychoices>)\nTheme\n * Light\n * Dark\n * High contrast\n\n * [Previous Versions](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/previous-versions/>)\n * [Blog](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/techcommunity.microsoft.com/t5/microsoft-learn-blog/bg-p/MicrosoftLearnBlog>)\n * [Contribute](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/contribute/>)\n * [Privacy](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/go.microsoft.com/fwlink/?LinkId=521839>)\n * [Terms of Use](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/legal/termsofuse>)\n * [Trademarks](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/www.microsoft.com/legal/intellectualproperty/Trademarks/>)\n * © Microsoft 2025"
}
] |
[
{
"from": "system",
"value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation."
},
{
"from": "human",
"value": "Can you explain [Skip to main content](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/<#main>)?"
},
{
"from": "gpt",
"value": "This browser is no longer supported.\nUpgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.\n[Download Microsoft Edge](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/<https:/go.microsoft.com/fwlink/p/?LinkID=2092881 >) [More info about Internet Explorer and Microsoft Edge](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/<https:/learn.microsoft.com/en-us/lifecycle/faq/internet-explorer-microsoft-edge>)\n[ Learn ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/</en-us/>) [ ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/<https:/www.microsoft.com>)\nSuggestions will filter as you type\n[ Sign in ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/<#>)\n * [ Profile ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/<https:/learn.microsoft.com/en-us/users/me/activity/>)\n * [ Settings ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/<https:/learn.microsoft.com/en-us/users/me/settings/>)\n\n[ Sign out ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/<#>)\n[ ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/<https:/www.microsoft.com>) [ Learn ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/</en-us/>)\n * Discover\n * [ Documentation ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/</en-us/docs/>)\nIn-depth articles on Microsoft developer tools and technologies\n * [ Training ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/</en-us/training/>)\nPersonalized learning paths and courses\n * [ Credentials ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/</en-us/credentials/>)\nGlobally recognized, industry-endorsed credentials\n * [ Q&A ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/</en-us/answers/>)\nTechnical questions and answers moderated by Microsoft\n * [ Code Samples ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/</en-us/samples/>)\nCode sample library for Microsoft developer tools and technologies\n * [ Assessments ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/</en-us/assessments/>)\nInteractive, curated guidance and recommendations\n * [ Shows ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/</en-us/shows/>)\nThousands of hours of original programming from Microsoft experts\nMicrosoft Learn for Organizations\n[ Boost your team's technical skills ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/</en-us/training/organizations/>)\nAccess curated resources to upskill your team and close skills gaps.\n * Product documentation\n * [ ASP.NET ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/</en-us/aspnet/>)\n * [ Azure ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/</en-us/azure/>)\n * [ Dynamics 365 ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/</en-us/dynamics365/>)\n * [ Microsoft 365 ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/</en-us/microsoft-365/>)\n * [ Microsoft Copilot ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/</en-us/copilot/>)\n * [ Microsoft Edge ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/</en-us/microsoft-edge/>)\n * [ Microsoft Entra ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/</en-us/entra/>)\n * [ Microsoft Graph ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/</en-us/graph/>)\n * [ Microsoft Intune ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/</en-us/mem/>)\n * [ Microsoft Purview ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/</en-us/purview/>)\n * [ Microsoft Teams ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/</en-us/microsoftteams/>)\n * [ .NET ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/</en-us/dotnet/>)\n * [ Power Apps ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/</en-us/power-apps/>)\n * [ Power BI ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/</en-us/power-bi/>)\n * [ Power Platform ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/</en-us/power-platform/>)\n * [ PowerShell ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/</en-us/powershell/>)\n * [ SQL ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/</en-us/sql/>)\n * [ Sysinternals ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/</en-us/sysinternals/>)\n * [ Visual Studio ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/</en-us/visualstudio/>)\n * [ Windows ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/</en-us/windows/>)\n * [ Windows Server ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/</en-us/windows-server/>)\n[ View all products ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/</en-us/docs/>)\nMicrosoft Learn for Organizations\n[ Boost your team's technical skills ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/</en-us/training/organizations/>)\nAccess curated resources to upskill your team and close skills gaps.\n * Development languages\n * [ C++ ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/</en-us/cpp/>)\n * [ C# ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/</en-us/dotnet/csharp/>)\n * [ DAX ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/</en-us/dax/>)\n * [ Java ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/</en-us/java/>)\n * [ OData ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/</en-us/odata/>)\n * [ OpenAPI ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/</en-us/openapi/>)\n * [ Power Query M ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/</en-us/powerquery-m/>)\n * [ VBA ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/</en-us/office/vba/>)\nMicrosoft Learn for Organizations\n[ Boost your team's technical skills ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/</en-us/training/organizations/>)\nAccess curated resources to upskill your team and close skills gaps.\n * Topics\n * [ Artificial intelligence ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/</en-us/ai/>)\n * [ Compliance ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/</en-us/compliance/>)\n * [ DevOps ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/</en-us/devops/>)\n * [ Platform engineering ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/</en-us/platform-engineering/>)\n * [ Security ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/</en-us/security/>)\nMicrosoft Learn for Organizations\n[ Boost your team's technical skills ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/</en-us/training/organizations/>)\nAccess curated resources to upskill your team and close skills gaps.\n\nSuggestions will filter as you type\n[ Sign in ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/<#>)\n * [ Profile ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/<https:/learn.microsoft.com/en-us/users/me/activity/>)\n * [ Settings ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/<https:/learn.microsoft.com/en-us/users/me/settings/>)\n\n[ Sign out ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/<#>)\n[ Azure ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/</en-us/azure/>)\n * Products\n * Popular products\n * [ Azure AI Services ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/</en-us/azure/ai-services/>)\n * [ Azure App Service ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/</en-us/azure/app-service/>)\n * [ Azure Databricks ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/</en-us/azure/databricks/>)\n * [ Azure DevOps ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/</en-us/azure/devops/>)\n * [ Azure Functions ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/</en-us/azure/azure-functions/>)\n * [ Azure Monitor ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/</en-us/azure/azure-monitor/>)\n * [ Azure Virtual Machines ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/</en-us/azure/virtual-machines/>)\n * Popular categories\n * [ Compute ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/</en-us/azure/?product=compute>)\n * [ Networking ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/</en-us/azure/?product=networking>)\n * [ Storage ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/</en-us/azure/?product=storage>)\n * [ AI & machine learning ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/</en-us/azure/?product=ai-machine-learning>)\n * [ Analytics ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/</en-us/azure/?product=analytics>)\n * [ Databases ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/</en-us/azure/?product=databases>)\n * [ Security ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/</en-us/azure/?product=security>)\n * [ View all products ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/</en-us/azure/>)\n * Architecture\n * [ Cloud Adoption Framework ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/</en-us/azure/cloud-adoption-framework/>)\n * [ Well-Architected Framework ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/</en-us/azure/well-architected/>)\n * [ Azure Architecture Center ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/</en-us/azure/architecture/>)\n * Develop\n * [ Python ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/</en-us/azure/developer/python/>)\n * [ .NET ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/</en-us/dotnet/azure/>)\n * [ JavaScript ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/</en-us/azure/developer/javascript/>)\n * [ Java ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/</en-us/azure/developer/java/>)\n * [ PowerShell ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/</en-us/powershell/azure/>)\n * [ Azure CLI ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/</en-us/cli/azure/>)\n * [ View all developer resources ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/</en-us/azure/developer/>)\n * Learn Azure\n * [ Start your AI learning assessment ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/</en-us/assessments/1c032171-8ca0-4032-8962-a38a5cc424a8/>)\n * Top learning paths\n * [ Cloud concepts ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/</en-us/training/paths/microsoft-azure-fundamentals-describe-cloud-concepts/>)\n * [ AI fundamentals ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/</en-us/training/paths/get-started-with-artificial-intelligence-on-azure/>)\n * [ Intro to generative AI ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/</en-us/training/paths/introduction-generative-ai/>)\n * [ Azure Architecture fundamentals ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/</en-us/training/paths/azure-fundamentals-describe-azure-architecture-services/>)\n * [ Earn credentials ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/</en-us/credentials/browse/?products=azure>)\n * [ Instructor-led courses ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/</en-us/training/browse/?products=azure&resource_type=course>)\n * [ View all training ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/</en-us/training/azure/>)\n * [ Troubleshooting ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/</en-us/troubleshoot/azure/>)\n * Resources\n * [ Product overview ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/<https:/azure.microsoft.com/get-started>)\n * [ Latest blog posts ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/<https:/azure.microsoft.com/blog/>)\n * [ Pricing information ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/<https:/azure.microsoft.com/pricing/>)\n * [ Support options ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/<https:/azure.microsoft.com/support/options/>)\n * More\n * Products\n * Popular products\n * [ Azure AI Services ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/</en-us/azure/ai-services/>)\n * [ Azure App Service ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/</en-us/azure/app-service/>)\n * [ Azure Databricks ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/</en-us/azure/databricks/>)\n * [ Azure DevOps ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/</en-us/azure/devops/>)\n * [ Azure Functions ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/</en-us/azure/azure-functions/>)\n * [ Azure Monitor ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/</en-us/azure/azure-monitor/>)\n * [ Azure Virtual Machines ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/</en-us/azure/virtual-machines/>)\n * Popular categories\n * [ Compute ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/</en-us/azure/?product=compute>)\n * [ Networking ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/</en-us/azure/?product=networking>)\n * [ Storage ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/</en-us/azure/?product=storage>)\n * [ AI & machine learning ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/</en-us/azure/?product=ai-machine-learning>)\n * [ Analytics ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/</en-us/azure/?product=analytics>)\n * [ Databases ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/</en-us/azure/?product=databases>)\n * [ Security ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/</en-us/azure/?product=security>)\n * [ View all products ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/</en-us/azure/>)\n * Architecture\n * [ Cloud Adoption Framework ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/</en-us/azure/cloud-adoption-framework/>)\n * [ Well-Architected Framework ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/</en-us/azure/well-architected/>)\n * [ Azure Architecture Center ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/</en-us/azure/architecture/>)\n * Develop\n * [ Python ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/</en-us/azure/developer/python/>)\n * [ .NET ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/</en-us/dotnet/azure/>)\n * [ JavaScript ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/</en-us/azure/developer/javascript/>)\n * [ Java ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/</en-us/azure/developer/java/>)\n * [ PowerShell ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/</en-us/powershell/azure/>)\n * [ Azure CLI ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/</en-us/cli/azure/>)\n * [ View all developer resources ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/</en-us/azure/developer/>)\n * Learn Azure\n * [ Start your AI learning assessment ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/</en-us/assessments/1c032171-8ca0-4032-8962-a38a5cc424a8/>)\n * Top learning paths\n * [ Cloud concepts ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/</en-us/training/paths/microsoft-azure-fundamentals-describe-cloud-concepts/>)\n * [ AI fundamentals ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/</en-us/training/paths/get-started-with-artificial-intelligence-on-azure/>)\n * [ Intro to generative AI ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/</en-us/training/paths/introduction-generative-ai/>)\n * [ Azure Architecture fundamentals ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/</en-us/training/paths/azure-fundamentals-describe-azure-architecture-services/>)\n * [ Earn credentials ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/</en-us/credentials/browse/?products=azure>)\n * [ Instructor-led courses ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/</en-us/training/browse/?products=azure&resource_type=course>)\n * [ View all training ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/</en-us/training/azure/>)\n * [ Troubleshooting ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/</en-us/troubleshoot/azure/>)\n * Resources\n * [ Product overview ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/<https:/azure.microsoft.com/get-started>)\n * [ Latest blog posts ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/<https:/azure.microsoft.com/blog/>)\n * [ Pricing information ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/<https:/azure.microsoft.com/pricing/>)\n * [ Support options ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/<https:/azure.microsoft.com/support/options/>)\n\n[ Portal ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/<https:/portal.azure.com>) [ Free account ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/<https:/azure.microsoft.com/free/>)\nTable of contents Exit focus mode\nSearch\nSuggestions will filter as you type\n * [Virtual Machines Documentation](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/<https:/learn.microsoft.com/en-us/azure/virtual-machines/>)\n * [Overview](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/<https:/learn.microsoft.com/en-us/azure/virtual-machines/overview>)\n * Quickstarts\n * Create a Linux VM\n * Create a Windows VM\n * Create a Virtual Machine Scale Set\n * Tutorials\n * Develop\n * Workloads\n * Instances\n * Sizes\n * [Overview](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/<https:/learn.microsoft.com/en-us/azure/virtual-machines/sizes/overview>)\n * [Cobalt VMs](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/<https:/learn.microsoft.com/en-us/azure/virtual-machines/sizes/cobalt-overview>)\n * [Change the size of a VM](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/<https:/learn.microsoft.com/en-us/azure/virtual-machines/sizes/resize-vm>)\n * General purpose\n * [Overview](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/<https:/learn.microsoft.com/en-us/azure/virtual-machines/sizes/overview#general-purpose>)\n * A family\n * B family (burstable)\n * D family\n * [Overview](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/<https:/learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/d-family>)\n * [Dsv6 series](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/<https:/learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/dsv6-series>)\n * [Ddsv6 series](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/<https:/learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/ddsv6-series>)\n * [Dlsv6 series](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/<https:/learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/dlsv6-series>)\n * [Dldsv6 series](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/<https:/learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/dldsv6-series>)\n * [Dasv6 series](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/<https:/learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/dasv6-series>)\n * [Dadsv6 series](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/<https:/learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/dadsv6-series>)\n * [Dalsv6 series](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/<https:/learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/dalsv6-series>)\n * [Daldsv6 series](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/<https:/learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/daldsv6-series>)\n * [Dpsv6 series](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/<https:/learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/dpsv6-series>)\n * [Dpdsv6 series](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/<https:/learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/dpdsv6-series>)\n * [Dplsv6 series](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/<https:/learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/dplsv6-series>)\n * [Dpldsv6 series](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/<https:/learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/dpldsv6-series>)\n * [Dv5 series](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/<https:/learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/dv5-series>)\n * [Dsv5 series](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/<https:/learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/dsv5-series>)\n * [Ddv5 series](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/<https:/learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/ddv5-series>)\n * [Ddsv5 series](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/<https:/learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/ddsv5-series>)\n * [Dasv5 series](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/<https:/learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/dasv5-series>)\n * [Dadsv5 series](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/<https:/learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/dadsv5-series>)\n * [Dpsv5 series](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/<https:/learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/dpsv5-series>)\n * [Dpdsv5 series](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/<https:/learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/dpdsv5-series>)\n * [Dplsv5 series](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/<https:/learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/dplsv5-series>)\n * [Dpldsv5 series](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/<https:/learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/dpldsv5-series>)\n * [Dlsv5 series](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/<https:/learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/dlsv5-series>)\n * [Dldsv5 series](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/<https:/learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/dldsv5-series>)\n * [Dv4 series](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/<https:/learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/dv4-series>)\n * [Dsv4 series](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/<https:/learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/dsv4-series>)\n * [Dav4 series](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/<https:/learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/dav4-series>)\n * [Dasv4 series](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/<https:/learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/dasv4-series>)\n * [Ddv4 series](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/<https:/learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/ddv4-series>)\n * [Ddsv4 series](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/<https:/learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/ddsv4-series>)\n * DC family (confidential)\n * Compute optimized\n * Memory optimized\n * Storage optimized\n * GPU - accelerated compute\n * FPGA - accelerated compute\n * High performance compute\n * Enable NVMe\n * Previous generation and retired sizes\n * [Generation 2 VMs](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/<https:/learn.microsoft.com/en-us/azure/virtual-machines/generation-2>)\n * [Isolated sizes](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/<https:/learn.microsoft.com/en-us/azure/virtual-machines/isolation>)\n * [Azure compute units (ACU)](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/<https:/learn.microsoft.com/en-us/azure/virtual-machines/acu>)\n * Benchmark scores\n * [Virtual machines selector tool](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/<https:/aka.ms/vm-selector>)\n * [States and billing](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/<https:/learn.microsoft.com/en-us/azure/virtual-machines/states-billing>)\n * [vCPU quotas](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/<https:/learn.microsoft.com/en-us/azure/virtual-machines/quotas>)\n * [Constrained vCPUs](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/<https:/learn.microsoft.com/en-us/azure/virtual-machines/constrained-vcpu>)\n * [Azure VMs with no temp disk](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/<https:/learn.microsoft.com/en-us/azure/virtual-machines/azure-vms-no-temp-disk>)\n * [Azure VM sizes naming conventions](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/<https:/learn.microsoft.com/en-us/azure/virtual-machines/vm-naming-conventions>)\n * Azure Compute Gallery\n * Images\n * Dedicated hosts\n * Azure Spot Virtual Machines\n * [Azure Boost](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/<https:/learn.microsoft.com/en-us/azure/azure-boost/overview>)\n * Azure Hybrid Benefit\n * Reserved instances\n * Capacity reservation\n * Create Virtual Machines\n * [Auto-shutdown a VM](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/<https:/learn.microsoft.com/en-us/azure/virtual-machines/auto-shutdown-vm>)\n * Hibernating Virtual Machines\n * [Delete a VM and its resources](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/<https:/learn.microsoft.com/en-us/azure/virtual-machines/delete>)\n * Connect to Virtual Machines\n * Time sync\n * Run Command\n * Extensions\n * [Nested virtualization](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/<https:/learn.microsoft.com/en-us/virtualization/hyper-v-on-windows/user-guide/nested-virtualization>)\n * Migrate to Azure Resource Manager\n * [Estimated VM cost card in Portal (Preview)](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/<https:/learn.microsoft.com/en-us/azure/virtual-machines/estimated-vm-create-cost-card>)\n * Availability and scale\n * Disks\n * Networking\n * Security\n * Updates and maintenance\n * Monitoring\n * Backup and recovery\n * Reliability in Virtual Machines\n * Infrastructure automation\n * Cost optimization\n * Resources\n * [Support and troubleshooting](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/<https:/learn.microsoft.com/en-us/azure/virtual-machines/vm-support-help>)\n\nDownload PDF\n 1. [ Learn ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/<https:/learn.microsoft.com/en-us/>)\n 2. [ Azure ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/<https:/learn.microsoft.com/en-us/azure/>)\n 3. [ Virtual Machines ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/<https:/learn.microsoft.com/en-us/azure/virtual-machines/>)\n\n 1. [Learn](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/<https:/learn.microsoft.com/en-us/>)\n 2. [Azure](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/<https:/learn.microsoft.com/en-us/azure/>)\n 3. [Virtual Machines](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/<https:/learn.microsoft.com/en-us/azure/virtual-machines/>)\n\n[ Read in English ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/<https:/learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/dlsv5-series?tabs=sizebasic> \"Read in English\") Save\n * Add to Collections\n * Add to Plan\n\n[ ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/<https:/github.com/MicrosoftDocs/azure-compute-docs/blob/main/articles/virtual-machines/sizes/general-purpose/dlsv5-series.md> \"Edit This Document\")\nTable of contents[ Read in English ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/<https:/learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/dlsv5-series?tabs=sizebasic> \"Read in English\") Add to Collections Add to Plan [ Edit ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/<https:/github.com/MicrosoftDocs/azure-compute-docs/blob/main/articles/virtual-machines/sizes/general-purpose/dlsv5-series.md> \"Edit This Document\")\n#### Share via\n[ Facebook ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/<https:/www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fazure%2Fvirtual-machines%2Fsizes%2Fgeneral-purpose%2Fdlsv5-series%3Ftabs%3Dsizebasic%26WT.mc_id%3Dfacebook>) [ x.com ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/<https:/twitter.com/intent/tweet?original_referer=https%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fazure%2Fvirtual-machines%2Fsizes%2Fgeneral-purpose%2Fdlsv5-series%3Ftabs%3Dsizebasic%26WT.mc_id%3Dtwitter&text=Today%20I%20completed%20%22Dlsv5%20size%20series%20-%20Azure%20Virtual%20Machines%20%7C%20Microsoft%20Learn%22!%20I'm%20so%20proud%20to%20be%20celebrating%20this%20achievement%20and%20hope%20this%20inspires%20you%20to%20start%20your%20own%20%40MicrosoftLearn%20journey!&tw_p=tweetbutton&url=https%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fazure%2Fvirtual-machines%2Fsizes%2Fgeneral-purpose%2Fdlsv5-series%3Ftabs%3Dsizebasic%26WT.mc_id%3Dtwitter>) [ LinkedIn ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/<https:/www.linkedin.com/feed/?shareActive=true&text=Today%20I%20completed%20%22Dlsv5%20size%20series%20-%20Azure%20Virtual%20Machines%20%7C%20Microsoft%20Learn%22!%20I'm%20so%20proud%20to%20be%20celebrating%20this%20achievement%20and%20hope%20this%20inspires%20you%20to%20start%20your%20own%20%40MicrosoftLearn%20journey!%0A%0D%0Ahttps%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fazure%2Fvirtual-machines%2Fsizes%2Fgeneral-purpose%2Fdlsv5-series%3Ftabs%3Dsizebasic%26WT.mc_id%3Dlinkedin>) Email Print\nTable of contents\n# Dlsv5 sizes series\n * Article\n * 10/18/2024\n * 1 contributor\n\nFeedback"
}
] |
[
{
"from": "system",
"value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation."
},
{
"from": "human",
"value": "Can you explain In this article?"
},
{
"from": "gpt",
"value": "1. [Host specifications](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/<#host-specifications>)\n 2. [Feature support](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/<#feature-support>)\n 3. [Sizes in series](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/<#sizes-in-series>)\n 4. [Other size information](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/<#other-size-information>)\n 5. [Next steps](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/<#next-steps>)\n\nDlsv5-series virtual machines run on Intel® Xeon® Platinum 8473C (Sapphire Rapids), or Intel® Xeon® Platinum 8370C (Ice Lake) processor reaching an all core turbo clock speed of up to 3.5 GHz. These virtual machines offer up to 96 vCPU and 192 GiB of RAM. These VM sizes can reduce cost when not running memory intensive applications.\nDlsv5-series virtual machines don't have any temporary storage thus lowering the price of entry. You can attach Standard SSD, Standard HDD, and Premium SSD disk types. You can also attach Ultra Disk storage based on its regional availability. Disk storage is billed separately from virtual machines. See pricing for disks.\n[](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/<#host-specifications>)"
}
] |
[
{
"from": "system",
"value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation."
},
{
"from": "human",
"value": "Can you explain Host specifications?"
},
{
"from": "gpt",
"value": "Expand table\nPart | Quantity Count Units | Specs SKU ID, Performance Units, etc.\n---|---|---\nProcessor | 2 - 96 vCPUs | Intel Xeon Platinum 8473C (Sapphire Rapids) [x86-64] Intel Xeon Platinum 8370C (Ice Lake) [x86-64]\nMemory | 4 - 192 GiB\nLocal Storage | None\nRemote Storage | 4 - 32 Disks | 3750 - 80000 IOPS 85 - 4000 MBps\nNetwork | 2 - 8 NICs | 12500 - 35000 Mbps\nAccelerators | None\n[](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/<#feature-support>)"
}
] |
[
{
"from": "system",
"value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation."
},
{
"from": "human",
"value": "Can you explain Feature support?"
},
{
"from": "gpt",
"value": "Premium Storage: Supported Premium Storage caching: Supported Live Migration: Supported Memory Preserving Updates: Supported VM Generation Support: Generation 1 and 2 Accelerated Networking: Required Ephemeral OS Disks: Not Supported Nested Virtualization: Supported\n[](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/<#sizes-in-series>)"
}
] |
[
{
"from": "system",
"value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation."
},
{
"from": "human",
"value": "Can you explain Sizes in series?"
},
{
"from": "gpt",
"value": "* [Basics](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/<#tabpanel_1_sizebasic>)\n * [Local Storage](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/<#tabpanel_1_sizestoragelocal>)\n * [Remote Storage](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/<#tabpanel_1_sizestorageremote>)\n * [Network](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/<#tabpanel_1_sizenetwork>)\n * [Accelerators](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/<#tabpanel_1_sizeaccelerators>)\n\nvCPUs (Qty.) and Memory for each size\nExpand table\nSize Name | vCPUs (Qty.) | Memory (GB)\n---|---|---\nStandard_D2ls_v5 | 2 | 4\nStandard_D4ls_v5 | 4 | 8\nStandard_D8ls_v5 | 8 | 16\nStandard_D16ls_v5 | 16 | 32\nStandard_D32ls_v5 | 32 | 64\nStandard_D48ls_v5 | 48 | 96\nStandard_D64ls_v5 | 64 | 128\nStandard_D96ls_v5 | 96 | 192\n[](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/<#vm-basics-resources>)\n#### VM Basics resources\n * [What are vCPUs (Qty.)](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/managed-disks-overview>)\n * [Check vCPU quotas](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/quotas>)\n\nLocal (temp) storage info for each size\nNote\nNo local storage present in this series. For similar sizes with local storage, see the [Dldsv5-series](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/<dldsv5-series>).\nFor frequently asked questions, see [Azure VM sizes with no local temp disk](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/azure-vms-no-temp-disk>).\nRemote (uncached) storage info for each size\nExpand table\nSize Name | Max Remote Storage (Qty.) | Uncached Storage IOPS | Uncached Storage Speed (MBps) | Uncached Storage Burst1 IOPS | Uncached Storage Burst1 Speed (MBps)\n---|---|---|---|---|---\nStandard_D2ls_v5 | 4 | 3750 | 85 | 10000 | 1200\nStandard_D4ls_v5 | 8 | 6400 | 145 | 20000 | 1200\nStandard_D8ls_v5 | 16 | 12800 | 290 | 20000 | 1200\nStandard_D16ls_v5 | 32 | 25600 | 600 | 40000 | 1200\nStandard_D32ls_v5 | 32 | 51200 | 865 | 80000 | 2000\nStandard_D48ls_v5 | 32 | 76800 | 1315 | 80000 | 3000\nStandard_D64ls_v5 | 32 | 80000 | 1735 | 80000 | 3000\nStandard_D96ls_v5 | 32 | 80000 | 2600 | 80000 | 4000\n[](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/<#storage-resources>)\n#### Storage resources\n * [Introduction to Azure managed disks](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/managed-disks-overview>)\n * [Azure managed disk types](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/disks-types>)\n * [Share an Azure managed disk](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/disks-shared>)\n\n[](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/<#table-definitions>)\n#### Table definitions\n * 1These sizes support [bursting](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/disk-bursting>) to temporarily increase disk performance. Burst speeds can be maintained for up to 30 minutes at a time.\n * Storage capacity is shown in units of GiB or 1024^3 bytes. When you compare disks measured in GB (1000^3 bytes) to disks measured in GiB (1024^3) remember that capacity numbers given in GiB may appear smaller. For example, 1023 GiB = 1098.4 GB.\n * Disk throughput is measured in input/output operations per second (IOPS) and MBps where MBps = 10^6 bytes/sec.\n * Data disks can operate in cached or uncached modes. For cached data disk operation, the host cache mode is set to ReadOnly or ReadWrite. For uncached data disk operation, the host cache mode is set to None.\n * To learn how to get the best storage performance for your VMs, see [Virtual machine and disk performance](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/disks-performance>).\n\nNetwork interface info for each size\nExpand table\nSize Name | Max NICs (Qty.) | Max Network Bandwidth (Mb/s)\n---|---|---\nStandard_D2ls_v5 | 2 | 12500\nStandard_D4ls_v5 | 2 | 12500\nStandard_D8ls_v5 | 4 | 12500\nStandard_D16ls_v5 | 8 | 12500\nStandard_D32ls_v5 | 8 | 16000\nStandard_D48ls_v5 | 8 | 24000\nStandard_D64ls_v5 | 8 | 30000\nStandard_D96ls_v5 | 8 | 35000\n[](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/<#networking-resources>)\n#### Networking resources\n * [Virtual networks and virtual machines in Azure](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/</en-us/azure/virtual-network/network-overview>)\n * [Virtual machine network bandwidth](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/</en-us/azure/virtual-network/virtual-machine-network-throughput>)\n\n[](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/<#table-definitions-1>)\n#### Table definitions\n * Expected network bandwidth is the maximum aggregated bandwidth allocated per VM type across all NICs, for all destinations. For more information, see [Virtual machine network bandwidth](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/</en-us/azure/virtual-network/virtual-machine-network-throughput>)\n * Upper limits aren't guaranteed. Limits offer guidance for selecting the right VM type for the intended application. Actual network performance will depend on several factors including network congestion, application loads, and network settings. For information on optimizing network throughput, see [Optimize network throughput for Azure virtual machines](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/</en-us/azure/virtual-network/virtual-network-optimize-network-bandwidth>).\n * To achieve the expected network performance on Linux or Windows, you may need to select a specific version or optimize your VM. For more information, see [Bandwidth/Throughput testing (NTTTCP)](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/</en-us/azure/virtual-network/virtual-network-bandwidth-testing>).\n\nAccelerator (GPUs, FPGAs, etc.) info for each size\nNote\nNo accelerators are present in this series.\n[](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/<#other-size-information>)"
}
] |
[
{
"from": "system",
"value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation."
},
{
"from": "human",
"value": "Can you explain Other size information?"
},
{
"from": "gpt",
"value": "List of all available sizes: [Sizes](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/sizes>)\nPricing Calculator: [Pricing Calculator](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/<https:/azure.microsoft.com/pricing/calculator/>)\nInformation on Disk Types: [Disk Types](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/disks-types>)\n[](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/<#next-steps>)"
}
] |
[
{
"from": "system",
"value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation."
},
{
"from": "human",
"value": "Can you explain Next steps?"
},
{
"from": "gpt",
"value": "Learn more about how [Azure compute units (ACU)](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/acu>) can help you compare compute performance across Azure SKUs.\nCheck out [Azure Dedicated Hosts](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/dedicated-hosts>) for physical servers able to host one or more virtual machines assigned to one Azure subscription.\nLearn how to [Monitor Azure virtual machines](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/monitor-vm>)."
}
] |
[
{
"from": "system",
"value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation."
},
{
"from": "human",
"value": "Can you explain Feedback?"
},
{
"from": "gpt",
"value": "Was this page helpful?\nYes No\n[ Provide product feedback ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/<https:/feedback.azure.com/d365community/forum/ec2f1827-be25-ec11-b6e6-000d3a4f0f1c>)|\n[ Get help at Microsoft Q&A ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/<https:/learn.microsoft.com/answers/tags/94/azure-virtual-machines/>)"
}
] |
[
{
"from": "system",
"value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation."
},
{
"from": "human",
"value": "Can you explain Additional resources?"
},
{
"from": "gpt",
"value": "[ English (United States)](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/</en-us/locale?target=https%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fazure%2Fvirtual-machines%2Fsizes%2Fgeneral-purpose%2Fdlsv5-series>)\n[ California Consumer Privacy Act (CCPA) Opt-Out Icon Your Privacy Choices ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/<https:/aka.ms/yourcaliforniaprivacychoices>)\nTheme\n * Light\n * Dark\n * High contrast\n\n * [Previous Versions](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/</en-us/previous-versions/>)\n * [Blog](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/<https:/techcommunity.microsoft.com/t5/microsoft-learn-blog/bg-p/MicrosoftLearnBlog>)\n * [Contribute](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/</en-us/contribute/>)\n * [Privacy](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/<https:/go.microsoft.com/fwlink/?LinkId=521839>)\n * [Terms of Use](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/</en-us/legal/termsofuse>)\n * [Trademarks](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/<https:/www.microsoft.com/legal/intellectualproperty/Trademarks/>)\n * © Microsoft 2025"
}
] |
[
{
"from": "system",
"value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation."
},
{
"from": "human",
"value": "Can you explain In this article?"
},
{
"from": "gpt",
"value": "[ English (United States)](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/</en-us/locale?target=https%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fazure%2Fvirtual-machines%2Fsizes%2Fgeneral-purpose%2Fdlsv5-series>)\n[ California Consumer Privacy Act (CCPA) Opt-Out Icon Your Privacy Choices ](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/<https:/aka.ms/yourcaliforniaprivacychoices>)\nTheme\n * Light\n * Dark\n * High contrast\n\n * [Previous Versions](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/</en-us/previous-versions/>)\n * [Blog](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/<https:/techcommunity.microsoft.com/t5/microsoft-learn-blog/bg-p/MicrosoftLearnBlog>)\n * [Contribute](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/</en-us/contribute/>)\n * [Privacy](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/<https:/go.microsoft.com/fwlink/?LinkId=521839>)\n * [Terms of Use](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/</en-us/legal/termsofuse>)\n * [Trademarks](https://learn.microsoft.com/en-us/azure/virtual-machines/sizes/general-purpose/<https:/www.microsoft.com/legal/intellectualproperty/Trademarks/>)\n * © Microsoft 2025"
}
] |
[
{
"from": "system",
"value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation."
},
{
"from": "human",
"value": "Can you explain [Skip to main content](https://learn.microsoft.com/en-us/azure/virtual-machines/<#main>)?"
},
{
"from": "gpt",
"value": "This browser is no longer supported.\nUpgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.\n[Download Microsoft Edge](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/go.microsoft.com/fwlink/p/?LinkID=2092881 >) [More info about Internet Explorer and Microsoft Edge](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/learn.microsoft.com/en-us/lifecycle/faq/internet-explorer-microsoft-edge>)\n[ Learn ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/>) [ ](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/www.microsoft.com>)\nSuggestions will filter as you type\n[ Sign in ](https://learn.microsoft.com/en-us/azure/virtual-machines/<#>)\n * [ Profile ](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/learn.microsoft.com/en-us/users/me/activity/>)\n * [ Settings ](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/learn.microsoft.com/en-us/users/me/settings/>)\n\n[ Sign out ](https://learn.microsoft.com/en-us/azure/virtual-machines/<#>)\n[ ](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/www.microsoft.com>) [ Learn ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/>)\n * Discover\n * [ Documentation ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/docs/>)\nIn-depth articles on Microsoft developer tools and technologies\n * [ Training ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/training/>)\nPersonalized learning paths and courses\n * [ Credentials ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/credentials/>)\nGlobally recognized, industry-endorsed credentials\n * [ Q&A ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/answers/>)\nTechnical questions and answers moderated by Microsoft\n * [ Code Samples ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/samples/>)\nCode sample library for Microsoft developer tools and technologies\n * [ Assessments ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/assessments/>)\nInteractive, curated guidance and recommendations\n * [ Shows ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/shows/>)\nThousands of hours of original programming from Microsoft experts\nMicrosoft Learn for Organizations\n[ Boost your team's technical skills ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/training/organizations/>)\nAccess curated resources to upskill your team and close skills gaps.\n * Product documentation\n * [ ASP.NET ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/aspnet/>)\n * [ Azure ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/>)\n * [ Dynamics 365 ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/dynamics365/>)\n * [ Microsoft 365 ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/microsoft-365/>)\n * [ Microsoft Copilot ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/copilot/>)\n * [ Microsoft Edge ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/microsoft-edge/>)\n * [ Microsoft Entra ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/entra/>)\n * [ Microsoft Graph ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/graph/>)\n * [ Microsoft Intune ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/mem/>)\n * [ Microsoft Purview ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/purview/>)\n * [ Microsoft Teams ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/microsoftteams/>)\n * [ .NET ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/dotnet/>)\n * [ Power Apps ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/power-apps/>)\n * [ Power BI ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/power-bi/>)\n * [ Power Platform ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/power-platform/>)\n * [ PowerShell ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/powershell/>)\n * [ SQL ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/sql/>)\n * [ Sysinternals ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/sysinternals/>)\n * [ Visual Studio ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/visualstudio/>)\n * [ Windows ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/windows/>)\n * [ Windows Server ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/windows-server/>)\n[ View all products ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/docs/>)\nMicrosoft Learn for Organizations\n[ Boost your team's technical skills ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/training/organizations/>)\nAccess curated resources to upskill your team and close skills gaps.\n * Development languages\n * [ C++ ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/cpp/>)\n * [ C# ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/dotnet/csharp/>)\n * [ DAX ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/dax/>)\n * [ Java ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/java/>)\n * [ OData ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/odata/>)\n * [ OpenAPI ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/openapi/>)\n * [ Power Query M ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/powerquery-m/>)\n * [ VBA ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/office/vba/>)\nMicrosoft Learn for Organizations\n[ Boost your team's technical skills ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/training/organizations/>)\nAccess curated resources to upskill your team and close skills gaps.\n * Topics\n * [ Artificial intelligence ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/ai/>)\n * [ Compliance ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/compliance/>)\n * [ DevOps ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/devops/>)\n * [ Platform engineering ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/platform-engineering/>)\n * [ Security ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/security/>)\nMicrosoft Learn for Organizations\n[ Boost your team's technical skills ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/training/organizations/>)\nAccess curated resources to upskill your team and close skills gaps.\n\nSuggestions will filter as you type\n[ Sign in ](https://learn.microsoft.com/en-us/azure/virtual-machines/<#>)\n * [ Profile ](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/learn.microsoft.com/en-us/users/me/activity/>)\n * [ Settings ](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/learn.microsoft.com/en-us/users/me/settings/>)\n\n[ Sign out ](https://learn.microsoft.com/en-us/azure/virtual-machines/<#>)\n[ Azure ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/>)\n * Products\n * Popular products\n * [ Azure AI Services ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/ai-services/>)\n * [ Azure App Service ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/app-service/>)\n * [ Azure Databricks ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/databricks/>)\n * [ Azure DevOps ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/devops/>)\n * [ Azure Functions ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/azure-functions/>)\n * [ Azure Monitor ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/azure-monitor/>)\n * [ Azure Virtual Machines ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/virtual-machines/>)\n * Popular categories\n * [ Compute ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/?product=compute>)\n * [ Networking ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/?product=networking>)\n * [ Storage ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/?product=storage>)\n * [ AI & machine learning ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/?product=ai-machine-learning>)\n * [ Analytics ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/?product=analytics>)\n * [ Databases ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/?product=databases>)\n * [ Security ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/?product=security>)\n * [ View all products ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/>)\n * Architecture\n * [ Cloud Adoption Framework ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/cloud-adoption-framework/>)\n * [ Well-Architected Framework ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/well-architected/>)\n * [ Azure Architecture Center ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/architecture/>)\n * Develop\n * [ Python ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/developer/python/>)\n * [ .NET ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/dotnet/azure/>)\n * [ JavaScript ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/developer/javascript/>)\n * [ Java ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/developer/java/>)\n * [ PowerShell ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/powershell/azure/>)\n * [ Azure CLI ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/cli/azure/>)\n * [ View all developer resources ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/developer/>)\n * Learn Azure\n * [ Start your AI learning assessment ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/assessments/1c032171-8ca0-4032-8962-a38a5cc424a8/>)\n * Top learning paths\n * [ Cloud concepts ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/training/paths/microsoft-azure-fundamentals-describe-cloud-concepts/>)\n * [ AI fundamentals ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/training/paths/get-started-with-artificial-intelligence-on-azure/>)\n * [ Intro to generative AI ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/training/paths/introduction-generative-ai/>)\n * [ Azure Architecture fundamentals ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/training/paths/azure-fundamentals-describe-azure-architecture-services/>)\n * [ Earn credentials ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/credentials/browse/?products=azure>)\n * [ Instructor-led courses ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/training/browse/?products=azure&resource_type=course>)\n * [ View all training ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/training/azure/>)\n * [ Troubleshooting ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/troubleshoot/azure/>)\n * Resources\n * [ Product overview ](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/azure.microsoft.com/get-started>)\n * [ Latest blog posts ](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/azure.microsoft.com/blog/>)\n * [ Pricing information ](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/azure.microsoft.com/pricing/>)\n * [ Support options ](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/azure.microsoft.com/support/options/>)\n * More\n * Products\n * Popular products\n * [ Azure AI Services ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/ai-services/>)\n * [ Azure App Service ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/app-service/>)\n * [ Azure Databricks ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/databricks/>)\n * [ Azure DevOps ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/devops/>)\n * [ Azure Functions ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/azure-functions/>)\n * [ Azure Monitor ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/azure-monitor/>)\n * [ Azure Virtual Machines ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/virtual-machines/>)\n * Popular categories\n * [ Compute ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/?product=compute>)\n * [ Networking ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/?product=networking>)\n * [ Storage ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/?product=storage>)\n * [ AI & machine learning ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/?product=ai-machine-learning>)\n * [ Analytics ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/?product=analytics>)\n * [ Databases ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/?product=databases>)\n * [ Security ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/?product=security>)\n * [ View all products ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/>)\n * Architecture\n * [ Cloud Adoption Framework ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/cloud-adoption-framework/>)\n * [ Well-Architected Framework ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/well-architected/>)\n * [ Azure Architecture Center ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/architecture/>)\n * Develop\n * [ Python ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/developer/python/>)\n * [ .NET ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/dotnet/azure/>)\n * [ JavaScript ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/developer/javascript/>)\n * [ Java ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/developer/java/>)\n * [ PowerShell ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/powershell/azure/>)\n * [ Azure CLI ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/cli/azure/>)\n * [ View all developer resources ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/developer/>)\n * Learn Azure\n * [ Start your AI learning assessment ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/assessments/1c032171-8ca0-4032-8962-a38a5cc424a8/>)\n * Top learning paths\n * [ Cloud concepts ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/training/paths/microsoft-azure-fundamentals-describe-cloud-concepts/>)\n * [ AI fundamentals ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/training/paths/get-started-with-artificial-intelligence-on-azure/>)\n * [ Intro to generative AI ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/training/paths/introduction-generative-ai/>)\n * [ Azure Architecture fundamentals ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/training/paths/azure-fundamentals-describe-azure-architecture-services/>)\n * [ Earn credentials ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/credentials/browse/?products=azure>)\n * [ Instructor-led courses ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/training/browse/?products=azure&resource_type=course>)\n * [ View all training ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/training/azure/>)\n * [ Troubleshooting ](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/troubleshoot/azure/>)\n * Resources\n * [ Product overview ](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/azure.microsoft.com/get-started>)\n * [ Latest blog posts ](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/azure.microsoft.com/blog/>)\n * [ Pricing information ](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/azure.microsoft.com/pricing/>)\n * [ Support options ](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/azure.microsoft.com/support/options/>)\n\n[ Portal ](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/portal.azure.com>) [ Free account ](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/azure.microsoft.com/free/>)\nTable of contents Exit focus mode\nSearch\nSuggestions will filter as you type\n * [Virtual Machines Documentation](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/learn.microsoft.com/en-us/azure/virtual-machines/>)\n * [Overview](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/learn.microsoft.com/en-us/azure/virtual-machines/overview>)\n * Quickstarts\n * Create a Linux VM\n * Create a Windows VM\n * Create a Virtual Machine Scale Set\n * Tutorials\n * Develop\n * Workloads\n * Instances\n * Availability and scale\n * Disks\n * Networking\n * Security\n * Updates and maintenance\n * Monitoring\n * [Monitor Virtual Machines](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/learn.microsoft.com/en-us/azure/virtual-machines/monitor-vm?toc=/azure/virtual-machines/toc.json>)\n * [Monitoring data reference](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/learn.microsoft.com/en-us/azure/virtual-machines/monitor-vm-reference?toc=/azure/virtual-machines/toc.json>)\n * [Monitoring VMs with Prometheus](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/learn.microsoft.com/en-us/azure/azure-monitor/essentials/prometheus-remote-write-virtual-machines?toc=/azure/virtual-machines/toc.json>)\n * [Availability with Resource Graph](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/learn.microsoft.com/en-us/azure/virtual-machines/resource-graph-availability>)\n * VM watch\n * Monitor availability\n * [Analyze availability](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/learn.microsoft.com/en-us/azure/virtual-machines/resource-graph-availability>)\n * [VM usage](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/learn.microsoft.com/en-us/azure/virtual-machines/vm-usage>)\n * [Tag a VM](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/learn.microsoft.com/en-us/azure/azure-resource-manager/management/tag-resources>)\n * [Monitor metadata](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/learn.microsoft.com/en-us/azure/virtual-machines/instance-metadata-service>)\n * [Get usage metrics with REST](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/learn.microsoft.com/en-us/azure/virtual-machines/linux/metrics-vm-usage-rest>)\n * [Boot diagnostics](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/learn.microsoft.com/en-us/azure/virtual-machines/boot-diagnostics>)\n * Backup and recovery\n * Reliability in Virtual Machines\n * Infrastructure automation\n * Cost optimization\n * Resources\n * [Support and troubleshooting](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/learn.microsoft.com/en-us/azure/virtual-machines/vm-support-help>)\n\nDownload PDF\n 1. [ Learn ](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/learn.microsoft.com/en-us/>)\n 2. [ Azure ](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/learn.microsoft.com/en-us/azure/>)\n 3. [ Virtual Machines ](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/learn.microsoft.com/en-us/azure/virtual-machines/>)\n\n 1. [Learn](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/learn.microsoft.com/en-us/>)\n 2. [Azure](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/learn.microsoft.com/en-us/azure/>)\n 3. [Virtual Machines](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/learn.microsoft.com/en-us/azure/virtual-machines/>)\n\n[ Read in English ](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/learn.microsoft.com/en-us/azure/virtual-machines/instance-metadata-service?tabs=windows> \"Read in English\") Save\n * Add to Collections\n * Add to Plan\n\n[ ](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/github.com/MicrosoftDocs/azure-compute-docs/blob/main/articles/virtual-machines/instance-metadata-service.md> \"Edit This Document\")\nTable of contents[ Read in English ](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/learn.microsoft.com/en-us/azure/virtual-machines/instance-metadata-service?tabs=windows> \"Read in English\") Add to Collections Add to Plan [ Edit ](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/github.com/MicrosoftDocs/azure-compute-docs/blob/main/articles/virtual-machines/instance-metadata-service.md> \"Edit This Document\")\n#### Share via\n[ Facebook ](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fazure%2Fvirtual-machines%2Finstance-metadata-service%3Ftabs%3Dwindows%26WT.mc_id%3Dfacebook>) [ x.com ](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/twitter.com/intent/tweet?original_referer=https%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fazure%2Fvirtual-machines%2Finstance-metadata-service%3Ftabs%3Dwindows%26WT.mc_id%3Dtwitter&text=Today%20I%20completed%20%22Azure%20Instance%20Metadata%20Service%20for%20virtual%20machines%20-%20Azure%20Virtual%20Machines%20%7C%20Microsoft%20Learn%22!%20I'm%20so%20proud%20to%20be%20celebrating%20this%20achievement%20and%20hope%20this%20inspires%20you%20to%20start%20your%20own%20%40MicrosoftLearn%20journey!&tw_p=tweetbutton&url=https%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fazure%2Fvirtual-machines%2Finstance-metadata-service%3Ftabs%3Dwindows%26WT.mc_id%3Dtwitter>) [ LinkedIn ](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/www.linkedin.com/feed/?shareActive=true&text=Today%20I%20completed%20%22Azure%20Instance%20Metadata%20Service%20for%20virtual%20machines%20-%20Azure%20Virtual%20Machines%20%7C%20Microsoft%20Learn%22!%20I'm%20so%20proud%20to%20be%20celebrating%20this%20achievement%20and%20hope%20this%20inspires%20you%20to%20start%20your%20own%20%40MicrosoftLearn%20journey!%0A%0D%0Ahttps%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fazure%2Fvirtual-machines%2Finstance-metadata-service%3Ftabs%3Dwindows%26WT.mc_id%3Dlinkedin>) Email Print\nTable of contents\n# Azure Instance Metadata Service\n * Article\n * 08/22/2024\n * 14 contributors\n\nFeedback"
}
] |
[
{
"from": "system",
"value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation."
},
{
"from": "human",
"value": "Can you explain In this article?"
},
{
"from": "gpt",
"value": "1. [Usage](https://learn.microsoft.com/en-us/azure/virtual-machines/<#usage>)\n 2. [Security and authentication](https://learn.microsoft.com/en-us/azure/virtual-machines/<#security-and-authentication>)\n 3. [Proxies](https://learn.microsoft.com/en-us/azure/virtual-machines/<#proxies>)\n 4. [Rate limiting](https://learn.microsoft.com/en-us/azure/virtual-machines/<#rate-limiting>)\n 5. [HTTP verbs](https://learn.microsoft.com/en-us/azure/virtual-machines/<#http-verbs>)\n 6. [Parameters](https://learn.microsoft.com/en-us/azure/virtual-machines/<#parameters>)\n 7. [Schema](https://learn.microsoft.com/en-us/azure/virtual-machines/<#schema>)\n 8. [Regional availability](https://learn.microsoft.com/en-us/azure/virtual-machines/<#regional-availability>)\n 9. [Root endpoint](https://learn.microsoft.com/en-us/azure/virtual-machines/<#root-endpoint>)\n 10. [Endpoint categories](https://learn.microsoft.com/en-us/azure/virtual-machines/<#endpoint-categories>)\n 11. [Versions](https://learn.microsoft.com/en-us/azure/virtual-machines/<#versions>)\n 12. [Instance metadata](https://learn.microsoft.com/en-us/azure/virtual-machines/<#instance-metadata>)\n 13. [Attested data](https://learn.microsoft.com/en-us/azure/virtual-machines/<#attested-data>)\n 14. [Managed identity](https://learn.microsoft.com/en-us/azure/virtual-machines/<#managed-identity>)\n 15. [Load Balancer Metadata](https://learn.microsoft.com/en-us/azure/virtual-machines/<#load-balancer-metadata>)\n 16. [Scheduled events](https://learn.microsoft.com/en-us/azure/virtual-machines/<#scheduled-events>)\n 17. [Sample code in different languages](https://learn.microsoft.com/en-us/azure/virtual-machines/<#sample-code-in-different-languages>)\n 18. [Errors and debugging](https://learn.microsoft.com/en-us/azure/virtual-machines/<#errors-and-debugging>)\n 19. [Frequently asked questions](https://learn.microsoft.com/en-us/azure/virtual-machines/<#frequently-asked-questions>)\n 20. [Support](https://learn.microsoft.com/en-us/azure/virtual-machines/<#support>)\n 21. [Product feedback](https://learn.microsoft.com/en-us/azure/virtual-machines/<#product-feedback>)\n 22. [Next steps](https://learn.microsoft.com/en-us/azure/virtual-machines/<#next-steps>)\n\nShow 18 more\n**Applies to:** ✔️ Linux VMs ✔️ Windows VMs ✔️ Flexible scale sets\nThe Azure Instance Metadata Service (IMDS) provides information about currently running virtual machine instances. You can use it to manage and configure your virtual machines. This information includes the SKU, storage, network configurations, and upcoming maintenance events. For a complete list of the data available, see the [Endpoint Categories Summary](https://learn.microsoft.com/en-us/azure/virtual-machines/<#endpoint-categories>).\nIMDS is available for running instances of virtual machines (VMs) and scale set instances. All endpoints support VMs created and managed by using [Azure Resource Manager](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/rest/api/resources/>). Only the Attested category and Network portion of the Instance category support VMs created by using the classic deployment model. The Attested endpoint does so only to a limited extent.\nIMDS is a REST API that's available at a well-known, non-routable IP address (`169.254.169.254`). You can only access it from within the VM. Communication between the VM and IMDS never leaves the host. Have your HTTP clients bypass web proxies within the VM when querying IMDS.\n[](https://learn.microsoft.com/en-us/azure/virtual-machines/<#usage>)"
}
] |
[
{
"from": "system",
"value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation."
},
{
"from": "human",
"value": "Can you explain Usage?"
},
{
"from": "gpt",
"value": "[](https://learn.microsoft.com/en-us/azure/virtual-machines/<#access-azure-instance-metadata-service>)"
}
] |
[
{
"from": "system",
"value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation."
},
{
"from": "human",
"value": "Can you explain Access Azure Instance Metadata Service?"
},
{
"from": "gpt",
"value": "To access IMDS, create a VM from [Azure Resource Manager](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/rest/api/resources/>) or the [Azure portal](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/portal.azure.com>), and use the following samples. For more examples, see [Azure Instance Metadata Samples](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/github.com/microsoft/azureimds>).\nHere's sample code to retrieve all metadata for an instance. To access a specific data source, see [Endpoint Categories](https://learn.microsoft.com/en-us/azure/virtual-machines/<#endpoint-categories>) for an overview of all available features.\n**Request**\nImportant\nThis example bypasses proxies. You **must** bypass proxies when querying IMDS. See [Proxies](https://learn.microsoft.com/en-us/azure/virtual-machines/<#proxies>) for additional information.\nNote\nIMDS requests must be sent using VM's primary NIC and primary IP, and DHCP must be enabled.\n * [Windows](https://learn.microsoft.com/en-us/azure/virtual-machines/<#tabpanel_1_windows>)\n * [Linux](https://learn.microsoft.com/en-us/azure/virtual-machines/<#tabpanel_1_linux>)\n\n```\nInvoke-RestMethod -Headers @{\"Metadata\"=\"true\"} -Method GET -NoProxy -Uri \"http://169.254.169.254/metadata/instance?api-version=2021-02-01\" | ConvertTo-Json -Depth 64\n\n```\n\n`-NoProxy` requires PowerShell V6 or greater. See our [samples repository](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/github.com/microsoft/azureimds>) for examples with older PowerShell versions.\n```\ncurl -s -H Metadata:true --noproxy \"*\" \"http://169.254.169.254/metadata/instance?api-version=2021-02-01\" | jq\n\n```\n\nThe `jq` utility is available in many cases, but not all. If the `jq` utility is missing, use `| python -m json.tool` instead.\n**Response**\nNote\nThe response is a JSON string. The following example response is pretty-printed for readability.\n * [Windows](https://learn.microsoft.com/en-us/azure/virtual-machines/<#tabpanel_1_windows>)\n * [Linux](https://learn.microsoft.com/en-us/azure/virtual-machines/<#tabpanel_1_linux>)\n\n```\n{\n \"compute\": {\n \"azEnvironment\": \"AZUREPUBLICCLOUD\",\n \"additionalCapabilities\": {\n \"hibernationEnabled\": \"true\"\n },\n \"hostGroup\": {\n \"id\": \"testHostGroupId\"\n },\n \"extendedLocation\": {\n \"type\": \"edgeZone\",\n \"name\": \"microsoftlosangeles\"\n },\n \"evictionPolicy\": \"\",\n \"isHostCompatibilityLayerVm\": \"true\",\n \"licenseType\": \"Windows_Client\",\n \"location\": \"westus\",\n \"name\": \"examplevmname\",\n \"offer\": \"WindowsServer\",\n \"osProfile\": {\n \"adminUsername\": \"admin\",\n \"computerName\": \"examplevmname\",\n \"disablePasswordAuthentication\": \"true\"\n },\n \"osType\": \"Windows\",\n \"placementGroupId\": \"f67c14ab-e92c-408c-ae2d-da15866ec79a\",\n \"plan\": {\n \"name\": \"planName\",\n \"product\": \"planProduct\",\n \"publisher\": \"planPublisher\"\n },\n \"platformFaultDomain\": \"36\",\n \"platformSubFaultDomain\": \"\",\n \"platformUpdateDomain\": \"42\",\n \"priority\": \"Regular\",\n \"publicKeys\": [{\n \"keyData\": \"ssh-rsa 0\",\n \"path\": \"/home/user/.ssh/authorized_keys0\"\n },\n {\n \"keyData\": \"ssh-rsa 1\",\n \"path\": \"/home/user/.ssh/authorized_keys1\"\n }\n ],\n \"publisher\": \"RDFE-Test-Microsoft-Windows-Server-Group\",\n \"resourceGroupName\": \"macikgo-test-may-23\",\n \"resourceId\": \"/subscriptions/xxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx/resourceGroups/macikgo-test-may-23/providers/Microsoft.Compute/virtualMachines/examplevmname\",\n \"securityProfile\": {\n \"secureBootEnabled\": \"true\",\n \"virtualTpmEnabled\": \"false\",\n \"encryptionAtHost\": \"true\",\n \"securityType\": \"TrustedLaunch\"\n },\n \"sku\": \"2019-Datacenter\",\n \"storageProfile\": {\n \"dataDisks\": [{\n \"bytesPerSecondThrottle\": \"979202048\",\n \"caching\": \"None\",\n \"createOption\": \"Empty\",\n \"diskCapacityBytes\": \"274877906944\",\n \"diskSizeGB\": \"1024\",\n \"image\": {\n \"uri\": \"\"\n },\n \"isSharedDisk\": \"false\",\n \"isUltraDisk\": \"true\",\n \"lun\": \"0\",\n \"managedDisk\": {\n \"id\": \"/subscriptions/xxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx/resourceGroups/macikgo-test-may-23/providers/Microsoft.Compute/disks/exampledatadiskname\",\n \"storageAccountType\": \"StandardSSD_LRS\"\n },\n \"name\": \"exampledatadiskname\",\n \"opsPerSecondThrottle\": \"65280\",\n \"vhd\": {\n \"uri\": \"\"\n },\n \"writeAcceleratorEnabled\": \"false\"\n }],\n \"imageReference\": {\n \"id\": \"\",\n \"offer\": \"WindowsServer\",\n \"publisher\": \"MicrosoftWindowsServer\",\n \"sku\": \"2019-Datacenter\",\n \"version\": \"latest\",\n \"communityGalleryImageId\": \"/CommunityGalleries/testgallery/Images/1804Gen2/Versions/latest\",\n \"sharedGalleryImageId\": \"/SharedGalleries/1P/Images/gen2/Versions/latest\",\n \"exactVersion\": \"1.1686127202.30113\"\n },\n \"osDisk\": {\n \"caching\": \"ReadWrite\",\n \"createOption\": \"FromImage\",\n \"diskSizeGB\": \"30\",\n \"diffDiskSettings\": {\n \"option\": \"Local\"\n },\n \"encryptionSettings\": {\n \"enabled\": \"false\",\n \"diskEncryptionKey\": {\n \"sourceVault\": {\n \"id\": \"/subscriptions/test-source-guid/resourceGroups/testrg/providers/Microsoft.KeyVault/vaults/test-kv\"\n },\n \"secretUrl\": \"https://test-disk.vault.azure.net/secrets/xxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx/xxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx\"\n },\n \"keyEncryptionKey\": {\n \"sourceVault\": {\n \"id\": \"/subscriptions/test-key-guid/resourceGroups/testrg/providers/Microsoft.KeyVault/vaults/test-kv\"\n },\n \"keyUrl\": \"https://test-key.vault.azure.net/secrets/xxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx/xxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx\"\n }\n },\n \"image\": {\n \"uri\": \"\"\n },\n \"managedDisk\": {\n \"id\": \"/subscriptions/xxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx/resourceGroups/macikgo-test-may-23/providers/Microsoft.Compute/disks/exampleosdiskname\",\n \"storageAccountType\": \"StandardSSD_LRS\"\n },\n \"name\": \"exampleosdiskname\",\n \"osType\": \"Windows\",\n \"vhd\": {\n \"uri\": \"\"\n },\n \"writeAcceleratorEnabled\": \"false\"\n },\n \"resourceDisk\": {\n \"size\": \"4096\"\n }\n },\n \"subscriptionId\": \"xxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx\",\n \"tags\": \"baz:bash;foo:bar\",\n \"userData\": \"Zm9vYmFy\",\n \"version\": \"15.05.22\",\n \"virtualMachineScaleSet\": {\n \"id\": \"/subscriptions/xxxxxxxx-xxxxx-xxx-xxx-xxxx/resourceGroups/resource-group-name/providers/Microsoft.Compute/virtualMachineScaleSets/virtual-machine-scale-set-name\"\n },\n \"vmId\": \"02aab8a4-74ef-476e-8182-f6d2ba4166a6\",\n \"vmScaleSetName\": \"crpteste9vflji9\",\n \"vmSize\": \"Standard_A3\",\n \"zone\": \"\"\n },\n \"network\": {\n \"interface\": [{\n \"ipv4\": {\n \"ipAddress\": [{\n \"privateIpAddress\": \"10.144.133.132\",\n \"publicIpAddress\": \"\"\n }],\n \"subnet\": [{\n \"address\": \"10.144.133.128\",\n \"prefix\": \"26\"\n }]\n },\n \"ipv6\": {\n \"ipAddress\": [\n ]\n },\n \"macAddress\": \"0011AAFFBB22\"\n }]\n }\n}\n\n```\n```\n{\n \"compute\": {\n \"azEnvironment\": \"AZUREPUBLICCLOUD\",\n \"additionalCapabilities\": {\n \"hibernationEnabled\": \"true\"\n },\n \"hostGroup\": {\n \"id\": \"testHostGroupId\"\n },\n \"extendedLocation\": {\n \"type\": \"edgeZone\",\n \"name\": \"microsoftlosangeles\"\n },\n \"evictionPolicy\": \"\",\n \"isHostCompatibilityLayerVm\": \"true\",\n \"licenseType\": \"\",\n \"location\": \"westus\",\n \"name\": \"examplevmname\",\n \"offer\": \"UbuntuServer\",\n \"osProfile\": {\n \"adminUsername\": \"admin\",\n \"computerName\": \"examplevmname\",\n \"disablePasswordAuthentication\": \"true\"\n },\n \"osType\": \"Linux\",\n \"placementGroupId\": \"f67c14ab-e92c-408c-ae2d-da15866ec79a\",\n \"plan\": {\n \"name\": \"planName\",\n \"product\": \"planProduct\",\n \"publisher\": \"planPublisher\"\n },\n \"platformFaultDomain\": \"36\",\n \"platformSubFaultDomain\": \"\",\n \"platformUpdateDomain\": \"42\",\n \"priority\": \"Regular\",\n \"publicKeys\": [{\n \"keyData\": \"ssh-rsa 0\",\n \"path\": \"/home/user/.ssh/authorized_keys0\"\n },\n {\n \"keyData\": \"ssh-rsa 1\",\n \"path\": \"/home/user/.ssh/authorized_keys1\"\n }\n ],\n \"publisher\": \"Canonical\",\n \"resourceGroupName\": \"macikgo-test-may-23\",\n \"resourceId\": \"/subscriptions/xxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx/resourceGroups/macikgo-test-may-23/providers/Microsoft.Compute/virtualMachines/examplevmname\",\n \"securityProfile\": {\n \"secureBootEnabled\": \"true\",\n \"virtualTpmEnabled\": \"false\",\n \"encryptionAtHost\": \"true\",\n \"securityType\": \"TrustedLaunch\"\n },\n \"sku\": \"18.04-LTS\",\n \"storageProfile\": {\n \"dataDisks\": [{\n \"bytesPerSecondThrottle\": \"979202048\",\n \"caching\": \"None\",\n \"createOption\": \"Empty\",\n \"diskCapacityBytes\": \"274877906944\",\n \"diskSizeGB\": \"1024\",\n \"image\": {\n \"uri\": \"\"\n },\n \"isSharedDisk\": \"false\",\n \"isUltraDisk\": \"true\",\n \"lun\": \"0\",\n \"managedDisk\": {\n \"id\": \"/subscriptions/xxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx/resourceGroups/macikgo-test-may-23/providers/Microsoft.Compute/disks/exampledatadiskname\",\n \"storageAccountType\": \"StandardSSD_LRS\"\n },\n \"name\": \"exampledatadiskname\",\n \"opsPerSecondThrottle\": \"65280\",\n \"vhd\": {\n \"uri\": \"\"\n },\n \"writeAcceleratorEnabled\": \"false\"\n }],\n \"imageReference\": {\n \"id\": \"\",\n \"offer\": \"UbuntuServer\",\n \"publisher\": \"Canonical\",\n \"sku\": \"16.04.0-LTS\",\n \"version\": \"latest\",\n \"communityGalleryImageId\": \"/CommunityGalleries/testgallery/Images/1804Gen2/Versions/latest\",\n \"sharedGalleryImageId\": \"/SharedGalleries/1P/Images/gen2/Versions/latest\",\n \"exactVersion\": \"1.1686127202.30113\"\n },\n \"osDisk\": {\n \"caching\": \"ReadWrite\",\n \"createOption\": \"FromImage\",\n \"diskSizeGB\": \"30\",\n \"diffDiskSettings\": {\n \"option\": \"Local\"\n },\n \"encryptionSettings\": {\n \"enabled\": \"false\",\n \"diskEncryptionKey\": {\n \"sourceVault\": {\n \"id\": \"/subscriptions/test-source-guid/resourceGroups/testrg/providers/Microsoft.KeyVault/vaults/test-kv\"\n },\n \"secretUrl\": \"https://test-disk.vault.azure.net/secrets/xxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx/xxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx\"\n },\n \"keyEncryptionKey\": {\n \"sourceVault\": {\n \"id\": \"/subscriptions/test-key-guid/resourceGroups/testrg/providers/Microsoft.KeyVault/vaults/test-kv\"\n },\n \"keyUrl\": \"https://test-key.vault.azure.net/secrets/xxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx/xxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx\"\n }\n },\n \"image\": {\n \"uri\": \"\"\n },\n \"managedDisk\": {\n \"id\": \"/subscriptions/xxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx/resourceGroups/macikgo-test-may-23/providers/Microsoft.Compute/disks/exampleosdiskname\",\n \"storageAccountType\": \"StandardSSD_LRS\"\n },\n \"name\": \"exampleosdiskname\",\n \"osType\": \"Linux\",\n \"vhd\": {\n \"uri\": \"\"\n },\n \"writeAcceleratorEnabled\": \"false\"\n },\n \"resourceDisk\": {\n \"size\": \"4096\"\n }\n },\n \"subscriptionId\": \"xxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx\",\n \"tags\": \"baz:bash;foo:bar\",\n \"version\": \"15.05.22\",\n \"virtualMachineScaleSet\": {\n \"id\": \"/subscriptions/xxxxxxxx-xxxxx-xxx-xxx-xxxx/resourceGroups/resource-group-name/providers/Microsoft.Compute/virtualMachineScaleSets/virtual-machine-scale-set-name\"\n },\n \"vmId\": \"02aab8a4-74ef-476e-8182-f6d2ba4166a6\",\n \"vmScaleSetName\": \"crpteste9vflji9\",\n \"vmSize\": \"Standard_A3\",\n \"zone\": \"\"\n },\n \"network\": {\n \"interface\": [{\n \"ipv4\": {\n \"ipAddress\": [{\n \"privateIpAddress\": \"10.144.133.132\",\n \"publicIpAddress\": \"\"\n }],\n \"subnet\": [{\n \"address\": \"10.144.133.128\",\n \"prefix\": \"26\"\n }]\n },\n \"ipv6\": {\n \"ipAddress\": [\n ]\n },\n \"macAddress\": \"0011AAFFBB22\"\n }]\n }\n}\n\n```\n\n[](https://learn.microsoft.com/en-us/azure/virtual-machines/<#security-and-authentication>)"
}
] |
[
{
"from": "system",
"value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation."
},
{
"from": "human",
"value": "Can you explain Security and authentication?"
},
{
"from": "gpt",
"value": "The Instance Metadata Service is only accessible from within a running virtual machine instance on a non-routable IP address. VMs can only interact with their own metadata/functionality. The API is HTTP only and never leaves the host.\nIn order to ensure that requests are directly intended for IMDS and prevent unintended or unwanted redirection of requests, requests:\n * **Must** contain the header `Metadata: true`\n * Must **not** contain an `X-Forwarded-For` header\n\nAny request that doesn't meet **both** of these requirements are rejected by the service.\nImportant\nIMDS is **not** a channel for sensitive data. The API is unauthenticated and open to all processes on the VM. Information exposed through this service should be considered as shared information to all applications running inside the VM.\nIf it isn't necessary for every process on the VM to access IMDS endpoint, you can set local firewall rules to limit the access. For example, if only a known system service needs to access instance metadata service, you can set a firewall rule on IMDS endpoint, only allowing the specific process(es) to access, or denying access for the rest of the processes.\n[](https://learn.microsoft.com/en-us/azure/virtual-machines/<#proxies>)"
}
] |
[
{
"from": "system",
"value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation."
},
{
"from": "human",
"value": "Can you explain Proxies?"
},
{
"from": "gpt",
"value": "IMDS is **not** intended to be used behind a proxy and doing so is unsupported. Most HTTP clients provide an option for you to disable proxies on your requests, and this functionality must be utilized when communicating with IMDS. Consult your client's documentation for details.\nImportant\nEven if you don't know of any proxy configuration in your environment, **you still must override any default client proxy settings**. Proxy configurations can be automatically discovered, and failing to bypass such configurations exposes you to outage risks should the machine's configuration be changed in the future.\n[](https://learn.microsoft.com/en-us/azure/virtual-machines/<#rate-limiting>)"
}
] |
[
{
"from": "system",
"value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation."
},
{
"from": "human",
"value": "Can you explain Rate limiting?"
},
{
"from": "gpt",
"value": "In general, requests to IMDS are limited to 5 requests per second (on a per VM basis). Requests exceeding this threshold will be rejected with 429 responses. Requests to the [Managed Identity](https://learn.microsoft.com/en-us/azure/virtual-machines/<#managed-identity>) category are limited to 20 requests per second and 5 concurrent requests (on a per VM basis).\n[](https://learn.microsoft.com/en-us/azure/virtual-machines/<#http-verbs>)"
}
] |
[
{
"from": "system",
"value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation."
},
{
"from": "human",
"value": "Can you explain HTTP verbs?"
},
{
"from": "gpt",
"value": "The following HTTP verbs are currently supported:\nExpand table\nVerb | Description\n---|---\n`GET` | Retrieve the requested resource\n[](https://learn.microsoft.com/en-us/azure/virtual-machines/<#parameters>)"
}
] |
[
{
"from": "system",
"value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation."
},
{
"from": "human",
"value": "Can you explain Parameters?"
},
{
"from": "gpt",
"value": "Endpoints may support required and/or optional parameters. See [Schema](https://learn.microsoft.com/en-us/azure/virtual-machines/<#schema>) and the documentation for the specific endpoint in question for details.\n[](https://learn.microsoft.com/en-us/azure/virtual-machines/<#query-parameters>)"
}
] |
[
{
"from": "system",
"value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation."
},
{
"from": "human",
"value": "Can you explain Query parameters?"
},
{
"from": "gpt",
"value": "IMDS endpoints support HTTP query string parameters. For example:\n```\nhttp://169.254.169.254/metadata/instance/compute?api-version=2021-01-01&format=json\n\n```\n\nSpecifies the parameters:\nExpand table\nName | Value\n---|---\n`api-version` | `2021-01-01`\n`format` | `json`\nRequests with duplicate query parameter names will be rejected.\n[](https://learn.microsoft.com/en-us/azure/virtual-machines/<#route-parameters>)"
}
] |
[
{
"from": "system",
"value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation."
},
{
"from": "human",
"value": "Can you explain Route parameters?"
},
{
"from": "gpt",
"value": "For some endpoints that return larger json blobs, we support appending route parameters to the request endpoint to filter down to a subset of the response:\n```\nhttp://169.254.169.254/metadata/<endpoint>/[<filter parameter>/...]?<query parameters>\n\n```\n\nThe parameters correspond to the indexes/keys that would be used to walk down the json object were you interacting with a parsed representation.\nFor example, `/metadata/instance` returns the json object:\n```\n{\n \"compute\": { ... },\n \"network\": {\n \"interface\": [\n {\n \"ipv4\": {\n \"ipAddress\": [{\n \"privateIpAddress\": \"10.144.133.132\",\n \"publicIpAddress\": \"\"\n }],\n \"subnet\": [{\n \"address\": \"10.144.133.128\",\n \"prefix\": \"26\"\n }]\n },\n \"ipv6\": {\n \"ipAddress\": [\n ]\n },\n \"macAddress\": \"0011AAFFBB22\"\n },\n ...\n ]\n }\n}\n\n```\n\nIf we want to filter the response down to just the compute property, we would send the request:\n```\nhttp://169.254.169.254/metadata/instance/compute?api-version=<version>\n\n```\n\nSimilarly, if we want to filter to a nested property or specific array element we keep appending keys:\n```\nhttp://169.254.169.254/metadata/instance/network/interface/0?api-version=<version>\n\n```\n\nwould filter to the first element from the `Network.interface` property and return:\n```\n{\n \"ipv4\": {\n \"ipAddress\": [{\n \"privateIpAddress\": \"10.144.133.132\",\n \"publicIpAddress\": \"\"\n }],\n \"subnet\": [{\n \"address\": \"10.144.133.128\",\n \"prefix\": \"26\"\n }]\n },\n \"ipv6\": {\n \"ipAddress\": [\n ]\n },\n \"macAddress\": \"0011AAFFBB22\"\n}\n\n```\n\nNote\nWhen filtering to a leaf node, `format=json` doesn't work. For these queries `format=text` needs to be explicitly specified since the default format is json.\n[](https://learn.microsoft.com/en-us/azure/virtual-machines/<#schema>)"
}
] |
[
{
"from": "system",
"value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation."
},
{
"from": "human",
"value": "Can you explain Schema?"
},
{
"from": "gpt",
"value": "[](https://learn.microsoft.com/en-us/azure/virtual-machines/<#data-format>)"
}
] |
[
{
"from": "system",
"value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation."
},
{
"from": "human",
"value": "Can you explain Data format?"
},
{
"from": "gpt",
"value": "By default, IMDS returns data in JSON format (`Content-Type: application/json`). However, endpoints that support response filtering (see [Route Parameters](https://learn.microsoft.com/en-us/azure/virtual-machines/<#route-parameters>)) also support the format `text`.\nTo access a non-default response format, specify the requested format as a query string parameter in the request. For example:\n * [Windows](https://learn.microsoft.com/en-us/azure/virtual-machines/<#tabpanel_2_windows>)\n * [Linux](https://learn.microsoft.com/en-us/azure/virtual-machines/<#tabpanel_2_linux>)\n\n```\nInvoke-RestMethod -Headers @{\"Metadata\"=\"true\"} -Method GET -NoProxy -Uri \"http://169.254.169.254/metadata/instance?api-version=2017-08-01&format=text\"\n\n```\n```\ncurl -s -H Metadata:true --noproxy \"*\" \"http://169.254.169.254/metadata/instance?api-version=2017-08-01&format=text\"\n\n```\n\nIn json responses, all primitives will be of type `string`, and missing or inapplicable values are always included but will be set to an empty string.\n[](https://learn.microsoft.com/en-us/azure/virtual-machines/<#versioning>)"
}
] |
[
{
"from": "system",
"value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation."
},
{
"from": "human",
"value": "Can you explain Versioning?"
},
{
"from": "gpt",
"value": "IMDS is versioned and specifying the API version in the HTTP request is mandatory. The only exception to this requirement is the [versions](https://learn.microsoft.com/en-us/azure/virtual-machines/<#versions>) endpoint, which can be used to dynamically retrieve the available API versions.\nAs newer versions are added, older versions can still be accessed for compatibility if your scripts have dependencies on specific data formats.\nWhen you don't specify a version, you get an error with a list of the newest supported versions:\n```\n{\n \"error\": \"Bad request. api-version was not specified in the request. For more information refer to aka.ms/azureimds\",\n \"newest-versions\": [\n \"2020-10-01\",\n \"2020-09-01\",\n \"2020-07-15\"\n ]\n}\n\n```\n\n[](https://learn.microsoft.com/en-us/azure/virtual-machines/<#supported-api-versions>)\n#### Supported API versions\nNote\nVersion 2023-11-15 is still being rolled out, it may not be available in some regions.\n * 2023-11-15\n * 2023-07-01\n * 2021-12-13\n * 2021-11-15\n * 2021-11-01\n * 2021-10-01\n * 2021-08-01\n * 2021-05-01\n * 2021-03-01\n * 2021-02-01\n * 2021-01-01\n * 2020-12-01\n * 2020-10-01\n * 2020-09-01\n * 2020-07-15\n * 2020-06-01\n * 2019-11-01\n * 2019-08-15\n * 2019-08-01\n * 2019-06-04\n * 2019-06-01\n * 2019-04-30\n * 2019-03-11\n * 2019-02-01\n * 2018-10-01\n * 2018-04-02\n * 2018-02-01\n * 2017-12-01\n * 2017-10-01\n * 2017-08-01\n * 2017-04-02\n * 2017-03-01\n\n[](https://learn.microsoft.com/en-us/azure/virtual-machines/<#swagger>)"
}
] |
[
{
"from": "system",
"value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation."
},
{
"from": "human",
"value": "Can you explain Swagger?"
},
{
"from": "gpt",
"value": "A full Swagger definition for IMDS is available at: <https://github.com/Azure/azure-rest-api-specs/blob/main/specification/imds/data-plane/readme.md>\n[](https://learn.microsoft.com/en-us/azure/virtual-machines/<#regional-availability>)"
}
] |
[
{
"from": "system",
"value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation."
},
{
"from": "human",
"value": "Can you explain Regional availability?"
},
{
"from": "gpt",
"value": "The service is **generally available** in all Azure clouds.\n[](https://learn.microsoft.com/en-us/azure/virtual-machines/<#root-endpoint>)"
}
] |
[
{
"from": "system",
"value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation."
},
{
"from": "human",
"value": "Can you explain Root endpoint?"
},
{
"from": "gpt",
"value": "The root endpoint is `http://169.254.169.254/metadata`.\n[](https://learn.microsoft.com/en-us/azure/virtual-machines/<#endpoint-categories>)"
}
] |
[
{
"from": "system",
"value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation."
},
{
"from": "human",
"value": "Can you explain Endpoint categories?"
},
{
"from": "gpt",
"value": "The IMDS API contains multiple endpoint categories representing different data sources, each of which contains one or more endpoints. See each category for details.\nExpand table\nCategory root | Description | Version introduced\n---|---|---\n`/metadata/attested` | See [Attested Data](https://learn.microsoft.com/en-us/azure/virtual-machines/<#attested-data>) | 2018-10-01\n`/metadata/identity` | See [Managed Identity via IMDS](https://learn.microsoft.com/en-us/azure/virtual-machines/<#managed-identity>) | 2018-02-01\n`/metadata/instance` | See [Instance Metadata](https://learn.microsoft.com/en-us/azure/virtual-machines/<#instance-metadata>) | 2017-04-02\n`/metadata/loadbalancer` | See [Retrieve Load Balancer metadata via IMDS](https://learn.microsoft.com/en-us/azure/virtual-machines/<#load-balancer-metadata>) | 2020-10-01\n`/metadata/scheduledevents` | See [Scheduled Events via IMDS](https://learn.microsoft.com/en-us/azure/virtual-machines/<#scheduled-events>) | 2017-08-01\n`/metadata/versions` | See [Versions](https://learn.microsoft.com/en-us/azure/virtual-machines/<#versions>) | N/A\n[](https://learn.microsoft.com/en-us/azure/virtual-machines/<#versions>)"
}
] |
[
{
"from": "system",
"value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation."
},
{
"from": "human",
"value": "Can you explain Versions?"
},
{
"from": "gpt",
"value": "[](https://learn.microsoft.com/en-us/azure/virtual-machines/<#list-api-versions>)"
}
] |
[
{
"from": "system",
"value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation."
},
{
"from": "human",
"value": "Can you explain List API versions?"
},
{
"from": "gpt",
"value": "Returns the set of supported API versions.\n```\nGET /metadata/versions\n\n```\n\n[](https://learn.microsoft.com/en-us/azure/virtual-machines/<#parameters-1>)\n#### Parameters\nNone (this endpoint is unversioned).\n[](https://learn.microsoft.com/en-us/azure/virtual-machines/<#response>)\n#### Response\n```\n{\n \"apiVersions\": [\n \"2017-03-01\",\n \"2017-04-02\",\n ...\n ]\n}\n\n```\n\n[](https://learn.microsoft.com/en-us/azure/virtual-machines/<#instance-metadata>)"
}
] |
[
{
"from": "system",
"value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation."
},
{
"from": "human",
"value": "Can you explain Instance metadata?"
},
{
"from": "gpt",
"value": "[](https://learn.microsoft.com/en-us/azure/virtual-machines/<#get-vm-metadata>)"
}
] |
[
{
"from": "system",
"value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation."
},
{
"from": "human",
"value": "Can you explain Get VM metadata?"
},
{
"from": "gpt",
"value": "Exposes the important metadata for the VM instance, including compute, network, and storage.\n```\nGET /metadata/instance\n\n```\n\n[](https://learn.microsoft.com/en-us/azure/virtual-machines/<#parameters-2>)\n#### Parameters\nExpand table\nName | Required/Optional | Description\n---|---|---\n`api-version` | Required | The version used to service the request.\n`format` | Optional* | The format (`json` or `text`) of the response. *Note: May be required when using request parameters\nThis endpoint supports response filtering via [route parameters](https://learn.microsoft.com/en-us/azure/virtual-machines/<#route-parameters>).\n[](https://learn.microsoft.com/en-us/azure/virtual-machines/<#response-1>)\n#### Response\n * [Windows](https://learn.microsoft.com/en-us/azure/virtual-machines/<#tabpanel_1_windows>)\n * [Linux](https://learn.microsoft.com/en-us/azure/virtual-machines/<#tabpanel_1_linux>)\n\n```\n{\n \"compute\": {\n \"azEnvironment\": \"AZUREPUBLICCLOUD\",\n \"additionalCapabilities\": {\n \"hibernationEnabled\": \"true\"\n },\n \"hostGroup\": {\n \"id\": \"testHostGroupId\"\n },\n \"extendedLocation\": {\n \"type\": \"edgeZone\",\n \"name\": \"microsoftlosangeles\"\n },\n \"evictionPolicy\": \"\",\n \"isHostCompatibilityLayerVm\": \"true\",\n \"licenseType\": \"Windows_Client\",\n \"location\": \"westus\",\n \"name\": \"examplevmname\",\n \"offer\": \"WindowsServer\",\n \"osProfile\": {\n \"adminUsername\": \"admin\",\n \"computerName\": \"examplevmname\",\n \"disablePasswordAuthentication\": \"true\"\n },\n \"osType\": \"Windows\",\n \"placementGroupId\": \"f67c14ab-e92c-408c-ae2d-da15866ec79a\",\n \"plan\": {\n \"name\": \"planName\",\n \"product\": \"planProduct\",\n \"publisher\": \"planPublisher\"\n },\n \"platformFaultDomain\": \"36\",\n \"platformSubFaultDomain\": \"\",\n \"platformUpdateDomain\": \"42\",\n \"priority\": \"Regular\",\n \"publicKeys\": [{\n \"keyData\": \"ssh-rsa 0\",\n \"path\": \"/home/user/.ssh/authorized_keys0\"\n },\n {\n \"keyData\": \"ssh-rsa 1\",\n \"path\": \"/home/user/.ssh/authorized_keys1\"\n }\n ],\n \"publisher\": \"RDFE-Test-Microsoft-Windows-Server-Group\",\n \"resourceGroupName\": \"macikgo-test-may-23\",\n \"resourceId\": \"/subscriptions/xxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx/resourceGroups/macikgo-test-may-23/providers/Microsoft.Compute/virtualMachines/examplevmname\",\n \"securityProfile\": {\n \"secureBootEnabled\": \"true\",\n \"virtualTpmEnabled\": \"false\",\n \"encryptionAtHost\": \"true\",\n \"securityType\": \"TrustedLaunch\"\n },\n \"sku\": \"2019-Datacenter\",\n \"storageProfile\": {\n \"dataDisks\": [{\n \"bytesPerSecondThrottle\": \"979202048\",\n \"caching\": \"None\",\n \"createOption\": \"Empty\",\n \"diskCapacityBytes\": \"274877906944\",\n \"diskSizeGB\": \"1024\",\n \"image\": {\n \"uri\": \"\"\n },\n \"isSharedDisk\": \"false\",\n \"isUltraDisk\": \"true\",\n \"lun\": \"0\",\n \"managedDisk\": {\n \"id\": \"/subscriptions/xxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx/resourceGroups/macikgo-test-may-23/providers/Microsoft.Compute/disks/exampledatadiskname\",\n \"storageAccountType\": \"StandardSSD_LRS\"\n },\n \"name\": \"exampledatadiskname\",\n \"opsPerSecondThrottle\": \"65280\",\n \"vhd\": {\n \"uri\": \"\"\n },\n \"writeAcceleratorEnabled\": \"false\"\n }],\n \"imageReference\": {\n \"id\": \"\",\n \"offer\": \"WindowsServer\",\n \"publisher\": \"MicrosoftWindowsServer\",\n \"sku\": \"2019-Datacenter\",\n \"version\": \"latest\",\n \"communityGalleryImageId\": \"/CommunityGalleries/testgallery/Images/1804Gen2/Versions/latest\",\n \"sharedGalleryImageId\": \"/SharedGalleries/1P/Images/gen2/Versions/latest\",\n \"exactVersion\": \"1.1686127202.30113\"\n },\n \"osDisk\": {\n \"caching\": \"ReadWrite\",\n \"createOption\": \"FromImage\",\n \"diskSizeGB\": \"30\",\n \"diffDiskSettings\": {\n \"option\": \"Local\"\n },\n \"encryptionSettings\": {\n \"enabled\": \"false\",\n \"diskEncryptionKey\": {\n \"sourceVault\": {\n \"id\": \"/subscriptions/test-source-guid/resourceGroups/testrg/providers/Microsoft.KeyVault/vaults/test-kv\"\n },\n \"secretUrl\": \"https://test-disk.vault.azure.net/secrets/xxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx/xxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx\"\n },\n \"keyEncryptionKey\": {\n \"sourceVault\": {\n \"id\": \"/subscriptions/test-key-guid/resourceGroups/testrg/providers/Microsoft.KeyVault/vaults/test-kv\"\n },\n \"keyUrl\": \"https://test-key.vault.azure.net/secrets/xxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx/xxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx\"\n }\n },\n \"image\": {\n \"uri\": \"\"\n },\n \"managedDisk\": {\n \"id\": \"/subscriptions/xxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx/resourceGroups/macikgo-test-may-23/providers/Microsoft.Compute/disks/exampleosdiskname\",\n \"storageAccountType\": \"StandardSSD_LRS\"\n },\n \"name\": \"exampleosdiskname\",\n \"osType\": \"Windows\",\n \"vhd\": {\n \"uri\": \"\"\n },\n \"writeAcceleratorEnabled\": \"false\"\n },\n \"resourceDisk\": {\n \"size\": \"4096\"\n }\n },\n \"subscriptionId\": \"xxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx\",\n \"tags\": \"baz:bash;foo:bar\",\n \"userData\": \"Zm9vYmFy\",\n \"version\": \"15.05.22\",\n \"virtualMachineScaleSet\": {\n \"id\": \"/subscriptions/xxxxxxxx-xxxxx-xxx-xxx-xxxx/resourceGroups/resource-group-name/providers/Microsoft.Compute/virtualMachineScaleSets/virtual-machine-scale-set-name\"\n },\n \"vmId\": \"02aab8a4-74ef-476e-8182-f6d2ba4166a6\",\n \"vmScaleSetName\": \"crpteste9vflji9\",\n \"vmSize\": \"Standard_A3\",\n \"zone\": \"\"\n },\n \"network\": {\n \"interface\": [{\n \"ipv4\": {\n \"ipAddress\": [{\n \"privateIpAddress\": \"10.144.133.132\",\n \"publicIpAddress\": \"\"\n }],\n \"subnet\": [{\n \"address\": \"10.144.133.128\",\n \"prefix\": \"26\"\n }]\n },\n \"ipv6\": {\n \"ipAddress\": [\n ]\n },\n \"macAddress\": \"0011AAFFBB22\"\n }]\n }\n}\n\n```\n```\n{\n \"compute\": {\n \"azEnvironment\": \"AZUREPUBLICCLOUD\",\n \"additionalCapabilities\": {\n \"hibernationEnabled\": \"true\"\n },\n \"hostGroup\": {\n \"id\": \"testHostGroupId\"\n },\n \"extendedLocation\": {\n \"type\": \"edgeZone\",\n \"name\": \"microsoftlosangeles\"\n },\n \"evictionPolicy\": \"\",\n \"isHostCompatibilityLayerVm\": \"true\",\n \"licenseType\": \"\",\n \"location\": \"westus\",\n \"name\": \"examplevmname\",\n \"offer\": \"UbuntuServer\",\n \"osProfile\": {\n \"adminUsername\": \"admin\",\n \"computerName\": \"examplevmname\",\n \"disablePasswordAuthentication\": \"true\"\n },\n \"osType\": \"Linux\",\n \"placementGroupId\": \"f67c14ab-e92c-408c-ae2d-da15866ec79a\",\n \"plan\": {\n \"name\": \"planName\",\n \"product\": \"planProduct\",\n \"publisher\": \"planPublisher\"\n },\n \"platformFaultDomain\": \"36\",\n \"platformSubFaultDomain\": \"\",\n \"platformUpdateDomain\": \"42\",\n \"priority\": \"Regular\",\n \"publicKeys\": [{\n \"keyData\": \"ssh-rsa 0\",\n \"path\": \"/home/user/.ssh/authorized_keys0\"\n },\n {\n \"keyData\": \"ssh-rsa 1\",\n \"path\": \"/home/user/.ssh/authorized_keys1\"\n }\n ],\n \"publisher\": \"Canonical\",\n \"resourceGroupName\": \"macikgo-test-may-23\",\n \"resourceId\": \"/subscriptions/xxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx/resourceGroups/macikgo-test-may-23/providers/Microsoft.Compute/virtualMachines/examplevmname\",\n \"securityProfile\": {\n \"secureBootEnabled\": \"true\",\n \"virtualTpmEnabled\": \"false\",\n \"encryptionAtHost\": \"true\",\n \"securityType\": \"TrustedLaunch\"\n },\n \"sku\": \"18.04-LTS\",\n \"storageProfile\": {\n \"dataDisks\": [{\n \"bytesPerSecondThrottle\": \"979202048\",\n \"caching\": \"None\",\n \"createOption\": \"Empty\",\n \"diskCapacityBytes\": \"274877906944\",\n \"diskSizeGB\": \"1024\",\n \"image\": {\n \"uri\": \"\"\n },\n \"isSharedDisk\": \"false\",\n \"isUltraDisk\": \"true\",\n \"lun\": \"0\",\n \"managedDisk\": {\n \"id\": \"/subscriptions/xxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx/resourceGroups/macikgo-test-may-23/providers/Microsoft.Compute/disks/exampledatadiskname\",\n \"storageAccountType\": \"StandardSSD_LRS\"\n },\n \"name\": \"exampledatadiskname\",\n \"opsPerSecondThrottle\": \"65280\",\n \"vhd\": {\n \"uri\": \"\"\n },\n \"writeAcceleratorEnabled\": \"false\"\n }],\n \"imageReference\": {\n \"id\": \"\",\n \"offer\": \"UbuntuServer\",\n \"publisher\": \"Canonical\",\n \"sku\": \"16.04.0-LTS\",\n \"version\": \"latest\",\n \"communityGalleryImageId\": \"/CommunityGalleries/testgallery/Images/1804Gen2/Versions/latest\",\n \"sharedGalleryImageId\": \"/SharedGalleries/1P/Images/gen2/Versions/latest\",\n \"exactVersion\": \"1.1686127202.30113\"\n },\n \"osDisk\": {\n \"caching\": \"ReadWrite\",\n \"createOption\": \"FromImage\",\n \"diskSizeGB\": \"30\",\n \"diffDiskSettings\": {\n \"option\": \"Local\"\n },\n \"encryptionSettings\": {\n \"enabled\": \"false\",\n \"diskEncryptionKey\": {\n \"sourceVault\": {\n \"id\": \"/subscriptions/test-source-guid/resourceGroups/testrg/providers/Microsoft.KeyVault/vaults/test-kv\"\n },\n \"secretUrl\": \"https://test-disk.vault.azure.net/secrets/xxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx/xxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx\"\n },\n \"keyEncryptionKey\": {\n \"sourceVault\": {\n \"id\": \"/subscriptions/test-key-guid/resourceGroups/testrg/providers/Microsoft.KeyVault/vaults/test-kv\"\n },\n \"keyUrl\": \"https://test-key.vault.azure.net/secrets/xxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx/xxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx\"\n }\n },\n \"image\": {\n \"uri\": \"\"\n },\n \"managedDisk\": {\n \"id\": \"/subscriptions/xxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx/resourceGroups/macikgo-test-may-23/providers/Microsoft.Compute/disks/exampleosdiskname\",\n \"storageAccountType\": \"StandardSSD_LRS\"\n },\n \"name\": \"exampleosdiskname\",\n \"osType\": \"Linux\",\n \"vhd\": {\n \"uri\": \"\"\n },\n \"writeAcceleratorEnabled\": \"false\"\n },\n \"resourceDisk\": {\n \"size\": \"4096\"\n }\n },\n \"subscriptionId\": \"xxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx\",\n \"tags\": \"baz:bash;foo:bar\",\n \"version\": \"15.05.22\",\n \"virtualMachineScaleSet\": {\n \"id\": \"/subscriptions/xxxxxxxx-xxxxx-xxx-xxx-xxxx/resourceGroups/resource-group-name/providers/Microsoft.Compute/virtualMachineScaleSets/virtual-machine-scale-set-name\"\n },\n \"vmId\": \"02aab8a4-74ef-476e-8182-f6d2ba4166a6\",\n \"vmScaleSetName\": \"crpteste9vflji9\",\n \"vmSize\": \"Standard_A3\",\n \"zone\": \"\"\n },\n \"network\": {\n \"interface\": [{\n \"ipv4\": {\n \"ipAddress\": [{\n \"privateIpAddress\": \"10.144.133.132\",\n \"publicIpAddress\": \"\"\n }],\n \"subnet\": [{\n \"address\": \"10.144.133.128\",\n \"prefix\": \"26\"\n }]\n },\n \"ipv6\": {\n \"ipAddress\": [\n ]\n },\n \"macAddress\": \"0011AAFFBB22\"\n }]\n }\n}\n\n```\n\nSchema breakdown:\n**Compute**\nExpand table\nData | Description | Version introduced\n---|---|---\n`azEnvironment` | Azure Environment where the VM is running in | 2018-10-01\n`additionalCapabilities.hibernationEnabled` | Identifies if hibernation is enabled on the VM | 2021-11-01\n`customData` | This feature is deprecated and disabled [in IMDS](https://learn.microsoft.com/en-us/azure/virtual-machines/<#frequently-asked-questions>). It has been superseded by `userData` | 2019-02-01\n`evictionPolicy` | Sets how a [Spot VM](https://learn.microsoft.com/en-us/azure/virtual-machines/<spot-vms>) will be evicted. | 2020-12-01\n`extendedLocation.type` | Type of the extended location of the VM. | 2021-03-01\n`extendedLocation.name` | Name of the extended location of the VM | 2021-03-01\n`host.id` | Name of the host of the VM. Note that a VM will either have a host or a hostGroup but not both. | 2021-11-15\n`hostGroup.id` | Name of the hostGroup of the VM. Note that a VM will either have a host or a hostGroup but not both. | 2021-11-15\n`isHostCompatibilityLayerVm` | Identifies if the VM runs on the Host Compatibility Layer | 2020-06-01\n`licenseType` | Type of license for [Azure Hybrid Benefit](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/azure.microsoft.com/pricing/hybrid-benefit>). This is only present for AHB-enabled VMs | 2020-09-01\n`location` | Azure Region the VM is running in | 2017-04-02\n`name` | Name of the VM | 2017-04-02\n`offer` | Offer information for the VM image and is only present for images deployed from Azure image gallery | 2017-04-02\n`osProfile.adminUsername` | Specifies the name of the admin account | 2020-07-15\n`osProfile.computerName` | Specifies the name of the computer | 2020-07-15\n`osProfile.disablePasswordAuthentication` | Specifies if password authentication is disabled. This is only present for Linux VMs | 2020-10-01\n`osType` | Linux or Windows | 2017-04-02\n`physicalZone` | [Physical zone](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/reliability/availability-zones-overview?tabs=azure-cli#physical-and-logical-availability-zones>) of the VM | 2023-11-15\n`placementGroupId` | [Placement Group](https://learn.microsoft.com/en-us/azure/virtual-machines/<../virtual-machine-scale-sets/virtual-machine-scale-sets-placement-groups>) of your scale set | 2017-08-01\n`plan` | [Plan](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/rest/api/compute/virtualmachines/createorupdate#plan>) containing name, product, and publisher for a VM if it's an Azure Marketplace Image | 2018-04-02\n`platformUpdateDomain` | [Update domain](https://learn.microsoft.com/en-us/azure/virtual-machines/<availability>) the VM is running in | 2017-04-02\n`platformFaultDomain` | [Fault domain](https://learn.microsoft.com/en-us/azure/virtual-machines/<availability>) the VM is running in | 2017-04-02\n`platformSubFaultDomain` | Sub fault domain the VM is running in, if applicable. | 2021-10-01\n`priority` | Priority of the VM. Refer to [Spot VMs](https://learn.microsoft.com/en-us/azure/virtual-machines/<spot-vms>) for more information | 2020-12-01\n`provider` | Provider of the VM | 2018-10-01\n`publicKeys` | [Collection of Public Keys](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/rest/api/compute/virtualmachines/createorupdate#sshpublickey>) assigned to the VM and paths | 2018-04-02\n`publisher` | Publisher of the VM image | 2017-04-02\n`resourceGroupName` | [Resource group](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/azure-resource-manager/management/overview>) for your Virtual Machine | 2017-08-01\n`resourceId` | The [fully qualified](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/rest/api/resources/resources/getbyid>) ID of the resource | 2019-03-11\n`sku` | Specific SKU for the VM image | 2017-04-02\n`securityProfile.secureBootEnabled` | Identifies if UEFI secure boot is enabled on the VM | 2020-06-01\n`securityProfile.virtualTpmEnabled` | Identifies if the virtual Trusted Platform Module (TPM) is enabled on the VM | 2020-06-01\n`securityProfile.encryptionAtHost` | Identifies if [Encryption at Host](https://learn.microsoft.com/en-us/azure/virtual-machines/<disks-enable-host-based-encryption-portal>) is enabled on the VM | 2021-11-01\n`securityProfile.securityType` | Identifies if the VM is a [Trusted VM](https://learn.microsoft.com/en-us/azure/virtual-machines/<trusted-launch>) or a [Confidential VM](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/confidential-computing/confidential-vm-overview>) | 2021-12-13\n`storageProfile` | See Storage Profile below | 2019-06-01\n`subscriptionId` | Azure subscription for the Virtual Machine | 2017-08-01\n`tags` | [Tags](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/azure-resource-manager/management/tag-resources>) for your Virtual Machine | 2017-08-01\n`tagsList` | Tags formatted as a JSON array for easier programmatic parsing | 2019-06-04\n`userData` | The set of data specified when the VM was created for use during or after provisioning (Base64 encoded) | 2021-01-01\n`version` | Version of the VM image | 2017-04-02\n`virtualMachineScaleSet.id` | ID of the [Virtual Machine Scale Set created with flexible orchestration](https://learn.microsoft.com/en-us/azure/virtual-machines/<flexible-virtual-machine-scale-sets>) the Virtual Machine is part of. This field isn't available for Virtual Machine Scale Sets created with uniform orchestration. | 2021-03-01\n`vmId` | [Unique identifier](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/azure.microsoft.com/blog/accessing-and-using-azure-vm-unique-id/>) for the VM. The blog referenced only suits for VMs that have SMBIOS < 2.6. For VMs that have SMBIOS >= 2.6, the UUID from DMI is displayed in little-endian format, thus, there's no requirement to switch bytes. | 2017-04-02\n`vmScaleSetName` | [Virtual Machine Scale Set Name](https://learn.microsoft.com/en-us/azure/virtual-machines/<../virtual-machine-scale-sets/overview>) of your scale set | 2017-12-01\n`vmSize` | [VM size](https://learn.microsoft.com/en-us/azure/virtual-machines/<sizes>) | 2017-04-02\n`zone` | [Availability Zone](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/reliability/availability-zones-overview>) of your virtual machine | 2017-12-01\n† This version isn't fully available yet and may not be supported in all regions.\n**Storage profile**\nThe storage profile of a VM is divided into three categories: image reference, OS disk, and data disks, plus an additional object for the local temporary disk.\nThe image reference object contains the following information about the OS image, please note that an image could come either from the platform, marketplace, community gallery, or direct shared gallery but not both:\nExpand table\nData | Description | Version introduced\n---|---|---\n`id` | Resource ID | 2019-06-01\n`offer` | Offer of the platform or marketplace image | 2019-06-01\n`publisher` | Publisher of the platform or marketplace image | 2019-06-01\n`sku` | Sku of the platform or marketplace image | 2019-06-01\n`version` | Version of the image | 2019-06-01\n`communityGalleryImageId` | Resource ID of the community image, empty otherwise | 2023-07-01\n`sharedGalleryImageId` | Resource ID o direct shared image, empty otherwise | 2023-07-01\n`exactVersion` | Version of the community or direct shared image | 2023-07-01\nThe OS disk object contains the following information about the OS disk used by the VM:\nExpand table\nData | Description\n---|---\n`caching` | Caching requirements\n`createOption` | Information about how the VM was created\n`diffDiskSettings` | Ephemeral disk settings\n`diskSizeGB` | Size of the disk in GB\n`image` | Source user image virtual hard disk\n`managedDisk` | Managed disk parameters\n`name` | Disk name\n`vhd` | Virtual hard disk\n`writeAcceleratorEnabled` | Whether or not writeAccelerator is enabled on the disk\nThe data disks array contains a list of data disks attached to the VM. Each data disk object contains the following information:\nExpand table\nData | Description | Version introduced\n---|---|---\n`bytesPerSecondThrottle`* | Disk read/write quota in bytes | 2021-05-01\n`caching` | Caching requirements | 2019-06-01\n`createOption` | Information about how the VM was created | 2019-06-01\n`diffDiskSettings` | Ephemeral disk settings | 2019-06-01\n`diskCapacityBytes`* | Size of disk in bytes | 2021-05-01\n`diskSizeGB` | Size of the disk in GB | 2019-06-01\n`encryptionSettings` | Encryption settings for the disk | 2019-06-01\n`image` | Source user image virtual hard disk | 2019-06-01\n`isSharedDisk`* | Identifies if the disk is shared between resources | 2021-05-01\n`isUltraDisk` | Identifies if the data disk is an Ultra Disk | 2021-05-01\n`lun` | Logical unit number of the disk | 2019-06-01\n`managedDisk` | Managed disk parameters | 2019-06-01\n`name` | Disk name | 2019-06-01\n`opsPerSecondThrottle`* | Disk read/write quota in IOPS | 2021-05-01\n`osType` | Type of OS included in the disk | 2019-06-01\n`vhd` | Virtual hard disk | 2019-06-01\n`writeAcceleratorEnabled` | Whether or not writeAccelerator is enabled on the disk | 2019-06-01\n*These fields are only populated for Ultra Disks; they are empty strings from non-Ultra Disks.\nThe encryption settings blob contains data about how the disk is encrypted (if it's encrypted):\nExpand table\nData | Description | Version introduced\n---|---|---\n`diskEncryptionKey.sourceVault.id` | The location of the disk encryption key | 2021-11-01\n`diskEncryptionKey.secretUrl` | The location of the secret | 2021-11-01\n`keyEncryptionKey.sourceVault.id` | The location of the key encryption key | 2021-11-01\n`keyEncryptionKey.keyUrl` | The location of the key | 2021-11-01\nThe resource disk object contains the size of the [Local Temp Disk](https://learn.microsoft.com/en-us/azure/virtual-machines/<managed-disks-overview#temporary-disk>) attached to the VM, if it has one, in kilobytes. If there's [no local temp disk for the VM](https://learn.microsoft.com/en-us/azure/virtual-machines/<azure-vms-no-temp-disk>), this value is 0.\nExpand table\nData | Description | Version introduced\n---|---|---\n`resourceDisk.size` | Size of the local temp disk for the VM (in kB) | 2021-02-01\n**Network**\nExpand table\nData | Description | Version introduced\n---|---|---\n`ipv4.privateIpAddress` | Local IPv4 address of the VM | 2017-04-02\n`ipv4.publicIpAddress` | Public IPv4 address of the VM | 2017-04-02\n`subnet.address` | Subnet address of the VM | 2017-04-02\n`subnet.prefix` | Subnet prefix, example 24 | 2017-04-02\n`ipv6.ipAddress` | Local IPv6 address of the VM | 2017-04-02\n`macAddress` | VM mac address | 2017-04-02\nNote\nThe nics returned by the network call are not guaranteed to be in order.\n[](https://learn.microsoft.com/en-us/azure/virtual-machines/<#get-user-data>)"
}
] |
[
{
"from": "system",
"value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation."
},
{
"from": "human",
"value": "Can you explain Get user data?"
},
{
"from": "gpt",
"value": "When creating a new VM, you can specify a set of data to be used during or after the VM provision, and retrieve it through IMDS. Check the end to end user data experience [here](https://learn.microsoft.com/en-us/azure/virtual-machines/<user-data>).\nTo set up user data, utilize the quickstart template [here](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/aka.ms/ImdsUserDataArmTemplate>). The sample below shows how to retrieve this data through IMDS. This feature is released with version `2021-01-01` and above.\nNote\nSecurity notice: IMDS is open to all applications on the VM, sensitive data should not be placed in the user data.\n * [Windows](https://learn.microsoft.com/en-us/azure/virtual-machines/<#tabpanel_3_windows>)\n * [Linux](https://learn.microsoft.com/en-us/azure/virtual-machines/<#tabpanel_3_linux>)\n\n```\n$userData = Invoke-RestMethod -Headers @{\"Metadata\"=\"true\"} -Method GET -NoProxy -Uri \"http://169.254.169.254/metadata/instance/compute/userData?api-version=2021-01-01&format=text\"\n[System.Text.Encoding]::UTF8.GetString([Convert]::FromBase64String($userData))\n\n```\n```\ncurl -H Metadata:true --noproxy \"*\" \"http://169.254.169.254/metadata/instance/compute/userData?api-version=2021-01-01&format=text\" | base64 --decode\n\n```\n\n[](https://learn.microsoft.com/en-us/azure/virtual-machines/<#sample-1-tracking-vm-running-on-azure>)\n#### Sample 1: Tracking VM running on Azure\nAs a service provider, you may require to track the number of VMs running your software or have agents that need to track uniqueness of the VM. To be able to get a unique ID for a VM, use the `vmId` field from Instance Metadata Service.\n**Request**\n * [Windows](https://learn.microsoft.com/en-us/azure/virtual-machines/<#tabpanel_4_windows>)\n * [Linux](https://learn.microsoft.com/en-us/azure/virtual-machines/<#tabpanel_4_linux>)\n\n```\nInvoke-RestMethod -Headers @{\"Metadata\"=\"true\"} -Method GET -NoProxy -Uri \"http://169.254.169.254/metadata/instance/compute/vmId?api-version=2017-08-01&format=text\"\n\n```\n```\ncurl -H Metadata:true --noproxy \"*\" \"http://169.254.169.254/metadata/instance/compute/vmId?api-version=2017-08-01&format=text\"\n\n```\n\n**Response**\n```\n5c08b38e-4d57-4c23-ac45-aca61037f084\n\n```\n\n[](https://learn.microsoft.com/en-us/azure/virtual-machines/<#sample-2-placement-of-different-data-replicas>)\n#### Sample 2: Placement of different data replicas\nFor certain scenarios, placement of different data replicas is of prime importance. For example, [HDFS replica placement](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/hadoop.apache.org/docs/stable/hadoop-project-dist/hadoop-hdfs/HdfsDesign.html#Replica_Placement:_The_First_Baby_Steps>) or container placement via an [orchestrator](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/kubernetes.io/docs/concepts/architecture/nodes/>) might require you to know the `platformFaultDomain` and `platformUpdateDomain` the VM is running on. You can also use [Availability Zones](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/reliability/availability-zones-overview>) for the instances to make these decisions. You can query this data directly via IMDS.\n**Request**\n * [Windows](https://learn.microsoft.com/en-us/azure/virtual-machines/<#tabpanel_5_windows>)\n * [Linux](https://learn.microsoft.com/en-us/azure/virtual-machines/<#tabpanel_5_linux>)\n\n```\nInvoke-RestMethod -Headers @{\"Metadata\"=\"true\"} -Method GET -NoProxy -Uri \"http://169.254.169.254/metadata/instance/compute/platformFaultDomain?api-version=2017-08-01&format=text\"\n\n```\n```\ncurl -H Metadata:true --noproxy \"*\" \"http://169.254.169.254/metadata/instance/compute/platformFaultDomain?api-version=2017-08-01&format=text\"\n\n```\n\n**Response**\n```\n0\n\n```\n\n[](https://learn.microsoft.com/en-us/azure/virtual-machines/<#sample-3-get-vm-tags>)\n#### Sample 3: Get VM tags\nVM tags are included the instance API under instance/compute/tags endpoint. Tags may have been applied to your Azure VM to logically organize them into a taxonomy. The tags assigned to a VM can be retrieved by using the request below.\n**Request**\n * [Windows](https://learn.microsoft.com/en-us/azure/virtual-machines/<#tabpanel_6_windows>)\n * [Linux](https://learn.microsoft.com/en-us/azure/virtual-machines/<#tabpanel_6_linux>)\n\n```\nInvoke-RestMethod -Headers @{\"Metadata\"=\"true\"} -Method GET -NoProxy -Uri \"http://169.254.169.254/metadata/instance/compute/tags?api-version=2017-08-01&format=text\"\n\n```\n```\ncurl -H Metadata:true --noproxy \"*\" \"http://169.254.169.254/metadata/instance/compute/tags?api-version=2017-08-01&format=text\"\n\n```\n\n**Response**\n```\nDepartment:IT;ReferenceNumber:123456;TestStatus:Pending\n\n```\n\nThe `tags` field is a string with the tags delimited by semicolons. This output can be a problem if semicolons are used in the tags themselves. If a parser is written to programmatically extract the tags, you should rely on the `tagsList` field. The `tagsList` field is a JSON array with no delimiters, and consequently, easier to parse. The tagsList assigned to a VM can be retrieved by using the request below.\n**Request**\n * [Windows](https://learn.microsoft.com/en-us/azure/virtual-machines/<#tabpanel_7_windows>)\n * [Linux](https://learn.microsoft.com/en-us/azure/virtual-machines/<#tabpanel_7_linux>)\n\n```\nInvoke-RestMethod -Headers @{\"Metadata\"=\"true\"} -Method GET -NoProxy -Uri \"http://169.254.169.254/metadata/instance/compute/tagsList?api-version=2019-06-04\" | ConvertTo-Json -Depth 64\n\n```\n```\ncurl -H Metadata:true --noproxy \"*\" \"http://169.254.169.254/metadata/instance/compute/tagsList?api-version=2019-06-04\" | jq\n\n```\n\nThe `jq` utility is available in many cases, but not all. If the `jq` utility is missing, use `| python -m json.tool` instead.\n**Response**\n * [Windows](https://learn.microsoft.com/en-us/azure/virtual-machines/<#tabpanel_8_windows>)\n * [Linux](https://learn.microsoft.com/en-us/azure/virtual-machines/<#tabpanel_8_linux>)\n\n```\n{\n \"value\": [\n {\n \"name\": \"Department\",\n \"value\": \"IT\"\n },\n {\n \"name\": \"ReferenceNumber\",\n \"value\": \"123456\"\n },\n {\n \"name\": \"TestStatus\",\n \"value\": \"Pending\"\n }\n ],\n \"Count\": 3\n}\n\n```\n```\n[\n {\n \"name\": \"Department\",\n \"value\": \"IT\"\n },\n {\n \"name\": \"ReferenceNumber\",\n \"value\": \"123456\"\n },\n {\n \"name\": \"TestStatus\",\n \"value\": \"Pending\"\n }\n]\n\n```\n\n[](https://learn.microsoft.com/en-us/azure/virtual-machines/<#sample-4-get-more-information-about-the-vm-during-support-case>)\n#### Sample 4: Get more information about the VM during support case\nAs a service provider, you may get a support call where you would like to know more information about the VM. Asking the customer to share the compute metadata can provide basic information for the support professional to know about the kind of VM on Azure.\n**Request**\n * [Windows](https://learn.microsoft.com/en-us/azure/virtual-machines/<#tabpanel_9_windows>)\n * [Linux](https://learn.microsoft.com/en-us/azure/virtual-machines/<#tabpanel_9_linux>)\n\n```\nInvoke-RestMethod -Headers @{\"Metadata\"=\"true\"} -Method GET -NoProxy -Uri \"http://169.254.169.254/metadata/instance/compute?api-version=2020-09-01\" | ConvertTo-Json -Depth 64\n\n```\n```\ncurl -H Metadata:true --noproxy \"*\" \"http://169.254.169.254/metadata/instance/compute?api-version=2020-09-01\"\n\n```\n\n**Response**\nNote\nThe response is a JSON string. The following example response is pretty-printed for readability.\n * [Windows](https://learn.microsoft.com/en-us/azure/virtual-machines/<#tabpanel_10_windows>)\n * [Linux](https://learn.microsoft.com/en-us/azure/virtual-machines/<#tabpanel_10_linux>)\n\n```\n{\n \"azEnvironment\": \"AZUREPUBLICCLOUD\",\n \"extendedLocation\": {\n \"type\": \"edgeZone\",\n \"name\": \"microsoftlosangeles\"\n },\n \"evictionPolicy\": \"\",\n \"additionalCapabilities\": {\n \"hibernationEnabled\": \"false\"\n },\n \"hostGroup\": {\n \"id\": \"testHostGroupId\"\n },\n \"isHostCompatibilityLayerVm\": \"true\",\n \"licenseType\": \"Windows_Client\",\n \"location\": \"westus\",\n \"name\": \"examplevmname\",\n \"offer\": \"WindowsServer\",\n \"osProfile\": {\n \"adminUsername\": \"admin\",\n \"computerName\": \"examplevmname\",\n \"disablePasswordAuthentication\": \"true\"\n },\n \"osType\": \"Windows\",\n \"placementGroupId\": \"f67c14ab-e92c-408c-ae2d-da15866ec79a\",\n \"plan\": {\n \"name\": \"planName\",\n \"product\": \"planProduct\",\n \"publisher\": \"planPublisher\"\n },\n \"platformFaultDomain\": \"36\",\n \"platformUpdateDomain\": \"42\",\n \"priority\": \"Regular\",\n \"publicKeys\": [{\n \"keyData\": \"ssh-rsa 0\",\n \"path\": \"/home/user/.ssh/authorized_keys0\"\n },\n {\n \"keyData\": \"ssh-rsa 1\",\n \"path\": \"/home/user/.ssh/authorized_keys1\"\n }\n ],\n \"publisher\": \"RDFE-Test-Microsoft-Windows-Server-Group\",\n \"physicalZone\": \"useast-AZ01\",\n \"resourceGroupName\": \"macikgo-test-may-23\",\n \"resourceId\": \"/subscriptions/xxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx/resourceGroups/macikgo-test-may-23/providers/Microsoft.Compute/virtualMachines/examplevmname\",\n \"securityProfile\": {\n \"secureBootEnabled\": \"true\",\n \"virtualTpmEnabled\": \"false\",\n \"encryptionAtHost\": \"true\",\n \"securityType\": \"TrustedLaunch\"\n },\n \"sku\": \"2019-Datacenter\",\n \"storageProfile\": {\n \"dataDisks\": [{\n \"bytesPerSecondThrottle\": \"979202048\",\n \"caching\": \"None\",\n \"createOption\": \"Empty\",\n \"diskCapacityBytes\": \"274877906944\",\n \"diskSizeGB\": \"1024\",\n \"image\": {\n \"uri\": \"\"\n },\n \"isSharedDisk\": \"false\",\n \"isUltraDisk\": \"true\",\n \"lun\": \"0\",\n \"managedDisk\": {\n \"id\": \"/subscriptions/xxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx/resourceGroups/macikgo-test-may-23/providers/MicrosoftCompute/disks/exampledatadiskname\",\n \"storageAccountType\": \"StandardSSD_LRS\"\n },\n \"name\": \"exampledatadiskname\",\n \"opsPerSecondThrottle\": \"65280\",\n \"vhd\": {\n \"uri\": \"\"\n },\n \"writeAcceleratorEnabled\": \"false\"\n }],\n \"imageReference\": {\n \"id\": \"\",\n \"offer\": \"WindowsServer\",\n \"publisher\": \"MicrosoftWindowsServer\",\n \"sku\": \"2019-Datacenter\",\n \"version\": \"latest\",\n \"communityGalleryImageId\": \"/CommunityGalleries/testgallery/Images/1804Gen2/Versions/latest\",\n \"sharedGalleryImageId\": \"/SharedGalleries/1P/Images/gen2/Versions/latest\",\n \"exactVersion\": \"1.1686127202.30113\"\n },\n \"osDisk\": {\n \"caching\": \"ReadWrite\",\n \"createOption\": \"FromImage\",\n \"diskSizeGB\": \"30\",\n \"diffDiskSettings\": {\n \"option\": \"Local\"\n },\n \"encryptionSettings\": {\n \"enabled\": \"false\",\n \"diskEncryptionKey\": {\n \"sourceVault\": {\n \"id\": \"/subscriptions/test-source-guid/resourceGroups/testrg/providers/Microsoft.KeyVault/vaults/test-kv\"\n },\n \"secretUrl\": \"https://test-disk.vault.azure.net/secrets/xxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx/xxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx\"\n },\n \"keyEncryptionKey\": {\n \"sourceVault\": {\n \"id\": \"/subscriptions/test-key-guid/resourceGroups/testrg/providers/Microsoft.KeyVault/vaults/test-kv\"\n },\n \"keyUrl\": \"https://test-key.vault.azure.net/secrets/xxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx/xxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx\"\n }\n },\n \"image\": {\n \"uri\": \"\"\n },\n \"managedDisk\": {\n \"id\": \"/subscriptions/xxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx/resourceGroups/macikgo-test-may-23/providers/Microsoft.Compute/disks/exampleosdiskname\",\n \"storageAccountType\": \"StandardSSD_LRS\"\n },\n \"name\": \"exampleosdiskname\",\n \"osType\": \"Windows\",\n \"vhd\": {\n \"uri\": \"\"\n },\n \"writeAcceleratorEnabled\": \"false\"\n },\n \"resourceDisk\": {\n \"size\": \"4096\"\n }\n },\n \"subscriptionId\": \"xxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx\",\n \"tags\": \"baz:bash;foo:bar\",\n \"version\": \"15.05.22\",\n \"virtualMachineScaleSet\": {\n \"id\": \"/subscriptions/xxxxxxxx-xxxxx-xxx-xxx-xxxx/resourceGroups/resource-group-name/providers/Microsoft.Compute/virtualMachineScaleSets/virtual-machine-scale-set-name\"\n },\n \"vmId\": \"02aab8a4-74ef-476e-8182-f6d2ba4166a6\",\n \"vmScaleSetName\": \"crpteste9vflji9\",\n \"vmSize\": \"Standard_A3\",\n \"zone\": \"3\"\n}\n\n```\n```\n{\n \"azEnvironment\": \"AZUREPUBLICCLOUD\",\n \"extendedLocation\": {\n \"type\": \"edgeZone\",\n \"name\": \"microsoftlosangeles\"\n },\n \"evictionPolicy\": \"\",\n \"additionalCapabilities\": {\n \"hibernationEnabled\": \"false\"\n },\n \"hostGroup\": {\n \"id\": \"testHostGroupId\"\n },\n \"isHostCompatibilityLayerVm\": \"true\",\n \"licenseType\": \"Windows_Client\",\n \"location\": \"westus\",\n \"name\": \"examplevmname\",\n \"offer\": \"UbuntuServer\",\n \"osProfile\": {\n \"adminUsername\": \"admin\",\n \"computerName\": \"examplevmname\",\n \"disablePasswordAuthentication\": \"true\"\n },\n \"osType\": \"Linux\",\n \"physicalZone\": \"useast-AZ01\",\n \"placementGroupId\": \"f67c14ab-e92c-408c-ae2d-da15866ec79a\",\n \"plan\": {\n \"name\": \"planName\",\n \"product\": \"planProduct\",\n \"publisher\": \"planPublisher\"\n },\n \"platformFaultDomain\": \"36\",\n \"platformUpdateDomain\": \"42\",\n \"Priority\": \"Regular\",\n \"publicKeys\": [{\n \"keyData\": \"ssh-rsa 0\",\n \"path\": \"/home/user/.ssh/authorized_keys0\"\n },\n {\n \"keyData\": \"ssh-rsa 1\",\n \"path\": \"/home/user/.ssh/authorized_keys1\"\n }\n ],\n \"publisher\": \"Canonical\",\n \"resourceGroupName\": \"macikgo-test-may-23\",\n \"resourceId\": \"/subscriptions/xxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx/resourceGroups/macikgo-test-may-23/providers/Microsoft.Compute/virtualMachines/examplevmname\",\n \"securityProfile\": {\n \"secureBootEnabled\": \"true\",\n \"virtualTpmEnabled\": \"false\",\n \"encryptionAtHost\": \"true\",\n \"securityType\": \"TrustedLaunch\"\n },\n \"sku\": \"18.04-LTS\",\n \"storageProfile\": {\n \"dataDisks\": [{\n \"bytesPerSecondThrottle\": \"979202048\",\n \"caching\": \"None\",\n \"createOption\": \"Empty\",\n \"diskCapacityBytes\": \"274877906944\",\n \"diskSizeGB\": \"1024\",\n \"image\": {\n \"uri\": \"\"\n },\n \"isSharedDisk\": \"false\",\n \"isUltraDisk\": \"true\",\n \"lun\": \"0\",\n \"managedDisk\": {\n \"id\": \"/subscriptions/xxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx/resourceGroups/macikgo-test-may-23/providers/Microsoft.Compute/disks/exampledatadiskname\",\n \"storageAccountType\": \"StandardSSD_LRS\"\n },\n \"name\": \"exampledatadiskname\",\n \"opsPerSecondThrottle\": \"65280\",\n \"vhd\": {\n \"uri\": \"\"\n },\n \"writeAcceleratorEnabled\": \"false\"\n }],\n \"imageReference\": {\n \"id\": \"\",\n \"offer\": \"UbuntuServer\",\n \"publisher\": \"Canonical\",\n \"sku\": \"16.04.0-LTS\",\n \"version\": \"latest\",\n \"communityGalleryImageId\": \"/CommunityGalleries/testgallery/Images/1804Gen2/Versions/latest\",\n \"sharedGalleryImageId\": \"/SharedGalleries/1P/Images/gen2/Versions/latest\",\n \"exactVersion\": \"1.1686127202.30113\"\n },\n \"osDisk\": {\n \"caching\": \"ReadWrite\",\n \"createOption\": \"FromImage\",\n \"diskSizeGB\": \"30\",\n \"diffDiskSettings\": {\n \"option\": \"Local\"\n },\n \"encryptionSettings\": {\n \"enabled\": \"false\",\n \"diskEncryptionKey\": {\n \"sourceVault\": {\n \"id\": \"/subscriptions/test-source-guid/resourceGroups/testrg/providers/Microsoft.KeyVault/vaults/test-kv\"\n },\n \"secretUrl\": \"https://test-disk.vault.azure.net/secrets/xxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx/xxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx\"\n },\n \"keyEncryptionKey\": {\n \"sourceVault\": {\n \"id\": \"/subscriptions/test-key-guid/resourceGroups/testrg/providers/Microsoft.KeyVault/vaults/test-kv\"\n },\n \"keyUrl\": \"https://test-key.vault.azure.net/secrets/xxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx/xxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx\"\n }\n },\n \"image\": {\n \"uri\": \"\"\n },\n \"managedDisk\": {\n \"id\": \"/subscriptions/xxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx/resourceGroups/macikgo-test-may-23/providers/Microsoft.Compute/disks/exampleosdiskname\",\n \"storageAccountType\": \"StandardSSD_LRS\"\n },\n \"name\": \"exampleosdiskname\",\n \"osType\": \"linux\",\n \"vhd\": {\n \"uri\": \"\"\n },\n \"writeAcceleratorEnabled\": \"false\"\n },\n \"resourceDisk\": {\n \"size\": \"4096\"\n }\n },\n \"subscriptionId\": \"xxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx\",\n \"tags\": \"baz:bash;foo:bar\",\n \"version\": \"15.05.22\",\n \"virtualMachineScaleSet\": {\n \"id\": \"/subscriptions/xxxxxxxx-xxxxx-xxx-xxx-xxxx/resourceGroups/resource-group-name/providers/Microsoft.Compute/virtualMachineScaleSets/virtual-machine-scale-set-name\"\n },\n \"vmId\": \"02aab8a4-74ef-476e-8182-f6d2ba4166a6\",\n \"vmScaleSetName\": \"crpteste9vflji9\",\n \"vmSize\": \"Standard_A3\",\n \"zone\": \"3\"\n}\n\n```\n\n[](https://learn.microsoft.com/en-us/azure/virtual-machines/<#sample-5-get-the-azure-environment-where-the-vm-is-running>)\n#### Sample 5: Get the Azure Environment where the VM is running\nAzure has various sovereign clouds like [Azure Government](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/azure.microsoft.com/overview/clouds/government/>). Sometimes you need the Azure Environment to make some runtime decisions. The following sample shows you how you can achieve this behavior.\n**Request**\n * [Windows](https://learn.microsoft.com/en-us/azure/virtual-machines/<#tabpanel_11_windows>)\n * [Linux](https://learn.microsoft.com/en-us/azure/virtual-machines/<#tabpanel_11_linux>)\n\n```\nInvoke-RestMethod -Headers @{\"Metadata\"=\"true\"} -Method GET -NoProxy -Uri \"http://169.254.169.254/metadata/instance/compute/azEnvironment?api-version=2018-10-01&format=text\"\n\n```\n```\ncurl -H Metadata:true --noproxy \"*\" \"http://169.254.169.254/metadata/instance/compute/azEnvironment?api-version=2018-10-01&format=text\"\n\n```\n\n**Response**\n```\nAzurePublicCloud\n\n```\n\nThe cloud and the values of the Azure environment are listed here.\nExpand table\nCloud | Azure environment\n---|---\n[All generally available global Azure regions](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/azure.microsoft.com/regions/>) | AzurePublicCloud\n[Azure Government](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/azure.microsoft.com/overview/clouds/government/>) | AzureUSGovernmentCloud\n[Microsoft Azure operated by 21Vianet](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/azure.microsoft.com/global-infrastructure/china/>) | AzureChinaCloud\n[Azure Germany](https://learn.microsoft.com/en-us/azure/virtual-machines/<https:/azure.microsoft.com/overview/clouds/germany/>) | AzureGermanCloud\n[](https://learn.microsoft.com/en-us/azure/virtual-machines/<#sample-6-retrieve-network-information>)\n#### Sample 6: Retrieve network information\n**Request**\n * [Windows](https://learn.microsoft.com/en-us/azure/virtual-machines/<#tabpanel_12_windows>)\n * [Linux](https://learn.microsoft.com/en-us/azure/virtual-machines/<#tabpanel_12_linux>)\n\n```\nInvoke-RestMethod -Headers @{\"Metadata\"=\"true\"} -Method GET -NoProxy -Uri \"http://169.254.169.254/metadata/instance/network?api-version=2017-08-01\" | ConvertTo-Json -Depth 64\n\n```\n```\ncurl -H Metadata:true --noproxy \"*\" \"http://169.254.169.254/metadata/instance/network?api-version=2017-08-01\"\n\n```\n\n**Response**\n```\n{\n \"interface\": [\n {\n \"ipv4\": {\n \"ipAddress\": [\n {\n \"privateIpAddress\": \"10.1.0.4\",\n \"publicIpAddress\": \"X.X.X.X\"\n }\n ],\n \"subnet\": [\n {\n \"address\": \"10.1.0.0\",\n \"prefix\": \"24\"\n }\n ]\n },\n \"ipv6\": {\n \"ipAddress\": []\n },\n \"macAddress\": \"000D3AF806EC\"\n }\n ]\n}\n\n```\n\n[](https://learn.microsoft.com/en-us/azure/virtual-machines/<#sample-7-retrieve-public-ip-address>)\n#### Sample 7: Retrieve public IP address\n * [Windows](https://learn.microsoft.com/en-us/azure/virtual-machines/<#tabpanel_13_windows>)\n * [Linux](https://learn.microsoft.com/en-us/azure/virtual-machines/<#tabpanel_13_linux>)\n\n```\nInvoke-RestMethod -Headers @{\"Metadata\"=\"true\"} -Method GET -NoProxy -Uri \"http://169.254.169.254/metadata/instance/network/interface/0/ipv4/ipAddress/0/publicIpAddress?api-version=2017-08-01&format=text\"\n\n```\n```\ncurl -H Metadata:true --noproxy \"*\" \"http://169.254.169.254/metadata/instance/network/interface/0/ipv4/ipAddress/0/publicIpAddress?api-version=2017-08-01&format=text\"\n\n```\n\nNote\n * If you're looking to retrieve IMDS information for **Standard** SKU Public IP address, review [Load Balancer Metadata API](https://learn.microsoft.com/en-us/azure/virtual-machines/</en-us/azure/load-balancer/howto-load-balancer-imds?tabs=windows>) for more infomration.\n\n[](https://learn.microsoft.com/en-us/azure/virtual-machines/<#attested-data>)"
}
] |
[
{
"from": "system",
"value": "You are an Azure AI assistant, trained to help users understand and work with Azure services and documentation. You have deep knowledge of Azure's cloud platform, particularly about: . Provide clear, accurate, and helpful responses based on official Azure documentation."
},
{
"from": "human",
"value": "Can you explain Attested data?"
},
{
"from": "gpt",
"value": "[](https://learn.microsoft.com/en-us/azure/virtual-machines/<#get-attested-data>)"
}
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.