diff --git a/sdk/advisor/ci.mgmt.yml b/sdk/advisor/ci.mgmt.yml
index 6b9f8d6952e6..22df99de35f2 100644
--- a/sdk/advisor/ci.mgmt.yml
+++ b/sdk/advisor/ci.mgmt.yml
@@ -1,6 +1,7 @@
# NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file.
trigger: none
+
pr:
branches:
include:
@@ -13,6 +14,18 @@ pr:
- sdk/advisor/ci.mgmt.yml
- sdk/advisor/Azure.ResourceManager.Advisor/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/advisor/ci.mgmt.yml
+ - sdk/advisor/Azure.ResourceManager.Advisor/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/agrifood/ci.mgmt.yml b/sdk/agrifood/ci.mgmt.yml
index ee27d71f9495..03a5f6399ccb 100644
--- a/sdk/agrifood/ci.mgmt.yml
+++ b/sdk/agrifood/ci.mgmt.yml
@@ -1,6 +1,7 @@
# NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file.
trigger: none
+
pr:
branches:
include:
@@ -13,6 +14,18 @@ pr:
- sdk/agrifood/ci.mgmt.yml
- sdk/agrifood/Azure.ResourceManager.AgFoodPlatform/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/agrifood/ci.mgmt.yml
+ - sdk/agrifood/Azure.ResourceManager.AgFoodPlatform/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/alertsmanagement/ci.mgmt.yml b/sdk/alertsmanagement/ci.mgmt.yml
index f33a90fffe5c..ad3a8d3d1efd 100644
--- a/sdk/alertsmanagement/ci.mgmt.yml
+++ b/sdk/alertsmanagement/ci.mgmt.yml
@@ -1,6 +1,7 @@
# NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file.
trigger: none
+
pr:
branches:
include:
@@ -13,6 +14,18 @@ pr:
- sdk/alertsmanagement/ci.mgmt.yml
- sdk/alertsmanagement/Azure.ResourceManager.AlertsManagement/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/alertsmanagement/ci.mgmt.yml
+ - sdk/alertsmanagement/Azure.ResourceManager.AlertsManagement/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/analysisservices/ci.mgmt.yml b/sdk/analysisservices/ci.mgmt.yml
index 33729b962d88..d3774b358380 100644
--- a/sdk/analysisservices/ci.mgmt.yml
+++ b/sdk/analysisservices/ci.mgmt.yml
@@ -1,6 +1,7 @@
# NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file.
trigger: none
+
pr:
branches:
include:
@@ -13,6 +14,18 @@ pr:
- sdk/analysisservices/ci.mgmt.yml
- sdk/analysisservices/Azure.ResourceManager.Analysis/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/analysisservices/ci.mgmt.yml
+ - sdk/analysisservices/Azure.ResourceManager.Analysis/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/apicenter/ci.mgmt.yml b/sdk/apicenter/ci.mgmt.yml
index 41c037327e33..4882d4409c0b 100644
--- a/sdk/apicenter/ci.mgmt.yml
+++ b/sdk/apicenter/ci.mgmt.yml
@@ -1,6 +1,7 @@
# NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file.
trigger: none
+
pr:
branches:
include:
@@ -13,6 +14,18 @@ pr:
- sdk/apicenter/ci.mgmt.yml
- sdk/apicenter/Azure.ResourceManager.ApiCenter/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/apicenter/ci.mgmt.yml
+ - sdk/apicenter/Azure.ResourceManager.ApiCenter/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/apimanagement/ci.mgmt.yml b/sdk/apimanagement/ci.mgmt.yml
index b72c80a2e0e6..2f766edb9528 100644
--- a/sdk/apimanagement/ci.mgmt.yml
+++ b/sdk/apimanagement/ci.mgmt.yml
@@ -1,6 +1,7 @@
# NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file.
trigger: none
+
pr:
branches:
include:
@@ -13,6 +14,18 @@ pr:
- sdk/apimanagement/ci.mgmt.yml
- sdk/apimanagement/Azure.ResourceManager.ApiManagement/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/apimanagement/ci.mgmt.yml
+ - sdk/apimanagement/Azure.ResourceManager.ApiManagement/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/appcomplianceautomation/ci.mgmt.yml b/sdk/appcomplianceautomation/ci.mgmt.yml
index d8a31e0139a8..7c3b00d97c17 100644
--- a/sdk/appcomplianceautomation/ci.mgmt.yml
+++ b/sdk/appcomplianceautomation/ci.mgmt.yml
@@ -1,6 +1,7 @@
# NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file.
trigger: none
+
pr:
branches:
include:
@@ -13,6 +14,18 @@ pr:
- sdk/appcomplianceautomation/ci.mgmt.yml
- sdk/appcomplianceautomation/Azure.ResourceManager.AppComplianceAutomation/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/appcomplianceautomation/ci.mgmt.yml
+ - sdk/appcomplianceautomation/Azure.ResourceManager.AppComplianceAutomation/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/appconfiguration/ci.mgmt.yml b/sdk/appconfiguration/ci.mgmt.yml
index a883eaefcd59..e53dd63aca0f 100644
--- a/sdk/appconfiguration/ci.mgmt.yml
+++ b/sdk/appconfiguration/ci.mgmt.yml
@@ -1,6 +1,7 @@
# NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file.
trigger: none
+
pr:
branches:
include:
@@ -13,6 +14,18 @@ pr:
- sdk/appconfiguration/ci.mgmt.yml
- sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/appconfiguration/ci.mgmt.yml
+ - sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/
+
# These comments should stay.
extends:
diff --git a/sdk/applicationinsights/ci.mgmt.yml b/sdk/applicationinsights/ci.mgmt.yml
index af82b66e6952..361f4019d322 100644
--- a/sdk/applicationinsights/ci.mgmt.yml
+++ b/sdk/applicationinsights/ci.mgmt.yml
@@ -1,6 +1,7 @@
# NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file.
trigger: none
+
pr:
branches:
include:
@@ -13,6 +14,18 @@ pr:
- sdk/applicationinsights/ci.mgmt.yml
- sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/applicationinsights/ci.mgmt.yml
+ - sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/appplatform/ci.mgmt.yml b/sdk/appplatform/ci.mgmt.yml
index 1d28b9352b6c..023cebeb8d71 100644
--- a/sdk/appplatform/ci.mgmt.yml
+++ b/sdk/appplatform/ci.mgmt.yml
@@ -1,6 +1,7 @@
# NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file.
trigger: none
+
pr:
branches:
include:
@@ -13,6 +14,18 @@ pr:
- sdk/appplatform/ci.mgmt.yml
- sdk/appplatform/Azure.ResourceManager.AppPlatform/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/appplatform/ci.mgmt.yml
+ - sdk/appplatform/Azure.ResourceManager.AppPlatform/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/arc-scvmm/ci.mgmt.yml b/sdk/arc-scvmm/ci.mgmt.yml
index bbc2db0c9f63..53438df9d332 100644
--- a/sdk/arc-scvmm/ci.mgmt.yml
+++ b/sdk/arc-scvmm/ci.mgmt.yml
@@ -1,6 +1,7 @@
# NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file.
trigger: none
+
pr:
branches:
include:
@@ -13,6 +14,18 @@ pr:
- sdk/arc-scvmm/ci.mgmt.yml
- sdk/arc-scvmm/Azure.ResourceManager.ScVmm/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/arc-scvmm/ci.mgmt.yml
+ - sdk/arc-scvmm/Azure.ResourceManager.ScVmm/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/astronomer/ci.mgmt.yml b/sdk/astronomer/ci.mgmt.yml
index f6099036651c..d0de6d52b29a 100644
--- a/sdk/astronomer/ci.mgmt.yml
+++ b/sdk/astronomer/ci.mgmt.yml
@@ -1,6 +1,7 @@
# NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file.
trigger: none
+
pr:
branches:
include:
@@ -13,6 +14,18 @@ pr:
- sdk/astronomer/ci.mgmt.yml
- sdk/astronomer/Azure.ResourceManager.Astro/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/astronomer/ci.mgmt.yml
+ - sdk/astronomer/Azure.ResourceManager.Astro/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/attestation/ci.mgmt.yml b/sdk/attestation/ci.mgmt.yml
index 51d1ac0c8240..595f887b2c35 100644
--- a/sdk/attestation/ci.mgmt.yml
+++ b/sdk/attestation/ci.mgmt.yml
@@ -1,6 +1,7 @@
# NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file.
trigger: none
+
pr:
branches:
include:
@@ -13,6 +14,18 @@ pr:
- sdk/attestation/ci.mgmt.yml
- sdk/attestation/Azure.ResourceManager.Attestation/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/attestation/ci.mgmt.yml
+ - sdk/attestation/Azure.ResourceManager.Attestation/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/authorization/ci.mgmt.yml b/sdk/authorization/ci.mgmt.yml
index 7ac32fcc5543..9c9d9638348d 100644
--- a/sdk/authorization/ci.mgmt.yml
+++ b/sdk/authorization/ci.mgmt.yml
@@ -1,6 +1,7 @@
# NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file.
trigger: none
+
pr:
branches:
include:
@@ -13,6 +14,18 @@ pr:
- sdk/authorization/ci.mgmt.yml
- sdk/authorization/Azure.ResourceManager.Authorization/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/authorization/ci.mgmt.yml
+ - sdk/authorization/Azure.ResourceManager.Authorization/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/automanage/ci.mgmt.yml b/sdk/automanage/ci.mgmt.yml
index 5a2467820b85..8e45b6506aa8 100644
--- a/sdk/automanage/ci.mgmt.yml
+++ b/sdk/automanage/ci.mgmt.yml
@@ -1,6 +1,7 @@
# NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file.
trigger: none
+
pr:
branches:
include:
@@ -13,6 +14,18 @@ pr:
- sdk/automanage/ci.mgmt.yml
- sdk/automanage/Azure.ResourceManager.Automanage/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/automanage/ci.mgmt.yml
+ - sdk/automanage/Azure.ResourceManager.Automanage/
+
extends:
template: ../../eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/automation/ci.mgmt.yml b/sdk/automation/ci.mgmt.yml
index 45bec5d1c196..b2cb0f44bf22 100644
--- a/sdk/automation/ci.mgmt.yml
+++ b/sdk/automation/ci.mgmt.yml
@@ -1,6 +1,7 @@
# NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file.
trigger: none
+
pr:
branches:
include:
@@ -13,6 +14,18 @@ pr:
- sdk/automation/ci.mgmt.yml
- sdk/automation/Azure.ResourceManager.Automation/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/automation/ci.mgmt.yml
+ - sdk/automation/Azure.ResourceManager.Automation/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/avs/ci.mgmt.yml b/sdk/avs/ci.mgmt.yml
index 6404a2ba34ce..7030303dc9f4 100644
--- a/sdk/avs/ci.mgmt.yml
+++ b/sdk/avs/ci.mgmt.yml
@@ -1,6 +1,7 @@
# NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file.
trigger: none
+
pr:
branches:
include:
@@ -13,6 +14,18 @@ pr:
- sdk/avs/ci.mgmt.yml
- sdk/avs/Azure.ResourceManager.Avs/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/avs/ci.mgmt.yml
+ - sdk/avs/Azure.ResourceManager.Avs/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/azurelargeinstance/ci.mgmt.yml b/sdk/azurelargeinstance/ci.mgmt.yml
index fbe98927ef15..d9425419d2c3 100644
--- a/sdk/azurelargeinstance/ci.mgmt.yml
+++ b/sdk/azurelargeinstance/ci.mgmt.yml
@@ -1,6 +1,7 @@
# NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file.
trigger: none
+
pr:
branches:
include:
@@ -13,6 +14,18 @@ pr:
- sdk/azurelargeinstance/ci.mgmt.yml
- sdk/azurelargeinstance/Azure.ResourceManager.LargeInstance/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/azurelargeinstance/ci.mgmt.yml
+ - sdk/azurelargeinstance/Azure.ResourceManager.LargeInstance/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/azurestackhci/ci.mgmt.yml b/sdk/azurestackhci/ci.mgmt.yml
index 89c22080e00c..167241c22e36 100644
--- a/sdk/azurestackhci/ci.mgmt.yml
+++ b/sdk/azurestackhci/ci.mgmt.yml
@@ -1,6 +1,7 @@
# NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file.
trigger: none
+
pr:
branches:
include:
@@ -13,6 +14,18 @@ pr:
- sdk/azurestackhci/ci.mgmt.yml
- sdk/azurestackhci/Azure.ResourceManager.Hci/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/azurestackhci/ci.mgmt.yml
+ - sdk/azurestackhci/Azure.ResourceManager.Hci/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/batch/ci.mgmt.yml b/sdk/batch/ci.mgmt.yml
index fdb37873525c..57a9135b3c71 100644
--- a/sdk/batch/ci.mgmt.yml
+++ b/sdk/batch/ci.mgmt.yml
@@ -1,6 +1,7 @@
# NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file.
trigger: none
+
pr:
branches:
include:
@@ -13,6 +14,18 @@ pr:
- sdk/batch/ci.mgmt.yml
- sdk/batch/Azure.ResourceManager.Batch/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/batch/ci.mgmt.yml
+ - sdk/batch/Azure.ResourceManager.Batch/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/billing/ci.mgmt.yml b/sdk/billing/ci.mgmt.yml
index 67cf904850c6..0efcab4a9c90 100644
--- a/sdk/billing/ci.mgmt.yml
+++ b/sdk/billing/ci.mgmt.yml
@@ -1,6 +1,7 @@
# NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file.
trigger: none
+
pr:
branches:
include:
@@ -13,6 +14,18 @@ pr:
- sdk/billing/ci.mgmt.yml
- sdk/billing/Azure.ResourceManager.Billing/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/billing/ci.mgmt.yml
+ - sdk/billing/Azure.ResourceManager.Billing/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/billingbenefits/ci.mgmt.yml b/sdk/billingbenefits/ci.mgmt.yml
index 9900a842be4f..d2d1e939d8cd 100644
--- a/sdk/billingbenefits/ci.mgmt.yml
+++ b/sdk/billingbenefits/ci.mgmt.yml
@@ -2,6 +2,7 @@
# NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file.
trigger: none
+
pr:
branches:
include:
@@ -14,6 +15,18 @@ pr:
- sdk/billingbenefits/ci.mgmt.yml
- sdk/billingbenefits/Azure.ResourceManager.BillingBenefits/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/billingbenefits/ci.mgmt.yml
+ - sdk/billingbenefits/Azure.ResourceManager.BillingBenefits/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/blueprint/ci.mgmt.yml b/sdk/blueprint/ci.mgmt.yml
index 65bd23b77f51..6524937da4ee 100644
--- a/sdk/blueprint/ci.mgmt.yml
+++ b/sdk/blueprint/ci.mgmt.yml
@@ -1,6 +1,7 @@
# NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file.
trigger: none
+
pr:
branches:
include:
@@ -13,6 +14,18 @@ pr:
- sdk/blueprint/ci.mgmt.yml
- sdk/blueprint/Azure.ResourceManager.Blueprint/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/blueprint/ci.mgmt.yml
+ - sdk/blueprint/Azure.ResourceManager.Blueprint/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/botservice/ci.mgmt.yml b/sdk/botservice/ci.mgmt.yml
index 8e5444ff3f9a..3e991a6ebab1 100644
--- a/sdk/botservice/ci.mgmt.yml
+++ b/sdk/botservice/ci.mgmt.yml
@@ -1,6 +1,7 @@
# NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file.
trigger: none
+
pr:
branches:
include:
@@ -13,6 +14,18 @@ pr:
- sdk/botservice/ci.mgmt.yml
- sdk/botservice/Azure.ResourceManager.BotService/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/botservice/ci.mgmt.yml
+ - sdk/botservice/Azure.ResourceManager.BotService/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/cdn/ci.mgmt.yml b/sdk/cdn/ci.mgmt.yml
index ac2ea82249d1..f1932c6d31b9 100644
--- a/sdk/cdn/ci.mgmt.yml
+++ b/sdk/cdn/ci.mgmt.yml
@@ -1,6 +1,7 @@
# NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file.
trigger: none
+
pr:
branches:
include:
@@ -13,6 +14,18 @@ pr:
- sdk/cdn/ci.mgmt.yml
- sdk/cdn/Azure.ResourceManager.Cdn/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/cdn/ci.mgmt.yml
+ - sdk/cdn/Azure.ResourceManager.Cdn/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/changeanalysis/ci.mgmt.yml b/sdk/changeanalysis/ci.mgmt.yml
index 65c6e90d195a..aee7612c339f 100644
--- a/sdk/changeanalysis/ci.mgmt.yml
+++ b/sdk/changeanalysis/ci.mgmt.yml
@@ -1,6 +1,7 @@
# NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file.
trigger: none
+
pr:
branches:
include:
@@ -13,6 +14,18 @@ pr:
- sdk/changeanalysis/ci.mgmt.yml
- sdk/changeanalysis/Azure.ResourceManager.ChangeAnalysis/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/changeanalysis/ci.mgmt.yml
+ - sdk/changeanalysis/Azure.ResourceManager.ChangeAnalysis/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/chaos/ci.mgmt.yml b/sdk/chaos/ci.mgmt.yml
index 585591bcb6bd..a74922d27932 100644
--- a/sdk/chaos/ci.mgmt.yml
+++ b/sdk/chaos/ci.mgmt.yml
@@ -1,6 +1,7 @@
# NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file.
trigger: none
+
pr:
branches:
include:
@@ -13,6 +14,18 @@ pr:
- sdk/chaos/ci.mgmt.yml
- sdk/chaos/Azure.ResourceManager.Chaos/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/chaos/ci.mgmt.yml
+ - sdk/chaos/Azure.ResourceManager.Chaos/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/cognitiveservices/ci.mgmt.yml b/sdk/cognitiveservices/ci.mgmt.yml
index ddeb32b868ce..79dda70912e2 100644
--- a/sdk/cognitiveservices/ci.mgmt.yml
+++ b/sdk/cognitiveservices/ci.mgmt.yml
@@ -1,6 +1,7 @@
# NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file.
trigger: none
+
pr:
branches:
include:
@@ -13,6 +14,18 @@ pr:
- sdk/cognitiveservices/ci.mgmt.yml
- sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/cognitiveservices/ci.mgmt.yml
+ - sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/communication/ci.mgmt.yml b/sdk/communication/ci.mgmt.yml
index 8fc73e107745..be0c8b4b5903 100644
--- a/sdk/communication/ci.mgmt.yml
+++ b/sdk/communication/ci.mgmt.yml
@@ -1,5 +1,6 @@
trigger: none
+
pr:
branches:
include:
@@ -12,6 +13,18 @@ pr:
- sdk/communication/ci.mgmt.yml
- sdk/communication/Azure.ResourceManager.Communication/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/communication/ci.mgmt.yml
+ - sdk/communication/Azure.ResourceManager.Communication/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/compute/ci.mgmt.yml b/sdk/compute/ci.mgmt.yml
index d9520f58d12c..9736fea82d63 100644
--- a/sdk/compute/ci.mgmt.yml
+++ b/sdk/compute/ci.mgmt.yml
@@ -1,6 +1,7 @@
# NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file.
trigger: none
+
pr:
branches:
include:
@@ -13,6 +14,18 @@ pr:
- sdk/compute/ci.mgmt.yml
- sdk/compute/Azure.ResourceManager.Compute/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/compute/ci.mgmt.yml
+ - sdk/compute/Azure.ResourceManager.Compute/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/computefleet/ci.mgmt.yml b/sdk/computefleet/ci.mgmt.yml
index de169e18c599..58fc15347c98 100644
--- a/sdk/computefleet/ci.mgmt.yml
+++ b/sdk/computefleet/ci.mgmt.yml
@@ -1,6 +1,7 @@
# NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file.
trigger: none
+
pr:
branches:
include:
@@ -13,6 +14,18 @@ pr:
- sdk/computefleet/ci.mgmt.yml
- sdk/computefleet/Azure.ResourceManager.ComputeFleet/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/computefleet/ci.mgmt.yml
+ - sdk/computefleet/Azure.ResourceManager.ComputeFleet/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/computeschedule/ci.mgmt.yml b/sdk/computeschedule/ci.mgmt.yml
index d3a367f82551..01d026ef37ea 100644
--- a/sdk/computeschedule/ci.mgmt.yml
+++ b/sdk/computeschedule/ci.mgmt.yml
@@ -1,6 +1,7 @@
# NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file.
trigger: none
+
pr:
branches:
include:
@@ -13,6 +14,18 @@ pr:
- sdk/computeschedule/ci.mgmt.yml
- sdk/computeschedule/Azure.ResourceManager.ComputeSchedule/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/computeschedule/ci.mgmt.yml
+ - sdk/computeschedule/Azure.ResourceManager.ComputeSchedule/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/confidentialledger/ci.mgmt.yml b/sdk/confidentialledger/ci.mgmt.yml
index 7343d843f2ee..b61c498ed14a 100644
--- a/sdk/confidentialledger/ci.mgmt.yml
+++ b/sdk/confidentialledger/ci.mgmt.yml
@@ -1,5 +1,6 @@
# NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file.
trigger: none
+
pr:
branches:
include:
@@ -12,6 +13,18 @@ pr:
- sdk/confidentialledger/ci.mgmt.yml
- sdk/confidentialledger/Azure.ResourceManager.ConfidentialLedger/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/confidentialledger/ci.mgmt.yml
+ - sdk/confidentialledger/Azure.ResourceManager.ConfidentialLedger/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/confluent/ci.mgmt.yml b/sdk/confluent/ci.mgmt.yml
index 12d37aa41bd2..757508d306f9 100644
--- a/sdk/confluent/ci.mgmt.yml
+++ b/sdk/confluent/ci.mgmt.yml
@@ -1,6 +1,7 @@
# NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file.
trigger: none
+
pr:
branches:
include:
@@ -13,6 +14,18 @@ pr:
- sdk/confluent/ci.mgmt.yml
- sdk/confluent/Azure.ResourceManager.Confluent/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/confluent/ci.mgmt.yml
+ - sdk/confluent/Azure.ResourceManager.Confluent/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/connectedvmwarevsphere/ci.mgmt.yml b/sdk/connectedvmwarevsphere/ci.mgmt.yml
index a9d0db85cf82..f8990a206c45 100644
--- a/sdk/connectedvmwarevsphere/ci.mgmt.yml
+++ b/sdk/connectedvmwarevsphere/ci.mgmt.yml
@@ -1,6 +1,7 @@
# NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file.
trigger: none
+
pr:
branches:
include:
@@ -13,6 +14,18 @@ pr:
- sdk/connectedvmwarevsphere/ci.mgmt.yml
- sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/connectedvmwarevsphere/ci.mgmt.yml
+ - sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/consumption/ci.mgmt.yml b/sdk/consumption/ci.mgmt.yml
index 6b0ebe2b2fa7..ccda85ce5789 100644
--- a/sdk/consumption/ci.mgmt.yml
+++ b/sdk/consumption/ci.mgmt.yml
@@ -1,6 +1,7 @@
# NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file.
trigger: none
+
pr:
branches:
include:
@@ -13,6 +14,18 @@ pr:
- sdk/consumption/ci.mgmt.yml
- sdk/consumption/Azure.ResourceManager.Consumption/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/consumption/ci.mgmt.yml
+ - sdk/consumption/Azure.ResourceManager.Consumption/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/containerapps/ci.mgmt.yml b/sdk/containerapps/ci.mgmt.yml
index 7715d499fa59..69564e2f1920 100644
--- a/sdk/containerapps/ci.mgmt.yml
+++ b/sdk/containerapps/ci.mgmt.yml
@@ -1,6 +1,7 @@
# NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file.
trigger: none
+
pr:
branches:
include:
@@ -13,6 +14,18 @@ pr:
- sdk/containerapps/ci.mgmt.yml
- sdk/containerapps/Azure.ResourceManager.AppContainers/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/containerapps/ci.mgmt.yml
+ - sdk/containerapps/Azure.ResourceManager.AppContainers/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/containerinstance/ci.mgmt.yml b/sdk/containerinstance/ci.mgmt.yml
index 0b4d90bf6d1c..865705313c2c 100644
--- a/sdk/containerinstance/ci.mgmt.yml
+++ b/sdk/containerinstance/ci.mgmt.yml
@@ -1,6 +1,7 @@
# NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file.
trigger: none
+
pr:
branches:
include:
@@ -13,6 +14,18 @@ pr:
- sdk/containerinstance/ci.mgmt.yml
- sdk/containerinstance/Azure.ResourceManager.ContainerInstance/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/containerinstance/ci.mgmt.yml
+ - sdk/containerinstance/Azure.ResourceManager.ContainerInstance/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/containerorchestratorruntime/ci.mgmt.yml b/sdk/containerorchestratorruntime/ci.mgmt.yml
index 0a036386143b..98ade1bcf8c6 100644
--- a/sdk/containerorchestratorruntime/ci.mgmt.yml
+++ b/sdk/containerorchestratorruntime/ci.mgmt.yml
@@ -1,6 +1,7 @@
# NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file.
trigger: none
+
pr:
branches:
include:
@@ -13,6 +14,18 @@ pr:
- sdk/containerorchestratorruntime/ci.mgmt.yml
- sdk/containerorchestratorruntime/Azure.ResourceManager.ContainerOrchestratorRuntime/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/containerorchestratorruntime/ci.mgmt.yml
+ - sdk/containerorchestratorruntime/Azure.ResourceManager.ContainerOrchestratorRuntime/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/containerregistry/ci.mgmt.yml b/sdk/containerregistry/ci.mgmt.yml
index e3f0cfb5bfa5..5fa9fce02790 100644
--- a/sdk/containerregistry/ci.mgmt.yml
+++ b/sdk/containerregistry/ci.mgmt.yml
@@ -1,6 +1,7 @@
# NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file.
trigger: none
+
pr:
branches:
include:
@@ -13,6 +14,18 @@ pr:
- sdk/containerregistry/ci.mgmt.yml
- sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/containerregistry/ci.mgmt.yml
+ - sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/containerservice/ci.mgmt.yml b/sdk/containerservice/ci.mgmt.yml
index 9eb58047b02e..8eb615e701f7 100644
--- a/sdk/containerservice/ci.mgmt.yml
+++ b/sdk/containerservice/ci.mgmt.yml
@@ -1,6 +1,7 @@
# NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file.
trigger: none
+
pr:
branches:
include:
@@ -13,6 +14,18 @@ pr:
- sdk/containerservice/ci.mgmt.yml
- sdk/containerservice/Azure.ResourceManager.ContainerService/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/containerservice/ci.mgmt.yml
+ - sdk/containerservice/Azure.ResourceManager.ContainerService/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/cosmosdb/ci.mgmt.yml b/sdk/cosmosdb/ci.mgmt.yml
index 1eab24b3bbf9..ac1fce954c2a 100644
--- a/sdk/cosmosdb/ci.mgmt.yml
+++ b/sdk/cosmosdb/ci.mgmt.yml
@@ -2,6 +2,7 @@
# This file is generated automatically and any changes will be lost.
trigger: none
+
pr:
branches:
include:
@@ -14,6 +15,18 @@ pr:
- sdk/cosmosdb/ci.mgmt.yml
- sdk/cosmosdb/Azure.ResourceManager.CosmosDB/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/cosmosdb/ci.mgmt.yml
+ - sdk/cosmosdb/Azure.ResourceManager.CosmosDB/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/cosmosdbforpostgresql/ci.mgmt.yml b/sdk/cosmosdbforpostgresql/ci.mgmt.yml
index ef6098c3999f..bfe2761181a8 100644
--- a/sdk/cosmosdbforpostgresql/ci.mgmt.yml
+++ b/sdk/cosmosdbforpostgresql/ci.mgmt.yml
@@ -1,6 +1,7 @@
# NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file.
trigger: none
+
pr:
branches:
include:
@@ -13,6 +14,18 @@ pr:
- sdk/cosmosdbforpostgresql/ci.mgmt.yml
- sdk/cosmosdbforpostgresql/Azure.ResourceManager.CosmosDBForPostgreSql/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/cosmosdbforpostgresql/ci.mgmt.yml
+ - sdk/cosmosdbforpostgresql/Azure.ResourceManager.CosmosDBForPostgreSql/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/costmanagement/ci.mgmt.yml b/sdk/costmanagement/ci.mgmt.yml
index e59280ba6be2..cee9459831fb 100644
--- a/sdk/costmanagement/ci.mgmt.yml
+++ b/sdk/costmanagement/ci.mgmt.yml
@@ -2,6 +2,7 @@
# This file is generated automatically and any changes will be lost.
trigger: none
+
pr:
branches:
include:
@@ -14,6 +15,18 @@ pr:
- sdk/costmanagement/ci.mgmt.yml
- sdk/costmanagement/Azure.ResourceManager.CostManagement/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/costmanagement/ci.mgmt.yml
+ - sdk/costmanagement/Azure.ResourceManager.CostManagement/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/customer-insights/ci.mgmt.yml b/sdk/customer-insights/ci.mgmt.yml
index 124af418dcfa..a5d4f1a60cb5 100644
--- a/sdk/customer-insights/ci.mgmt.yml
+++ b/sdk/customer-insights/ci.mgmt.yml
@@ -1,6 +1,7 @@
# NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file.
trigger: none
+
pr:
branches:
include:
@@ -13,6 +14,18 @@ pr:
- sdk/customer-insights/ci.mgmt.yml
- sdk/customer-insights/Azure.ResourceManager.CustomerInsights/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/customer-insights/ci.mgmt.yml
+ - sdk/customer-insights/Azure.ResourceManager.CustomerInsights/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/databox/ci.mgmt.yml b/sdk/databox/ci.mgmt.yml
index edd63a701700..6525b0b436cc 100644
--- a/sdk/databox/ci.mgmt.yml
+++ b/sdk/databox/ci.mgmt.yml
@@ -1,6 +1,7 @@
# NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file.
trigger: none
+
pr:
branches:
include:
@@ -13,6 +14,18 @@ pr:
- sdk/databox/ci.mgmt.yml
- sdk/databox/Azure.ResourceManager.DataBox/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/databox/ci.mgmt.yml
+ - sdk/databox/Azure.ResourceManager.DataBox/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/databoxedge/ci.mgmt.yml b/sdk/databoxedge/ci.mgmt.yml
index 29e3b1537c78..3cf952bd82f3 100644
--- a/sdk/databoxedge/ci.mgmt.yml
+++ b/sdk/databoxedge/ci.mgmt.yml
@@ -1,6 +1,7 @@
# NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file.
trigger: none
+
pr:
branches:
include:
@@ -13,6 +14,18 @@ pr:
- sdk/databoxedge/ci.mgmt.yml
- sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/databoxedge/ci.mgmt.yml
+ - sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/datadog/ci.mgmt.yml b/sdk/datadog/ci.mgmt.yml
index 9e9d6825d8b0..c1b66f6edb09 100644
--- a/sdk/datadog/ci.mgmt.yml
+++ b/sdk/datadog/ci.mgmt.yml
@@ -1,6 +1,7 @@
# NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file.
trigger: none
+
pr:
branches:
include:
@@ -13,6 +14,18 @@ pr:
- sdk/datadog/ci.mgmt.yml
- sdk/datadog/Azure.ResourceManager.Datadog/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/datadog/ci.mgmt.yml
+ - sdk/datadog/Azure.ResourceManager.Datadog/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/datafactory/ci.mgmt.yml b/sdk/datafactory/ci.mgmt.yml
index 85d246a5d4e7..1f1a4ba295cd 100644
--- a/sdk/datafactory/ci.mgmt.yml
+++ b/sdk/datafactory/ci.mgmt.yml
@@ -1,6 +1,7 @@
# NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file.
trigger: none
+
pr:
branches:
include:
@@ -13,6 +14,18 @@ pr:
- sdk/datafactory/ci.mgmt.yml
- sdk/datafactory/Azure.ResourceManager.DataFactory/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/datafactory/ci.mgmt.yml
+ - sdk/datafactory/Azure.ResourceManager.DataFactory/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/datalake-analytics/ci.mgmt.yml b/sdk/datalake-analytics/ci.mgmt.yml
index b8794cd18f9e..44823b2f9444 100644
--- a/sdk/datalake-analytics/ci.mgmt.yml
+++ b/sdk/datalake-analytics/ci.mgmt.yml
@@ -1,6 +1,7 @@
# NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file.
trigger: none
+
pr:
branches:
include:
@@ -13,6 +14,18 @@ pr:
- sdk/datalake-analytics/ci.mgmt.yml
- sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/datalake-analytics/ci.mgmt.yml
+ - sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/datalake-store/ci.mgmt.yml b/sdk/datalake-store/ci.mgmt.yml
index 469839fd3024..27295ad1c28c 100644
--- a/sdk/datalake-store/ci.mgmt.yml
+++ b/sdk/datalake-store/ci.mgmt.yml
@@ -1,6 +1,7 @@
# NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file.
trigger: none
+
pr:
branches:
include:
@@ -13,6 +14,18 @@ pr:
- sdk/datalake-store/ci.mgmt.yml
- sdk/datalake-store/Azure.ResourceManager.DataLakeStore/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/datalake-store/ci.mgmt.yml
+ - sdk/datalake-store/Azure.ResourceManager.DataLakeStore/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/datamigration/ci.mgmt.yml b/sdk/datamigration/ci.mgmt.yml
index 1e64024fed17..f26452e1de48 100644
--- a/sdk/datamigration/ci.mgmt.yml
+++ b/sdk/datamigration/ci.mgmt.yml
@@ -1,6 +1,7 @@
# NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file.
trigger: none
+
pr:
branches:
include:
@@ -13,6 +14,18 @@ pr:
- sdk/datamigration/ci.mgmt.yml
- sdk/datamigration/Azure.ResourceManager.DataMigration/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/datamigration/ci.mgmt.yml
+ - sdk/datamigration/Azure.ResourceManager.DataMigration/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/dataprotection/ci.mgmt.yml b/sdk/dataprotection/ci.mgmt.yml
index 25637090aedb..0b74e9436cc7 100644
--- a/sdk/dataprotection/ci.mgmt.yml
+++ b/sdk/dataprotection/ci.mgmt.yml
@@ -1,6 +1,7 @@
# NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file.
trigger: none
+
pr:
branches:
include:
@@ -13,6 +14,18 @@ pr:
- sdk/dataprotection/ci.mgmt.yml
- sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/dataprotection/ci.mgmt.yml
+ - sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/datashare/ci.mgmt.yml b/sdk/datashare/ci.mgmt.yml
index f6dd41e0f37f..dcb3801e3f58 100644
--- a/sdk/datashare/ci.mgmt.yml
+++ b/sdk/datashare/ci.mgmt.yml
@@ -1,6 +1,7 @@
# NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file.
trigger: none
+
pr:
branches:
include:
@@ -13,6 +14,18 @@ pr:
- sdk/datashare/ci.mgmt.yml
- sdk/datashare/Azure.ResourceManager.DataShare/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/datashare/ci.mgmt.yml
+ - sdk/datashare/Azure.ResourceManager.DataShare/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/defendereasm/ci.mgmt.yml b/sdk/defendereasm/ci.mgmt.yml
index dd90e5a46690..2dc5c04ec007 100644
--- a/sdk/defendereasm/ci.mgmt.yml
+++ b/sdk/defendereasm/ci.mgmt.yml
@@ -1,6 +1,7 @@
# NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file.
trigger: none
+
pr:
branches:
include:
@@ -13,6 +14,18 @@ pr:
- sdk/defendereasm/ci.mgmt.yml
- sdk/defendereasm/Azure.ResourceManager.DefenderEasm/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/defendereasm/ci.mgmt.yml
+ - sdk/defendereasm/Azure.ResourceManager.DefenderEasm/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_ActiveSessionHostConfigurationResource.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_ActiveSessionHostConfigurationResource.cs
new file mode 100644
index 000000000000..5698f075ec83
--- /dev/null
+++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_ActiveSessionHostConfigurationResource.cs
@@ -0,0 +1,48 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Threading.Tasks;
+using Azure.Core;
+using Azure.Identity;
+using NUnit.Framework;
+
+namespace Azure.ResourceManager.DesktopVirtualization.Samples
+{
+ public partial class Sample_ActiveSessionHostConfigurationResource
+ {
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Get_SessionHostConfigurationsGet()
+ {
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/ActiveSessionHostConfigurations_Get.json
+ // this example is just showing the usage of "ActiveSessionHostConfigurations_Get" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ActiveSessionHostConfigurationResource created on azure
+ // for more information of creating ActiveSessionHostConfigurationResource, please refer to the document of ActiveSessionHostConfigurationResource
+ string subscriptionId = "daefabc0-95b4-48b3-b645-8a753a63c4fa";
+ string resourceGroupName = "resourceGroup1";
+ string hostPoolName = "hostPool1";
+ ResourceIdentifier activeSessionHostConfigurationResourceId = ActiveSessionHostConfigurationResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, hostPoolName);
+ ActiveSessionHostConfigurationResource activeSessionHostConfiguration = client.GetActiveSessionHostConfigurationResource(activeSessionHostConfigurationResourceId);
+
+ // invoke the operation
+ ActiveSessionHostConfigurationResource result = await activeSessionHostConfiguration.GetAsync();
+
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ ActiveSessionHostConfigurationData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+ }
+}
diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_AppAttachPackageCollection.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_AppAttachPackageCollection.cs
index b977dc337511..e0f223f69438 100644
--- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_AppAttachPackageCollection.cs
+++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_AppAttachPackageCollection.cs
@@ -21,7 +21,7 @@ public partial class Sample_AppAttachPackageCollection
[Ignore("Only validating compilation of examples")]
public async Task CreateOrUpdate_AppAttachPackageCreate()
{
- // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/AppAttachPackage_Create.json
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/AppAttachPackage_Create.json
// this example is just showing the usage of "AppAttachPackage_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -78,6 +78,8 @@ public async Task CreateOrUpdate_AppAttachPackageCreate()
HostPoolReferences = { },
KeyVaultUri = new Uri(""),
FailHealthCheckOnStagingFailure = FailHealthCheckOnStagingFailure.NeedsAssistance,
+ PackageOwnerName = "App Attach",
+ CustomData = "",
});
ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, appAttachPackageName, data);
AppAttachPackageResource result = lro.Value;
@@ -93,7 +95,7 @@ public async Task CreateOrUpdate_AppAttachPackageCreate()
[Ignore("Only validating compilation of examples")]
public async Task Get_AppAttachPackageGet()
{
- // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/AppAttachPackage_Get.json
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/AppAttachPackage_Get.json
// this example is just showing the usage of "AppAttachPackage_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -126,7 +128,7 @@ public async Task Get_AppAttachPackageGet()
[Ignore("Only validating compilation of examples")]
public async Task GetAll_AppAttachPackageListByResourceGroup()
{
- // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/AppAttachPackage_ListByResourceGroup.json
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/AppAttachPackage_ListByResourceGroup.json
// this example is just showing the usage of "AppAttachPackage_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -162,7 +164,7 @@ public async Task GetAll_AppAttachPackageListByResourceGroup()
[Ignore("Only validating compilation of examples")]
public async Task Exists_AppAttachPackageGet()
{
- // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/AppAttachPackage_Get.json
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/AppAttachPackage_Get.json
// this example is just showing the usage of "AppAttachPackage_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -191,7 +193,7 @@ public async Task Exists_AppAttachPackageGet()
[Ignore("Only validating compilation of examples")]
public async Task GetIfExists_AppAttachPackageGet()
{
- // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/AppAttachPackage_Get.json
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/AppAttachPackage_Get.json
// this example is just showing the usage of "AppAttachPackage_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_AppAttachPackageResource.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_AppAttachPackageResource.cs
index b7a1106b3f98..bd1f541bca4c 100644
--- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_AppAttachPackageResource.cs
+++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_AppAttachPackageResource.cs
@@ -20,7 +20,7 @@ public partial class Sample_AppAttachPackageResource
[Ignore("Only validating compilation of examples")]
public async Task Get_AppAttachPackageGet()
{
- // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/AppAttachPackage_Get.json
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/AppAttachPackage_Get.json
// this example is just showing the usage of "AppAttachPackage_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -50,7 +50,7 @@ public async Task Get_AppAttachPackageGet()
[Ignore("Only validating compilation of examples")]
public async Task Delete_AppAttachPackageDelete()
{
- // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/AppAttachPackage_Delete.json
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/AppAttachPackage_Delete.json
// this example is just showing the usage of "AppAttachPackage_Delete" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -76,7 +76,7 @@ public async Task Delete_AppAttachPackageDelete()
[Ignore("Only validating compilation of examples")]
public async Task Update_AppAttachPackageUpdate()
{
- // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/AppAttachPackage_Update.json
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/AppAttachPackage_Update.json
// this example is just showing the usage of "AppAttachPackage_Update" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_HostPoolCollection.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_HostPoolCollection.cs
index 7e1c9a5c3c7b..ca4f88674b89 100644
--- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_HostPoolCollection.cs
+++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_HostPoolCollection.cs
@@ -21,7 +21,7 @@ public partial class Sample_HostPoolCollection
[Ignore("Only validating compilation of examples")]
public async Task CreateOrUpdate_HostPoolCreate()
{
- // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/HostPool_Create.json
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/HostPool_Create.json
// this example is just showing the usage of "HostPools_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -54,6 +54,7 @@ public async Task CreateOrUpdate_HostPoolCreate()
RegistrationTokenOperation = HostPoolRegistrationTokenOperation.Update,
},
VmTemplate = "{json:json}",
+ ManagementType = ManagementType.Automated,
SsoAdfsAuthority = "https://adfs",
SsoClientId = "client",
SsoClientSecretKeyVaultPath = "https://keyvault/secret",
@@ -74,6 +75,10 @@ public async Task CreateOrUpdate_HostPoolCreate()
DayOfWeek = DesktopVirtualizationDayOfWeek.Saturday,
}},
},
+ ManagedPrivateUDP = ManagedPrivateUDP.Enabled,
+ DirectUDP = DirectUDP.Enabled,
+ PublicUDP = PublicUDP.Enabled,
+ RelayUDP = RelayUDP.Enabled,
Tags =
{
["tag1"] = "value1",
@@ -94,7 +99,7 @@ public async Task CreateOrUpdate_HostPoolCreate()
[Ignore("Only validating compilation of examples")]
public async Task Get_HostPoolGet()
{
- // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/HostPool_Get.json
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/HostPool_Get.json
// this example is just showing the usage of "HostPools_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -127,7 +132,7 @@ public async Task Get_HostPoolGet()
[Ignore("Only validating compilation of examples")]
public async Task GetAll_HostPoolListByResourceGroup()
{
- // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/HostPool_ListByResourceGroup.json
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/HostPool_ListByResourceGroup.json
// this example is just showing the usage of "HostPools_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -165,7 +170,7 @@ public async Task GetAll_HostPoolListByResourceGroup()
[Ignore("Only validating compilation of examples")]
public async Task Exists_HostPoolGet()
{
- // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/HostPool_Get.json
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/HostPool_Get.json
// this example is just showing the usage of "HostPools_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -194,7 +199,7 @@ public async Task Exists_HostPoolGet()
[Ignore("Only validating compilation of examples")]
public async Task GetIfExists_HostPoolGet()
{
- // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/HostPool_Get.json
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/HostPool_Get.json
// this example is just showing the usage of "HostPools_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_HostPoolPrivateEndpointConnectionCollection.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_HostPoolPrivateEndpointConnectionCollection.cs
index 56146b119bce..bc51200cedf3 100644
--- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_HostPoolPrivateEndpointConnectionCollection.cs
+++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_HostPoolPrivateEndpointConnectionCollection.cs
@@ -20,7 +20,7 @@ public partial class Sample_HostPoolPrivateEndpointConnectionCollection
[Ignore("Only validating compilation of examples")]
public async Task CreateOrUpdate_PrivateEndpointConnectionUpdateByHostPool()
{
- // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/PrivateEndpointConnection_UpdateByHostPool.json
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/PrivateEndpointConnection_UpdateByHostPool.json
// this example is just showing the usage of "PrivateEndpointConnections_UpdateByHostPool" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -64,7 +64,7 @@ public async Task CreateOrUpdate_PrivateEndpointConnectionUpdateByHostPool()
[Ignore("Only validating compilation of examples")]
public async Task Get_PrivateEndpointConnectionGetByHostPool()
{
- // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/PrivateEndpointConnection_GetByHostPool.json
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/PrivateEndpointConnection_GetByHostPool.json
// this example is just showing the usage of "PrivateEndpointConnections_GetByHostPool" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -98,7 +98,7 @@ public async Task Get_PrivateEndpointConnectionGetByHostPool()
[Ignore("Only validating compilation of examples")]
public async Task GetAll_PrivateEndpointConnectionListByHostPool()
{
- // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/PrivateEndpointConnection_ListByHostPool.json
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/PrivateEndpointConnection_ListByHostPool.json
// this example is just showing the usage of "PrivateEndpointConnections_ListByHostPool" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -134,7 +134,7 @@ public async Task GetAll_PrivateEndpointConnectionListByHostPool()
[Ignore("Only validating compilation of examples")]
public async Task Exists_PrivateEndpointConnectionGetByHostPool()
{
- // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/PrivateEndpointConnection_GetByHostPool.json
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/PrivateEndpointConnection_GetByHostPool.json
// this example is just showing the usage of "PrivateEndpointConnections_GetByHostPool" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -164,7 +164,7 @@ public async Task Exists_PrivateEndpointConnectionGetByHostPool()
[Ignore("Only validating compilation of examples")]
public async Task GetIfExists_PrivateEndpointConnectionGetByHostPool()
{
- // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/PrivateEndpointConnection_GetByHostPool.json
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/PrivateEndpointConnection_GetByHostPool.json
// this example is just showing the usage of "PrivateEndpointConnections_GetByHostPool" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_HostPoolPrivateEndpointConnectionResource.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_HostPoolPrivateEndpointConnectionResource.cs
index aea8c7840276..d8d79fff8d8a 100644
--- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_HostPoolPrivateEndpointConnectionResource.cs
+++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_HostPoolPrivateEndpointConnectionResource.cs
@@ -20,7 +20,7 @@ public partial class Sample_HostPoolPrivateEndpointConnectionResource
[Ignore("Only validating compilation of examples")]
public async Task Get_PrivateEndpointConnectionGetByHostPool()
{
- // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/PrivateEndpointConnection_GetByHostPool.json
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/PrivateEndpointConnection_GetByHostPool.json
// this example is just showing the usage of "PrivateEndpointConnections_GetByHostPool" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -51,7 +51,7 @@ public async Task Get_PrivateEndpointConnectionGetByHostPool()
[Ignore("Only validating compilation of examples")]
public async Task Delete_PrivateEndpointConnectionDeleteByHostPool()
{
- // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/PrivateEndpointConnection_DeleteByHostPool.json
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/PrivateEndpointConnection_DeleteByHostPool.json
// this example is just showing the usage of "PrivateEndpointConnections_DeleteByHostPool" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -78,7 +78,7 @@ public async Task Delete_PrivateEndpointConnectionDeleteByHostPool()
[Ignore("Only validating compilation of examples")]
public async Task Update_PrivateEndpointConnectionUpdateByHostPool()
{
- // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/PrivateEndpointConnection_UpdateByHostPool.json
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/PrivateEndpointConnection_UpdateByHostPool.json
// this example is just showing the usage of "PrivateEndpointConnections_UpdateByHostPool" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_HostPoolResource.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_HostPoolResource.cs
index 6da17ec4fed6..5d41bd222e24 100644
--- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_HostPoolResource.cs
+++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_HostPoolResource.cs
@@ -20,7 +20,7 @@ public partial class Sample_HostPoolResource
[Ignore("Only validating compilation of examples")]
public async Task Get_HostPoolGet()
{
- // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/HostPool_Get.json
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/HostPool_Get.json
// this example is just showing the usage of "HostPools_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -50,7 +50,7 @@ public async Task Get_HostPoolGet()
[Ignore("Only validating compilation of examples")]
public async Task Delete_HostPoolDelete()
{
- // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/HostPool_Delete.json
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/HostPool_Delete.json
// this example is just showing the usage of "HostPools_Delete" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -77,7 +77,7 @@ public async Task Delete_HostPoolDelete()
[Ignore("Only validating compilation of examples")]
public async Task Update_HostPoolUpdate()
{
- // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/HostPool_Update.json
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/HostPool_Update.json
// this example is just showing the usage of "HostPools_Update" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -133,6 +133,10 @@ public async Task Update_HostPoolUpdate()
DayOfWeek = DesktopVirtualizationDayOfWeek.Saturday,
}},
},
+ ManagedPrivateUDP = ManagedPrivateUDP.Enabled,
+ DirectUDP = DirectUDP.Enabled,
+ PublicUDP = PublicUDP.Enabled,
+ RelayUDP = RelayUDP.Enabled,
};
HostPoolResource result = await hostPool.UpdateAsync(patch);
@@ -147,7 +151,7 @@ public async Task Update_HostPoolUpdate()
[Ignore("Only validating compilation of examples")]
public async Task GetPrivateLinkResources_PrivateLinkResourcesListByHostPool()
{
- // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/PrivateLinkResources_ListByHostPool.json
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/PrivateLinkResources_ListByHostPool.json
// this example is just showing the usage of "PrivateLinkResources_ListByHostPool" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -176,7 +180,7 @@ public async Task GetPrivateLinkResources_PrivateLinkResourcesListByHostPool()
[Ignore("Only validating compilation of examples")]
public async Task GetScalingPlans_ScalingPlanListByHostPool()
{
- // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/ScalingPlan_ListByHostPool.json
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/ScalingPlan_ListByHostPool.json
// this example is just showing the usage of "ScalingPlans_ListByHostPool" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -212,7 +216,7 @@ public async Task GetScalingPlans_ScalingPlanListByHostPool()
[Ignore("Only validating compilation of examples")]
public async Task RetrieveRegistrationToken_HostPoolsRetrieveRegistrationTokenPost()
{
- // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/HostPools_RetrieveRegistrationToken_Post.json
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/HostPools_RetrieveRegistrationToken_Post.json
// this example is just showing the usage of "HostPools_RetrieveRegistrationToken" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -234,11 +238,40 @@ public async Task RetrieveRegistrationToken_HostPoolsRetrieveRegistrationTokenPo
Console.WriteLine($"Succeeded: {result}");
}
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task GetRegistrationTokens_HostPoolsListRegistrationTokenPost()
+ {
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/HostPools_ListRegistrationToken_Post.json
+ // this example is just showing the usage of "HostPools_ListRegistrationTokens" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this HostPoolResource created on azure
+ // for more information of creating HostPoolResource, please refer to the document of HostPoolResource
+ string subscriptionId = "daefabc0-95b4-48b3-b645-8a753a63c4fa";
+ string resourceGroupName = "resourceGroup1";
+ string hostPoolName = "hostPool1";
+ ResourceIdentifier hostPoolResourceId = HostPoolResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, hostPoolName);
+ HostPoolResource hostPool = client.GetHostPoolResource(hostPoolResourceId);
+
+ // invoke the operation and iterate over the result
+ await foreach (RegistrationTokenMinimal item in hostPool.GetRegistrationTokensAsync())
+ {
+ Console.WriteLine($"Succeeded: {item}");
+ }
+
+ Console.WriteLine("Succeeded");
+ }
+
[Test]
[Ignore("Only validating compilation of examples")]
public async Task GetUserSessions_UserSessionListByHostPool()
{
- // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/UserSession_ListByHostPool.json
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/UserSession_ListByHostPool.json
// this example is just showing the usage of "UserSessions_ListByHostPool" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -275,7 +308,7 @@ public async Task GetUserSessions_UserSessionListByHostPool()
[Ignore("Only validating compilation of examples")]
public async Task ImportAppAttachPackageInfos_AppAttachPackageInfoImport()
{
- // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/AppAttachPackageInfo_Import_Post.json
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/AppAttachPackageInfo_Import_Post.json
// this example is just showing the usage of "AppAttachPackageInfo_Import" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -313,7 +346,7 @@ public async Task ImportAppAttachPackageInfos_AppAttachPackageInfoImport()
[Ignore("Only validating compilation of examples")]
public async Task ExpandMsixImages_MsixImageExpand()
{
- // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/MsixImage_Expand_Post.json
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/MsixImage_Expand_Post.json
// this example is just showing the usage of "MsixImages_Expand" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_MsixPackageCollection.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_MsixPackageCollection.cs
index 7e6368e6b423..64fd9edfa2a8 100644
--- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_MsixPackageCollection.cs
+++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_MsixPackageCollection.cs
@@ -20,7 +20,7 @@ public partial class Sample_MsixPackageCollection
[Ignore("Only validating compilation of examples")]
public async Task CreateOrUpdate_MSIXPackageCreate()
{
- // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/MsixPackage_Create.json
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/MsixPackage_Create.json
// this example is just showing the usage of "MSIXPackages_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -83,7 +83,7 @@ public async Task CreateOrUpdate_MSIXPackageCreate()
[Ignore("Only validating compilation of examples")]
public async Task Get_MSIXPackageGet()
{
- // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/MsixPackage_Get.json
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/MsixPackage_Get.json
// this example is just showing the usage of "MSIXPackages_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -117,7 +117,7 @@ public async Task Get_MSIXPackageGet()
[Ignore("Only validating compilation of examples")]
public async Task GetAll_MSIXPackageList()
{
- // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/MsixPackage_List.json
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/MsixPackage_List.json
// this example is just showing the usage of "MSIXPackages_List" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -156,7 +156,7 @@ public async Task GetAll_MSIXPackageList()
[Ignore("Only validating compilation of examples")]
public async Task Exists_MSIXPackageGet()
{
- // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/MsixPackage_Get.json
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/MsixPackage_Get.json
// this example is just showing the usage of "MSIXPackages_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -186,7 +186,7 @@ public async Task Exists_MSIXPackageGet()
[Ignore("Only validating compilation of examples")]
public async Task GetIfExists_MSIXPackageGet()
{
- // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/MsixPackage_Get.json
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/MsixPackage_Get.json
// this example is just showing the usage of "MSIXPackages_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_MsixPackageResource.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_MsixPackageResource.cs
index cd2ff7e4eae1..18c9e61cb3b5 100644
--- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_MsixPackageResource.cs
+++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_MsixPackageResource.cs
@@ -20,7 +20,7 @@ public partial class Sample_MsixPackageResource
[Ignore("Only validating compilation of examples")]
public async Task Get_MSIXPackageGet()
{
- // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/MsixPackage_Get.json
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/MsixPackage_Get.json
// this example is just showing the usage of "MSIXPackages_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -51,7 +51,7 @@ public async Task Get_MSIXPackageGet()
[Ignore("Only validating compilation of examples")]
public async Task Delete_MSIXPackageDelete()
{
- // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/MsixPackage_Delete.json
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/MsixPackage_Delete.json
// this example is just showing the usage of "MSIXPackages_Delete" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -78,7 +78,7 @@ public async Task Delete_MSIXPackageDelete()
[Ignore("Only validating compilation of examples")]
public async Task Update_MSIXPackageUpdate()
{
- // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/MsixPackage_Update.json
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/MsixPackage_Update.json
// this example is just showing the usage of "MSIXPackages_Update" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_ScalingPlanCollection.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_ScalingPlanCollection.cs
index 85c1f46fdecf..97091678eeda 100644
--- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_ScalingPlanCollection.cs
+++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_ScalingPlanCollection.cs
@@ -21,7 +21,7 @@ public partial class Sample_ScalingPlanCollection
[Ignore("Only validating compilation of examples")]
public async Task CreateOrUpdate_ScalingPlansCreate()
{
- // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/ScalingPlan_Create.json
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/ScalingPlan_Create.json
// this example is just showing the usage of "ScalingPlans_Create" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -50,7 +50,7 @@ public async Task CreateOrUpdate_ScalingPlansCreate()
Schedules = {new ScalingSchedule
{
Name = "schedule1",
-DaysOfWeek = {ScalingScheduleDaysOfWeekItem.Monday, ScalingScheduleDaysOfWeekItem.Tuesday, ScalingScheduleDaysOfWeekItem.Wednesday, ScalingScheduleDaysOfWeekItem.Thursday, ScalingScheduleDaysOfWeekItem.Friday},
+DaysOfWeek = {DesktopVirtualizationDayOfWeek.Monday, DesktopVirtualizationDayOfWeek.Tuesday, DesktopVirtualizationDayOfWeek.Wednesday, DesktopVirtualizationDayOfWeek.Thursday, DesktopVirtualizationDayOfWeek.Friday},
RampUpStartTime = new ScalingActionTime(6, 0),
RampUpLoadBalancingAlgorithm = SessionHostLoadBalancingAlgorithm.DepthFirst,
RampUpMinimumHostsPct = 20,
@@ -92,7 +92,7 @@ public async Task CreateOrUpdate_ScalingPlansCreate()
[Ignore("Only validating compilation of examples")]
public async Task Get_ScalingPlansGet()
{
- // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/ScalingPlan_Get.json
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/ScalingPlan_Get.json
// this example is just showing the usage of "ScalingPlans_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -125,7 +125,7 @@ public async Task Get_ScalingPlansGet()
[Ignore("Only validating compilation of examples")]
public async Task GetAll_ScalingPlansListByResourceGroup()
{
- // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/ScalingPlan_ListByResourceGroup.json
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/ScalingPlan_ListByResourceGroup.json
// this example is just showing the usage of "ScalingPlans_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -163,7 +163,7 @@ public async Task GetAll_ScalingPlansListByResourceGroup()
[Ignore("Only validating compilation of examples")]
public async Task Exists_ScalingPlansGet()
{
- // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/ScalingPlan_Get.json
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/ScalingPlan_Get.json
// this example is just showing the usage of "ScalingPlans_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -192,7 +192,7 @@ public async Task Exists_ScalingPlansGet()
[Ignore("Only validating compilation of examples")]
public async Task GetIfExists_ScalingPlansGet()
{
- // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/ScalingPlan_Get.json
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/ScalingPlan_Get.json
// this example is just showing the usage of "ScalingPlans_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_ScalingPlanPersonalScheduleCollection.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_ScalingPlanPersonalScheduleCollection.cs
index cfddb58b35aa..6fec88e83296 100644
--- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_ScalingPlanPersonalScheduleCollection.cs
+++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_ScalingPlanPersonalScheduleCollection.cs
@@ -20,7 +20,7 @@ public partial class Sample_ScalingPlanPersonalScheduleCollection
[Ignore("Only validating compilation of examples")]
public async Task CreateOrUpdate_ScalingPlanPersonalSchedulesCreate()
{
- // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/ScalingPlanPersonalSchedule_Create.json
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/ScalingPlanPersonalSchedule_Create.json
// this example is just showing the usage of "ScalingPlanPersonalSchedules_Create" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -41,29 +41,24 @@ public async Task CreateOrUpdate_ScalingPlanPersonalSchedulesCreate()
// invoke the operation
string scalingPlanScheduleName = "scalingPlanScheduleWeekdays1";
- ScalingPlanPersonalScheduleData data = new ScalingPlanPersonalScheduleData
+ ScalingPlanPersonalScheduleData data = new ScalingPlanPersonalScheduleData(new DesktopVirtualizationDayOfWeek[] { DesktopVirtualizationDayOfWeek.Monday, DesktopVirtualizationDayOfWeek.Tuesday, DesktopVirtualizationDayOfWeek.Wednesday, DesktopVirtualizationDayOfWeek.Thursday, DesktopVirtualizationDayOfWeek.Friday }, new ScalingActionTime(6, 0), new ScalingActionTime(8, 0), new ScalingActionTime(18, 0), new ScalingActionTime(20, 0))
{
- DaysOfWeek = { DesktopVirtualizationDayOfWeek.Monday, DesktopVirtualizationDayOfWeek.Tuesday, DesktopVirtualizationDayOfWeek.Wednesday, DesktopVirtualizationDayOfWeek.Thursday, DesktopVirtualizationDayOfWeek.Friday },
- RampUpStartTime = new ScalingActionTime(6, 0),
RampUpAutoStartHosts = StartupBehavior.All,
RampUpStartVmOnConnect = SetStartVmOnConnect.Enable,
RampUpActionOnDisconnect = SessionHandlingOperation.None,
RampUpMinutesToWaitOnDisconnect = 10,
RampUpActionOnLogoff = SessionHandlingOperation.None,
RampUpMinutesToWaitOnLogoff = 10,
- PeakStartTime = new ScalingActionTime(8, 0),
PeakStartVmOnConnect = SetStartVmOnConnect.Enable,
PeakActionOnDisconnect = SessionHandlingOperation.None,
PeakMinutesToWaitOnDisconnect = 10,
PeakActionOnLogoff = SessionHandlingOperation.Deallocate,
PeakMinutesToWaitOnLogoff = 10,
- RampDownStartTime = new ScalingActionTime(18, 0),
RampDownStartVmOnConnect = SetStartVmOnConnect.Enable,
RampDownActionOnDisconnect = SessionHandlingOperation.None,
RampDownMinutesToWaitOnDisconnect = 10,
RampDownActionOnLogoff = SessionHandlingOperation.Deallocate,
RampDownMinutesToWaitOnLogoff = 10,
- OffPeakStartTime = new ScalingActionTime(20, 0),
OffPeakStartVmOnConnect = SetStartVmOnConnect.Enable,
OffPeakActionOnDisconnect = SessionHandlingOperation.None,
OffPeakMinutesToWaitOnDisconnect = 10,
@@ -84,7 +79,7 @@ public async Task CreateOrUpdate_ScalingPlanPersonalSchedulesCreate()
[Ignore("Only validating compilation of examples")]
public async Task Get_ScalingPlanPersonalSchedulesGet()
{
- // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/ScalingPlanPersonalSchedule_Get.json
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/ScalingPlanPersonalSchedule_Get.json
// this example is just showing the usage of "ScalingPlanPersonalSchedules_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -118,7 +113,7 @@ public async Task Get_ScalingPlanPersonalSchedulesGet()
[Ignore("Only validating compilation of examples")]
public async Task GetAll_ScalingPlanPersonalSchedulesList()
{
- // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/ScalingPlanPersonalSchedule_List.json
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/ScalingPlanPersonalSchedule_List.json
// this example is just showing the usage of "ScalingPlanPersonalSchedules_List" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -157,7 +152,7 @@ public async Task GetAll_ScalingPlanPersonalSchedulesList()
[Ignore("Only validating compilation of examples")]
public async Task Exists_ScalingPlanPersonalSchedulesGet()
{
- // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/ScalingPlanPersonalSchedule_Get.json
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/ScalingPlanPersonalSchedule_Get.json
// this example is just showing the usage of "ScalingPlanPersonalSchedules_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -187,7 +182,7 @@ public async Task Exists_ScalingPlanPersonalSchedulesGet()
[Ignore("Only validating compilation of examples")]
public async Task GetIfExists_ScalingPlanPersonalSchedulesGet()
{
- // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/ScalingPlanPersonalSchedule_Get.json
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/ScalingPlanPersonalSchedule_Get.json
// this example is just showing the usage of "ScalingPlanPersonalSchedules_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_ScalingPlanPersonalScheduleResource.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_ScalingPlanPersonalScheduleResource.cs
index 62750d78eb51..62f829bb1cb1 100644
--- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_ScalingPlanPersonalScheduleResource.cs
+++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_ScalingPlanPersonalScheduleResource.cs
@@ -20,7 +20,7 @@ public partial class Sample_ScalingPlanPersonalScheduleResource
[Ignore("Only validating compilation of examples")]
public async Task Get_ScalingPlanPersonalSchedulesGet()
{
- // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/ScalingPlanPersonalSchedule_Get.json
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/ScalingPlanPersonalSchedule_Get.json
// this example is just showing the usage of "ScalingPlanPersonalSchedules_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -51,7 +51,7 @@ public async Task Get_ScalingPlanPersonalSchedulesGet()
[Ignore("Only validating compilation of examples")]
public async Task Delete_ScalingPlanPersonalSchedulesDelete()
{
- // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/ScalingPlanPersonalSchedule_Delete.json
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/ScalingPlanPersonalSchedule_Delete.json
// this example is just showing the usage of "ScalingPlanPersonalSchedules_Delete" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -78,7 +78,7 @@ public async Task Delete_ScalingPlanPersonalSchedulesDelete()
[Ignore("Only validating compilation of examples")]
public async Task Update_ScalingPlanPersonalSchedulesUpdate()
{
- // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/ScalingPlanPersonalSchedule_Update.json
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/ScalingPlanPersonalSchedule_Update.json
// this example is just showing the usage of "ScalingPlanPersonalSchedules_Update" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_ScalingPlanPooledScheduleCollection.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_ScalingPlanPooledScheduleCollection.cs
index b69462e6ec46..575cc7885004 100644
--- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_ScalingPlanPooledScheduleCollection.cs
+++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_ScalingPlanPooledScheduleCollection.cs
@@ -20,7 +20,7 @@ public partial class Sample_ScalingPlanPooledScheduleCollection
[Ignore("Only validating compilation of examples")]
public async Task CreateOrUpdate_ScalingPlanPooledSchedulesCreate()
{
- // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/ScalingPlanPooledSchedule_Create.json
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/ScalingPlanPooledSchedule_Create.json
// this example is just showing the usage of "ScalingPlanPooledSchedules_Create" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -41,23 +41,23 @@ public async Task CreateOrUpdate_ScalingPlanPooledSchedulesCreate()
// invoke the operation
string scalingPlanScheduleName = "scalingPlanScheduleWeekdays1";
- ScalingPlanPooledScheduleData data = new ScalingPlanPooledScheduleData
+ ScalingPlanPooledScheduleData data = new ScalingPlanPooledScheduleData(
+ new DesktopVirtualizationDayOfWeek[] { DesktopVirtualizationDayOfWeek.Monday, DesktopVirtualizationDayOfWeek.Tuesday, DesktopVirtualizationDayOfWeek.Wednesday, DesktopVirtualizationDayOfWeek.Thursday, DesktopVirtualizationDayOfWeek.Friday },
+ new ScalingActionTime(6, 0),
+ 80,
+ new ScalingActionTime(8, 0),
+ new ScalingActionTime(18, 0),
+ 50,
+ new ScalingActionTime(20, 0))
{
- DaysOfWeek = { DesktopVirtualizationDayOfWeek.Monday, DesktopVirtualizationDayOfWeek.Tuesday, DesktopVirtualizationDayOfWeek.Wednesday, DesktopVirtualizationDayOfWeek.Thursday, DesktopVirtualizationDayOfWeek.Friday },
- RampUpStartTime = new ScalingActionTime(6, 0),
RampUpLoadBalancingAlgorithm = SessionHostLoadBalancingAlgorithm.DepthFirst,
RampUpMinimumHostsPct = 20,
- RampUpCapacityThresholdPct = 80,
- PeakStartTime = new ScalingActionTime(8, 0),
PeakLoadBalancingAlgorithm = SessionHostLoadBalancingAlgorithm.BreadthFirst,
- RampDownStartTime = new ScalingActionTime(18, 0),
RampDownLoadBalancingAlgorithm = SessionHostLoadBalancingAlgorithm.DepthFirst,
RampDownMinimumHostsPct = 20,
- RampDownCapacityThresholdPct = 50,
RampDownForceLogoffUsers = true,
RampDownWaitTimeMinutes = 30,
RampDownNotificationMessage = "message",
- OffPeakStartTime = new ScalingActionTime(20, 0),
OffPeakLoadBalancingAlgorithm = SessionHostLoadBalancingAlgorithm.DepthFirst,
};
ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, scalingPlanScheduleName, data);
@@ -74,7 +74,7 @@ public async Task CreateOrUpdate_ScalingPlanPooledSchedulesCreate()
[Ignore("Only validating compilation of examples")]
public async Task Get_ScalingPlanPooledSchedulesGet()
{
- // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/ScalingPlanPooledSchedule_Get.json
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/ScalingPlanPooledSchedule_Get.json
// this example is just showing the usage of "ScalingPlanPooledSchedules_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -108,7 +108,7 @@ public async Task Get_ScalingPlanPooledSchedulesGet()
[Ignore("Only validating compilation of examples")]
public async Task GetAll_ScalingPlanPooledSchedulesList()
{
- // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/ScalingPlanPooledSchedule_List.json
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/ScalingPlanPooledSchedule_List.json
// this example is just showing the usage of "ScalingPlanPooledSchedules_List" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -147,7 +147,7 @@ public async Task GetAll_ScalingPlanPooledSchedulesList()
[Ignore("Only validating compilation of examples")]
public async Task Exists_ScalingPlanPooledSchedulesGet()
{
- // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/ScalingPlanPooledSchedule_Get.json
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/ScalingPlanPooledSchedule_Get.json
// this example is just showing the usage of "ScalingPlanPooledSchedules_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -177,7 +177,7 @@ public async Task Exists_ScalingPlanPooledSchedulesGet()
[Ignore("Only validating compilation of examples")]
public async Task GetIfExists_ScalingPlanPooledSchedulesGet()
{
- // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/ScalingPlanPooledSchedule_Get.json
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/ScalingPlanPooledSchedule_Get.json
// this example is just showing the usage of "ScalingPlanPooledSchedules_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_ScalingPlanPooledScheduleResource.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_ScalingPlanPooledScheduleResource.cs
index 33271d157fc8..32c49d6d65a7 100644
--- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_ScalingPlanPooledScheduleResource.cs
+++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_ScalingPlanPooledScheduleResource.cs
@@ -20,7 +20,7 @@ public partial class Sample_ScalingPlanPooledScheduleResource
[Ignore("Only validating compilation of examples")]
public async Task Get_ScalingPlanPooledSchedulesGet()
{
- // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/ScalingPlanPooledSchedule_Get.json
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/ScalingPlanPooledSchedule_Get.json
// this example is just showing the usage of "ScalingPlanPooledSchedules_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -51,7 +51,7 @@ public async Task Get_ScalingPlanPooledSchedulesGet()
[Ignore("Only validating compilation of examples")]
public async Task Delete_ScalingPlanPooledSchedulesDelete()
{
- // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/ScalingPlanPooledSchedule_Delete.json
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/ScalingPlanPooledSchedule_Delete.json
// this example is just showing the usage of "ScalingPlanPooledSchedules_Delete" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -78,7 +78,7 @@ public async Task Delete_ScalingPlanPooledSchedulesDelete()
[Ignore("Only validating compilation of examples")]
public async Task Update_ScalingPlanPooledSchedulesUpdate()
{
- // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/ScalingPlanPooledSchedule_Update.json
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/ScalingPlanPooledSchedule_Update.json
// this example is just showing the usage of "ScalingPlanPooledSchedules_Update" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_ScalingPlanResource.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_ScalingPlanResource.cs
index 92fa800f4d5e..13546dcd57da 100644
--- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_ScalingPlanResource.cs
+++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_ScalingPlanResource.cs
@@ -20,7 +20,7 @@ public partial class Sample_ScalingPlanResource
[Ignore("Only validating compilation of examples")]
public async Task Get_ScalingPlansGet()
{
- // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/ScalingPlan_Get.json
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/ScalingPlan_Get.json
// this example is just showing the usage of "ScalingPlans_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -50,7 +50,7 @@ public async Task Get_ScalingPlansGet()
[Ignore("Only validating compilation of examples")]
public async Task Delete_ScalingPlansDelete()
{
- // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/ScalingPlan_Delete.json
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/ScalingPlan_Delete.json
// this example is just showing the usage of "ScalingPlans_Delete" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -76,7 +76,7 @@ public async Task Delete_ScalingPlansDelete()
[Ignore("Only validating compilation of examples")]
public async Task Update_ScalingPlansUpdate()
{
- // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/ScalingPlan_Update.json
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/ScalingPlan_Update.json
// this example is just showing the usage of "ScalingPlans_Update" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_SessionHostCollection.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_SessionHostCollection.cs
index b2d6cb8397bd..13c5c2acad3c 100644
--- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_SessionHostCollection.cs
+++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_SessionHostCollection.cs
@@ -19,7 +19,7 @@ public partial class Sample_SessionHostCollection
[Ignore("Only validating compilation of examples")]
public async Task Get_SessionHostGet()
{
- // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/SessionHost_Get.json
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/SessionHost_Get.json
// this example is just showing the usage of "SessionHosts_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -53,7 +53,7 @@ public async Task Get_SessionHostGet()
[Ignore("Only validating compilation of examples")]
public async Task GetAll_SessionHostList()
{
- // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/SessionHost_List.json
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/SessionHost_List.json
// this example is just showing the usage of "SessionHosts_List" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -92,7 +92,7 @@ public async Task GetAll_SessionHostList()
[Ignore("Only validating compilation of examples")]
public async Task Exists_SessionHostGet()
{
- // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/SessionHost_Get.json
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/SessionHost_Get.json
// this example is just showing the usage of "SessionHosts_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -122,7 +122,7 @@ public async Task Exists_SessionHostGet()
[Ignore("Only validating compilation of examples")]
public async Task GetIfExists_SessionHostGet()
{
- // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/SessionHost_Get.json
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/SessionHost_Get.json
// this example is just showing the usage of "SessionHosts_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_SessionHostConfigurationResource.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_SessionHostConfigurationResource.cs
new file mode 100644
index 000000000000..8e0b33956a55
--- /dev/null
+++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_SessionHostConfigurationResource.cs
@@ -0,0 +1,210 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Threading.Tasks;
+using Azure.Core;
+using Azure.Identity;
+using Azure.ResourceManager.DesktopVirtualization.Models;
+using NUnit.Framework;
+
+namespace Azure.ResourceManager.DesktopVirtualization.Samples
+{
+ public partial class Sample_SessionHostConfigurationResource
+ {
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Get_SessionHostConfigurationsGet()
+ {
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/SessionHostConfigurations_Get.json
+ // this example is just showing the usage of "SessionHostConfigurations_Get" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this SessionHostConfigurationResource created on azure
+ // for more information of creating SessionHostConfigurationResource, please refer to the document of SessionHostConfigurationResource
+ string subscriptionId = "daefabc0-95b4-48b3-b645-8a753a63c4fa";
+ string resourceGroupName = "resourceGroup1";
+ string hostPoolName = "hostPool1";
+ ResourceIdentifier sessionHostConfigurationResourceId = SessionHostConfigurationResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, hostPoolName);
+ SessionHostConfigurationResource sessionHostConfiguration = client.GetSessionHostConfigurationResource(sessionHostConfigurationResourceId);
+
+ // invoke the operation
+ SessionHostConfigurationResource result = await sessionHostConfiguration.GetAsync();
+
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ SessionHostConfigurationData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Update_SessionHostConfigurationsUpdate()
+ {
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/SessionHostConfigurations_Update.json
+ // this example is just showing the usage of "SessionHostConfigurations_Update" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this SessionHostConfigurationResource created on azure
+ // for more information of creating SessionHostConfigurationResource, please refer to the document of SessionHostConfigurationResource
+ string subscriptionId = "daefabc0-95b4-48b3-b645-8a753a63c4fa";
+ string resourceGroupName = "resourceGroup1";
+ string hostPoolName = "hostPool1";
+ ResourceIdentifier sessionHostConfigurationResourceId = SessionHostConfigurationResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, hostPoolName);
+ SessionHostConfigurationResource sessionHostConfiguration = client.GetSessionHostConfigurationResource(sessionHostConfigurationResourceId);
+
+ // invoke the operation
+ SessionHostConfigurationPatch patch = new SessionHostConfigurationPatch
+ {
+ FriendlyName = "Second Version, Updated Location",
+ VmTags =
+{
+["Department"] = "myDepartment",
+["Team"] = "myTeam"
+},
+ VmLocation = "eastus2",
+ VmResourceGroup = "myResourceGroup",
+ VmNamePrefix = "westus2-vm",
+ AvailabilityZones = { 1, 3 },
+ NetworkInfo = new NetworkInfoPatchProperties
+ {
+ SubnetId = new ResourceIdentifier("/subscriptions/.../resourceGroups/.../providers/Microsoft.Network/virtualNetworks/.../subnets/subnet1"),
+ SecurityGroupId = "/subscriptions/.../resourceGroups/.../provider s/Microsoft.Network/networkSecurityGroups/nsg1",
+ },
+ VmSizeId = "Standard_D2s_v3",
+ VirtualMachineDiskType = VirtualMachineDiskType.StandardLRS,
+ CustomConfigurationScriptUri = new Uri("https://storageaccountname.blob.core.windows.net/blobcontainer/file"),
+ ImageInfo = new ImageInfoPatchProperties
+ {
+ ImageType = Models.Type.Marketplace,
+ MarketplaceInfo = new MarketplaceInfoPatchProperties
+ {
+ Offer = "Windows-10",
+ Publisher = "MicrosoftWindowsDesktop",
+ Sku = "19h2-ent",
+ ExactVersion = "2019.0.20190115",
+ },
+ CustomInfoResourceId = new ResourceIdentifier("/subscriptions/daefabc0-95b4-48b3-b645-8a753a63c4fa/resourceGroups/resourceGroup1/providers/Microsoft.Compute/images/imageName"),
+ },
+ ActiveDirectoryInfoDomainCredentials = new KeyVaultCredentialsPatchProperties
+ {
+ UsernameKeyVaultSecretUri = new Uri("https://myvault.vault.azure.net/secrets/myusername"),
+ PasswordKeyVaultSecretUri = new Uri("https://myvault.vault.azure.net/secrets/mysecretname"),
+ },
+ SecurityInfo = new SecurityInfoPatchProperties
+ {
+ VirtualMachineSecurityType = VirtualMachineSecurityType.TrustedLaunch,
+ SecureBootEnabled = true,
+ VTpmEnabled = true,
+ },
+ VmAdminCredentials = new KeyVaultCredentialsPatchProperties
+ {
+ UsernameKeyVaultSecretUri = new Uri("https://myvault.vault.azure.net/secrets/myusername"),
+ PasswordKeyVaultSecretUri = new Uri("https://myvault.vault.azure.net/secrets/mysecretname"),
+ },
+ BootDiagnosticsInfo = new BootDiagnosticsInfoPatchProperties
+ {
+ Enabled = true,
+ StorageUri = new Uri("https://myStorageAccountName.blob.core.windows.net"),
+ },
+ };
+ ArmOperation lro = await sessionHostConfiguration.UpdateAsync(WaitUntil.Completed, patch);
+ SessionHostConfigurationResource result = lro.Value;
+
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ SessionHostConfigurationData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task CreateOrUpdate_SessionHostConfigurationsCreate()
+ {
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/SessionHostConfigurations_Create.json
+ // this example is just showing the usage of "SessionHostConfigurations_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this SessionHostConfigurationResource created on azure
+ // for more information of creating SessionHostConfigurationResource, please refer to the document of SessionHostConfigurationResource
+ string subscriptionId = "daefabc0-95b4-48b3-b645-8a753a63c4fa";
+ string resourceGroupName = "resourceGroup1";
+ string hostPoolName = "hostPool1";
+ ResourceIdentifier sessionHostConfigurationResourceId = SessionHostConfigurationResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, hostPoolName);
+ SessionHostConfigurationResource sessionHostConfiguration = client.GetSessionHostConfigurationResource(sessionHostConfigurationResourceId);
+
+ // invoke the operation
+ SessionHostConfigurationData data = new SessionHostConfigurationData(
+ "westus2-vm",
+ new NetworkInfoProperties(new ResourceIdentifier("/subscriptions/.../resourceGroups/.../providers/Microsoft.Network/virtualNetworks/.../subnets/subnet1"))
+ {
+ SecurityGroupId = "/subscriptions/.../resourceGroups/.../provider s/Microsoft.Network/networkSecurityGroups/nsg1",
+ },
+ "Standard_D2s_v3",
+ new DiskInfoProperties(VirtualMachineDiskType.StandardLRS),
+ new ImageInfoProperties(Models.Type.Marketplace)
+ {
+ MarketplaceInfo = new MarketplaceInfoProperties("Windows-10", "MicrosoftWindowsDesktop", "19h2-ent", "2019.0.20190115"),
+ CustomInfoResourceId = new ResourceIdentifier("/subscriptions/daefabc0-95b4-48b3-b645-8a753a63c4fa/resourceGroups/resourceGroup1/providers/Microsoft.Compute/images/imageName"),
+ },
+ new DomainInfoProperties(DomainJoinType.ActiveDirectory)
+ {
+ ActiveDirectoryInfo = new ActiveDirectoryInfoProperties(new KeyVaultCredentialsProperties(new Uri("https://myvault.vault.azure.net/secrets/myusername"), new Uri("https://myvault.vault.azure.net/secrets/mysecretname")), "OU=testOU,DC=domain,DC=Domain,DC=com")
+ {
+ DomainName = "wvdarmtest1.net",
+ },
+ AzureActiveDirectoryInfoMdmProviderGuid = "bdefabc0-95b4-48b3-b645-8a753a63c4fa",
+ },
+ new KeyVaultCredentialsProperties(new Uri("https://myvault.vault.azure.net/secrets/myusername"), new Uri("https://myvault.vault.azure.net/secrets/mysecretname")))
+ {
+ FriendlyName = "InitialConfiguration",
+ VmTags =
+{
+["Department"] = "myDepartment",
+["Team"] = "myTeam"
+},
+ VmLocation = "eastus2",
+ VmResourceGroup = "myResourceGroup",
+ AvailabilityZones = { 1, 3 },
+ CustomConfigurationScriptUri = new Uri("https://storageaccountname.blob.core.windows.net/blobcontainer/file"),
+ SecurityInfo = new SecurityInfoProperties
+ {
+ VirtualMachineSecurityType = VirtualMachineSecurityType.TrustedLaunch,
+ SecureBootEnabled = true,
+ VTpmEnabled = true,
+ },
+ BootDiagnosticsInfo = new BootDiagnosticsInfoProperties
+ {
+ Enabled = true,
+ StorageUri = new Uri("https://myStorageAccountName.blob.core.windows.net"),
+ },
+ };
+ ArmOperation lro = await sessionHostConfiguration.CreateOrUpdateAsync(WaitUntil.Completed, data);
+ SessionHostConfigurationResource result = lro.Value;
+
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ SessionHostConfigurationData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+ }
+}
diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_SessionHostManagementResource.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_SessionHostManagementResource.cs
new file mode 100644
index 000000000000..bd4d748b71de
--- /dev/null
+++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_SessionHostManagementResource.cs
@@ -0,0 +1,220 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Threading.Tasks;
+using Azure.Core;
+using Azure.Identity;
+using Azure.ResourceManager.DesktopVirtualization.Models;
+using NUnit.Framework;
+
+namespace Azure.ResourceManager.DesktopVirtualization.Samples
+{
+ public partial class Sample_SessionHostManagementResource
+ {
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Get_SessionHostManagementsGet()
+ {
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/SessionHostManagements_Get.json
+ // this example is just showing the usage of "SessionHostManagements_Get" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this SessionHostManagementResource created on azure
+ // for more information of creating SessionHostManagementResource, please refer to the document of SessionHostManagementResource
+ string subscriptionId = "daefabc0-95b4-48b3-b645-8a753a63c4fa";
+ string resourceGroupName = "resourceGroup1";
+ string hostPoolName = "hostPool1";
+ ResourceIdentifier sessionHostManagementResourceId = SessionHostManagementResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, hostPoolName);
+ SessionHostManagementResource sessionHostManagement = client.GetSessionHostManagementResource(sessionHostManagementResourceId);
+
+ // invoke the operation
+ SessionHostManagementResource result = await sessionHostManagement.GetAsync();
+
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ SessionHostManagementData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Update_SessionHostManagementsUpdate()
+ {
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/SessionHostManagements_Update.json
+ // this example is just showing the usage of "SessionHostManagements_Update" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this SessionHostManagementResource created on azure
+ // for more information of creating SessionHostManagementResource, please refer to the document of SessionHostManagementResource
+ string subscriptionId = "daefabc0-95b4-48b3-b645-8a753a63c4fa";
+ string resourceGroupName = "resourceGroup1";
+ string hostPoolName = "hostPool1";
+ ResourceIdentifier sessionHostManagementResourceId = SessionHostManagementResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, hostPoolName);
+ SessionHostManagementResource sessionHostManagement = client.GetSessionHostManagementResource(sessionHostManagementResourceId);
+
+ // invoke the operation
+ SessionHostManagementPatch patch = new SessionHostManagementPatch
+ {
+ ScheduledDateTimeZone = "Alaskan Standard Time",
+ Update = new HostPoolUpdateConfigurationPatchProperties
+ {
+ DeleteOriginalVm = true,
+ MaxVmsRemoved = 4,
+ LogOffDelayMinutes = 10,
+ LogOffMessage = "logging off for hostpool update",
+ },
+ };
+ SessionHostManagementResource result = await sessionHostManagement.UpdateAsync(patch);
+
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ SessionHostManagementData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task CreateOrUpdate_SessionHostManagementsCreate()
+ {
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/SessionHostManagements_Create.json
+ // this example is just showing the usage of "SessionHostManagements_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this SessionHostManagementResource created on azure
+ // for more information of creating SessionHostManagementResource, please refer to the document of SessionHostManagementResource
+ string subscriptionId = "daefabc0-95b4-48b3-b645-8a753a63c4fa";
+ string resourceGroupName = "resourceGroup1";
+ string hostPoolName = "hostPool1";
+ ResourceIdentifier sessionHostManagementResourceId = SessionHostManagementResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, hostPoolName);
+ SessionHostManagementResource sessionHostManagement = client.GetSessionHostManagementResource(sessionHostManagementResourceId);
+
+ // invoke the operation
+ SessionHostManagementData data = new SessionHostManagementData("Alaskan Standard Time", new HostPoolUpdateConfigurationProperties(4, 10)
+ {
+ DeleteOriginalVm = true,
+ LogOffMessage = "logging off for hostpool update",
+ });
+ ArmOperation lro = await sessionHostManagement.CreateOrUpdateAsync(WaitUntil.Completed, data);
+ SessionHostManagementResource result = lro.Value;
+
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ SessionHostManagementData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task PostInitiateSessionHostUpdate_HostPoolsUpdatePost()
+ {
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/SessionHostManagements_UpdateSessionHosts_Post.json
+ // this example is just showing the usage of "InitiateSessionHostUpdate_Post" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this SessionHostManagementResource created on azure
+ // for more information of creating SessionHostManagementResource, please refer to the document of SessionHostManagementResource
+ string subscriptionId = "daefabc0-95b4-48b3-b645-8a753a63c4fa";
+ string resourceGroupName = "resourceGroup1";
+ string hostPoolName = "hostPool1";
+ ResourceIdentifier sessionHostManagementResourceId = SessionHostManagementResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, hostPoolName);
+ SessionHostManagementResource sessionHostManagement = client.GetSessionHostManagementResource(sessionHostManagementResourceId);
+
+ // invoke the operation
+ UpdateSessionHostsRequestBody updateSessionHostsRequestBody = new UpdateSessionHostsRequestBody
+ {
+ ScheduledOn = DateTimeOffset.Parse("2008-09-22T14:01:54.9571247Z"),
+ ScheduledDateTimeZone = "Alaskan Standard Time",
+ Update = new HostPoolUpdateConfigurationPatchProperties
+ {
+ DeleteOriginalVm = true,
+ MaxVmsRemoved = 4,
+ LogOffDelayMinutes = 10,
+ LogOffMessage = "logging off for hostpool update",
+ },
+ };
+ await sessionHostManagement.PostInitiateSessionHostUpdateAsync(updateSessionHostsRequestBody: updateSessionHostsRequestBody);
+
+ Console.WriteLine("Succeeded");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task PostControlSessionHostUpdate_SessionHostManagementsControlUpdatePost()
+ {
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/SessionHostManagements_ControlSessionHostUpdate_Post.json
+ // this example is just showing the usage of "ControlSessionHostUpdate_Post" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this SessionHostManagementResource created on azure
+ // for more information of creating SessionHostManagementResource, please refer to the document of SessionHostManagementResource
+ string subscriptionId = "daefabc0-95b4-48b3-b645-8a753a63c4fa";
+ string resourceGroupName = "resourceGroup1";
+ string hostPoolName = "hostPool1";
+ ResourceIdentifier sessionHostManagementResourceId = SessionHostManagementResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, hostPoolName);
+ SessionHostManagementResource sessionHostManagement = client.GetSessionHostManagementResource(sessionHostManagementResourceId);
+
+ // invoke the operation
+ HostPoolUpdateControlParameter hostPoolUpdateControlParameter = new HostPoolUpdateControlParameter(HostPoolUpdateAction.Start)
+ {
+ CancelMessage = "Host pool update started",
+ };
+ await sessionHostManagement.PostControlSessionHostUpdateAsync(WaitUntil.Completed, hostPoolUpdateControlParameter);
+
+ Console.WriteLine("Succeeded");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task GetSessionHostManagementsUpdateStatu_SessionHostManagementsUpdateStatusGet()
+ {
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/SessionHostManagements_UpdateStatus_Get.json
+ // this example is just showing the usage of "SessionHostManagementsUpdateStatus_Get" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this SessionHostManagementResource created on azure
+ // for more information of creating SessionHostManagementResource, please refer to the document of SessionHostManagementResource
+ string subscriptionId = "daefabc0-95b4-48b3-b645-8a753a63c4fa";
+ string resourceGroupName = "resourceGroup1";
+ string hostPoolName = "hostPool1";
+ ResourceIdentifier sessionHostManagementResourceId = SessionHostManagementResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, hostPoolName);
+ SessionHostManagementResource sessionHostManagement = client.GetSessionHostManagementResource(sessionHostManagementResourceId);
+
+ // invoke the operation
+ SessionHostManagementUpdateStatus result = await sessionHostManagement.GetSessionHostManagementsUpdateStatuAsync();
+
+ Console.WriteLine($"Succeeded: {result}");
+ }
+ }
+}
diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_SessionHostResource.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_SessionHostResource.cs
index dc951de52446..ed310b9c86dd 100644
--- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_SessionHostResource.cs
+++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_SessionHostResource.cs
@@ -20,7 +20,7 @@ public partial class Sample_SessionHostResource
[Ignore("Only validating compilation of examples")]
public async Task Get_SessionHostGet()
{
- // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/SessionHost_Get.json
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/SessionHost_Get.json
// this example is just showing the usage of "SessionHosts_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -51,7 +51,7 @@ public async Task Get_SessionHostGet()
[Ignore("Only validating compilation of examples")]
public async Task Delete_SessionHostDelete()
{
- // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/SessionHost_Delete.json
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/SessionHost_Delete.json
// this example is just showing the usage of "SessionHosts_Delete" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -79,7 +79,7 @@ public async Task Delete_SessionHostDelete()
[Ignore("Only validating compilation of examples")]
public async Task Update_SessionHostUpdate()
{
- // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/SessionHost_Update.json
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/SessionHost_Update.json
// this example is just showing the usage of "SessionHosts_Update" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -112,5 +112,32 @@ public async Task Update_SessionHostUpdate()
// for demo we just print out the id
Console.WriteLine($"Succeeded on id: {resourceData.Id}");
}
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task RetryProvisioningSessionHost_SessionHostRetryProvisioningPost()
+ {
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/SessionHost_RetryProvisioning_Post.json
+ // this example is just showing the usage of "SessionHost_RetryProvisioning" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this SessionHostResource created on azure
+ // for more information of creating SessionHostResource, please refer to the document of SessionHostResource
+ string subscriptionId = "daefabc0-95b4-48b3-b645-8a753a63c4fa";
+ string resourceGroupName = "resourceGroup1";
+ string hostPoolName = "hostPool1";
+ string sessionHostName = "sessionHost1.microsoft.com";
+ ResourceIdentifier sessionHostResourceId = SessionHostResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, hostPoolName, sessionHostName);
+ SessionHostResource sessionHost = client.GetSessionHostResource(sessionHostResourceId);
+
+ // invoke the operation
+ await sessionHost.RetryProvisioningSessionHostAsync();
+
+ Console.WriteLine("Succeeded");
+ }
}
}
diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs
index c6ad0227ebe6..4dd4de7e0275 100644
--- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs
+++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs
@@ -20,7 +20,7 @@ public partial class Sample_SubscriptionResourceExtensions
[Ignore("Only validating compilation of examples")]
public async Task GetVirtualWorkspaces_WorkspaceListBySubscription()
{
- // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/Workspace_ListBySubscription.json
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/Workspace_ListBySubscription.json
// this example is just showing the usage of "Workspaces_ListBySubscription" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -51,7 +51,7 @@ public async Task GetVirtualWorkspaces_WorkspaceListBySubscription()
[Ignore("Only validating compilation of examples")]
public async Task GetScalingPlans_ScalingPlansListBySubscription()
{
- // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/ScalingPlan_ListBySubscription.json
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/ScalingPlan_ListBySubscription.json
// this example is just showing the usage of "ScalingPlans_ListBySubscription" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -85,7 +85,7 @@ public async Task GetScalingPlans_ScalingPlansListBySubscription()
[Ignore("Only validating compilation of examples")]
public async Task GetVirtualApplicationGroups_ApplicationGroupList()
{
- // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/ApplicationGroup_ListBySubscription.json
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/ApplicationGroup_ListBySubscription.json
// this example is just showing the usage of "ApplicationGroups_ListBySubscription" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -117,7 +117,7 @@ public async Task GetVirtualApplicationGroups_ApplicationGroupList()
[Ignore("Only validating compilation of examples")]
public async Task GetHostPools_HostPoolList()
{
- // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/HostPool_List.json
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/HostPool_List.json
// this example is just showing the usage of "HostPools_List" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -151,7 +151,7 @@ public async Task GetHostPools_HostPoolList()
[Ignore("Only validating compilation of examples")]
public async Task GetAppAttachPackages_AppAttachPackageListBySubscription()
{
- // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/AppAttachPackage_ListBySubscription.json
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/AppAttachPackage_ListBySubscription.json
// this example is just showing the usage of "AppAttachPackage_ListBySubscription" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_UserSessionCollection.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_UserSessionCollection.cs
index 32d5e11c7f8c..5f62ad312173 100644
--- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_UserSessionCollection.cs
+++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_UserSessionCollection.cs
@@ -19,7 +19,7 @@ public partial class Sample_UserSessionCollection
[Ignore("Only validating compilation of examples")]
public async Task Get_UserSessionGet()
{
- // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/UserSession_Get.json
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/UserSession_Get.json
// this example is just showing the usage of "UserSessions_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -54,7 +54,7 @@ public async Task Get_UserSessionGet()
[Ignore("Only validating compilation of examples")]
public async Task GetAll_UserSessionList()
{
- // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/UserSession_List.json
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/UserSession_List.json
// this example is just showing the usage of "UserSessions_List" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -94,7 +94,7 @@ public async Task GetAll_UserSessionList()
[Ignore("Only validating compilation of examples")]
public async Task Exists_UserSessionGet()
{
- // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/UserSession_Get.json
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/UserSession_Get.json
// this example is just showing the usage of "UserSessions_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -125,7 +125,7 @@ public async Task Exists_UserSessionGet()
[Ignore("Only validating compilation of examples")]
public async Task GetIfExists_UserSessionGet()
{
- // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/UserSession_Get.json
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/UserSession_Get.json
// this example is just showing the usage of "UserSessions_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_UserSessionResource.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_UserSessionResource.cs
index 0efe289e2d54..8eb24c61191a 100644
--- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_UserSessionResource.cs
+++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_UserSessionResource.cs
@@ -20,7 +20,7 @@ public partial class Sample_UserSessionResource
[Ignore("Only validating compilation of examples")]
public async Task Get_UserSessionGet()
{
- // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/UserSession_Get.json
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/UserSession_Get.json
// this example is just showing the usage of "UserSessions_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -52,7 +52,7 @@ public async Task Get_UserSessionGet()
[Ignore("Only validating compilation of examples")]
public async Task Delete_UserSessionDelete()
{
- // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/UserSession_Delete.json
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/UserSession_Delete.json
// this example is just showing the usage of "UserSessions_Delete" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -81,7 +81,7 @@ public async Task Delete_UserSessionDelete()
[Ignore("Only validating compilation of examples")]
public async Task Disconnect_UserSessionDisconnectPost()
{
- // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/UserSession_Disconnect_Post.json
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/UserSession_Disconnect_Post.json
// this example is just showing the usage of "UserSessions_Disconnect" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -109,7 +109,7 @@ public async Task Disconnect_UserSessionDisconnectPost()
[Ignore("Only validating compilation of examples")]
public async Task SendMessage_UserSessionSendMessagePost()
{
- // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/UserSession_SendMessage_Post.json
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/UserSession_SendMessage_Post.json
// this example is just showing the usage of "UserSessions_SendMessage" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_VirtualApplicationCollection.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_VirtualApplicationCollection.cs
index 719d7db7a212..91c1d5be43e2 100644
--- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_VirtualApplicationCollection.cs
+++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_VirtualApplicationCollection.cs
@@ -20,7 +20,7 @@ public partial class Sample_VirtualApplicationCollection
[Ignore("Only validating compilation of examples")]
public async Task CreateOrUpdate_ApplicationCreate()
{
- // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/Application_Create.json
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/Application_Create.json
// this example is just showing the usage of "Applications_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -65,7 +65,7 @@ public async Task CreateOrUpdate_ApplicationCreate()
[Ignore("Only validating compilation of examples")]
public async Task Get_ApplicationGet()
{
- // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/Application_Get.json
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/Application_Get.json
// this example is just showing the usage of "Applications_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -99,7 +99,7 @@ public async Task Get_ApplicationGet()
[Ignore("Only validating compilation of examples")]
public async Task GetAll_ApplicationsList()
{
- // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/Application_List.json
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/Application_List.json
// this example is just showing the usage of "Applications_List" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -138,7 +138,7 @@ public async Task GetAll_ApplicationsList()
[Ignore("Only validating compilation of examples")]
public async Task Exists_ApplicationGet()
{
- // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/Application_Get.json
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/Application_Get.json
// this example is just showing the usage of "Applications_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -168,7 +168,7 @@ public async Task Exists_ApplicationGet()
[Ignore("Only validating compilation of examples")]
public async Task GetIfExists_ApplicationGet()
{
- // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/Application_Get.json
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/Application_Get.json
// this example is just showing the usage of "Applications_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_VirtualApplicationGroupCollection.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_VirtualApplicationGroupCollection.cs
index 9cdccdbefedb..3ea59d8dab16 100644
--- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_VirtualApplicationGroupCollection.cs
+++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_VirtualApplicationGroupCollection.cs
@@ -21,7 +21,7 @@ public partial class Sample_VirtualApplicationGroupCollection
[Ignore("Only validating compilation of examples")]
public async Task CreateOrUpdate_ApplicationGroupCreate()
{
- // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/ApplicationGroup_Create.json
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/ApplicationGroup_Create.json
// this example is just showing the usage of "ApplicationGroups_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -66,7 +66,7 @@ public async Task CreateOrUpdate_ApplicationGroupCreate()
[Ignore("Only validating compilation of examples")]
public async Task Get_ApplicationGroupGet()
{
- // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/ApplicationGroup_Get.json
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/ApplicationGroup_Get.json
// this example is just showing the usage of "ApplicationGroups_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -99,7 +99,7 @@ public async Task Get_ApplicationGroupGet()
[Ignore("Only validating compilation of examples")]
public async Task GetAll_ApplicationGroupListByResourceGroup()
{
- // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/ApplicationGroup_ListByResourceGroup.json
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/ApplicationGroup_ListByResourceGroup.json
// this example is just showing the usage of "ApplicationGroups_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -138,7 +138,7 @@ public async Task GetAll_ApplicationGroupListByResourceGroup()
[Ignore("Only validating compilation of examples")]
public async Task Exists_ApplicationGroupGet()
{
- // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/ApplicationGroup_Get.json
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/ApplicationGroup_Get.json
// this example is just showing the usage of "ApplicationGroups_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -167,7 +167,7 @@ public async Task Exists_ApplicationGroupGet()
[Ignore("Only validating compilation of examples")]
public async Task GetIfExists_ApplicationGroupGet()
{
- // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/ApplicationGroup_Get.json
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/ApplicationGroup_Get.json
// this example is just showing the usage of "ApplicationGroups_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_VirtualApplicationGroupResource.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_VirtualApplicationGroupResource.cs
index a2314ed198a9..9a6817b4bbc9 100644
--- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_VirtualApplicationGroupResource.cs
+++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_VirtualApplicationGroupResource.cs
@@ -20,7 +20,7 @@ public partial class Sample_VirtualApplicationGroupResource
[Ignore("Only validating compilation of examples")]
public async Task Get_ApplicationGroupGet()
{
- // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/ApplicationGroup_Get.json
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/ApplicationGroup_Get.json
// this example is just showing the usage of "ApplicationGroups_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -50,7 +50,7 @@ public async Task Get_ApplicationGroupGet()
[Ignore("Only validating compilation of examples")]
public async Task Delete_ApplicationGroupDelete()
{
- // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/ApplicationGroup_Delete.json
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/ApplicationGroup_Delete.json
// this example is just showing the usage of "ApplicationGroups_Delete" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -76,7 +76,7 @@ public async Task Delete_ApplicationGroupDelete()
[Ignore("Only validating compilation of examples")]
public async Task Update_ApplicationGroupsUpdate()
{
- // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/ApplicationGroup_Update.json
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/ApplicationGroup_Update.json
// this example is just showing the usage of "ApplicationGroups_Update" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -117,7 +117,7 @@ public async Task Update_ApplicationGroupsUpdate()
[Ignore("Only validating compilation of examples")]
public async Task GetStartMenuItems_StartMenuItemList()
{
- // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/StartMenuItem_List.json
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/StartMenuItem_List.json
// this example is just showing the usage of "StartMenuItems_List" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_VirtualApplicationResource.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_VirtualApplicationResource.cs
index fcf93c07ee81..ffe063672dfd 100644
--- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_VirtualApplicationResource.cs
+++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_VirtualApplicationResource.cs
@@ -20,7 +20,7 @@ public partial class Sample_VirtualApplicationResource
[Ignore("Only validating compilation of examples")]
public async Task Get_ApplicationGet()
{
- // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/Application_Get.json
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/Application_Get.json
// this example is just showing the usage of "Applications_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -51,7 +51,7 @@ public async Task Get_ApplicationGet()
[Ignore("Only validating compilation of examples")]
public async Task Delete_ApplicationDelete()
{
- // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/Application_Delete.json
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/Application_Delete.json
// this example is just showing the usage of "Applications_Delete" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -78,7 +78,7 @@ public async Task Delete_ApplicationDelete()
[Ignore("Only validating compilation of examples")]
public async Task Update_ApplicationUpdate()
{
- // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/Application_Update.json
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/Application_Update.json
// this example is just showing the usage of "Applications_Update" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_VirtualDesktopCollection.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_VirtualDesktopCollection.cs
index 530d4064a0fb..ef2a92ba3068 100644
--- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_VirtualDesktopCollection.cs
+++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_VirtualDesktopCollection.cs
@@ -19,7 +19,7 @@ public partial class Sample_VirtualDesktopCollection
[Ignore("Only validating compilation of examples")]
public async Task Get_DesktopGet()
{
- // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/Desktop_Get.json
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/Desktop_Get.json
// this example is just showing the usage of "Desktops_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -53,7 +53,7 @@ public async Task Get_DesktopGet()
[Ignore("Only validating compilation of examples")]
public async Task GetAll_DesktopList()
{
- // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/Desktop_List.json
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/Desktop_List.json
// this example is just showing the usage of "Desktops_List" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -92,7 +92,7 @@ public async Task GetAll_DesktopList()
[Ignore("Only validating compilation of examples")]
public async Task Exists_DesktopGet()
{
- // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/Desktop_Get.json
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/Desktop_Get.json
// this example is just showing the usage of "Desktops_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -122,7 +122,7 @@ public async Task Exists_DesktopGet()
[Ignore("Only validating compilation of examples")]
public async Task GetIfExists_DesktopGet()
{
- // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/Desktop_Get.json
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/Desktop_Get.json
// this example is just showing the usage of "Desktops_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_VirtualDesktopResource.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_VirtualDesktopResource.cs
index 872fc689d260..fce97de32854 100644
--- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_VirtualDesktopResource.cs
+++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_VirtualDesktopResource.cs
@@ -20,7 +20,7 @@ public partial class Sample_VirtualDesktopResource
[Ignore("Only validating compilation of examples")]
public async Task Get_DesktopGet()
{
- // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/Desktop_Get.json
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/Desktop_Get.json
// this example is just showing the usage of "Desktops_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -51,7 +51,7 @@ public async Task Get_DesktopGet()
[Ignore("Only validating compilation of examples")]
public async Task Update_DesktopUpdate()
{
- // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/Desktop_Update.json
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/Desktop_Update.json
// this example is just showing the usage of "Desktops_Update" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_VirtualWorkspaceCollection.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_VirtualWorkspaceCollection.cs
index c20e2eb44495..12b9ecdc1cce 100644
--- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_VirtualWorkspaceCollection.cs
+++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_VirtualWorkspaceCollection.cs
@@ -20,7 +20,7 @@ public partial class Sample_VirtualWorkspaceCollection
[Ignore("Only validating compilation of examples")]
public async Task CreateOrUpdate_WorkspaceCreate()
{
- // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/Workspace_Create.json
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/Workspace_Create.json
// this example is just showing the usage of "Workspaces_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -64,7 +64,7 @@ public async Task CreateOrUpdate_WorkspaceCreate()
[Ignore("Only validating compilation of examples")]
public async Task Get_WorkspaceGet()
{
- // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/Workspace_Get.json
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/Workspace_Get.json
// this example is just showing the usage of "Workspaces_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -97,7 +97,7 @@ public async Task Get_WorkspaceGet()
[Ignore("Only validating compilation of examples")]
public async Task GetAll_WorkspaceListByResourceGroup()
{
- // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/Workspace_ListByResourceGroup.json
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/Workspace_ListByResourceGroup.json
// this example is just showing the usage of "Workspaces_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -135,7 +135,7 @@ public async Task GetAll_WorkspaceListByResourceGroup()
[Ignore("Only validating compilation of examples")]
public async Task Exists_WorkspaceGet()
{
- // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/Workspace_Get.json
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/Workspace_Get.json
// this example is just showing the usage of "Workspaces_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -164,7 +164,7 @@ public async Task Exists_WorkspaceGet()
[Ignore("Only validating compilation of examples")]
public async Task GetIfExists_WorkspaceGet()
{
- // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/Workspace_Get.json
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/Workspace_Get.json
// this example is just showing the usage of "Workspaces_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_VirtualWorkspaceResource.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_VirtualWorkspaceResource.cs
index ae383e2f68d5..b94cc31d2a52 100644
--- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_VirtualWorkspaceResource.cs
+++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_VirtualWorkspaceResource.cs
@@ -20,7 +20,7 @@ public partial class Sample_VirtualWorkspaceResource
[Ignore("Only validating compilation of examples")]
public async Task Get_WorkspaceGet()
{
- // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/Workspace_Get.json
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/Workspace_Get.json
// this example is just showing the usage of "Workspaces_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -50,7 +50,7 @@ public async Task Get_WorkspaceGet()
[Ignore("Only validating compilation of examples")]
public async Task Delete_WorkspaceDelete()
{
- // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/Workspace_Delete.json
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/Workspace_Delete.json
// this example is just showing the usage of "Workspaces_Delete" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -76,7 +76,7 @@ public async Task Delete_WorkspaceDelete()
[Ignore("Only validating compilation of examples")]
public async Task Update_WorkspaceUpdate()
{
- // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/Workspace_Update.json
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/Workspace_Update.json
// this example is just showing the usage of "Workspaces_Update" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -116,7 +116,7 @@ public async Task Update_WorkspaceUpdate()
[Ignore("Only validating compilation of examples")]
public async Task GetPrivateLinkResources_PrivateLinkResourcesListByWorkspace()
{
- // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/PrivateLinkResources_ListByWorkspace.json
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/PrivateLinkResources_ListByWorkspace.json
// this example is just showing the usage of "PrivateLinkResources_ListByWorkspace" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_WorkspacePrivateEndpointConnectionCollection.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_WorkspacePrivateEndpointConnectionCollection.cs
index 96f29b953ae2..f38752fc933a 100644
--- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_WorkspacePrivateEndpointConnectionCollection.cs
+++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_WorkspacePrivateEndpointConnectionCollection.cs
@@ -20,7 +20,7 @@ public partial class Sample_WorkspacePrivateEndpointConnectionCollection
[Ignore("Only validating compilation of examples")]
public async Task CreateOrUpdate_PrivateEndpointConnectionUpdateByWorkspace()
{
- // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/PrivateEndpointConnection_UpdateByWorkspace.json
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/PrivateEndpointConnection_UpdateByWorkspace.json
// this example is just showing the usage of "PrivateEndpointConnections_UpdateByWorkspace" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -64,7 +64,7 @@ public async Task CreateOrUpdate_PrivateEndpointConnectionUpdateByWorkspace()
[Ignore("Only validating compilation of examples")]
public async Task Get_PrivateEndpointConnectionGetByWorkspace()
{
- // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/PrivateEndpointConnection_GetByWorkspace.json
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/PrivateEndpointConnection_GetByWorkspace.json
// this example is just showing the usage of "PrivateEndpointConnections_GetByWorkspace" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -98,7 +98,7 @@ public async Task Get_PrivateEndpointConnectionGetByWorkspace()
[Ignore("Only validating compilation of examples")]
public async Task GetAll_PrivateEndpointConnectionListByWorkspace()
{
- // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/PrivateEndpointConnection_ListByWorkspace.json
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/PrivateEndpointConnection_ListByWorkspace.json
// this example is just showing the usage of "PrivateEndpointConnections_ListByWorkspace" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -134,7 +134,7 @@ public async Task GetAll_PrivateEndpointConnectionListByWorkspace()
[Ignore("Only validating compilation of examples")]
public async Task Exists_PrivateEndpointConnectionGetByWorkspace()
{
- // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/PrivateEndpointConnection_GetByWorkspace.json
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/PrivateEndpointConnection_GetByWorkspace.json
// this example is just showing the usage of "PrivateEndpointConnections_GetByWorkspace" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -164,7 +164,7 @@ public async Task Exists_PrivateEndpointConnectionGetByWorkspace()
[Ignore("Only validating compilation of examples")]
public async Task GetIfExists_PrivateEndpointConnectionGetByWorkspace()
{
- // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/PrivateEndpointConnection_GetByWorkspace.json
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/PrivateEndpointConnection_GetByWorkspace.json
// this example is just showing the usage of "PrivateEndpointConnections_GetByWorkspace" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_WorkspacePrivateEndpointConnectionResource.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_WorkspacePrivateEndpointConnectionResource.cs
index 909f4e397b46..bbc7af57a805 100644
--- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_WorkspacePrivateEndpointConnectionResource.cs
+++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/samples/Generated/Samples/Sample_WorkspacePrivateEndpointConnectionResource.cs
@@ -20,7 +20,7 @@ public partial class Sample_WorkspacePrivateEndpointConnectionResource
[Ignore("Only validating compilation of examples")]
public async Task Get_PrivateEndpointConnectionGetByWorkspace()
{
- // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/PrivateEndpointConnection_GetByWorkspace.json
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/PrivateEndpointConnection_GetByWorkspace.json
// this example is just showing the usage of "PrivateEndpointConnections_GetByWorkspace" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -51,7 +51,7 @@ public async Task Get_PrivateEndpointConnectionGetByWorkspace()
[Ignore("Only validating compilation of examples")]
public async Task Delete_PrivateEndpointConnectionDeleteByWorkspace()
{
- // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/PrivateEndpointConnection_DeleteByWorkspace.json
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/PrivateEndpointConnection_DeleteByWorkspace.json
// this example is just showing the usage of "PrivateEndpointConnections_DeleteByWorkspace" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -78,7 +78,7 @@ public async Task Delete_PrivateEndpointConnectionDeleteByWorkspace()
[Ignore("Only validating compilation of examples")]
public async Task Update_PrivateEndpointConnectionUpdateByWorkspace()
{
- // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/stable/2024-04-03/examples/PrivateEndpointConnection_UpdateByWorkspace.json
+ // Generated from example definition: specification/desktopvirtualization/resource-manager/Microsoft.DesktopVirtualization/preview/2024-08-08-preview/examples/PrivateEndpointConnection_UpdateByWorkspace.json
// this example is just showing the usage of "PrivateEndpointConnections_UpdateByWorkspace" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/ActiveSessionHostConfigurationData.Serialization.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/ActiveSessionHostConfigurationData.Serialization.cs
new file mode 100644
index 000000000000..4191a77930ac
--- /dev/null
+++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/ActiveSessionHostConfigurationData.Serialization.cs
@@ -0,0 +1,761 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.ClientModel.Primitives;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Text.Json;
+using Azure.Core;
+using Azure.ResourceManager.DesktopVirtualization.Models;
+using Azure.ResourceManager.Models;
+
+namespace Azure.ResourceManager.DesktopVirtualization
+{
+ public partial class ActiveSessionHostConfigurationData : IUtf8JsonSerializable, IJsonModel
+ {
+ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions);
+
+ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options)
+ {
+ writer.WriteStartObject();
+ JsonModelWriteCore(writer, options);
+ writer.WriteEndObject();
+ }
+
+ /// The JSON writer.
+ /// The client options for reading and writing models.
+ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+ if (format != "J")
+ {
+ throw new FormatException($"The model {nameof(ActiveSessionHostConfigurationData)} does not support writing '{format}' format.");
+ }
+
+ base.JsonModelWriteCore(writer, options);
+ writer.WritePropertyName("properties"u8);
+ writer.WriteStartObject();
+ if (options.Format != "W" && Optional.IsDefined(Version))
+ {
+ writer.WritePropertyName("version"u8);
+ writer.WriteStringValue(Version.Value, "O");
+ }
+ if (Optional.IsDefined(FriendlyName))
+ {
+ writer.WritePropertyName("friendlyName"u8);
+ writer.WriteStringValue(FriendlyName);
+ }
+ if (Optional.IsCollectionDefined(VmTags))
+ {
+ writer.WritePropertyName("vmTags"u8);
+ writer.WriteStartObject();
+ foreach (var item in VmTags)
+ {
+ writer.WritePropertyName(item.Key);
+ writer.WriteStringValue(item.Value);
+ }
+ writer.WriteEndObject();
+ }
+ if (Optional.IsDefined(VmLocation))
+ {
+ writer.WritePropertyName("vmLocation"u8);
+ writer.WriteStringValue(VmLocation);
+ }
+ if (Optional.IsDefined(VmResourceGroup))
+ {
+ writer.WritePropertyName("vmResourceGroup"u8);
+ writer.WriteStringValue(VmResourceGroup);
+ }
+ writer.WritePropertyName("vmNamePrefix"u8);
+ writer.WriteStringValue(VmNamePrefix);
+ if (Optional.IsCollectionDefined(AvailabilityZones))
+ {
+ writer.WritePropertyName("availabilityZones"u8);
+ writer.WriteStartArray();
+ foreach (var item in AvailabilityZones)
+ {
+ writer.WriteNumberValue(item);
+ }
+ writer.WriteEndArray();
+ }
+ writer.WritePropertyName("networkInfo"u8);
+ writer.WriteObjectValue(NetworkInfo, options);
+ writer.WritePropertyName("vmSizeId"u8);
+ writer.WriteStringValue(VmSizeId);
+ writer.WritePropertyName("diskInfo"u8);
+ writer.WriteObjectValue(DiskInfo, options);
+ if (Optional.IsDefined(CustomConfigurationScriptUri))
+ {
+ writer.WritePropertyName("customConfigurationScriptUrl"u8);
+ writer.WriteStringValue(CustomConfigurationScriptUri.AbsoluteUri);
+ }
+ writer.WritePropertyName("imageInfo"u8);
+ writer.WriteObjectValue(ImageInfo, options);
+ writer.WritePropertyName("domainInfo"u8);
+ writer.WriteObjectValue(DomainInfo, options);
+ if (Optional.IsDefined(SecurityInfo))
+ {
+ writer.WritePropertyName("securityInfo"u8);
+ writer.WriteObjectValue(SecurityInfo, options);
+ }
+ writer.WritePropertyName("vmAdminCredentials"u8);
+ writer.WriteObjectValue(VmAdminCredentials, options);
+ if (Optional.IsDefined(BootDiagnosticsInfo))
+ {
+ writer.WritePropertyName("bootDiagnosticsInfo"u8);
+ writer.WriteObjectValue(BootDiagnosticsInfo, options);
+ }
+ writer.WriteEndObject();
+ }
+
+ ActiveSessionHostConfigurationData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+ if (format != "J")
+ {
+ throw new FormatException($"The model {nameof(ActiveSessionHostConfigurationData)} does not support reading '{format}' format.");
+ }
+
+ using JsonDocument document = JsonDocument.ParseValue(ref reader);
+ return DeserializeActiveSessionHostConfigurationData(document.RootElement, options);
+ }
+
+ internal static ActiveSessionHostConfigurationData DeserializeActiveSessionHostConfigurationData(JsonElement element, ModelReaderWriterOptions options = null)
+ {
+ options ??= ModelSerializationExtensions.WireOptions;
+
+ if (element.ValueKind == JsonValueKind.Null)
+ {
+ return null;
+ }
+ ResourceIdentifier id = default;
+ string name = default;
+ ResourceType type = default;
+ SystemData systemData = default;
+ DateTimeOffset? version = default;
+ string friendlyName = default;
+ IDictionary vmTags = default;
+ string vmLocation = default;
+ string vmResourceGroup = default;
+ string vmNamePrefix = default;
+ IList availabilityZones = default;
+ NetworkInfoProperties networkInfo = default;
+ string vmSizeId = default;
+ DiskInfoProperties diskInfo = default;
+ Uri customConfigurationScriptUrl = default;
+ ImageInfoProperties imageInfo = default;
+ DomainInfoProperties domainInfo = default;
+ SecurityInfoProperties securityInfo = default;
+ KeyVaultCredentialsProperties vmAdminCredentials = default;
+ BootDiagnosticsInfoProperties bootDiagnosticsInfo = default;
+ IDictionary serializedAdditionalRawData = default;
+ Dictionary rawDataDictionary = new Dictionary();
+ foreach (var property in element.EnumerateObject())
+ {
+ if (property.NameEquals("id"u8))
+ {
+ id = new ResourceIdentifier(property.Value.GetString());
+ continue;
+ }
+ if (property.NameEquals("name"u8))
+ {
+ name = property.Value.GetString();
+ continue;
+ }
+ if (property.NameEquals("type"u8))
+ {
+ type = new ResourceType(property.Value.GetString());
+ continue;
+ }
+ if (property.NameEquals("systemData"u8))
+ {
+ if (property.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ systemData = JsonSerializer.Deserialize(property.Value.GetRawText());
+ continue;
+ }
+ if (property.NameEquals("properties"u8))
+ {
+ if (property.Value.ValueKind == JsonValueKind.Null)
+ {
+ property.ThrowNonNullablePropertyIsNull();
+ continue;
+ }
+ foreach (var property0 in property.Value.EnumerateObject())
+ {
+ if (property0.NameEquals("version"u8))
+ {
+ if (property0.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ version = property0.Value.GetDateTimeOffset("O");
+ continue;
+ }
+ if (property0.NameEquals("friendlyName"u8))
+ {
+ friendlyName = property0.Value.GetString();
+ continue;
+ }
+ if (property0.NameEquals("vmTags"u8))
+ {
+ if (property0.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ Dictionary dictionary = new Dictionary();
+ foreach (var property1 in property0.Value.EnumerateObject())
+ {
+ dictionary.Add(property1.Name, property1.Value.GetString());
+ }
+ vmTags = dictionary;
+ continue;
+ }
+ if (property0.NameEquals("vmLocation"u8))
+ {
+ vmLocation = property0.Value.GetString();
+ continue;
+ }
+ if (property0.NameEquals("vmResourceGroup"u8))
+ {
+ vmResourceGroup = property0.Value.GetString();
+ continue;
+ }
+ if (property0.NameEquals("vmNamePrefix"u8))
+ {
+ vmNamePrefix = property0.Value.GetString();
+ continue;
+ }
+ if (property0.NameEquals("availabilityZones"u8))
+ {
+ if (property0.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ List array = new List();
+ foreach (var item in property0.Value.EnumerateArray())
+ {
+ array.Add(item.GetInt32());
+ }
+ availabilityZones = array;
+ continue;
+ }
+ if (property0.NameEquals("networkInfo"u8))
+ {
+ networkInfo = NetworkInfoProperties.DeserializeNetworkInfoProperties(property0.Value, options);
+ continue;
+ }
+ if (property0.NameEquals("vmSizeId"u8))
+ {
+ vmSizeId = property0.Value.GetString();
+ continue;
+ }
+ if (property0.NameEquals("diskInfo"u8))
+ {
+ diskInfo = DiskInfoProperties.DeserializeDiskInfoProperties(property0.Value, options);
+ continue;
+ }
+ if (property0.NameEquals("customConfigurationScriptUrl"u8))
+ {
+ if (property0.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ customConfigurationScriptUrl = new Uri(property0.Value.GetString());
+ continue;
+ }
+ if (property0.NameEquals("imageInfo"u8))
+ {
+ imageInfo = ImageInfoProperties.DeserializeImageInfoProperties(property0.Value, options);
+ continue;
+ }
+ if (property0.NameEquals("domainInfo"u8))
+ {
+ domainInfo = DomainInfoProperties.DeserializeDomainInfoProperties(property0.Value, options);
+ continue;
+ }
+ if (property0.NameEquals("securityInfo"u8))
+ {
+ if (property0.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ securityInfo = SecurityInfoProperties.DeserializeSecurityInfoProperties(property0.Value, options);
+ continue;
+ }
+ if (property0.NameEquals("vmAdminCredentials"u8))
+ {
+ vmAdminCredentials = KeyVaultCredentialsProperties.DeserializeKeyVaultCredentialsProperties(property0.Value, options);
+ continue;
+ }
+ if (property0.NameEquals("bootDiagnosticsInfo"u8))
+ {
+ if (property0.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ bootDiagnosticsInfo = BootDiagnosticsInfoProperties.DeserializeBootDiagnosticsInfoProperties(property0.Value, options);
+ continue;
+ }
+ }
+ continue;
+ }
+ if (options.Format != "W")
+ {
+ rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText()));
+ }
+ }
+ serializedAdditionalRawData = rawDataDictionary;
+ return new ActiveSessionHostConfigurationData(
+ id,
+ name,
+ type,
+ systemData,
+ version,
+ friendlyName,
+ vmTags ?? new ChangeTrackingDictionary(),
+ vmLocation,
+ vmResourceGroup,
+ vmNamePrefix,
+ availabilityZones ?? new ChangeTrackingList(),
+ networkInfo,
+ vmSizeId,
+ diskInfo,
+ customConfigurationScriptUrl,
+ imageInfo,
+ domainInfo,
+ securityInfo,
+ vmAdminCredentials,
+ bootDiagnosticsInfo,
+ serializedAdditionalRawData);
+ }
+
+ private BinaryData SerializeBicep(ModelReaderWriterOptions options)
+ {
+ StringBuilder builder = new StringBuilder();
+ BicepModelReaderWriterOptions bicepOptions = options as BicepModelReaderWriterOptions;
+ IDictionary propertyOverrides = null;
+ bool hasObjectOverride = bicepOptions != null && bicepOptions.PropertyOverrides.TryGetValue(this, out propertyOverrides);
+ bool hasPropertyOverride = false;
+ string propertyOverride = null;
+
+ builder.AppendLine("{");
+
+ hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Name), out propertyOverride);
+ if (hasPropertyOverride)
+ {
+ builder.Append(" name: ");
+ builder.AppendLine(propertyOverride);
+ }
+ else
+ {
+ if (Optional.IsDefined(Name))
+ {
+ builder.Append(" name: ");
+ if (Name.Contains(Environment.NewLine))
+ {
+ builder.AppendLine("'''");
+ builder.AppendLine($"{Name}'''");
+ }
+ else
+ {
+ builder.AppendLine($"'{Name}'");
+ }
+ }
+ }
+
+ hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Id), out propertyOverride);
+ if (hasPropertyOverride)
+ {
+ builder.Append(" id: ");
+ builder.AppendLine(propertyOverride);
+ }
+ else
+ {
+ if (Optional.IsDefined(Id))
+ {
+ builder.Append(" id: ");
+ builder.AppendLine($"'{Id.ToString()}'");
+ }
+ }
+
+ hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(SystemData), out propertyOverride);
+ if (hasPropertyOverride)
+ {
+ builder.Append(" systemData: ");
+ builder.AppendLine(propertyOverride);
+ }
+ else
+ {
+ if (Optional.IsDefined(SystemData))
+ {
+ builder.Append(" systemData: ");
+ builder.AppendLine($"'{SystemData.ToString()}'");
+ }
+ }
+
+ builder.Append(" properties:");
+ builder.AppendLine(" {");
+ hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Version), out propertyOverride);
+ if (hasPropertyOverride)
+ {
+ builder.Append(" version: ");
+ builder.AppendLine(propertyOverride);
+ }
+ else
+ {
+ if (Optional.IsDefined(Version))
+ {
+ builder.Append(" version: ");
+ var formattedDateTimeString = TypeFormatters.ToString(Version.Value, "o");
+ builder.AppendLine($"'{formattedDateTimeString}'");
+ }
+ }
+
+ hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(FriendlyName), out propertyOverride);
+ if (hasPropertyOverride)
+ {
+ builder.Append(" friendlyName: ");
+ builder.AppendLine(propertyOverride);
+ }
+ else
+ {
+ if (Optional.IsDefined(FriendlyName))
+ {
+ builder.Append(" friendlyName: ");
+ if (FriendlyName.Contains(Environment.NewLine))
+ {
+ builder.AppendLine("'''");
+ builder.AppendLine($"{FriendlyName}'''");
+ }
+ else
+ {
+ builder.AppendLine($"'{FriendlyName}'");
+ }
+ }
+ }
+
+ hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(VmTags), out propertyOverride);
+ if (hasPropertyOverride)
+ {
+ builder.Append(" vmTags: ");
+ builder.AppendLine(propertyOverride);
+ }
+ else
+ {
+ if (Optional.IsCollectionDefined(VmTags))
+ {
+ if (VmTags.Any())
+ {
+ builder.Append(" vmTags: ");
+ builder.AppendLine("{");
+ foreach (var item in VmTags)
+ {
+ builder.Append($" '{item.Key}': ");
+ if (item.Value == null)
+ {
+ builder.Append("null");
+ continue;
+ }
+ if (item.Value.Contains(Environment.NewLine))
+ {
+ builder.AppendLine("'''");
+ builder.AppendLine($"{item.Value}'''");
+ }
+ else
+ {
+ builder.AppendLine($"'{item.Value}'");
+ }
+ }
+ builder.AppendLine(" }");
+ }
+ }
+ }
+
+ hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(VmLocation), out propertyOverride);
+ if (hasPropertyOverride)
+ {
+ builder.Append(" vmLocation: ");
+ builder.AppendLine(propertyOverride);
+ }
+ else
+ {
+ if (Optional.IsDefined(VmLocation))
+ {
+ builder.Append(" vmLocation: ");
+ if (VmLocation.Contains(Environment.NewLine))
+ {
+ builder.AppendLine("'''");
+ builder.AppendLine($"{VmLocation}'''");
+ }
+ else
+ {
+ builder.AppendLine($"'{VmLocation}'");
+ }
+ }
+ }
+
+ hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(VmResourceGroup), out propertyOverride);
+ if (hasPropertyOverride)
+ {
+ builder.Append(" vmResourceGroup: ");
+ builder.AppendLine(propertyOverride);
+ }
+ else
+ {
+ if (Optional.IsDefined(VmResourceGroup))
+ {
+ builder.Append(" vmResourceGroup: ");
+ if (VmResourceGroup.Contains(Environment.NewLine))
+ {
+ builder.AppendLine("'''");
+ builder.AppendLine($"{VmResourceGroup}'''");
+ }
+ else
+ {
+ builder.AppendLine($"'{VmResourceGroup}'");
+ }
+ }
+ }
+
+ hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(VmNamePrefix), out propertyOverride);
+ if (hasPropertyOverride)
+ {
+ builder.Append(" vmNamePrefix: ");
+ builder.AppendLine(propertyOverride);
+ }
+ else
+ {
+ if (Optional.IsDefined(VmNamePrefix))
+ {
+ builder.Append(" vmNamePrefix: ");
+ if (VmNamePrefix.Contains(Environment.NewLine))
+ {
+ builder.AppendLine("'''");
+ builder.AppendLine($"{VmNamePrefix}'''");
+ }
+ else
+ {
+ builder.AppendLine($"'{VmNamePrefix}'");
+ }
+ }
+ }
+
+ hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(AvailabilityZones), out propertyOverride);
+ if (hasPropertyOverride)
+ {
+ builder.Append(" availabilityZones: ");
+ builder.AppendLine(propertyOverride);
+ }
+ else
+ {
+ if (Optional.IsCollectionDefined(AvailabilityZones))
+ {
+ if (AvailabilityZones.Any())
+ {
+ builder.Append(" availabilityZones: ");
+ builder.AppendLine("[");
+ foreach (var item in AvailabilityZones)
+ {
+ builder.AppendLine($" {item}");
+ }
+ builder.AppendLine(" ]");
+ }
+ }
+ }
+
+ hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(NetworkInfo), out propertyOverride);
+ if (hasPropertyOverride)
+ {
+ builder.Append(" networkInfo: ");
+ builder.AppendLine(propertyOverride);
+ }
+ else
+ {
+ if (Optional.IsDefined(NetworkInfo))
+ {
+ builder.Append(" networkInfo: ");
+ BicepSerializationHelpers.AppendChildObject(builder, NetworkInfo, options, 4, false, " networkInfo: ");
+ }
+ }
+
+ hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(VmSizeId), out propertyOverride);
+ if (hasPropertyOverride)
+ {
+ builder.Append(" vmSizeId: ");
+ builder.AppendLine(propertyOverride);
+ }
+ else
+ {
+ if (Optional.IsDefined(VmSizeId))
+ {
+ builder.Append(" vmSizeId: ");
+ if (VmSizeId.Contains(Environment.NewLine))
+ {
+ builder.AppendLine("'''");
+ builder.AppendLine($"{VmSizeId}'''");
+ }
+ else
+ {
+ builder.AppendLine($"'{VmSizeId}'");
+ }
+ }
+ }
+
+ hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue("VirtualMachineDiskType", out propertyOverride);
+ if (hasPropertyOverride)
+ {
+ builder.Append(" diskInfo: ");
+ builder.AppendLine("{");
+ builder.AppendLine(" diskInfo: {");
+ builder.Append(" type: ");
+ builder.AppendLine(propertyOverride);
+ builder.AppendLine(" }");
+ builder.AppendLine(" }");
+ }
+ else
+ {
+ if (Optional.IsDefined(DiskInfo))
+ {
+ builder.Append(" diskInfo: ");
+ BicepSerializationHelpers.AppendChildObject(builder, DiskInfo, options, 4, false, " diskInfo: ");
+ }
+ }
+
+ hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(CustomConfigurationScriptUri), out propertyOverride);
+ if (hasPropertyOverride)
+ {
+ builder.Append(" customConfigurationScriptUrl: ");
+ builder.AppendLine(propertyOverride);
+ }
+ else
+ {
+ if (Optional.IsDefined(CustomConfigurationScriptUri))
+ {
+ builder.Append(" customConfigurationScriptUrl: ");
+ builder.AppendLine($"'{CustomConfigurationScriptUri.AbsoluteUri}'");
+ }
+ }
+
+ hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(ImageInfo), out propertyOverride);
+ if (hasPropertyOverride)
+ {
+ builder.Append(" imageInfo: ");
+ builder.AppendLine(propertyOverride);
+ }
+ else
+ {
+ if (Optional.IsDefined(ImageInfo))
+ {
+ builder.Append(" imageInfo: ");
+ BicepSerializationHelpers.AppendChildObject(builder, ImageInfo, options, 4, false, " imageInfo: ");
+ }
+ }
+
+ hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(DomainInfo), out propertyOverride);
+ if (hasPropertyOverride)
+ {
+ builder.Append(" domainInfo: ");
+ builder.AppendLine(propertyOverride);
+ }
+ else
+ {
+ if (Optional.IsDefined(DomainInfo))
+ {
+ builder.Append(" domainInfo: ");
+ BicepSerializationHelpers.AppendChildObject(builder, DomainInfo, options, 4, false, " domainInfo: ");
+ }
+ }
+
+ hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(SecurityInfo), out propertyOverride);
+ if (hasPropertyOverride)
+ {
+ builder.Append(" securityInfo: ");
+ builder.AppendLine(propertyOverride);
+ }
+ else
+ {
+ if (Optional.IsDefined(SecurityInfo))
+ {
+ builder.Append(" securityInfo: ");
+ BicepSerializationHelpers.AppendChildObject(builder, SecurityInfo, options, 4, false, " securityInfo: ");
+ }
+ }
+
+ hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(VmAdminCredentials), out propertyOverride);
+ if (hasPropertyOverride)
+ {
+ builder.Append(" vmAdminCredentials: ");
+ builder.AppendLine(propertyOverride);
+ }
+ else
+ {
+ if (Optional.IsDefined(VmAdminCredentials))
+ {
+ builder.Append(" vmAdminCredentials: ");
+ BicepSerializationHelpers.AppendChildObject(builder, VmAdminCredentials, options, 4, false, " vmAdminCredentials: ");
+ }
+ }
+
+ hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(BootDiagnosticsInfo), out propertyOverride);
+ if (hasPropertyOverride)
+ {
+ builder.Append(" bootDiagnosticsInfo: ");
+ builder.AppendLine(propertyOverride);
+ }
+ else
+ {
+ if (Optional.IsDefined(BootDiagnosticsInfo))
+ {
+ builder.Append(" bootDiagnosticsInfo: ");
+ BicepSerializationHelpers.AppendChildObject(builder, BootDiagnosticsInfo, options, 4, false, " bootDiagnosticsInfo: ");
+ }
+ }
+
+ builder.AppendLine(" }");
+ builder.AppendLine("}");
+ return BinaryData.FromString(builder.ToString());
+ }
+
+ BinaryData IPersistableModel.Write(ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+
+ switch (format)
+ {
+ case "J":
+ return ModelReaderWriter.Write(this, options);
+ case "bicep":
+ return SerializeBicep(options);
+ default:
+ throw new FormatException($"The model {nameof(ActiveSessionHostConfigurationData)} does not support writing '{options.Format}' format.");
+ }
+ }
+
+ ActiveSessionHostConfigurationData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+
+ switch (format)
+ {
+ case "J":
+ {
+ using JsonDocument document = JsonDocument.Parse(data);
+ return DeserializeActiveSessionHostConfigurationData(document.RootElement, options);
+ }
+ default:
+ throw new FormatException($"The model {nameof(ActiveSessionHostConfigurationData)} does not support reading '{options.Format}' format.");
+ }
+ }
+
+ string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J";
+ }
+}
diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/ActiveSessionHostConfigurationData.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/ActiveSessionHostConfigurationData.cs
new file mode 100644
index 000000000000..9983f1806581
--- /dev/null
+++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/ActiveSessionHostConfigurationData.cs
@@ -0,0 +1,191 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections.Generic;
+using Azure.Core;
+using Azure.ResourceManager.DesktopVirtualization.Models;
+using Azure.ResourceManager.Models;
+
+namespace Azure.ResourceManager.DesktopVirtualization
+{
+ ///
+ /// A class representing the ActiveSessionHostConfiguration data model.
+ /// Represents a ActiveSessionHostConfiguration definition. This has all of the sessionHostConfiguration properties except provisioningState
+ ///
+ public partial class ActiveSessionHostConfigurationData : ResourceData
+ {
+ ///
+ /// Keeps track of any properties unknown to the library.
+ ///
+ /// To assign an object to the value of this property use .
+ ///
+ ///
+ /// To assign an already formatted json string to this property use .
+ ///
+ ///
+ /// Examples:
+ ///
+ /// -
+ /// BinaryData.FromObjectAsJson("foo")
+ /// Creates a payload of "foo".
+ ///
+ /// -
+ /// BinaryData.FromString("\"foo\"")
+ /// Creates a payload of "foo".
+ ///
+ /// -
+ /// BinaryData.FromObjectAsJson(new { key = "value" })
+ /// Creates a payload of { "key": "value" }.
+ ///
+ /// -
+ /// BinaryData.FromString("{\"key\": \"value\"}")
+ /// Creates a payload of { "key": "value" }.
+ ///
+ ///
+ ///
+ ///
+ private IDictionary _serializedAdditionalRawData;
+
+ /// Initializes a new instance of .
+ /// The prefix that should be associated with session host names.
+ /// Network information.
+ /// The id of the size of a virtual machine connected to a hostpool. Example: Standard_D2as_v6.
+ /// Disk information.
+ /// Image configurations of HostPool.
+ /// Domain configurations of session hosts.
+ /// Local Admin credentials for session hosts.
+ /// , , , , , or is null.
+ public ActiveSessionHostConfigurationData(string vmNamePrefix, NetworkInfoProperties networkInfo, string vmSizeId, DiskInfoProperties diskInfo, ImageInfoProperties imageInfo, DomainInfoProperties domainInfo, KeyVaultCredentialsProperties vmAdminCredentials)
+ {
+ Argument.AssertNotNull(vmNamePrefix, nameof(vmNamePrefix));
+ Argument.AssertNotNull(networkInfo, nameof(networkInfo));
+ Argument.AssertNotNull(vmSizeId, nameof(vmSizeId));
+ Argument.AssertNotNull(diskInfo, nameof(diskInfo));
+ Argument.AssertNotNull(imageInfo, nameof(imageInfo));
+ Argument.AssertNotNull(domainInfo, nameof(domainInfo));
+ Argument.AssertNotNull(vmAdminCredentials, nameof(vmAdminCredentials));
+
+ VmTags = new ChangeTrackingDictionary();
+ VmNamePrefix = vmNamePrefix;
+ AvailabilityZones = new ChangeTrackingList();
+ NetworkInfo = networkInfo;
+ VmSizeId = vmSizeId;
+ DiskInfo = diskInfo;
+ ImageInfo = imageInfo;
+ DomainInfo = domainInfo;
+ VmAdminCredentials = vmAdminCredentials;
+ }
+
+ /// Initializes a new instance of .
+ /// The id.
+ /// The name.
+ /// The resourceType.
+ /// The systemData.
+ /// The timestamp of the last update.
+ /// Friendly name to describe this version of the SessionHostConfiguration.
+ /// Hashtable that lists key/value pair tags to apply to the VMs.
+ /// The Location for the session host to be created in. It will default to the location of the hostpool if not provided.
+ /// The ResourceGroup for the session hosts to be created in. It will default to the ResourceGroup of the hostpool if not provided.
+ /// The prefix that should be associated with session host names.
+ /// Value for availability zones to be used by the session host. Should be from [1,2,3].
+ /// Network information.
+ /// The id of the size of a virtual machine connected to a hostpool. Example: Standard_D2as_v6.
+ /// Disk information.
+ /// The uri to the storage blob containing the arm template to be run on the virtual machine after provisioning.
+ /// Image configurations of HostPool.
+ /// Domain configurations of session hosts.
+ /// Security information.
+ /// Local Admin credentials for session hosts.
+ /// Boot Diagnostics information.
+ /// Keeps track of any properties unknown to the library.
+ internal ActiveSessionHostConfigurationData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, DateTimeOffset? version, string friendlyName, IDictionary vmTags, string vmLocation, string vmResourceGroup, string vmNamePrefix, IList availabilityZones, NetworkInfoProperties networkInfo, string vmSizeId, DiskInfoProperties diskInfo, Uri customConfigurationScriptUri, ImageInfoProperties imageInfo, DomainInfoProperties domainInfo, SecurityInfoProperties securityInfo, KeyVaultCredentialsProperties vmAdminCredentials, BootDiagnosticsInfoProperties bootDiagnosticsInfo, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData)
+ {
+ Version = version;
+ FriendlyName = friendlyName;
+ VmTags = vmTags;
+ VmLocation = vmLocation;
+ VmResourceGroup = vmResourceGroup;
+ VmNamePrefix = vmNamePrefix;
+ AvailabilityZones = availabilityZones;
+ NetworkInfo = networkInfo;
+ VmSizeId = vmSizeId;
+ DiskInfo = diskInfo;
+ CustomConfigurationScriptUri = customConfigurationScriptUri;
+ ImageInfo = imageInfo;
+ DomainInfo = domainInfo;
+ SecurityInfo = securityInfo;
+ VmAdminCredentials = vmAdminCredentials;
+ BootDiagnosticsInfo = bootDiagnosticsInfo;
+ _serializedAdditionalRawData = serializedAdditionalRawData;
+ }
+
+ /// Initializes a new instance of for deserialization.
+ internal ActiveSessionHostConfigurationData()
+ {
+ }
+
+ /// The timestamp of the last update.
+ [WirePath("properties.version")]
+ public DateTimeOffset? Version { get; }
+ /// Friendly name to describe this version of the SessionHostConfiguration.
+ [WirePath("properties.friendlyName")]
+ public string FriendlyName { get; set; }
+ /// Hashtable that lists key/value pair tags to apply to the VMs.
+ [WirePath("properties.vmTags")]
+ public IDictionary VmTags { get; }
+ /// The Location for the session host to be created in. It will default to the location of the hostpool if not provided.
+ [WirePath("properties.vmLocation")]
+ public string VmLocation { get; set; }
+ /// The ResourceGroup for the session hosts to be created in. It will default to the ResourceGroup of the hostpool if not provided.
+ [WirePath("properties.vmResourceGroup")]
+ public string VmResourceGroup { get; set; }
+ /// The prefix that should be associated with session host names.
+ [WirePath("properties.vmNamePrefix")]
+ public string VmNamePrefix { get; set; }
+ /// Value for availability zones to be used by the session host. Should be from [1,2,3].
+ [WirePath("properties.availabilityZones")]
+ public IList AvailabilityZones { get; }
+ /// Network information.
+ [WirePath("properties.networkInfo")]
+ public NetworkInfoProperties NetworkInfo { get; set; }
+ /// The id of the size of a virtual machine connected to a hostpool. Example: Standard_D2as_v6.
+ [WirePath("properties.vmSizeId")]
+ public string VmSizeId { get; set; }
+ /// Disk information.
+ internal DiskInfoProperties DiskInfo { get; set; }
+ /// The disk type used by virtual machine in hostpool session host.
+ [WirePath("properties.diskInfo.type")]
+ public VirtualMachineDiskType? VirtualMachineDiskType
+ {
+ get => DiskInfo is null ? default(VirtualMachineDiskType?) : DiskInfo.VirtualMachineDiskType;
+ set
+ {
+ DiskInfo = value.HasValue ? new DiskInfoProperties(value.Value) : null;
+ }
+ }
+
+ /// The uri to the storage blob containing the arm template to be run on the virtual machine after provisioning.
+ [WirePath("properties.customConfigurationScriptUrl")]
+ public Uri CustomConfigurationScriptUri { get; set; }
+ /// Image configurations of HostPool.
+ [WirePath("properties.imageInfo")]
+ public ImageInfoProperties ImageInfo { get; set; }
+ /// Domain configurations of session hosts.
+ [WirePath("properties.domainInfo")]
+ public DomainInfoProperties DomainInfo { get; set; }
+ /// Security information.
+ [WirePath("properties.securityInfo")]
+ public SecurityInfoProperties SecurityInfo { get; set; }
+ /// Local Admin credentials for session hosts.
+ [WirePath("properties.vmAdminCredentials")]
+ public KeyVaultCredentialsProperties VmAdminCredentials { get; set; }
+ /// Boot Diagnostics information.
+ [WirePath("properties.bootDiagnosticsInfo")]
+ public BootDiagnosticsInfoProperties BootDiagnosticsInfo { get; set; }
+ }
+}
diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/ActiveSessionHostConfigurationResource.Serialization.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/ActiveSessionHostConfigurationResource.Serialization.cs
new file mode 100644
index 000000000000..c95105c78e89
--- /dev/null
+++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/ActiveSessionHostConfigurationResource.Serialization.cs
@@ -0,0 +1,26 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.ClientModel.Primitives;
+using System.Text.Json;
+
+namespace Azure.ResourceManager.DesktopVirtualization
+{
+ public partial class ActiveSessionHostConfigurationResource : IJsonModel
+ {
+ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => ((IJsonModel)Data).Write(writer, options);
+
+ ActiveSessionHostConfigurationData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => ((IJsonModel)Data).Create(ref reader, options);
+
+ BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => ModelReaderWriter.Write(Data, options);
+
+ ActiveSessionHostConfigurationData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => ModelReaderWriter.Read(data, options);
+
+ string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => ((IPersistableModel)Data).GetFormatFromOptions(options);
+ }
+}
diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/ActiveSessionHostConfigurationResource.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/ActiveSessionHostConfigurationResource.cs
new file mode 100644
index 000000000000..9d6a7a38820e
--- /dev/null
+++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/ActiveSessionHostConfigurationResource.cs
@@ -0,0 +1,170 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Globalization;
+using System.Threading;
+using System.Threading.Tasks;
+using Azure.Core;
+using Azure.Core.Pipeline;
+
+namespace Azure.ResourceManager.DesktopVirtualization
+{
+ ///
+ /// A Class representing an ActiveSessionHostConfiguration along with the instance operations that can be performed on it.
+ /// If you have a you can construct an
+ /// from an instance of using the GetActiveSessionHostConfigurationResource method.
+ /// Otherwise you can get one from its parent resource using the GetActiveSessionHostConfiguration method.
+ ///
+ public partial class ActiveSessionHostConfigurationResource : ArmResource
+ {
+ /// Generate the resource identifier of a instance.
+ /// The subscriptionId.
+ /// The resourceGroupName.
+ /// The hostPoolName.
+ public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string hostPoolName)
+ {
+ var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/activeSessionHostConfigurations/default";
+ return new ResourceIdentifier(resourceId);
+ }
+
+ private readonly ClientDiagnostics _activeSessionHostConfigurationClientDiagnostics;
+ private readonly ActiveSessionHostConfigurationsRestOperations _activeSessionHostConfigurationRestClient;
+ private readonly ActiveSessionHostConfigurationData _data;
+
+ /// Gets the resource type for the operations.
+ public static readonly ResourceType ResourceType = "Microsoft.DesktopVirtualization/hostPools/activeSessionHostConfigurations";
+
+ /// Initializes a new instance of the class for mocking.
+ protected ActiveSessionHostConfigurationResource()
+ {
+ }
+
+ /// Initializes a new instance of the class.
+ /// The client parameters to use in these operations.
+ /// The resource that is the target of operations.
+ internal ActiveSessionHostConfigurationResource(ArmClient client, ActiveSessionHostConfigurationData data) : this(client, data.Id)
+ {
+ HasData = true;
+ _data = data;
+ }
+
+ /// Initializes a new instance of the class.
+ /// The client parameters to use in these operations.
+ /// The identifier of the resource that is the target of operations.
+ internal ActiveSessionHostConfigurationResource(ArmClient client, ResourceIdentifier id) : base(client, id)
+ {
+ _activeSessionHostConfigurationClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.DesktopVirtualization", ResourceType.Namespace, Diagnostics);
+ TryGetApiVersion(ResourceType, out string activeSessionHostConfigurationApiVersion);
+ _activeSessionHostConfigurationRestClient = new ActiveSessionHostConfigurationsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, activeSessionHostConfigurationApiVersion);
+#if DEBUG
+ ValidateResourceId(Id);
+#endif
+ }
+
+ /// Gets whether or not the current instance has data.
+ public virtual bool HasData { get; }
+
+ /// Gets the data representing this Feature.
+ /// Throws if there is no data loaded in the current instance.
+ public virtual ActiveSessionHostConfigurationData Data
+ {
+ get
+ {
+ if (!HasData)
+ throw new InvalidOperationException("The current instance does not have data, you must call Get first.");
+ return _data;
+ }
+ }
+
+ internal static void ValidateResourceId(ResourceIdentifier id)
+ {
+ if (id.ResourceType != ResourceType)
+ throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ResourceType), nameof(id));
+ }
+
+ ///
+ /// Get the ActiveSessionHostConfiguration for the hostPool that is currently being used for update operations.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/activeSessionHostConfigurations/default
+ ///
+ /// -
+ /// Operation Id
+ /// ActiveSessionHostConfigurations_Get
+ ///
+ /// -
+ /// Default Api Version
+ /// 2024-08-08-preview
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// The cancellation token to use.
+ public virtual async Task> GetAsync(CancellationToken cancellationToken = default)
+ {
+ using var scope = _activeSessionHostConfigurationClientDiagnostics.CreateScope("ActiveSessionHostConfigurationResource.Get");
+ scope.Start();
+ try
+ {
+ var response = await _activeSessionHostConfigurationRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, cancellationToken).ConfigureAwait(false);
+ if (response.Value == null)
+ throw new RequestFailedException(response.GetRawResponse());
+ return Response.FromValue(new ActiveSessionHostConfigurationResource(Client, response.Value), response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Get the ActiveSessionHostConfiguration for the hostPool that is currently being used for update operations.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/activeSessionHostConfigurations/default
+ ///
+ /// -
+ /// Operation Id
+ /// ActiveSessionHostConfigurations_Get
+ ///
+ /// -
+ /// Default Api Version
+ /// 2024-08-08-preview
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// The cancellation token to use.
+ public virtual Response Get(CancellationToken cancellationToken = default)
+ {
+ using var scope = _activeSessionHostConfigurationClientDiagnostics.CreateScope("ActiveSessionHostConfigurationResource.Get");
+ scope.Start();
+ try
+ {
+ var response = _activeSessionHostConfigurationRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, cancellationToken);
+ if (response.Value == null)
+ throw new RequestFailedException(response.GetRawResponse());
+ return Response.FromValue(new ActiveSessionHostConfigurationResource(Client, response.Value), response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+ }
+}
diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/AppAttachPackageCollection.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/AppAttachPackageCollection.cs
index a8a7cee93187..8d3cdcbf9d1f 100644
--- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/AppAttachPackageCollection.cs
+++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/AppAttachPackageCollection.cs
@@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id)
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2024-08-08-preview
///
/// -
/// Resource
@@ -74,7 +74,7 @@ internal static void ValidateResourceId(ResourceIdentifier id)
///
///
/// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.
- /// The name of the App Attach package.
+ /// The name of the App Attach package arm object.
/// Object containing App Attach Package definitions.
/// The cancellation token to use.
/// is an empty string, and was expected to be non-empty.
@@ -116,7 +116,7 @@ public virtual async Task> CreateOrUpdate
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2024-08-08-preview
///
/// -
/// Resource
@@ -125,7 +125,7 @@ public virtual async Task> CreateOrUpdate
///
///
/// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.
- /// The name of the App Attach package.
+ /// The name of the App Attach package arm object.
/// Object containing App Attach Package definitions.
/// The cancellation token to use.
/// is an empty string, and was expected to be non-empty.
@@ -167,7 +167,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil w
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2024-08-08-preview
///
/// -
/// Resource
@@ -175,7 +175,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil w
///
///
///
- /// The name of the App Attach package.
+ /// The name of the App Attach package arm object.
/// The cancellation token to use.
/// is an empty string, and was expected to be non-empty.
/// is null.
@@ -212,7 +212,7 @@ public virtual async Task> GetAsync(string ap
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2024-08-08-preview
///
/// -
/// Resource
@@ -220,7 +220,7 @@ public virtual async Task> GetAsync(string ap
///
///
///
- /// The name of the App Attach package.
+ /// The name of the App Attach package arm object.
/// The cancellation token to use.
/// is an empty string, and was expected to be non-empty.
/// is null.
@@ -257,7 +257,7 @@ public virtual Response Get(string appAttachPackageNam
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2024-08-08-preview
///
/// -
/// Resource
@@ -265,7 +265,7 @@ public virtual Response Get(string appAttachPackageNam
///
///
///
- /// OData filter expression. Valid properties for filtering are package name and host pool.
+ /// OData filter expression. Valid properties for filtering are package name, host pool, package owner name, and custom data.
/// The cancellation token to use.
/// An async collection of that may take multiple service requests to iterate over.
public virtual AsyncPageable GetAllAsync(string filter = null, CancellationToken cancellationToken = default)
@@ -288,7 +288,7 @@ public virtual AsyncPageable GetAllAsync(string filter
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2024-08-08-preview
///
/// -
/// Resource
@@ -296,7 +296,7 @@ public virtual AsyncPageable GetAllAsync(string filter
///
///
///
- /// OData filter expression. Valid properties for filtering are package name and host pool.
+ /// OData filter expression. Valid properties for filtering are package name, host pool, package owner name, and custom data.
/// The cancellation token to use.
/// A collection of that may take multiple service requests to iterate over.
public virtual Pageable GetAll(string filter = null, CancellationToken cancellationToken = default)
@@ -319,7 +319,7 @@ public virtual Pageable GetAll(string filter = null, C
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2024-08-08-preview
///
/// -
/// Resource
@@ -327,7 +327,7 @@ public virtual Pageable GetAll(string filter = null, C
///
///
///
- /// The name of the App Attach package.
+ /// The name of the App Attach package arm object.
/// The cancellation token to use.
/// is an empty string, and was expected to be non-empty.
/// is null.
@@ -362,7 +362,7 @@ public virtual async Task> ExistsAsync(string appAttachPackageNam
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2024-08-08-preview
///
/// -
/// Resource
@@ -370,7 +370,7 @@ public virtual async Task> ExistsAsync(string appAttachPackageNam
///
///
///
- /// The name of the App Attach package.
+ /// The name of the App Attach package arm object.
/// The cancellation token to use.
/// is an empty string, and was expected to be non-empty.
/// is null.
@@ -405,7 +405,7 @@ public virtual Response Exists(string appAttachPackageName, CancellationTo
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2024-08-08-preview
///
/// -
/// Resource
@@ -413,7 +413,7 @@ public virtual Response Exists(string appAttachPackageName, CancellationTo
///
///
///
- /// The name of the App Attach package.
+ /// The name of the App Attach package arm object.
/// The cancellation token to use.
/// is an empty string, and was expected to be non-empty.
/// is null.
@@ -450,7 +450,7 @@ public virtual async Task> GetIfExist
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2024-08-08-preview
///
/// -
/// Resource
@@ -458,7 +458,7 @@ public virtual async Task> GetIfExist
///
///
///
- /// The name of the App Attach package.
+ /// The name of the App Attach package arm object.
/// The cancellation token to use.
/// is an empty string, and was expected to be non-empty.
/// is null.
diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/AppAttachPackageResource.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/AppAttachPackageResource.cs
index 61eb87ae10fa..7e068ebb975e 100644
--- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/AppAttachPackageResource.cs
+++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/AppAttachPackageResource.cs
@@ -6,6 +6,7 @@
#nullable disable
using System;
+using System.Collections.Generic;
using System.Globalization;
using System.Threading;
using System.Threading.Tasks;
@@ -102,7 +103,7 @@ internal static void ValidateResourceId(ResourceIdentifier id)
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2024-08-08-preview
///
/// -
/// Resource
@@ -142,7 +143,7 @@ public virtual async Task> GetAsync(Cancellat
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2024-08-08-preview
///
/// -
/// Resource
@@ -182,7 +183,7 @@ public virtual Response Get(CancellationToken cancella
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2024-08-08-preview
///
/// -
/// Resource
@@ -191,15 +192,16 @@ public virtual Response Get(CancellationToken cancella
///
///
/// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.
+ /// Force flag to delete App Attach package.
/// The cancellation token to use.
- public virtual async Task DeleteAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default)
+ public virtual async Task DeleteAsync(WaitUntil waitUntil, bool? force = null, CancellationToken cancellationToken = default)
{
using var scope = _appAttachPackageClientDiagnostics.CreateScope("AppAttachPackageResource.Delete");
scope.Start();
try
{
- var response = await _appAttachPackageRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false);
- var uri = _appAttachPackageRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name);
+ var response = await _appAttachPackageRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, force, cancellationToken).ConfigureAwait(false);
+ var uri = _appAttachPackageRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, force);
var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), "None", null, OperationFinalStateVia.OriginalUri.ToString());
var operation = new DesktopVirtualizationArmOperation(response, rehydrationToken);
if (waitUntil == WaitUntil.Completed)
@@ -226,7 +228,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2024-08-08-preview
///
/// -
/// Resource
@@ -235,15 +237,16 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell
///
///
/// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.
+ /// Force flag to delete App Attach package.
/// The cancellation token to use.
- public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancellationToken = default)
+ public virtual ArmOperation Delete(WaitUntil waitUntil, bool? force = null, CancellationToken cancellationToken = default)
{
using var scope = _appAttachPackageClientDiagnostics.CreateScope("AppAttachPackageResource.Delete");
scope.Start();
try
{
- var response = _appAttachPackageRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken);
- var uri = _appAttachPackageRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name);
+ var response = _appAttachPackageRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, force, cancellationToken);
+ var uri = _appAttachPackageRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, force);
var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), "None", null, OperationFinalStateVia.OriginalUri.ToString());
var operation = new DesktopVirtualizationArmOperation(response, rehydrationToken);
if (waitUntil == WaitUntil.Completed)
@@ -270,7 +273,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2024-08-08-preview
///
/// -
/// Resource
@@ -312,7 +315,7 @@ public virtual async Task> UpdateAsync(AppAtt
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2024-08-08-preview
///
/// -
/// Resource
@@ -340,5 +343,363 @@ public virtual Response Update(AppAttachPackagePatch p
throw;
}
}
+
+ ///
+ /// Add a tag to the current resource.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/appAttachPackages/{appAttachPackageName}
+ ///
+ /// -
+ /// Operation Id
+ /// AppAttachPackage_Get
+ ///
+ /// -
+ /// Default Api Version
+ /// 2024-08-08-preview
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// The key for the tag.
+ /// The value for the tag.
+ /// The cancellation token to use.
+ /// or is null.
+ public virtual async Task> AddTagAsync(string key, string value, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(key, nameof(key));
+ Argument.AssertNotNull(value, nameof(value));
+
+ using var scope = _appAttachPackageClientDiagnostics.CreateScope("AppAttachPackageResource.AddTag");
+ scope.Start();
+ try
+ {
+ if (await CanUseTagResourceAsync(cancellationToken: cancellationToken).ConfigureAwait(false))
+ {
+ var originalTags = await GetTagResource().GetAsync(cancellationToken).ConfigureAwait(false);
+ originalTags.Value.Data.TagValues[key] = value;
+ await GetTagResource().CreateOrUpdateAsync(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken).ConfigureAwait(false);
+ var originalResponse = await _appAttachPackageRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false);
+ return Response.FromValue(new AppAttachPackageResource(Client, originalResponse.Value), originalResponse.GetRawResponse());
+ }
+ else
+ {
+ var current = (await GetAsync(cancellationToken: cancellationToken).ConfigureAwait(false)).Value.Data;
+ var patch = new AppAttachPackagePatch();
+ foreach (var tag in current.Tags)
+ {
+ patch.Tags.Add(tag);
+ }
+ patch.Tags[key] = value;
+ var result = await UpdateAsync(patch, cancellationToken: cancellationToken).ConfigureAwait(false);
+ return result;
+ }
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Add a tag to the current resource.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/appAttachPackages/{appAttachPackageName}
+ ///
+ /// -
+ /// Operation Id
+ /// AppAttachPackage_Get
+ ///
+ /// -
+ /// Default Api Version
+ /// 2024-08-08-preview
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// The key for the tag.
+ /// The value for the tag.
+ /// The cancellation token to use.
+ /// or is null.
+ public virtual Response AddTag(string key, string value, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(key, nameof(key));
+ Argument.AssertNotNull(value, nameof(value));
+
+ using var scope = _appAttachPackageClientDiagnostics.CreateScope("AppAttachPackageResource.AddTag");
+ scope.Start();
+ try
+ {
+ if (CanUseTagResource(cancellationToken: cancellationToken))
+ {
+ var originalTags = GetTagResource().Get(cancellationToken);
+ originalTags.Value.Data.TagValues[key] = value;
+ GetTagResource().CreateOrUpdate(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken);
+ var originalResponse = _appAttachPackageRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken);
+ return Response.FromValue(new AppAttachPackageResource(Client, originalResponse.Value), originalResponse.GetRawResponse());
+ }
+ else
+ {
+ var current = Get(cancellationToken: cancellationToken).Value.Data;
+ var patch = new AppAttachPackagePatch();
+ foreach (var tag in current.Tags)
+ {
+ patch.Tags.Add(tag);
+ }
+ patch.Tags[key] = value;
+ var result = Update(patch, cancellationToken: cancellationToken);
+ return result;
+ }
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Replace the tags on the resource with the given set.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/appAttachPackages/{appAttachPackageName}
+ ///
+ /// -
+ /// Operation Id
+ /// AppAttachPackage_Get
+ ///
+ /// -
+ /// Default Api Version
+ /// 2024-08-08-preview
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// The set of tags to use as replacement.
+ /// The cancellation token to use.
+ /// is null.
+ public virtual async Task> SetTagsAsync(IDictionary tags, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(tags, nameof(tags));
+
+ using var scope = _appAttachPackageClientDiagnostics.CreateScope("AppAttachPackageResource.SetTags");
+ scope.Start();
+ try
+ {
+ if (await CanUseTagResourceAsync(cancellationToken: cancellationToken).ConfigureAwait(false))
+ {
+ await GetTagResource().DeleteAsync(WaitUntil.Completed, cancellationToken: cancellationToken).ConfigureAwait(false);
+ var originalTags = await GetTagResource().GetAsync(cancellationToken).ConfigureAwait(false);
+ originalTags.Value.Data.TagValues.ReplaceWith(tags);
+ await GetTagResource().CreateOrUpdateAsync(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken).ConfigureAwait(false);
+ var originalResponse = await _appAttachPackageRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false);
+ return Response.FromValue(new AppAttachPackageResource(Client, originalResponse.Value), originalResponse.GetRawResponse());
+ }
+ else
+ {
+ var current = (await GetAsync(cancellationToken: cancellationToken).ConfigureAwait(false)).Value.Data;
+ var patch = new AppAttachPackagePatch();
+ patch.Tags.ReplaceWith(tags);
+ var result = await UpdateAsync(patch, cancellationToken: cancellationToken).ConfigureAwait(false);
+ return result;
+ }
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Replace the tags on the resource with the given set.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/appAttachPackages/{appAttachPackageName}
+ ///
+ /// -
+ /// Operation Id
+ /// AppAttachPackage_Get
+ ///
+ /// -
+ /// Default Api Version
+ /// 2024-08-08-preview
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// The set of tags to use as replacement.
+ /// The cancellation token to use.
+ /// is null.
+ public virtual Response SetTags(IDictionary tags, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(tags, nameof(tags));
+
+ using var scope = _appAttachPackageClientDiagnostics.CreateScope("AppAttachPackageResource.SetTags");
+ scope.Start();
+ try
+ {
+ if (CanUseTagResource(cancellationToken: cancellationToken))
+ {
+ GetTagResource().Delete(WaitUntil.Completed, cancellationToken: cancellationToken);
+ var originalTags = GetTagResource().Get(cancellationToken);
+ originalTags.Value.Data.TagValues.ReplaceWith(tags);
+ GetTagResource().CreateOrUpdate(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken);
+ var originalResponse = _appAttachPackageRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken);
+ return Response.FromValue(new AppAttachPackageResource(Client, originalResponse.Value), originalResponse.GetRawResponse());
+ }
+ else
+ {
+ var current = Get(cancellationToken: cancellationToken).Value.Data;
+ var patch = new AppAttachPackagePatch();
+ patch.Tags.ReplaceWith(tags);
+ var result = Update(patch, cancellationToken: cancellationToken);
+ return result;
+ }
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Removes a tag by key from the resource.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/appAttachPackages/{appAttachPackageName}
+ ///
+ /// -
+ /// Operation Id
+ /// AppAttachPackage_Get
+ ///
+ /// -
+ /// Default Api Version
+ /// 2024-08-08-preview
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// The key for the tag.
+ /// The cancellation token to use.
+ /// is null.
+ public virtual async Task> RemoveTagAsync(string key, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(key, nameof(key));
+
+ using var scope = _appAttachPackageClientDiagnostics.CreateScope("AppAttachPackageResource.RemoveTag");
+ scope.Start();
+ try
+ {
+ if (await CanUseTagResourceAsync(cancellationToken: cancellationToken).ConfigureAwait(false))
+ {
+ var originalTags = await GetTagResource().GetAsync(cancellationToken).ConfigureAwait(false);
+ originalTags.Value.Data.TagValues.Remove(key);
+ await GetTagResource().CreateOrUpdateAsync(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken).ConfigureAwait(false);
+ var originalResponse = await _appAttachPackageRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false);
+ return Response.FromValue(new AppAttachPackageResource(Client, originalResponse.Value), originalResponse.GetRawResponse());
+ }
+ else
+ {
+ var current = (await GetAsync(cancellationToken: cancellationToken).ConfigureAwait(false)).Value.Data;
+ var patch = new AppAttachPackagePatch();
+ foreach (var tag in current.Tags)
+ {
+ patch.Tags.Add(tag);
+ }
+ patch.Tags.Remove(key);
+ var result = await UpdateAsync(patch, cancellationToken: cancellationToken).ConfigureAwait(false);
+ return result;
+ }
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Removes a tag by key from the resource.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/appAttachPackages/{appAttachPackageName}
+ ///
+ /// -
+ /// Operation Id
+ /// AppAttachPackage_Get
+ ///
+ /// -
+ /// Default Api Version
+ /// 2024-08-08-preview
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// The key for the tag.
+ /// The cancellation token to use.
+ /// is null.
+ public virtual Response RemoveTag(string key, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(key, nameof(key));
+
+ using var scope = _appAttachPackageClientDiagnostics.CreateScope("AppAttachPackageResource.RemoveTag");
+ scope.Start();
+ try
+ {
+ if (CanUseTagResource(cancellationToken: cancellationToken))
+ {
+ var originalTags = GetTagResource().Get(cancellationToken);
+ originalTags.Value.Data.TagValues.Remove(key);
+ GetTagResource().CreateOrUpdate(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken);
+ var originalResponse = _appAttachPackageRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken);
+ return Response.FromValue(new AppAttachPackageResource(Client, originalResponse.Value), originalResponse.GetRawResponse());
+ }
+ else
+ {
+ var current = Get(cancellationToken: cancellationToken).Value.Data;
+ var patch = new AppAttachPackagePatch();
+ foreach (var tag in current.Tags)
+ {
+ patch.Tags.Add(tag);
+ }
+ patch.Tags.Remove(key);
+ var result = Update(patch, cancellationToken: cancellationToken);
+ return result;
+ }
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
}
}
diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/ArmDesktopVirtualizationModelFactory.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/ArmDesktopVirtualizationModelFactory.cs
index 4c176845faa2..719be0c95f53 100644
--- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/ArmDesktopVirtualizationModelFactory.cs
+++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/ArmDesktopVirtualizationModelFactory.cs
@@ -34,9 +34,9 @@ public static partial class ArmDesktopVirtualizationModelFactory
/// The fully qualified resource ID of the resource that manages this resource. Indicates if this resource is managed by another Azure resource. If this is present, complete mode deployment will not delete the resource if it is removed from the template since it is managed by another resource.
/// Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type. E.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value.
/// The etag field is *not* required. If it is provided in the response body, it must also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.
- /// Gets or sets the identity. Current supported identity types: SystemAssigned.
+ /// Managed service identity (system assigned and/or user assigned identities).
/// The resource model definition representing SKU.
- /// Gets or sets the plan.
+ /// Plan for the resource.
/// A new instance for mocking.
public static VirtualWorkspaceData VirtualWorkspaceData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, string objectId = null, string description = null, string friendlyName = null, IEnumerable applicationGroupReferences = null, bool? isCloudPCResource = null, DesktopVirtualizationPublicNetworkAccess? publicNetworkAccess = null, IEnumerable privateEndpointConnections = null, ResourceIdentifier managedBy = null, string kind = null, ETag? etag = null, ManagedServiceIdentity identity = null, DesktopVirtualizationSku sku = null, ArmPlan plan = null)
{
@@ -157,14 +157,14 @@ public static DesktopVirtualizationPrivateLinkResourceData DesktopVirtualization
/// Timezone of the scaling plan.
/// HostPool type for desktop.
/// Exclusion tag for scaling plan.
- /// List of ScalingPlanPooledSchedule definitions.
+ /// List of Pooled ScalingSchedule definitions.
/// List of ScalingHostPoolReference definitions.
/// The fully qualified resource ID of the resource that manages this resource. Indicates if this resource is managed by another Azure resource. If this is present, complete mode deployment will not delete the resource if it is removed from the template since it is managed by another resource.
/// Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type. E.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value.
/// The etag field is *not* required. If it is provided in the response body, it must also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.
- /// Gets or sets the identity. Current supported identity types: SystemAssigned.
+ /// Managed service identity (system assigned and/or user assigned identities).
/// The resource model definition representing SKU.
- /// Gets or sets the plan.
+ /// Plan for the resource.
/// A new instance for mocking.
public static ScalingPlanData ScalingPlanData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, string objectId = null, string description = null, string friendlyName = null, string timeZone = null, ScalingHostPoolType? scalingHostPoolType = null, string exclusionTag = null, IEnumerable schedules = null, IEnumerable hostPoolReferences = null, ResourceIdentifier managedBy = null, string kind = null, ETag? etag = null, ManagedServiceIdentity identity = null, DesktopVirtualizationSku sku = null, ArmPlan plan = null)
{
@@ -201,6 +201,7 @@ public static ScalingPlanData ScalingPlanData(ResourceIdentifier id = null, stri
/// The name.
/// The resourceType.
/// The systemData.
+ /// Name of the ScalingPlanPooledSchedule.
/// Set of days of the week on which this schedule is active.
/// Starting time for ramp up period.
/// Load balancing algorithm for ramp up period.
@@ -219,7 +220,7 @@ public static ScalingPlanData ScalingPlanData(ResourceIdentifier id = null, stri
/// Starting time for off-peak period.
/// Load balancing algorithm for off-peak period.
/// A new instance for mocking.
- public static ScalingPlanPooledScheduleData ScalingPlanPooledScheduleData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IEnumerable daysOfWeek = null, ScalingActionTime rampUpStartTime = null, SessionHostLoadBalancingAlgorithm? rampUpLoadBalancingAlgorithm = null, int? rampUpMinimumHostsPct = null, int? rampUpCapacityThresholdPct = null, ScalingActionTime peakStartTime = null, SessionHostLoadBalancingAlgorithm? peakLoadBalancingAlgorithm = null, ScalingActionTime rampDownStartTime = null, SessionHostLoadBalancingAlgorithm? rampDownLoadBalancingAlgorithm = null, int? rampDownMinimumHostsPct = null, int? rampDownCapacityThresholdPct = null, bool? rampDownForceLogoffUsers = null, DesktopVirtualizationStopHostsWhen? rampDownStopHostsWhen = null, int? rampDownWaitTimeMinutes = null, string rampDownNotificationMessage = null, ScalingActionTime offPeakStartTime = null, SessionHostLoadBalancingAlgorithm? offPeakLoadBalancingAlgorithm = null)
+ public static ScalingPlanPooledScheduleData ScalingPlanPooledScheduleData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string namePropertiesName = null, IEnumerable daysOfWeek = null, ScalingActionTime rampUpStartTime = null, SessionHostLoadBalancingAlgorithm? rampUpLoadBalancingAlgorithm = null, int? rampUpMinimumHostsPct = null, int rampUpCapacityThresholdPct = default, ScalingActionTime peakStartTime = null, SessionHostLoadBalancingAlgorithm? peakLoadBalancingAlgorithm = null, ScalingActionTime rampDownStartTime = null, SessionHostLoadBalancingAlgorithm? rampDownLoadBalancingAlgorithm = null, int? rampDownMinimumHostsPct = null, int rampDownCapacityThresholdPct = default, bool? rampDownForceLogoffUsers = null, DesktopVirtualizationStopHostsWhen? rampDownStopHostsWhen = null, int? rampDownWaitTimeMinutes = null, string rampDownNotificationMessage = null, ScalingActionTime offPeakStartTime = null, SessionHostLoadBalancingAlgorithm? offPeakLoadBalancingAlgorithm = null)
{
daysOfWeek ??= new List();
@@ -228,6 +229,7 @@ public static ScalingPlanPooledScheduleData ScalingPlanPooledScheduleData(Resour
name,
resourceType,
systemData,
+ namePropertiesName,
daysOfWeek?.ToList(),
rampUpStartTime,
rampUpLoadBalancingAlgorithm,
@@ -253,6 +255,7 @@ public static ScalingPlanPooledScheduleData ScalingPlanPooledScheduleData(Resour
/// The name.
/// The resourceType.
/// The systemData.
+ /// Name of the ScalingPlanPooledSchedule.
/// Set of days of the week on which this schedule is active.
/// Starting time for ramp up period.
/// Load balancing algorithm for ramp up period.
@@ -271,7 +274,7 @@ public static ScalingPlanPooledScheduleData ScalingPlanPooledScheduleData(Resour
/// Starting time for off-peak period.
/// Load balancing algorithm for off-peak period.
/// A new instance for mocking.
- public static ScalingPlanPooledSchedulePatch ScalingPlanPooledSchedulePatch(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IEnumerable daysOfWeek = null, ScalingActionTime rampUpStartTime = null, SessionHostLoadBalancingAlgorithm? rampUpLoadBalancingAlgorithm = null, int? rampUpMinimumHostsPct = null, int? rampUpCapacityThresholdPct = null, ScalingActionTime peakStartTime = null, SessionHostLoadBalancingAlgorithm? peakLoadBalancingAlgorithm = null, ScalingActionTime rampDownStartTime = null, SessionHostLoadBalancingAlgorithm? rampDownLoadBalancingAlgorithm = null, int? rampDownMinimumHostsPct = null, int? rampDownCapacityThresholdPct = null, bool? rampDownForceLogoffUsers = null, DesktopVirtualizationStopHostsWhen? rampDownStopHostsWhen = null, int? rampDownWaitTimeMinutes = null, string rampDownNotificationMessage = null, ScalingActionTime offPeakStartTime = null, SessionHostLoadBalancingAlgorithm? offPeakLoadBalancingAlgorithm = null)
+ public static ScalingPlanPooledSchedulePatch ScalingPlanPooledSchedulePatch(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string namePropertiesName = null, IEnumerable daysOfWeek = null, ScalingActionTime rampUpStartTime = null, SessionHostLoadBalancingAlgorithm? rampUpLoadBalancingAlgorithm = null, int? rampUpMinimumHostsPct = null, int? rampUpCapacityThresholdPct = null, ScalingActionTime peakStartTime = null, SessionHostLoadBalancingAlgorithm? peakLoadBalancingAlgorithm = null, ScalingActionTime rampDownStartTime = null, SessionHostLoadBalancingAlgorithm? rampDownLoadBalancingAlgorithm = null, int? rampDownMinimumHostsPct = null, int? rampDownCapacityThresholdPct = null, bool? rampDownForceLogoffUsers = null, DesktopVirtualizationStopHostsWhen? rampDownStopHostsWhen = null, int? rampDownWaitTimeMinutes = null, string rampDownNotificationMessage = null, ScalingActionTime offPeakStartTime = null, SessionHostLoadBalancingAlgorithm? offPeakLoadBalancingAlgorithm = null)
{
daysOfWeek ??= new List();
@@ -280,6 +283,7 @@ public static ScalingPlanPooledSchedulePatch ScalingPlanPooledSchedulePatch(Reso
name,
resourceType,
systemData,
+ namePropertiesName,
daysOfWeek?.ToList(),
rampUpStartTime,
rampUpLoadBalancingAlgorithm,
@@ -388,9 +392,9 @@ public static ScalingPlanPersonalScheduleData ScalingPlanPersonalScheduleData(Re
/// The fully qualified resource ID of the resource that manages this resource. Indicates if this resource is managed by another Azure resource. If this is present, complete mode deployment will not delete the resource if it is removed from the template since it is managed by another resource.
/// Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type. E.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value.
/// The etag field is *not* required. If it is provided in the response body, it must also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.
- /// Gets or sets the identity. Current supported identity types: SystemAssigned.
+ /// Managed service identity (system assigned and/or user assigned identities).
/// The resource model definition representing SKU.
- /// Gets or sets the plan.
+ /// Plan for the resource.
/// A new instance for mocking.
public static VirtualApplicationGroupData VirtualApplicationGroupData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, string objectId = null, string description = null, string friendlyName = null, ResourceIdentifier hostPoolId = null, ResourceIdentifier workspaceId = null, VirtualApplicationGroupType applicationGroupType = default, bool? isCloudPCResource = null, bool? showInFeed = null, ResourceIdentifier managedBy = null, string kind = null, ETag? etag = null, ManagedServiceIdentity identity = null, DesktopVirtualizationSku sku = null, ArmPlan plan = null)
{
@@ -559,8 +563,9 @@ public static VirtualDesktopData VirtualDesktopData(ResourceIdentifier id = null
/// The type of the load balancer.
/// The ring number of HostPool.
/// Is validation environment.
- /// The registration info of HostPool.
+ /// The registration info of HostPool. This is not returned on GET. In order to get the registration token use the retrieveRegistrationToken or listRegistrationTokens POST calls.
/// VM template for sessionhosts configuration within hostpool.
+ /// The type of management for this hostpool, Automated or Standard. The default value is Automated.
/// List of applicationGroup links.
/// List of App Attach Package links.
/// URL to customer ADFS server for signing WVD SSO certificates.
@@ -573,14 +578,18 @@ public static VirtualDesktopData VirtualDesktopData(ResourceIdentifier id = null
/// Enabled allows this resource to be accessed from both public and private networks, Disabled allows this resource to only be accessed via private endpoints.
/// The session host configuration for updating agent, monitoring agent, and stack component.
/// List of private endpoint connection associated with the specified resource.
+ /// Default: AVD-wide settings are used to determine connection availability, Enabled: UDP will attempt this connection type when making connections. This means that this connection is possible, but is not guaranteed, as there are other factors that may prevent this connection type, Disabled: UDP will not attempt this connection type when making connections.
+ /// Default: AVD-wide settings are used to determine connection availability, Enabled: UDP will attempt this connection type when making connections. This means that this connection is possible, but is not guaranteed, as there are other factors that may prevent this connection type, Disabled: UDP will not attempt this connection type when making connections.
+ /// Default: AVD-wide settings are used to determine connection availability, Enabled: UDP will attempt this connection type when making connections. This means that this connection is possible, but is not guaranteed, as there are other factors that may prevent this connection type, Disabled: UDP will not attempt this connection type when making connections.
+ /// Default: AVD-wide settings are used to determine connection availability, Enabled: UDP will attempt this connection type when making connections. This means that this connection is possible, but is not guaranteed, as there are other factors that may prevent this connection type, Disabled: UDP will not attempt this connection type when making connections.
/// The fully qualified resource ID of the resource that manages this resource. Indicates if this resource is managed by another Azure resource. If this is present, complete mode deployment will not delete the resource if it is removed from the template since it is managed by another resource.
/// Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type. E.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value.
/// The etag field is *not* required. If it is provided in the response body, it must also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.
- /// Gets or sets the identity. Current supported identity types: SystemAssigned.
+ /// Managed service identity (system assigned and/or user assigned identities).
/// The resource model definition representing SKU.
- /// Gets or sets the plan.
+ /// Plan for the resource.
/// A new instance for mocking.
- public static HostPoolData HostPoolData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, string objectId = null, string friendlyName = null, string description = null, HostPoolType hostPoolType = default, PersonalDesktopAssignmentType? personalDesktopAssignmentType = null, string customRdpProperty = null, int? maxSessionLimit = null, HostPoolLoadBalancerType loadBalancerType = default, int? ring = null, bool? isValidationEnvironment = null, HostPoolRegistrationInfo registrationInfo = null, string vmTemplate = null, IEnumerable applicationGroupReferences = null, IEnumerable appAttachPackageReferences = null, string ssoAdfsAuthority = null, string ssoClientId = null, string ssoClientSecretKeyVaultPath = null, HostPoolSsoSecretType? ssoSecretType = null, PreferredAppGroupType preferredAppGroupType = default, bool? startVmOnConnect = null, bool? isCloudPCResource = null, HostPoolPublicNetworkAccess? publicNetworkAccess = null, SessionHostAgentUpdateProperties agentUpdate = null, IEnumerable privateEndpointConnections = null, ResourceIdentifier managedBy = null, string kind = null, ETag? etag = null, ManagedServiceIdentity identity = null, DesktopVirtualizationSku sku = null, ArmPlan plan = null)
+ public static HostPoolData HostPoolData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, string objectId = null, string friendlyName = null, string description = null, HostPoolType hostPoolType = default, PersonalDesktopAssignmentType? personalDesktopAssignmentType = null, string customRdpProperty = null, int? maxSessionLimit = null, HostPoolLoadBalancerType loadBalancerType = default, int? ring = null, bool? isValidationEnvironment = null, HostPoolRegistrationInfo registrationInfo = null, string vmTemplate = null, ManagementType? managementType = null, IEnumerable applicationGroupReferences = null, IEnumerable appAttachPackageReferences = null, string ssoAdfsAuthority = null, string ssoClientId = null, string ssoClientSecretKeyVaultPath = null, HostPoolSsoSecretType? ssoSecretType = null, PreferredAppGroupType preferredAppGroupType = default, bool? startVmOnConnect = null, bool? isCloudPCResource = null, HostPoolPublicNetworkAccess? publicNetworkAccess = null, SessionHostAgentUpdateProperties agentUpdate = null, IEnumerable privateEndpointConnections = null, ManagedPrivateUDP? managedPrivateUDP = null, DirectUDP? directUDP = null, PublicUDP? publicUDP = null, RelayUDP? relayUDP = null, ResourceIdentifier managedBy = null, string kind = null, ETag? etag = null, ManagedServiceIdentity identity = null, DesktopVirtualizationSku sku = null, ArmPlan plan = null)
{
tags ??= new Dictionary();
applicationGroupReferences ??= new List();
@@ -606,6 +615,7 @@ public static HostPoolData HostPoolData(ResourceIdentifier id = null, string nam
isValidationEnvironment,
registrationInfo,
vmTemplate,
+ managementType,
applicationGroupReferences?.ToList(),
appAttachPackageReferences?.ToList(),
ssoAdfsAuthority,
@@ -618,6 +628,10 @@ public static HostPoolData HostPoolData(ResourceIdentifier id = null, string nam
publicNetworkAccess,
agentUpdate,
privateEndpointConnections?.ToList(),
+ managedPrivateUDP,
+ directUDP,
+ publicUDP,
+ relayUDP,
managedBy,
kind,
etag,
@@ -641,7 +655,7 @@ public static HostPoolData HostPoolData(ResourceIdentifier id = null, string nam
/// The type of the load balancer.
/// The ring number of HostPool.
/// Is validation environment.
- /// The registration info of HostPool.
+ /// The registration info of HostPool. This is not returned on GET. In order to get the registration token use the retrieveRegistrationToken or listRegistrationTokens POST calls.
/// VM template for sessionhosts configuration within hostpool.
/// URL to customer ADFS server for signing WVD SSO certificates.
/// ClientId for the registered Relying Party used to issue WVD SSO certificates.
@@ -651,8 +665,12 @@ public static HostPoolData HostPoolData(ResourceIdentifier id = null, string nam
/// The flag to turn on/off StartVMOnConnect feature.
/// Enabled to allow this resource to be access from the public network.
/// The session host configuration for updating agent, monitoring agent, and stack component.
+ /// Default: AVD-wide settings are used to determine connection availability, Enabled: UDP will attempt this connection type when making connections. This means that this connection is possible, but is not guaranteed, as there are other factors that may prevent this connection type, Disabled: UDP will not attempt this connection type when making connections.
+ /// Default: AVD-wide settings are used to determine connection availability, Enabled: UDP will attempt this connection type when making connections. This means that this connection is possible, but is not guaranteed, as there are other factors that may prevent this connection type, Disabled: UDP will not attempt this connection type when making connections.
+ /// Default: AVD-wide settings are used to determine connection availability, Enabled: UDP will attempt this connection type when making connections. This means that this connection is possible, but is not guaranteed, as there are other factors that may prevent this connection type, Disabled: UDP will not attempt this connection type when making connections.
+ /// Default: AVD-wide settings are used to determine connection availability, Enabled: UDP will attempt this connection type when making connections. This means that this connection is possible, but is not guaranteed, as there are other factors that may prevent this connection type, Disabled: UDP will not attempt this connection type when making connections.
/// A new instance for mocking.
- public static HostPoolPatch HostPoolPatch(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, string friendlyName = null, string description = null, string customRdpProperty = null, int? maxSessionLimit = null, PersonalDesktopAssignmentType? personalDesktopAssignmentType = null, HostPoolLoadBalancerType? loadBalancerType = null, int? ring = null, bool? isValidationEnvironment = null, HostPoolRegistrationInfoPatch registrationInfo = null, string vmTemplate = null, string ssoAdfsAuthority = null, string ssoClientId = null, string ssoClientSecretKeyVaultPath = null, HostPoolSsoSecretType? ssoSecretType = null, PreferredAppGroupType? preferredAppGroupType = null, bool? startVmOnConnect = null, HostPoolPublicNetworkAccess? publicNetworkAccess = null, SessionHostAgentUpdatePatchProperties agentUpdate = null)
+ public static HostPoolPatch HostPoolPatch(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, string friendlyName = null, string description = null, string customRdpProperty = null, int? maxSessionLimit = null, PersonalDesktopAssignmentType? personalDesktopAssignmentType = null, HostPoolLoadBalancerType? loadBalancerType = null, int? ring = null, bool? isValidationEnvironment = null, HostPoolRegistrationInfoPatch registrationInfo = null, string vmTemplate = null, string ssoAdfsAuthority = null, string ssoClientId = null, string ssoClientSecretKeyVaultPath = null, HostPoolSsoSecretType? ssoSecretType = null, PreferredAppGroupType? preferredAppGroupType = null, bool? startVmOnConnect = null, HostPoolPublicNetworkAccess? publicNetworkAccess = null, SessionHostAgentUpdatePatchProperties agentUpdate = null, ManagedPrivateUDP? managedPrivateUDP = null, DirectUDP? directUDP = null, PublicUDP? publicUDP = null, RelayUDP? relayUDP = null)
{
tags ??= new Dictionary();
@@ -680,9 +698,203 @@ public static HostPoolPatch HostPoolPatch(ResourceIdentifier id = null, string n
startVmOnConnect,
publicNetworkAccess,
agentUpdate,
+ managedPrivateUDP,
+ directUDP,
+ publicUDP,
+ relayUDP,
+ serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// The id.
+ /// The name.
+ /// The resourceType.
+ /// The systemData.
+ /// Time zone for sessionHostManagement operations as defined in https://docs.microsoft.com/dotnet/api/system.timezoneinfo.findsystemtimezonebyid. Must be set if useLocalTime is true.
+ /// Parameters for a hostpool update.
+ /// A new instance for mocking.
+ public static SessionHostManagementData SessionHostManagementData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string scheduledDateTimeZone = null, HostPoolUpdateConfigurationProperties update = null)
+ {
+ return new SessionHostManagementData(
+ id,
+ name,
+ resourceType,
+ systemData,
+ scheduledDateTimeZone,
+ update,
+ serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// Action types for controlling hostpool update.
+ /// The cancel message sent to the user on the session host. This is can only be specified if the action is 'Cancel'.
+ /// A new instance for mocking.
+ public static HostPoolUpdateControlParameter HostPoolUpdateControlParameter(HostPoolUpdateAction action = default, string cancelMessage = null)
+ {
+ return new HostPoolUpdateControlParameter(action, cancelMessage, serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// Fully qualified ID for the async operation.
+ /// Name of the async operation.
+ /// Operation status. Current defined values are < Error | Scheduled | UpdatingSessionHosts | ValidatingSessionHostUpdate | Paused | Pausing | Cancelling > | Succeeded | Failed | Canceled.
+ /// Percent of the operation that is complete.
+ /// The start time of the operation.
+ /// The end time of the operation.
+ /// If present, details of the operation error.
+ /// The Log Analytics.
+ /// Progress information on the sessionHostManagement operation.
+ /// The timestamp that the update is scheduled for.
+ /// SessionHostManagement properties used for the operation.
+ /// A new instance for mocking.
+ public static SessionHostManagementUpdateStatus SessionHostManagementUpdateStatus(string id = null, string name = null, string status = null, float? percentComplete = null, DateTimeOffset? startOn = null, DateTimeOffset? endOn = null, ResponseError error = null, string correlationId = null, SessionHostManagementOperationProgress progress = null, DateTimeOffset? scheduledOn = null, SessionHostManagementData sessionHostManagement = null)
+ {
+ return new SessionHostManagementUpdateStatus(
+ id,
+ name,
+ status,
+ percentComplete,
+ startOn,
+ endOn,
+ error,
+ correlationId,
+ progress,
+ scheduledOn,
+ sessionHostManagement,
+ serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// Time that the sessionHostManagement operation was created.
+ /// The number of sessionHosts to be started in the sessionHostManagement operation.
+ /// The number of sessionHosts in progress in the sessionHostManagement operation.
+ /// The number of sessionHosts completed in the sessionHostManagement operation.
+ /// The number of sessionHosts rollback failed in the sessionHostManagement operation.
+ /// A new instance for mocking.
+ public static SessionHostManagementOperationProgress SessionHostManagementOperationProgress(DateTimeOffset? executionStartOn = null, int? totalSessionHosts = null, int? sessionHostsInProgress = null, int? sessionHostsCompleted = null, int? sessionHostsRollbackFailed = null)
+ {
+ return new SessionHostManagementOperationProgress(
+ executionStartOn,
+ totalSessionHosts,
+ sessionHostsInProgress,
+ sessionHostsCompleted,
+ sessionHostsRollbackFailed,
+ serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// The id.
+ /// The name.
+ /// The resourceType.
+ /// The systemData.
+ /// The timestamp of the last update.
+ /// Friendly name to describe this version of the SessionHostConfiguration.
+ /// Provisioning state of the Session Host Configuration.
+ /// Hashtable that lists key/value pair tags to apply to the VMs.
+ /// The Location for the session host to be created in. It will default to the location of the hostpool if not provided.
+ /// The ResourceGroup for the session hosts to be created in. It will default to the ResourceGroup of the hostpool if not provided.
+ /// The prefix that should be associated with session host names.
+ /// Value for availability zones to be used by the session host. Should be from [1,2,3].
+ /// Network information.
+ /// The id of the size of a virtual machine connected to a hostpool. Example: Standard_D2as_v6.
+ /// Disk information.
+ /// The uri to the storage blob containing the arm template to be run on the virtual machine after provisioning.
+ /// Image configurations of HostPool.
+ /// Domain configurations of session hosts.
+ /// Security information.
+ /// Local Admin credentials for session hosts.
+ /// Boot Diagnostics information.
+ /// A new instance for mocking.
+ public static SessionHostConfigurationData SessionHostConfigurationData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, DateTimeOffset? version = null, string friendlyName = null, ProvisioningStateSHC? provisioningState = null, IDictionary vmTags = null, string vmLocation = null, string vmResourceGroup = null, string vmNamePrefix = null, IEnumerable availabilityZones = null, NetworkInfoProperties networkInfo = null, string vmSizeId = null, VirtualMachineDiskType? virtualMachineDiskType = null, Uri customConfigurationScriptUri = null, ImageInfoProperties imageInfo = null, DomainInfoProperties domainInfo = null, SecurityInfoProperties securityInfo = null, KeyVaultCredentialsProperties vmAdminCredentials = null, BootDiagnosticsInfoProperties bootDiagnosticsInfo = null)
+ {
+ vmTags ??= new Dictionary();
+ availabilityZones ??= new List();
+
+ return new SessionHostConfigurationData(
+ id,
+ name,
+ resourceType,
+ systemData,
+ version,
+ friendlyName,
+ provisioningState,
+ vmTags,
+ vmLocation,
+ vmResourceGroup,
+ vmNamePrefix,
+ availabilityZones?.ToList(),
+ networkInfo,
+ vmSizeId,
+ virtualMachineDiskType.HasValue ? new DiskInfoProperties(virtualMachineDiskType.Value, serializedAdditionalRawData: null) : null,
+ customConfigurationScriptUri,
+ imageInfo,
+ domainInfo,
+ securityInfo,
+ vmAdminCredentials,
+ bootDiagnosticsInfo,
serializedAdditionalRawData: null);
}
+ /// Initializes a new instance of .
+ /// The id.
+ /// The name.
+ /// The resourceType.
+ /// The systemData.
+ /// The timestamp of the last update.
+ /// Friendly name to describe this version of the SessionHostConfiguration.
+ /// Hashtable that lists key/value pair tags to apply to the VMs.
+ /// The Location for the session host to be created in. It will default to the location of the hostpool if not provided.
+ /// The ResourceGroup for the session hosts to be created in. It will default to the ResourceGroup of the hostpool if not provided.
+ /// The prefix that should be associated with session host names.
+ /// Value for availability zones to be used by the session host. Should be from [1,2,3].
+ /// Network information.
+ /// The id of the size of a virtual machine connected to a hostpool. Example: Standard_D2as_v6.
+ /// Disk information.
+ /// The uri to the storage blob containing the arm template to be run on the virtual machine after provisioning.
+ /// Image configurations of HostPool.
+ /// Domain configurations of session hosts.
+ /// Security information.
+ /// Local Admin credentials for session hosts.
+ /// Boot Diagnostics information.
+ /// A new instance for mocking.
+ public static ActiveSessionHostConfigurationData ActiveSessionHostConfigurationData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, DateTimeOffset? version = null, string friendlyName = null, IDictionary vmTags = null, string vmLocation = null, string vmResourceGroup = null, string vmNamePrefix = null, IEnumerable availabilityZones = null, NetworkInfoProperties networkInfo = null, string vmSizeId = null, VirtualMachineDiskType? virtualMachineDiskType = null, Uri customConfigurationScriptUri = null, ImageInfoProperties imageInfo = null, DomainInfoProperties domainInfo = null, SecurityInfoProperties securityInfo = null, KeyVaultCredentialsProperties vmAdminCredentials = null, BootDiagnosticsInfoProperties bootDiagnosticsInfo = null)
+ {
+ vmTags ??= new Dictionary();
+ availabilityZones ??= new List();
+
+ return new ActiveSessionHostConfigurationData(
+ id,
+ name,
+ resourceType,
+ systemData,
+ version,
+ friendlyName,
+ vmTags,
+ vmLocation,
+ vmResourceGroup,
+ vmNamePrefix,
+ availabilityZones?.ToList(),
+ networkInfo,
+ vmSizeId,
+ virtualMachineDiskType.HasValue ? new DiskInfoProperties(virtualMachineDiskType.Value, serializedAdditionalRawData: null) : null,
+ customConfigurationScriptUri,
+ imageInfo,
+ domainInfo,
+ securityInfo,
+ vmAdminCredentials,
+ bootDiagnosticsInfo,
+ serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// Expiration time of registration token.
+ /// The registration token base64 encoded string.
+ /// A new instance for mocking.
+ public static RegistrationTokenMinimal RegistrationTokenMinimal(DateTimeOffset? expireOn = null, string token = null)
+ {
+ return new RegistrationTokenMinimal(expireOn, token, serializedAdditionalRawData: null);
+ }
+
/// Initializes a new instance of .
/// The id.
/// The name.
@@ -732,9 +944,11 @@ public static UserSessionData UserSessionData(ResourceIdentifier id = null, stri
/// Update state of a SessionHost.
/// The timestamp of the last update.
/// The error message.
+ /// The last time update was completed.
+ /// SessionHostConfiguration version reference at the time the update is initiated, in the format of date time. Example: 2024-04-26T04:56:45Z.
/// List of SessionHostHealthCheckReports.
/// A new instance for mocking.
- public static SessionHostData SessionHostData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string objectId = null, DateTimeOffset? lastHeartBeatOn = null, int? sessions = null, string agentVersion = null, bool? allowNewSession = null, string vmId = null, ResourceIdentifier resourceId = null, string assignedUser = null, string friendlyName = null, SessionHostStatus? status = null, DateTimeOffset? statusTimestamp = null, string osVersion = null, string sxsStackVersion = null, SessionHostUpdateState? updateState = null, DateTimeOffset? lastUpdatedOn = null, string updateErrorMessage = null, IEnumerable sessionHostHealthCheckResults = null)
+ public static SessionHostData SessionHostData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string objectId = null, DateTimeOffset? lastHeartBeatOn = null, int? sessions = null, string agentVersion = null, bool? allowNewSession = null, string vmId = null, ResourceIdentifier resourceId = null, string assignedUser = null, string friendlyName = null, SessionHostStatus? status = null, DateTimeOffset? statusTimestamp = null, string osVersion = null, string sxsStackVersion = null, SessionHostUpdateState? updateState = null, DateTimeOffset? lastUpdatedOn = null, string updateErrorMessage = null, DateTimeOffset? lastSessionHostUpdateOn = null, string sessionHostConfiguration = null, IEnumerable sessionHostHealthCheckResults = null)
{
sessionHostHealthCheckResults ??= new List();
@@ -759,6 +973,8 @@ public static SessionHostData SessionHostData(ResourceIdentifier id = null, stri
updateState,
lastUpdatedOn,
updateErrorMessage,
+ lastSessionHostUpdateOn,
+ sessionHostConfiguration,
sessionHostHealthCheckResults?.ToList(),
serializedAdditionalRawData: null);
}
@@ -818,7 +1034,7 @@ public static SessionHostPatch SessionHostPatch(ResourceIdentifier id = null, st
/// Specifies how to register Package in feed.
/// Make this version of the package the active one across the hostpool.
/// List of package dependencies.
- /// Package version found in the appxmanifest.xml.
+ /// Package Version found in the appxmanifest.xml.
/// Date Package was last updated, found in the appxmanifest.xml.
/// List of package applications.
/// A new instance for mocking.
@@ -896,10 +1112,13 @@ public static AppAttachPackageData AppAttachPackageData(ResourceIdentifier id =
/// The provisioning state of the App Attach Package.
/// Detailed properties for App Attach Package.
/// List of Hostpool resource Ids.
- /// URL path to certificate name located in keyVault.
+ /// URL of keyvault location to store certificate.
/// Parameter indicating how the health check should behave if this package fails staging.
+ /// Specific name of package owner, is "AppAttach" for native app attach packages.
+ /// Lookback url to third party control plane, is null for native app attach packages.
+ /// Field that can be populated with custom data and filtered on in list GET calls.
/// A new instance for mocking.
- public static AppAttachPackageProperties AppAttachPackageProperties(AppAttachPackageProvisioningState? provisioningState = null, AppAttachPackageInfoProperties image = null, IEnumerable hostPoolReferences = null, Uri keyVaultUri = null, FailHealthCheckOnStagingFailure? failHealthCheckOnStagingFailure = null)
+ public static AppAttachPackageProperties AppAttachPackageProperties(AppAttachPackageProvisioningState? provisioningState = null, AppAttachPackageInfoProperties image = null, IEnumerable hostPoolReferences = null, Uri keyVaultUri = null, FailHealthCheckOnStagingFailure? failHealthCheckOnStagingFailure = null, string packageOwnerName = null, Uri packageLookbackUri = null, string customData = null)
{
hostPoolReferences ??= new List();
@@ -909,6 +1128,9 @@ public static AppAttachPackageProperties AppAttachPackageProperties(AppAttachPac
hostPoolReferences?.ToList(),
keyVaultUri,
failHealthCheckOnStagingFailure,
+ packageOwnerName,
+ packageLookbackUri,
+ customData,
serializedAdditionalRawData: null);
}
@@ -927,7 +1149,7 @@ public static AppAttachPackageProperties AppAttachPackageProperties(AppAttachPac
/// Specifies how to register Package in feed.
/// Make this version of the package the active one across the hostpool.
/// List of package dependencies.
- /// Package version found in the appxmanifest.xml.
+ /// Package Version found in the appxmanifest.xml.
/// Date Package was last updated, found in the appxmanifest.xml.
/// List of package applications.
/// Certificate name found in the appxmanifest.xml.
@@ -966,19 +1188,211 @@ public static ExpandMsixImage ExpandMsixImage(ResourceIdentifier id = null, stri
/// The name.
/// The resourceType.
/// The systemData.
+ /// tags to be updated.
/// Detailed properties for App Attach Package.
/// A new instance for mocking.
- public static AppAttachPackagePatch AppAttachPackagePatch(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, AppAttachPackagePatchProperties properties = null)
+ public static AppAttachPackagePatch AppAttachPackagePatch(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AppAttachPackagePatchProperties properties = null)
{
+ tags ??= new Dictionary();
+
return new AppAttachPackagePatch(
id,
name,
resourceType,
systemData,
+ tags,
properties,
serializedAdditionalRawData: null);
}
+ /// Initializes a new instance of .
+ /// The id.
+ /// The name.
+ /// The resourceType.
+ /// The systemData.
+ /// Set of days of the week on which this schedule is active.
+ /// Starting time for ramp up period.
+ /// Load balancing algorithm for ramp up period.
+ /// Minimum host percentage for ramp up period.
+ /// Capacity threshold for ramp up period.
+ /// Starting time for peak period.
+ /// Load balancing algorithm for peak period.
+ /// Starting time for ramp down period.
+ /// Load balancing algorithm for ramp down period.
+ /// Minimum host percentage for ramp down period.
+ /// Capacity threshold for ramp down period.
+ /// Should users be logged off forcefully from hosts.
+ /// Specifies when to stop hosts during ramp down period.
+ /// Number of minutes to wait to stop hosts during ramp down period.
+ /// Notification message for users during ramp down period.
+ /// Starting time for off-peak period.
+ /// Load balancing algorithm for off-peak period.
+ /// A new instance for mocking.
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static ScalingPlanPooledScheduleData ScalingPlanPooledScheduleData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IEnumerable daysOfWeek, ScalingActionTime rampUpStartTime, SessionHostLoadBalancingAlgorithm? rampUpLoadBalancingAlgorithm, int? rampUpMinimumHostsPct, int? rampUpCapacityThresholdPct, ScalingActionTime peakStartTime, SessionHostLoadBalancingAlgorithm? peakLoadBalancingAlgorithm, ScalingActionTime rampDownStartTime, SessionHostLoadBalancingAlgorithm? rampDownLoadBalancingAlgorithm, int? rampDownMinimumHostsPct, int? rampDownCapacityThresholdPct, bool? rampDownForceLogoffUsers, DesktopVirtualizationStopHostsWhen? rampDownStopHostsWhen, int? rampDownWaitTimeMinutes, string rampDownNotificationMessage, ScalingActionTime offPeakStartTime, SessionHostLoadBalancingAlgorithm? offPeakLoadBalancingAlgorithm)
+ {
+ return ScalingPlanPooledScheduleData(id: id, name: name, resourceType: resourceType, systemData: systemData, namePropertiesName: default, daysOfWeek: daysOfWeek, rampUpStartTime: rampUpStartTime, rampUpLoadBalancingAlgorithm: rampUpLoadBalancingAlgorithm, rampUpMinimumHostsPct: rampUpMinimumHostsPct, rampUpCapacityThresholdPct: rampUpCapacityThresholdPct, peakStartTime: peakStartTime, peakLoadBalancingAlgorithm: peakLoadBalancingAlgorithm, rampDownStartTime: rampDownStartTime, rampDownLoadBalancingAlgorithm: rampDownLoadBalancingAlgorithm, rampDownMinimumHostsPct: rampDownMinimumHostsPct, rampDownCapacityThresholdPct: rampDownCapacityThresholdPct, rampDownForceLogoffUsers: rampDownForceLogoffUsers, rampDownStopHostsWhen: rampDownStopHostsWhen, rampDownWaitTimeMinutes: rampDownWaitTimeMinutes, rampDownNotificationMessage: rampDownNotificationMessage, offPeakStartTime: offPeakStartTime, offPeakLoadBalancingAlgorithm: offPeakLoadBalancingAlgorithm);
+ }
+
+ /// Initializes a new instance of .
+ /// The id.
+ /// The name.
+ /// The resourceType.
+ /// The systemData.
+ /// Set of days of the week on which this schedule is active.
+ /// Starting time for ramp up period.
+ /// Load balancing algorithm for ramp up period.
+ /// Minimum host percentage for ramp up period.
+ /// Capacity threshold for ramp up period.
+ /// Starting time for peak period.
+ /// Load balancing algorithm for peak period.
+ /// Starting time for ramp down period.
+ /// Load balancing algorithm for ramp down period.
+ /// Minimum host percentage for ramp down period.
+ /// Capacity threshold for ramp down period.
+ /// Should users be logged off forcefully from hosts.
+ /// Specifies when to stop hosts during ramp down period.
+ /// Number of minutes to wait to stop hosts during ramp down period.
+ /// Notification message for users during ramp down period.
+ /// Starting time for off-peak period.
+ /// Load balancing algorithm for off-peak period.
+ /// A new instance for mocking.
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static ScalingPlanPooledSchedulePatch ScalingPlanPooledSchedulePatch(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IEnumerable daysOfWeek, ScalingActionTime rampUpStartTime, SessionHostLoadBalancingAlgorithm? rampUpLoadBalancingAlgorithm, int? rampUpMinimumHostsPct, int? rampUpCapacityThresholdPct, ScalingActionTime peakStartTime, SessionHostLoadBalancingAlgorithm? peakLoadBalancingAlgorithm, ScalingActionTime rampDownStartTime, SessionHostLoadBalancingAlgorithm? rampDownLoadBalancingAlgorithm, int? rampDownMinimumHostsPct, int? rampDownCapacityThresholdPct, bool? rampDownForceLogoffUsers, DesktopVirtualizationStopHostsWhen? rampDownStopHostsWhen, int? rampDownWaitTimeMinutes, string rampDownNotificationMessage, ScalingActionTime offPeakStartTime, SessionHostLoadBalancingAlgorithm? offPeakLoadBalancingAlgorithm)
+ {
+ return ScalingPlanPooledSchedulePatch(id: id, name: name, resourceType: resourceType, systemData: systemData, namePropertiesName: default, daysOfWeek: daysOfWeek, rampUpStartTime: rampUpStartTime, rampUpLoadBalancingAlgorithm: rampUpLoadBalancingAlgorithm, rampUpMinimumHostsPct: rampUpMinimumHostsPct, rampUpCapacityThresholdPct: rampUpCapacityThresholdPct, peakStartTime: peakStartTime, peakLoadBalancingAlgorithm: peakLoadBalancingAlgorithm, rampDownStartTime: rampDownStartTime, rampDownLoadBalancingAlgorithm: rampDownLoadBalancingAlgorithm, rampDownMinimumHostsPct: rampDownMinimumHostsPct, rampDownCapacityThresholdPct: rampDownCapacityThresholdPct, rampDownForceLogoffUsers: rampDownForceLogoffUsers, rampDownStopHostsWhen: rampDownStopHostsWhen, rampDownWaitTimeMinutes: rampDownWaitTimeMinutes, rampDownNotificationMessage: rampDownNotificationMessage, offPeakStartTime: offPeakStartTime, offPeakLoadBalancingAlgorithm: offPeakLoadBalancingAlgorithm);
+ }
+
+ /// Initializes a new instance of .
+ /// The id.
+ /// The name.
+ /// The resourceType.
+ /// The systemData.
+ /// The tags.
+ /// The location.
+ /// ObjectId of HostPool. (internal use).
+ /// Friendly name of HostPool.
+ /// Description of HostPool.
+ /// HostPool type for desktop.
+ /// PersonalDesktopAssignment type for HostPool.
+ /// Custom rdp property of HostPool.
+ /// The max session limit of HostPool.
+ /// The type of the load balancer.
+ /// The ring number of HostPool.
+ /// Is validation environment.
+ /// The registration info of HostPool.
+ /// VM template for sessionhosts configuration within hostpool.
+ /// List of applicationGroup links.
+ /// List of App Attach Package links.
+ /// URL to customer ADFS server for signing WVD SSO certificates.
+ /// ClientId for the registered Relying Party used to issue WVD SSO certificates.
+ /// Path to Azure KeyVault storing the secret used for communication to ADFS.
+ /// The type of single sign on Secret Type.
+ /// The type of preferred application group type, default to Desktop Application Group.
+ /// The flag to turn on/off StartVMOnConnect feature.
+ /// Is cloud pc resource.
+ /// Enabled allows this resource to be accessed from both public and private networks, Disabled allows this resource to only be accessed via private endpoints.
+ /// The session host configuration for updating agent, monitoring agent, and stack component.
+ /// List of private endpoint connection associated with the specified resource.
+ /// The fully qualified resource ID of the resource that manages this resource. Indicates if this resource is managed by another Azure resource. If this is present, complete mode deployment will not delete the resource if it is removed from the template since it is managed by another resource.
+ /// Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type. E.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value.
+ /// The etag field is *not* required. If it is provided in the response body, it must also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.
+ /// Gets or sets the identity. Current supported identity types: SystemAssigned.
+ /// The resource model definition representing SKU.
+ /// Gets or sets the plan.
+ /// A new instance for mocking.
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static HostPoolData HostPoolData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, string objectId, string friendlyName, string description, HostPoolType hostPoolType, PersonalDesktopAssignmentType? personalDesktopAssignmentType, string customRdpProperty, int? maxSessionLimit, HostPoolLoadBalancerType loadBalancerType, int? ring, bool? isValidationEnvironment, HostPoolRegistrationInfo registrationInfo, string vmTemplate, IEnumerable applicationGroupReferences, IEnumerable appAttachPackageReferences, string ssoAdfsAuthority, string ssoClientId, string ssoClientSecretKeyVaultPath, HostPoolSsoSecretType? ssoSecretType, PreferredAppGroupType preferredAppGroupType, bool? startVmOnConnect, bool? isCloudPCResource, HostPoolPublicNetworkAccess? publicNetworkAccess, SessionHostAgentUpdateProperties agentUpdate, IEnumerable privateEndpointConnections, ResourceIdentifier managedBy, string kind, ETag? etag, ManagedServiceIdentity identity, DesktopVirtualizationSku sku, ArmPlan plan)
+ {
+ return HostPoolData(id: id, name: name, resourceType: resourceType, systemData: systemData, tags: tags, location: location, objectId: objectId, friendlyName: friendlyName, description: description, hostPoolType: hostPoolType, personalDesktopAssignmentType: personalDesktopAssignmentType, customRdpProperty: customRdpProperty, maxSessionLimit: maxSessionLimit, loadBalancerType: loadBalancerType, ring: ring, isValidationEnvironment: isValidationEnvironment, registrationInfo: registrationInfo, vmTemplate: vmTemplate, managementType: default, applicationGroupReferences: applicationGroupReferences, appAttachPackageReferences: appAttachPackageReferences, ssoAdfsAuthority: ssoAdfsAuthority, ssoClientId: ssoClientId, ssoClientSecretKeyVaultPath: ssoClientSecretKeyVaultPath, ssoSecretType: ssoSecretType, preferredAppGroupType: preferredAppGroupType, startVmOnConnect: startVmOnConnect, isCloudPCResource: isCloudPCResource, publicNetworkAccess: publicNetworkAccess, agentUpdate: agentUpdate, privateEndpointConnections: privateEndpointConnections, managedPrivateUDP: default, directUDP: default, publicUDP: default, relayUDP: default, managedBy: managedBy, kind: kind, etag: etag, identity: identity, sku: sku, plan: plan);
+ }
+
+ /// Initializes a new instance of .
+ /// The id.
+ /// The name.
+ /// The resourceType.
+ /// The systemData.
+ /// tags to be updated.
+ /// Friendly name of HostPool.
+ /// Description of HostPool.
+ /// Custom rdp property of HostPool.
+ /// The max session limit of HostPool.
+ /// PersonalDesktopAssignment type for HostPool.
+ /// The type of the load balancer.
+ /// The ring number of HostPool.
+ /// Is validation environment.
+ /// The registration info of HostPool.
+ /// VM template for sessionhosts configuration within hostpool.
+ /// URL to customer ADFS server for signing WVD SSO certificates.
+ /// ClientId for the registered Relying Party used to issue WVD SSO certificates.
+ /// Path to Azure KeyVault storing the secret used for communication to ADFS.
+ /// The type of single sign on Secret Type.
+ /// The type of preferred application group type, default to Desktop Application Group.
+ /// The flag to turn on/off StartVMOnConnect feature.
+ /// Enabled to allow this resource to be access from the public network.
+ /// The session host configuration for updating agent, monitoring agent, and stack component.
+ /// A new instance for mocking.
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static HostPoolPatch HostPoolPatch(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, string friendlyName, string description, string customRdpProperty, int? maxSessionLimit, PersonalDesktopAssignmentType? personalDesktopAssignmentType, HostPoolLoadBalancerType? loadBalancerType, int? ring, bool? isValidationEnvironment, HostPoolRegistrationInfoPatch registrationInfo, string vmTemplate, string ssoAdfsAuthority, string ssoClientId, string ssoClientSecretKeyVaultPath, HostPoolSsoSecretType? ssoSecretType, PreferredAppGroupType? preferredAppGroupType, bool? startVmOnConnect, HostPoolPublicNetworkAccess? publicNetworkAccess, SessionHostAgentUpdatePatchProperties agentUpdate)
+ {
+ return HostPoolPatch(id: id, name: name, resourceType: resourceType, systemData: systemData, tags: tags, friendlyName: friendlyName, description: description, customRdpProperty: customRdpProperty, maxSessionLimit: maxSessionLimit, personalDesktopAssignmentType: personalDesktopAssignmentType, loadBalancerType: loadBalancerType, ring: ring, isValidationEnvironment: isValidationEnvironment, registrationInfo: registrationInfo, vmTemplate: vmTemplate, ssoAdfsAuthority: ssoAdfsAuthority, ssoClientId: ssoClientId, ssoClientSecretKeyVaultPath: ssoClientSecretKeyVaultPath, ssoSecretType: ssoSecretType, preferredAppGroupType: preferredAppGroupType, startVmOnConnect: startVmOnConnect, publicNetworkAccess: publicNetworkAccess, agentUpdate: agentUpdate, managedPrivateUDP: default, directUDP: default, publicUDP: default, relayUDP: default);
+ }
+
+ /// Initializes a new instance of .
+ /// The id.
+ /// The name.
+ /// The resourceType.
+ /// The systemData.
+ /// ObjectId of SessionHost. (internal use).
+ /// Last heart beat from SessionHost.
+ /// Number of sessions on SessionHost.
+ /// Version of agent on SessionHost.
+ /// Allow a new session.
+ /// Virtual Machine Id of SessionHost's underlying virtual machine.
+ /// Resource Id of SessionHost's underlying virtual machine.
+ /// User assigned to SessionHost.
+ /// Friendly name of SessionHost.
+ /// Status for a SessionHost.
+ /// The timestamp of the status.
+ /// The version of the OS on the session host.
+ /// The version of the side by side stack on the session host.
+ /// Update state of a SessionHost.
+ /// The timestamp of the last update.
+ /// The error message.
+ /// List of SessionHostHealthCheckReports.
+ /// A new instance for mocking.
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static SessionHostData SessionHostData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string objectId, DateTimeOffset? lastHeartBeatOn, int? sessions, string agentVersion, bool? allowNewSession, string vmId, ResourceIdentifier resourceId, string assignedUser, string friendlyName, SessionHostStatus? status, DateTimeOffset? statusTimestamp, string osVersion, string sxsStackVersion, SessionHostUpdateState? updateState, DateTimeOffset? lastUpdatedOn, string updateErrorMessage, IEnumerable sessionHostHealthCheckResults)
+ {
+ return SessionHostData(id: id, name: name, resourceType: resourceType, systemData: systemData, objectId: objectId, lastHeartBeatOn: lastHeartBeatOn, sessions: sessions, agentVersion: agentVersion, allowNewSession: allowNewSession, vmId: vmId, resourceId: resourceId, assignedUser: assignedUser, friendlyName: friendlyName, status: status, statusTimestamp: statusTimestamp, osVersion: osVersion, sxsStackVersion: sxsStackVersion, updateState: updateState, lastUpdatedOn: lastUpdatedOn, updateErrorMessage: updateErrorMessage, lastSessionHostUpdateOn: default, sessionHostConfiguration: default, sessionHostHealthCheckResults: sessionHostHealthCheckResults);
+ }
+
+ /// Initializes a new instance of .
+ /// The provisioning state of the App Attach Package.
+ /// Detailed properties for App Attach Package.
+ /// List of Hostpool resource Ids.
+ /// URL path to certificate name located in keyVault.
+ /// Parameter indicating how the health check should behave if this package fails staging.
+ /// A new instance for mocking.
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static AppAttachPackageProperties AppAttachPackageProperties(AppAttachPackageProvisioningState? provisioningState, AppAttachPackageInfoProperties image, IEnumerable hostPoolReferences, Uri keyVaultUri, FailHealthCheckOnStagingFailure? failHealthCheckOnStagingFailure)
+ {
+ return AppAttachPackageProperties(provisioningState: provisioningState, image: image, hostPoolReferences: hostPoolReferences, keyVaultUri: keyVaultUri, failHealthCheckOnStagingFailure: failHealthCheckOnStagingFailure, packageOwnerName: default, packageLookbackUri: default, customData: default);
+ }
+
+ /// Initializes a new instance of .
+ /// The id.
+ /// The name.
+ /// The resourceType.
+ /// The systemData.
+ /// Detailed properties for App Attach Package.
+ /// A new instance for mocking.
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public static AppAttachPackagePatch AppAttachPackagePatch(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, AppAttachPackagePatchProperties properties)
+ {
+ return AppAttachPackagePatch(id: id, name: name, resourceType: resourceType, systemData: systemData, tags: default, properties: properties);
+ }
+
/// Initializes a new instance of DesktopVirtualizationPrivateEndpointConnection.
/// The id.
/// The name.
@@ -1049,7 +1463,7 @@ public static DesktopVirtualizationPrivateEndpointConnectionDataData DesktopVirt
[EditorBrowsable(EditorBrowsableState.Never)]
public static HostPoolData HostPoolData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, string objectId, string friendlyName, string description, HostPoolType hostPoolType, PersonalDesktopAssignmentType? personalDesktopAssignmentType, string customRdpProperty, int? maxSessionLimit, HostPoolLoadBalancerType loadBalancerType, int? ring, bool? isValidationEnvironment, HostPoolRegistrationInfo registrationInfo, string vmTemplate, IEnumerable applicationGroupReferences, string ssoAdfsAuthority, string ssoClientId, string ssoClientSecretKeyVaultPath, HostPoolSsoSecretType? ssoSecretType, PreferredAppGroupType preferredAppGroupType, bool? startVmOnConnect, bool? isCloudPCResource, HostPoolPublicNetworkAccess? publicNetworkAccess, SessionHostAgentUpdateProperties agentUpdate, IEnumerable privateEndpointConnections, ResourceIdentifier managedBy, string kind, ETag? etag, ManagedServiceIdentity identity, DesktopVirtualizationSku sku, ArmPlan plan)
{
- return HostPoolData(id: id, name: name, resourceType: resourceType, systemData: systemData, tags: tags, location: location, objectId: objectId, friendlyName: friendlyName, description: description, hostPoolType: hostPoolType, personalDesktopAssignmentType: personalDesktopAssignmentType, customRdpProperty: customRdpProperty, maxSessionLimit: maxSessionLimit, loadBalancerType: loadBalancerType, ring: ring, isValidationEnvironment: isValidationEnvironment, registrationInfo: registrationInfo, vmTemplate: vmTemplate, applicationGroupReferences: applicationGroupReferences, appAttachPackageReferences: default, ssoAdfsAuthority: ssoAdfsAuthority, ssoClientId: ssoClientId, ssoClientSecretKeyVaultPath: ssoClientSecretKeyVaultPath, ssoSecretType: ssoSecretType, preferredAppGroupType: preferredAppGroupType, startVmOnConnect: startVmOnConnect, isCloudPCResource: isCloudPCResource, publicNetworkAccess: publicNetworkAccess, agentUpdate: agentUpdate, privateEndpointConnections: privateEndpointConnections, managedBy: managedBy, kind: kind, etag: etag, identity: identity, sku: sku, plan: plan);
+ return HostPoolData(id: id, name: name, resourceType: resourceType, systemData: systemData, tags: tags, location: location, objectId: objectId, friendlyName: friendlyName, description: description, hostPoolType: hostPoolType, personalDesktopAssignmentType: personalDesktopAssignmentType, customRdpProperty: customRdpProperty, maxSessionLimit: maxSessionLimit, loadBalancerType: loadBalancerType, ring: ring, isValidationEnvironment: isValidationEnvironment, registrationInfo: registrationInfo, vmTemplate: vmTemplate, managementType: default, applicationGroupReferences: applicationGroupReferences, appAttachPackageReferences: default, ssoAdfsAuthority: ssoAdfsAuthority, ssoClientId: ssoClientId, ssoClientSecretKeyVaultPath: ssoClientSecretKeyVaultPath, ssoSecretType: ssoSecretType, preferredAppGroupType: preferredAppGroupType, startVmOnConnect: startVmOnConnect, isCloudPCResource: isCloudPCResource, publicNetworkAccess: publicNetworkAccess, agentUpdate: agentUpdate, privateEndpointConnections: privateEndpointConnections, managedPrivateUDP: default, directUDP: default, publicUDP: default, relayUDP: default, managedBy: managedBy, kind: kind, etag: etag, identity: identity, sku: sku, plan: plan);
}
/// Initializes a new instance of ExpandMsixImage.
diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Extensions/DesktopVirtualizationExtensions.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Extensions/DesktopVirtualizationExtensions.cs
index 641ebfdd02b5..40611ba83dd0 100644
--- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Extensions/DesktopVirtualizationExtensions.cs
+++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Extensions/DesktopVirtualizationExtensions.cs
@@ -222,6 +222,63 @@ public static HostPoolResource GetHostPoolResource(this ArmClient client, Resour
return GetMockableDesktopVirtualizationArmClient(client).GetHostPoolResource(id);
}
+ ///
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
+ /// -
+ /// Mocking
+ /// To mock this method, please mock instead.
+ ///
+ ///
+ /// The instance the method will execute against.
+ /// The resource ID of the resource to get.
+ /// is null.
+ /// Returns a object.
+ public static SessionHostManagementResource GetSessionHostManagementResource(this ArmClient client, ResourceIdentifier id)
+ {
+ Argument.AssertNotNull(client, nameof(client));
+
+ return GetMockableDesktopVirtualizationArmClient(client).GetSessionHostManagementResource(id);
+ }
+
+ ///
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
+ /// -
+ /// Mocking
+ /// To mock this method, please mock instead.
+ ///
+ ///
+ /// The instance the method will execute against.
+ /// The resource ID of the resource to get.
+ /// is null.
+ /// Returns a object.
+ public static SessionHostConfigurationResource GetSessionHostConfigurationResource(this ArmClient client, ResourceIdentifier id)
+ {
+ Argument.AssertNotNull(client, nameof(client));
+
+ return GetMockableDesktopVirtualizationArmClient(client).GetSessionHostConfigurationResource(id);
+ }
+
+ ///
+ /// Gets an object representing an along with the instance operations that can be performed on it but with no data.
+ /// You can use to create an from its components.
+ /// -
+ /// Mocking
+ /// To mock this method, please mock instead.
+ ///
+ ///
+ /// The instance the method will execute against.
+ /// The resource ID of the resource to get.
+ /// is null.
+ /// Returns a object.
+ public static ActiveSessionHostConfigurationResource GetActiveSessionHostConfigurationResource(this ArmClient client, ResourceIdentifier id)
+ {
+ Argument.AssertNotNull(client, nameof(client));
+
+ return GetMockableDesktopVirtualizationArmClient(client).GetActiveSessionHostConfigurationResource(id);
+ }
+
///
/// Gets an object representing an along with the instance operations that can be performed on it but with no data.
/// You can use to create an from its components.
@@ -328,7 +385,7 @@ public static VirtualWorkspaceCollection GetVirtualWorkspaces(this ResourceGroup
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2024-08-08-preview
///
/// -
/// Resource
@@ -366,7 +423,7 @@ public static async Task> GetVirtualWorkspace
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2024-08-08-preview
///
/// -
/// Resource
@@ -421,7 +478,7 @@ public static ScalingPlanCollection GetScalingPlans(this ResourceGroupResource r
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2024-08-08-preview
///
/// -
/// Resource
@@ -459,7 +516,7 @@ public static async Task> GetScalingPlanAsync(this
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2024-08-08-preview
///
/// -
/// Resource
@@ -514,7 +571,7 @@ public static VirtualApplicationGroupCollection GetVirtualApplicationGroups(this
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2024-08-08-preview
///
/// -
/// Resource
@@ -552,7 +609,7 @@ public static async Task> GetVirtualAp
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2024-08-08-preview
///
/// -
/// Resource
@@ -607,7 +664,7 @@ public static HostPoolCollection GetHostPools(this ResourceGroupResource resourc
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2024-08-08-preview
///
/// -
/// Resource
@@ -645,7 +702,7 @@ public static async Task> GetHostPoolAsync(this Resou
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2024-08-08-preview
///
/// -
/// Resource
@@ -700,7 +757,7 @@ public static AppAttachPackageCollection GetAppAttachPackages(this ResourceGroup
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2024-08-08-preview
///
/// -
/// Resource
@@ -713,7 +770,7 @@ public static AppAttachPackageCollection GetAppAttachPackages(this ResourceGroup
///
///
/// The instance the method will execute against.
- /// The name of the App Attach package.
+ /// The name of the App Attach package arm object.
/// The cancellation token to use.
/// or is null.
/// is an empty string, and was expected to be non-empty.
@@ -738,7 +795,7 @@ public static async Task> GetAppAttachPackage
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2024-08-08-preview
///
/// -
/// Resource
@@ -751,7 +808,7 @@ public static async Task> GetAppAttachPackage
///
///
/// The instance the method will execute against.
- /// The name of the App Attach package.
+ /// The name of the App Attach package arm object.
/// The cancellation token to use.
/// or is null.
/// is an empty string, and was expected to be non-empty.
@@ -776,7 +833,7 @@ public static Response GetAppAttachPackage(this Resour
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2024-08-08-preview
///
/// -
/// Resource
@@ -812,7 +869,7 @@ public static AsyncPageable GetVirtualWorkspacesAsync(
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2024-08-08-preview
///
/// -
/// Resource
@@ -848,7 +905,7 @@ public static Pageable GetVirtualWorkspaces(this Subsc
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2024-08-08-preview
///
/// -
/// Resource
@@ -887,7 +944,7 @@ public static AsyncPageable GetScalingPlansAsync(this Subsc
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2024-08-08-preview
///
/// -
/// Resource
@@ -926,7 +983,7 @@ public static Pageable GetScalingPlans(this SubscriptionRes
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2024-08-08-preview
///
/// -
/// Resource
@@ -963,7 +1020,7 @@ public static AsyncPageable GetVirtualApplicati
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2024-08-08-preview
///
/// -
/// Resource
@@ -1000,7 +1057,7 @@ public static Pageable GetVirtualApplicationGro
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2024-08-08-preview
///
/// -
/// Resource
@@ -1039,7 +1096,7 @@ public static AsyncPageable GetHostPoolsAsync(this Subscriptio
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2024-08-08-preview
///
/// -
/// Resource
@@ -1078,7 +1135,7 @@ public static Pageable GetHostPools(this SubscriptionResource
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2024-08-08-preview
///
/// -
/// Resource
@@ -1091,7 +1148,7 @@ public static Pageable GetHostPools(this SubscriptionResource
///
///
/// The instance the method will execute against.
- /// OData filter expression. Valid properties for filtering are package name, host pool, and resource group.
+ /// OData filter expression. Valid properties for filtering are package name, resource group, host pool, package owner name, and custom data.
/// The cancellation token to use.
/// is null.
/// An async collection of that may take multiple service requests to iterate over.
@@ -1115,7 +1172,7 @@ public static AsyncPageable GetAppAttachPackagesAsync(
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2024-08-08-preview
///
/// -
/// Resource
@@ -1128,7 +1185,7 @@ public static AsyncPageable GetAppAttachPackagesAsync(
///
///
/// The instance the method will execute against.
- /// OData filter expression. Valid properties for filtering are package name, host pool, and resource group.
+ /// OData filter expression. Valid properties for filtering are package name, resource group, host pool, package owner name, and custom data.
/// The cancellation token to use.
/// is null.
/// A collection of that may take multiple service requests to iterate over.
diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Extensions/MockableDesktopVirtualizationArmClient.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Extensions/MockableDesktopVirtualizationArmClient.cs
index 7efa6c0ac63f..f2cf29481962 100644
--- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Extensions/MockableDesktopVirtualizationArmClient.cs
+++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Extensions/MockableDesktopVirtualizationArmClient.cs
@@ -154,6 +154,42 @@ public virtual HostPoolResource GetHostPoolResource(ResourceIdentifier id)
return new HostPoolResource(Client, id);
}
+ ///
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
+ ///
+ /// The resource ID of the resource to get.
+ /// Returns a object.
+ public virtual SessionHostManagementResource GetSessionHostManagementResource(ResourceIdentifier id)
+ {
+ SessionHostManagementResource.ValidateResourceId(id);
+ return new SessionHostManagementResource(Client, id);
+ }
+
+ ///
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
+ ///
+ /// The resource ID of the resource to get.
+ /// Returns a object.
+ public virtual SessionHostConfigurationResource GetSessionHostConfigurationResource(ResourceIdentifier id)
+ {
+ SessionHostConfigurationResource.ValidateResourceId(id);
+ return new SessionHostConfigurationResource(Client, id);
+ }
+
+ ///
+ /// Gets an object representing an along with the instance operations that can be performed on it but with no data.
+ /// You can use to create an from its components.
+ ///
+ /// The resource ID of the resource to get.
+ /// Returns a object.
+ public virtual ActiveSessionHostConfigurationResource GetActiveSessionHostConfigurationResource(ResourceIdentifier id)
+ {
+ ActiveSessionHostConfigurationResource.ValidateResourceId(id);
+ return new ActiveSessionHostConfigurationResource(Client, id);
+ }
+
///
/// Gets an object representing an along with the instance operations that can be performed on it but with no data.
/// You can use to create an from its components.
diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Extensions/MockableDesktopVirtualizationResourceGroupResource.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Extensions/MockableDesktopVirtualizationResourceGroupResource.cs
index 45290221f07e..d455ca53eabb 100644
--- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Extensions/MockableDesktopVirtualizationResourceGroupResource.cs
+++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Extensions/MockableDesktopVirtualizationResourceGroupResource.cs
@@ -53,7 +53,7 @@ public virtual VirtualWorkspaceCollection GetVirtualWorkspaces()
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2024-08-08-preview
///
/// -
/// Resource
@@ -84,7 +84,7 @@ public virtual async Task> GetVirtualWorkspac
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2024-08-08-preview
///
/// -
/// Resource
@@ -122,7 +122,7 @@ public virtual ScalingPlanCollection GetScalingPlans()
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2024-08-08-preview
///
/// -
/// Resource
@@ -153,7 +153,7 @@ public virtual async Task> GetScalingPlanAsync(str
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2024-08-08-preview
///
/// -
/// Resource
@@ -191,7 +191,7 @@ public virtual VirtualApplicationGroupCollection GetVirtualApplicationGroups()
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2024-08-08-preview
///
/// -
/// Resource
@@ -222,7 +222,7 @@ public virtual async Task> GetVirtualA
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2024-08-08-preview
///
/// -
/// Resource
@@ -260,7 +260,7 @@ public virtual HostPoolCollection GetHostPools()
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2024-08-08-preview
///
/// -
/// Resource
@@ -291,7 +291,7 @@ public virtual async Task> GetHostPoolAsync(string ho
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2024-08-08-preview
///
/// -
/// Resource
@@ -329,7 +329,7 @@ public virtual AppAttachPackageCollection GetAppAttachPackages()
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2024-08-08-preview
///
/// -
/// Resource
@@ -337,7 +337,7 @@ public virtual AppAttachPackageCollection GetAppAttachPackages()
///
///
///
- /// The name of the App Attach package.
+ /// The name of the App Attach package arm object.
/// The cancellation token to use.
/// is null.
/// is an empty string, and was expected to be non-empty.
@@ -360,7 +360,7 @@ public virtual async Task> GetAppAttachPackag
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2024-08-08-preview
///
/// -
/// Resource
@@ -368,7 +368,7 @@ public virtual async Task> GetAppAttachPackag
///
///
///
- /// The name of the App Attach package.
+ /// The name of the App Attach package arm object.
/// The cancellation token to use.
/// is null.
/// is an empty string, and was expected to be non-empty.
diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Extensions/MockableDesktopVirtualizationSubscriptionResource.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Extensions/MockableDesktopVirtualizationSubscriptionResource.cs
index b29ed49e7ebc..fce7b767a015 100644
--- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Extensions/MockableDesktopVirtualizationSubscriptionResource.cs
+++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Extensions/MockableDesktopVirtualizationSubscriptionResource.cs
@@ -68,7 +68,7 @@ private string GetApiVersionOrNull(ResourceType resourceType)
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2024-08-08-preview
///
/// -
/// Resource
@@ -98,7 +98,7 @@ public virtual AsyncPageable GetVirtualWorkspacesAsync
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2024-08-08-preview
///
/// -
/// Resource
@@ -128,7 +128,7 @@ public virtual Pageable GetVirtualWorkspaces(Cancellat
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2024-08-08-preview
///
/// -
/// Resource
@@ -161,7 +161,7 @@ public virtual AsyncPageable GetScalingPlansAsync(int? page
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2024-08-08-preview
///
/// -
/// Resource
@@ -194,7 +194,7 @@ public virtual Pageable GetScalingPlans(int? pageSize = nul
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2024-08-08-preview
///
/// -
/// Resource
@@ -225,7 +225,7 @@ public virtual AsyncPageable GetVirtualApplicat
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2024-08-08-preview
///
/// -
/// Resource
@@ -256,7 +256,7 @@ public virtual Pageable GetVirtualApplicationGr
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2024-08-08-preview
///
/// -
/// Resource
@@ -289,7 +289,7 @@ public virtual AsyncPageable GetHostPoolsAsync(int? pageSize =
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2024-08-08-preview
///
/// -
/// Resource
@@ -322,7 +322,7 @@ public virtual Pageable GetHostPools(int? pageSize = null, boo
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2024-08-08-preview
///
/// -
/// Resource
@@ -330,7 +330,7 @@ public virtual Pageable GetHostPools(int? pageSize = null, boo
///
///
///
- /// OData filter expression. Valid properties for filtering are package name, host pool, and resource group.
+ /// OData filter expression. Valid properties for filtering are package name, resource group, host pool, package owner name, and custom data.
/// The cancellation token to use.
/// An async collection of that may take multiple service requests to iterate over.
public virtual AsyncPageable GetAppAttachPackagesAsync(string filter = null, CancellationToken cancellationToken = default)
@@ -353,7 +353,7 @@ public virtual AsyncPageable GetAppAttachPackagesAsync
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2024-08-08-preview
///
/// -
/// Resource
@@ -361,7 +361,7 @@ public virtual AsyncPageable GetAppAttachPackagesAsync
///
///
///
- /// OData filter expression. Valid properties for filtering are package name, host pool, and resource group.
+ /// OData filter expression. Valid properties for filtering are package name, resource group, host pool, package owner name, and custom data.
/// The cancellation token to use.
/// A collection of that may take multiple service requests to iterate over.
public virtual Pageable GetAppAttachPackages(string filter = null, CancellationToken cancellationToken = default)
diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/HostPoolCollection.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/HostPoolCollection.cs
index 76c4a8cdf508..d7b45082f406 100644
--- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/HostPoolCollection.cs
+++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/HostPoolCollection.cs
@@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id)
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2024-08-08-preview
///
/// -
/// Resource
@@ -116,7 +116,7 @@ public virtual async Task> CreateOrUpdateAsync(Wa
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2024-08-08-preview
///
/// -
/// Resource
@@ -167,7 +167,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2024-08-08-preview
///
/// -
/// Resource
@@ -212,7 +212,7 @@ public virtual async Task> GetAsync(string hostPoolNa
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2024-08-08-preview
///
/// -
/// Resource
@@ -257,7 +257,7 @@ public virtual Response Get(string hostPoolName, CancellationT
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2024-08-08-preview
///
/// -
/// Resource
@@ -290,7 +290,7 @@ public virtual AsyncPageable GetAllAsync(int? pageSize = null,
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2024-08-08-preview
///
/// -
/// Resource
@@ -323,7 +323,7 @@ public virtual Pageable GetAll(int? pageSize = null, bool? isD
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2024-08-08-preview
///
/// -
/// Resource
@@ -366,7 +366,7 @@ public virtual async Task> ExistsAsync(string hostPoolName, Cance
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2024-08-08-preview
///
/// -
/// Resource
@@ -409,7 +409,7 @@ public virtual Response Exists(string hostPoolName, CancellationToken canc
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2024-08-08-preview
///
/// -
/// Resource
@@ -454,7 +454,7 @@ public virtual async Task> GetIfExistsAsync(s
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2024-08-08-preview
///
/// -
/// Resource
diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/HostPoolData.Serialization.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/HostPoolData.Serialization.cs
index 05bc4487299e..5fb208573d39 100644
--- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/HostPoolData.Serialization.cs
+++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/HostPoolData.Serialization.cs
@@ -57,7 +57,8 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri
if (Optional.IsDefined(Identity))
{
writer.WritePropertyName("identity"u8);
- JsonSerializer.Serialize(writer, Identity);
+ var serializeOptions = new JsonSerializerOptions { Converters = { new ManagedServiceIdentityTypeV3Converter() } };
+ JsonSerializer.Serialize(writer, Identity, serializeOptions);
}
if (Optional.IsDefined(Sku))
{
@@ -160,6 +161,11 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri
writer.WritePropertyName("vmTemplate"u8);
writer.WriteStringValue(VmTemplate);
}
+ if (Optional.IsDefined(ManagementType))
+ {
+ writer.WritePropertyName("managementType"u8);
+ writer.WriteStringValue(ManagementType.Value.ToString());
+ }
if (options.Format != "W" && Optional.IsCollectionDefined(ApplicationGroupReferences))
{
if (ApplicationGroupReferences != null)
@@ -266,20 +272,33 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri
}
if (options.Format != "W" && Optional.IsCollectionDefined(PrivateEndpointConnections))
{
- if (PrivateEndpointConnections != null)
- {
- writer.WritePropertyName("privateEndpointConnections"u8);
- writer.WriteStartArray();
- foreach (var item in PrivateEndpointConnections)
- {
- writer.WriteObjectValue(item, options);
- }
- writer.WriteEndArray();
- }
- else
+ writer.WritePropertyName("privateEndpointConnections"u8);
+ writer.WriteStartArray();
+ foreach (var item in PrivateEndpointConnections)
{
- writer.WriteNull("privateEndpointConnections");
+ writer.WriteObjectValue(item, options);
}
+ writer.WriteEndArray();
+ }
+ if (Optional.IsDefined(ManagedPrivateUDP))
+ {
+ writer.WritePropertyName("managedPrivateUDP"u8);
+ writer.WriteStringValue(ManagedPrivateUDP.Value.ToString());
+ }
+ if (Optional.IsDefined(DirectUDP))
+ {
+ writer.WritePropertyName("directUDP"u8);
+ writer.WriteStringValue(DirectUDP.Value.ToString());
+ }
+ if (Optional.IsDefined(PublicUDP))
+ {
+ writer.WritePropertyName("publicUDP"u8);
+ writer.WriteStringValue(PublicUDP.Value.ToString());
+ }
+ if (Optional.IsDefined(RelayUDP))
+ {
+ writer.WritePropertyName("relayUDP"u8);
+ writer.WriteStringValue(RelayUDP.Value.ToString());
}
writer.WriteEndObject();
}
@@ -328,6 +347,7 @@ internal static HostPoolData DeserializeHostPoolData(JsonElement element, ModelR
bool? validationEnvironment = default;
HostPoolRegistrationInfo registrationInfo = default;
string vmTemplate = default;
+ ManagementType? managementType = default;
IReadOnlyList applicationGroupReferences = default;
IReadOnlyList appAttachPackageReferences = default;
string ssoadfsAuthority = default;
@@ -340,6 +360,10 @@ internal static HostPoolData DeserializeHostPoolData(JsonElement element, ModelR
HostPoolPublicNetworkAccess? publicNetworkAccess = default;
SessionHostAgentUpdateProperties agentUpdate = default;
IReadOnlyList privateEndpointConnections = default;
+ ManagedPrivateUDP? managedPrivateUDP = default;
+ DirectUDP? directUDP = default;
+ PublicUDP? publicUDP = default;
+ RelayUDP? relayUDP = default;
IDictionary serializedAdditionalRawData = default;
Dictionary rawDataDictionary = new Dictionary();
foreach (var property in element.EnumerateObject())
@@ -373,7 +397,8 @@ internal static HostPoolData DeserializeHostPoolData(JsonElement element, ModelR
{
continue;
}
- identity = JsonSerializer.Deserialize(property.Value.GetRawText());
+ var serializeOptions = new JsonSerializerOptions { Converters = { new ManagedServiceIdentityTypeV3Converter() } };
+ identity = JsonSerializer.Deserialize(property.Value.GetRawText(), serializeOptions);
continue;
}
if (property.NameEquals("sku"u8))
@@ -531,6 +556,15 @@ internal static HostPoolData DeserializeHostPoolData(JsonElement element, ModelR
vmTemplate = property0.Value.GetString();
continue;
}
+ if (property0.NameEquals("managementType"u8))
+ {
+ if (property0.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ managementType = new ManagementType(property0.Value.GetString());
+ continue;
+ }
if (property0.NameEquals("applicationGroupReferences"u8))
{
if (property0.Value.ValueKind == JsonValueKind.Null)
@@ -634,7 +668,6 @@ internal static HostPoolData DeserializeHostPoolData(JsonElement element, ModelR
{
if (property0.Value.ValueKind == JsonValueKind.Null)
{
- privateEndpointConnections = null;
continue;
}
List array = new List();
@@ -645,6 +678,42 @@ internal static HostPoolData DeserializeHostPoolData(JsonElement element, ModelR
privateEndpointConnections = array;
continue;
}
+ if (property0.NameEquals("managedPrivateUDP"u8))
+ {
+ if (property0.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ managedPrivateUDP = new ManagedPrivateUDP(property0.Value.GetString());
+ continue;
+ }
+ if (property0.NameEquals("directUDP"u8))
+ {
+ if (property0.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ directUDP = new DirectUDP(property0.Value.GetString());
+ continue;
+ }
+ if (property0.NameEquals("publicUDP"u8))
+ {
+ if (property0.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ publicUDP = new PublicUDP(property0.Value.GetString());
+ continue;
+ }
+ if (property0.NameEquals("relayUDP"u8))
+ {
+ if (property0.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ relayUDP = new RelayUDP(property0.Value.GetString());
+ continue;
+ }
}
continue;
}
@@ -673,6 +742,7 @@ internal static HostPoolData DeserializeHostPoolData(JsonElement element, ModelR
validationEnvironment,
registrationInfo,
vmTemplate,
+ managementType,
applicationGroupReferences ?? new ChangeTrackingList(),
appAttachPackageReferences ?? new ChangeTrackingList(),
ssoadfsAuthority,
@@ -685,6 +755,10 @@ internal static HostPoolData DeserializeHostPoolData(JsonElement element, ModelR
publicNetworkAccess,
agentUpdate,
privateEndpointConnections ?? new ChangeTrackingList(),
+ managedPrivateUDP,
+ directUDP,
+ publicUDP,
+ relayUDP,
managedBy,
kind,
etag,
@@ -1122,6 +1196,21 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options)
}
}
+ hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(ManagementType), out propertyOverride);
+ if (hasPropertyOverride)
+ {
+ builder.Append(" managementType: ");
+ builder.AppendLine(propertyOverride);
+ }
+ else
+ {
+ if (Optional.IsDefined(ManagementType))
+ {
+ builder.Append(" managementType: ");
+ builder.AppendLine($"'{ManagementType.Value.ToString()}'");
+ }
+ }
+
hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(ApplicationGroupReferences), out propertyOverride);
if (hasPropertyOverride)
{
@@ -1375,6 +1464,66 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options)
}
}
+ hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(ManagedPrivateUDP), out propertyOverride);
+ if (hasPropertyOverride)
+ {
+ builder.Append(" managedPrivateUDP: ");
+ builder.AppendLine(propertyOverride);
+ }
+ else
+ {
+ if (Optional.IsDefined(ManagedPrivateUDP))
+ {
+ builder.Append(" managedPrivateUDP: ");
+ builder.AppendLine($"'{ManagedPrivateUDP.Value.ToString()}'");
+ }
+ }
+
+ hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(DirectUDP), out propertyOverride);
+ if (hasPropertyOverride)
+ {
+ builder.Append(" directUDP: ");
+ builder.AppendLine(propertyOverride);
+ }
+ else
+ {
+ if (Optional.IsDefined(DirectUDP))
+ {
+ builder.Append(" directUDP: ");
+ builder.AppendLine($"'{DirectUDP.Value.ToString()}'");
+ }
+ }
+
+ hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(PublicUDP), out propertyOverride);
+ if (hasPropertyOverride)
+ {
+ builder.Append(" publicUDP: ");
+ builder.AppendLine(propertyOverride);
+ }
+ else
+ {
+ if (Optional.IsDefined(PublicUDP))
+ {
+ builder.Append(" publicUDP: ");
+ builder.AppendLine($"'{PublicUDP.Value.ToString()}'");
+ }
+ }
+
+ hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(RelayUDP), out propertyOverride);
+ if (hasPropertyOverride)
+ {
+ builder.Append(" relayUDP: ");
+ builder.AppendLine(propertyOverride);
+ }
+ else
+ {
+ if (Optional.IsDefined(RelayUDP))
+ {
+ builder.Append(" relayUDP: ");
+ builder.AppendLine($"'{RelayUDP.Value.ToString()}'");
+ }
+ }
+
builder.AppendLine(" }");
builder.AppendLine("}");
return BinaryData.FromString(builder.ToString());
diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/HostPoolData.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/HostPoolData.cs
index 5a870d8b5a30..691f11754a80 100644
--- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/HostPoolData.cs
+++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/HostPoolData.cs
@@ -83,8 +83,9 @@ public HostPoolData(AzureLocation location, HostPoolType hostPoolType, HostPoolL
/// The type of the load balancer.
/// The ring number of HostPool.
/// Is validation environment.
- /// The registration info of HostPool.
+ /// The registration info of HostPool. This is not returned on GET. In order to get the registration token use the retrieveRegistrationToken or listRegistrationTokens POST calls.
/// VM template for sessionhosts configuration within hostpool.
+ /// The type of management for this hostpool, Automated or Standard. The default value is Automated.
/// List of applicationGroup links.
/// List of App Attach Package links.
/// URL to customer ADFS server for signing WVD SSO certificates.
@@ -97,14 +98,18 @@ public HostPoolData(AzureLocation location, HostPoolType hostPoolType, HostPoolL
/// Enabled allows this resource to be accessed from both public and private networks, Disabled allows this resource to only be accessed via private endpoints.
/// The session host configuration for updating agent, monitoring agent, and stack component.
/// List of private endpoint connection associated with the specified resource.
+ /// Default: AVD-wide settings are used to determine connection availability, Enabled: UDP will attempt this connection type when making connections. This means that this connection is possible, but is not guaranteed, as there are other factors that may prevent this connection type, Disabled: UDP will not attempt this connection type when making connections.
+ /// Default: AVD-wide settings are used to determine connection availability, Enabled: UDP will attempt this connection type when making connections. This means that this connection is possible, but is not guaranteed, as there are other factors that may prevent this connection type, Disabled: UDP will not attempt this connection type when making connections.
+ /// Default: AVD-wide settings are used to determine connection availability, Enabled: UDP will attempt this connection type when making connections. This means that this connection is possible, but is not guaranteed, as there are other factors that may prevent this connection type, Disabled: UDP will not attempt this connection type when making connections.
+ /// Default: AVD-wide settings are used to determine connection availability, Enabled: UDP will attempt this connection type when making connections. This means that this connection is possible, but is not guaranteed, as there are other factors that may prevent this connection type, Disabled: UDP will not attempt this connection type when making connections.
/// The fully qualified resource ID of the resource that manages this resource. Indicates if this resource is managed by another Azure resource. If this is present, complete mode deployment will not delete the resource if it is removed from the template since it is managed by another resource.
/// Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type. E.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value.
/// The etag field is *not* required. If it is provided in the response body, it must also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.
- /// Gets or sets the identity. Current supported identity types: SystemAssigned.
+ /// Managed service identity (system assigned and/or user assigned identities).
/// The resource model definition representing SKU.
- /// Gets or sets the plan.
+ /// Plan for the resource.
/// Keeps track of any properties unknown to the library.
- internal HostPoolData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, string objectId, string friendlyName, string description, HostPoolType hostPoolType, PersonalDesktopAssignmentType? personalDesktopAssignmentType, string customRdpProperty, int? maxSessionLimit, HostPoolLoadBalancerType loadBalancerType, int? ring, bool? isValidationEnvironment, HostPoolRegistrationInfo registrationInfo, string vmTemplate, IReadOnlyList applicationGroupReferences, IReadOnlyList appAttachPackageReferences, string ssoAdfsAuthority, string ssoClientId, string ssoClientSecretKeyVaultPath, HostPoolSsoSecretType? ssoSecretType, PreferredAppGroupType preferredAppGroupType, bool? startVmOnConnect, bool? isCloudPCResource, HostPoolPublicNetworkAccess? publicNetworkAccess, SessionHostAgentUpdateProperties agentUpdate, IReadOnlyList privateEndpointConnections, ResourceIdentifier managedBy, string kind, ETag? etag, ManagedServiceIdentity identity, DesktopVirtualizationSku sku, ArmPlan plan, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData, tags, location)
+ internal HostPoolData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, string objectId, string friendlyName, string description, HostPoolType hostPoolType, PersonalDesktopAssignmentType? personalDesktopAssignmentType, string customRdpProperty, int? maxSessionLimit, HostPoolLoadBalancerType loadBalancerType, int? ring, bool? isValidationEnvironment, HostPoolRegistrationInfo registrationInfo, string vmTemplate, ManagementType? managementType, IReadOnlyList applicationGroupReferences, IReadOnlyList appAttachPackageReferences, string ssoAdfsAuthority, string ssoClientId, string ssoClientSecretKeyVaultPath, HostPoolSsoSecretType? ssoSecretType, PreferredAppGroupType preferredAppGroupType, bool? startVmOnConnect, bool? isCloudPCResource, HostPoolPublicNetworkAccess? publicNetworkAccess, SessionHostAgentUpdateProperties agentUpdate, IReadOnlyList privateEndpointConnections, ManagedPrivateUDP? managedPrivateUDP, DirectUDP? directUDP, PublicUDP? publicUDP, RelayUDP? relayUDP, ResourceIdentifier managedBy, string kind, ETag? etag, ManagedServiceIdentity identity, DesktopVirtualizationSku sku, ArmPlan plan, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData, tags, location)
{
ObjectId = objectId;
FriendlyName = friendlyName;
@@ -118,6 +123,7 @@ internal HostPoolData(ResourceIdentifier id, string name, ResourceType resourceT
IsValidationEnvironment = isValidationEnvironment;
RegistrationInfo = registrationInfo;
VmTemplate = vmTemplate;
+ ManagementType = managementType;
ApplicationGroupReferences = applicationGroupReferences;
AppAttachPackageReferences = appAttachPackageReferences;
SsoAdfsAuthority = ssoAdfsAuthority;
@@ -130,6 +136,10 @@ internal HostPoolData(ResourceIdentifier id, string name, ResourceType resourceT
PublicNetworkAccess = publicNetworkAccess;
AgentUpdate = agentUpdate;
PrivateEndpointConnections = privateEndpointConnections;
+ ManagedPrivateUDP = managedPrivateUDP;
+ DirectUDP = directUDP;
+ PublicUDP = publicUDP;
+ RelayUDP = relayUDP;
ManagedBy = managedBy;
Kind = kind;
ETag = etag;
@@ -174,12 +184,15 @@ internal HostPoolData()
/// Is validation environment.
[WirePath("properties.validationEnvironment")]
public bool? IsValidationEnvironment { get; set; }
- /// The registration info of HostPool.
+ /// The registration info of HostPool. This is not returned on GET. In order to get the registration token use the retrieveRegistrationToken or listRegistrationTokens POST calls.
[WirePath("properties.registrationInfo")]
public HostPoolRegistrationInfo RegistrationInfo { get; set; }
/// VM template for sessionhosts configuration within hostpool.
[WirePath("properties.vmTemplate")]
public string VmTemplate { get; set; }
+ /// The type of management for this hostpool, Automated or Standard. The default value is Automated.
+ [WirePath("properties.managementType")]
+ public ManagementType? ManagementType { get; set; }
/// List of applicationGroup links.
[WirePath("properties.applicationGroupReferences")]
public IReadOnlyList ApplicationGroupReferences { get; }
@@ -216,6 +229,18 @@ internal HostPoolData()
/// List of private endpoint connection associated with the specified resource.
[WirePath("properties.privateEndpointConnections")]
public IReadOnlyList PrivateEndpointConnections { get; }
+ /// Default: AVD-wide settings are used to determine connection availability, Enabled: UDP will attempt this connection type when making connections. This means that this connection is possible, but is not guaranteed, as there are other factors that may prevent this connection type, Disabled: UDP will not attempt this connection type when making connections.
+ [WirePath("properties.managedPrivateUDP")]
+ public ManagedPrivateUDP? ManagedPrivateUDP { get; set; }
+ /// Default: AVD-wide settings are used to determine connection availability, Enabled: UDP will attempt this connection type when making connections. This means that this connection is possible, but is not guaranteed, as there are other factors that may prevent this connection type, Disabled: UDP will not attempt this connection type when making connections.
+ [WirePath("properties.directUDP")]
+ public DirectUDP? DirectUDP { get; set; }
+ /// Default: AVD-wide settings are used to determine connection availability, Enabled: UDP will attempt this connection type when making connections. This means that this connection is possible, but is not guaranteed, as there are other factors that may prevent this connection type, Disabled: UDP will not attempt this connection type when making connections.
+ [WirePath("properties.publicUDP")]
+ public PublicUDP? PublicUDP { get; set; }
+ /// Default: AVD-wide settings are used to determine connection availability, Enabled: UDP will attempt this connection type when making connections. This means that this connection is possible, but is not guaranteed, as there are other factors that may prevent this connection type, Disabled: UDP will not attempt this connection type when making connections.
+ [WirePath("properties.relayUDP")]
+ public RelayUDP? RelayUDP { get; set; }
/// The fully qualified resource ID of the resource that manages this resource. Indicates if this resource is managed by another Azure resource. If this is present, complete mode deployment will not delete the resource if it is removed from the template since it is managed by another resource.
[WirePath("managedBy")]
public ResourceIdentifier ManagedBy { get; set; }
@@ -225,13 +250,13 @@ internal HostPoolData()
/// The etag field is *not* required. If it is provided in the response body, it must also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.
[WirePath("etag")]
public ETag? ETag { get; }
- /// Gets or sets the identity. Current supported identity types: SystemAssigned.
+ /// Managed service identity (system assigned and/or user assigned identities).
[WirePath("identity")]
public ManagedServiceIdentity Identity { get; set; }
/// The resource model definition representing SKU.
[WirePath("sku")]
public DesktopVirtualizationSku Sku { get; set; }
- /// Gets or sets the plan.
+ /// Plan for the resource.
[WirePath("plan")]
public ArmPlan Plan { get; set; }
}
diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/HostPoolPrivateEndpointConnectionCollection.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/HostPoolPrivateEndpointConnectionCollection.cs
index 33ffc142b577..5839d4e66901 100644
--- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/HostPoolPrivateEndpointConnectionCollection.cs
+++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/HostPoolPrivateEndpointConnectionCollection.cs
@@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id)
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2024-08-08-preview
///
/// -
/// Resource
@@ -116,7 +116,7 @@ public virtual async Task
///
-
/// Default Api Version
- /// 2024-04-03
+ /// 2024-08-08-preview
///
/// -
/// Resource
@@ -167,7 +167,7 @@ public virtual ArmOperation CreateOrU
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2024-08-08-preview
///
/// -
/// Resource
@@ -212,7 +212,7 @@ public virtual async Task> G
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2024-08-08-preview
///
/// -
/// Resource
@@ -257,7 +257,7 @@ public virtual Response Get(string pr
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2024-08-08-preview
///
/// -
/// Resource
@@ -290,7 +290,7 @@ public virtual AsyncPageable GetAllAs
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2024-08-08-preview
///
/// -
/// Resource
@@ -323,7 +323,7 @@ public virtual Pageable GetAll(int? p
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2024-08-08-preview
///
/// -
/// Resource
@@ -366,7 +366,7 @@ public virtual async Task> ExistsAsync(string privateEndpointConn
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2024-08-08-preview
///
/// -
/// Resource
@@ -409,7 +409,7 @@ public virtual Response Exists(string privateEndpointConnectionName, Cance
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2024-08-08-preview
///
/// -
/// Resource
@@ -454,7 +454,7 @@ public virtual async Task
///
-
/// Default Api Version
- /// 2024-04-03
+ /// 2024-08-08-preview
///
/// -
/// Resource
diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/HostPoolPrivateEndpointConnectionResource.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/HostPoolPrivateEndpointConnectionResource.cs
index 306816ca5eaf..ee7801abbfb9 100644
--- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/HostPoolPrivateEndpointConnectionResource.cs
+++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/HostPoolPrivateEndpointConnectionResource.cs
@@ -102,7 +102,7 @@ internal static void ValidateResourceId(ResourceIdentifier id)
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2024-08-08-preview
///
/// -
/// Resource
@@ -142,7 +142,7 @@ public virtual async Task> G
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2024-08-08-preview
///
/// -
/// Resource
@@ -182,7 +182,7 @@ public virtual Response Get(Cancellat
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2024-08-08-preview
///
/// -
/// Resource
@@ -226,7 +226,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2024-08-08-preview
///
/// -
/// Resource
@@ -270,7 +270,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2024-08-08-preview
///
/// -
/// Resource
@@ -318,7 +318,7 @@ public virtual async Task
///
-
/// Default Api Version
- /// 2024-04-03
+ /// 2024-08-08-preview
///
/// -
/// Resource
diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/HostPoolResource.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/HostPoolResource.cs
index 97f440be1dc0..2e2c48c88eea 100644
--- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/HostPoolResource.cs
+++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/HostPoolResource.cs
@@ -133,7 +133,7 @@ public virtual HostPoolPrivateEndpointConnectionCollection GetHostPoolPrivateEnd
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2024-08-08-preview
///
/// -
/// Resource
@@ -164,7 +164,7 @@ public virtual async Task> G
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2024-08-08-preview
///
/// -
/// Resource
@@ -182,6 +182,27 @@ public virtual Response GetHostPoolPr
return GetHostPoolPrivateEndpointConnections().Get(privateEndpointConnectionName, cancellationToken);
}
+ /// Gets an object representing a SessionHostManagementResource along with the instance operations that can be performed on it in the HostPool.
+ /// Returns a object.
+ public virtual SessionHostManagementResource GetSessionHostManagement()
+ {
+ return new SessionHostManagementResource(Client, Id.AppendChildResource("sessionHostManagements", "default"));
+ }
+
+ /// Gets an object representing a SessionHostConfigurationResource along with the instance operations that can be performed on it in the HostPool.
+ /// Returns a object.
+ public virtual SessionHostConfigurationResource GetSessionHostConfiguration()
+ {
+ return new SessionHostConfigurationResource(Client, Id.AppendChildResource("sessionHostConfigurations", "default"));
+ }
+
+ /// Gets an object representing a ActiveSessionHostConfigurationResource along with the instance operations that can be performed on it in the HostPool.
+ /// Returns a object.
+ public virtual ActiveSessionHostConfigurationResource GetActiveSessionHostConfiguration()
+ {
+ return new ActiveSessionHostConfigurationResource(Client, Id.AppendChildResource("activeSessionHostConfigurations", "default"));
+ }
+
/// Gets a collection of SessionHostResources in the HostPool.
/// An object representing collection of SessionHostResources and their operations over a SessionHostResource.
public virtual SessionHostCollection GetSessionHosts()
@@ -202,7 +223,7 @@ public virtual SessionHostCollection GetSessionHosts()
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2024-08-08-preview
///
/// -
/// Resource
@@ -233,7 +254,7 @@ public virtual async Task> GetSessionHostAsync(str
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2024-08-08-preview
///
/// -
/// Resource
@@ -271,7 +292,7 @@ public virtual MsixPackageCollection GetMsixPackages()
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2024-08-08-preview
///
/// -
/// Resource
@@ -302,7 +323,7 @@ public virtual async Task> GetMsixPackageAsync(str
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2024-08-08-preview
///
/// -
/// Resource
@@ -333,7 +354,7 @@ public virtual Response GetMsixPackage(string msixPackageFu
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2024-08-08-preview
///
/// -
/// Resource
@@ -373,7 +394,7 @@ public virtual async Task> GetAsync(CancellationToken
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2024-08-08-preview
///
/// -
/// Resource
@@ -413,7 +434,7 @@ public virtual Response Get(CancellationToken cancellationToke
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2024-08-08-preview
///
/// -
/// Resource
@@ -458,7 +479,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, bool? f
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2024-08-08-preview
///
/// -
/// Resource
@@ -503,7 +524,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, bool? force = null, Canc
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2024-08-08-preview
///
/// -
/// Resource
@@ -545,7 +566,7 @@ public virtual async Task> UpdateAsync(HostPoolPatch
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2024-08-08-preview
///
/// -
/// Resource
@@ -587,7 +608,7 @@ public virtual Response Update(HostPoolPatch patch, Cancellati
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2024-08-08-preview
///
///
///
@@ -616,7 +637,7 @@ public virtual AsyncPageable GetPr
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2024-08-08-preview
///
///
///
@@ -645,7 +666,7 @@ public virtual Pageable GetPrivate
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2024-08-08-preview
///
/// -
/// Resource
@@ -678,7 +699,7 @@ public virtual AsyncPageable GetScalingPlansAsync(int? page
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2024-08-08-preview
///
/// -
/// Resource
@@ -711,7 +732,7 @@ public virtual Pageable GetScalingPlans(int? pageSize = nul
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2024-08-08-preview
///
/// -
/// Resource
@@ -749,7 +770,7 @@ public virtual async Task> RetrieveRegistrati
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2024-08-08-preview
///
/// -
/// Resource
@@ -774,6 +795,64 @@ public virtual Response RetrieveRegistrationToken(Canc
}
}
+ ///
+ /// Operation to list the RegistrationTokens associated with the HostPool.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/listRegistrationTokens
+ ///
+ /// -
+ /// Operation Id
+ /// HostPools_ListRegistrationTokens
+ ///
+ /// -
+ /// Default Api Version
+ /// 2024-08-08-preview
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// The cancellation token to use.
+ /// An async collection of that may take multiple service requests to iterate over.
+ public virtual AsyncPageable GetRegistrationTokensAsync(CancellationToken cancellationToken = default)
+ {
+ HttpMessage FirstPageRequest(int? pageSizeHint) => _hostPoolRestClient.CreateListRegistrationTokensRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name);
+ return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, null, e => RegistrationTokenMinimal.DeserializeRegistrationTokenMinimal(e), _hostPoolClientDiagnostics, Pipeline, "HostPoolResource.GetRegistrationTokens", "value", null, cancellationToken);
+ }
+
+ ///
+ /// Operation to list the RegistrationTokens associated with the HostPool.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/listRegistrationTokens
+ ///
+ /// -
+ /// Operation Id
+ /// HostPools_ListRegistrationTokens
+ ///
+ /// -
+ /// Default Api Version
+ /// 2024-08-08-preview
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// The cancellation token to use.
+ /// A collection of that may take multiple service requests to iterate over.
+ public virtual Pageable GetRegistrationTokens(CancellationToken cancellationToken = default)
+ {
+ HttpMessage FirstPageRequest(int? pageSizeHint) => _hostPoolRestClient.CreateListRegistrationTokensRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name);
+ return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, null, e => RegistrationTokenMinimal.DeserializeRegistrationTokenMinimal(e), _hostPoolClientDiagnostics, Pipeline, "HostPoolResource.GetRegistrationTokens", "value", null, cancellationToken);
+ }
+
///
/// List userSessions.
///
@@ -787,7 +866,7 @@ public virtual Response RetrieveRegistrationToken(Canc
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2024-08-08-preview
///
/// -
/// Resource
@@ -821,7 +900,7 @@ public virtual AsyncPageable GetUserSessionsAsync(string fi
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2024-08-08-preview
///
/// -
/// Resource
@@ -855,7 +934,7 @@ public virtual Pageable GetUserSessions(string filter = nul
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2024-08-08-preview
///
///
///
@@ -885,7 +964,7 @@ public virtual AsyncPageable ImportAppAttachPackageInf
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2024-08-08-preview
///
///
///
@@ -915,7 +994,7 @@ public virtual Pageable ImportAppAttachPackageInfos(Im
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2024-08-08-preview
///
///
///
@@ -945,7 +1024,7 @@ public virtual AsyncPageable ExpandMsixImagesAsync(MsixImageUri
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2024-08-08-preview
///
///
///
@@ -975,7 +1054,7 @@ public virtual Pageable ExpandMsixImages(MsixImageUri msixImage
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2024-08-08-preview
///
/// -
/// Resource
@@ -1037,7 +1116,7 @@ public virtual async Task> AddTagAsync(string key, st
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2024-08-08-preview
///
/// -
/// Resource
@@ -1099,7 +1178,7 @@ public virtual Response AddTag(string key, string value, Cance
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2024-08-08-preview
///
/// -
/// Resource
@@ -1156,7 +1235,7 @@ public virtual async Task> SetTagsAsync(IDictionary
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2024-08-08-preview
///
/// -
/// Resource
@@ -1213,7 +1292,7 @@ public virtual Response SetTags(IDictionary ta
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2024-08-08-preview
///
/// -
/// Resource
@@ -1273,7 +1352,7 @@ public virtual async Task> RemoveTagAsync(string key,
///
/// -
/// Default Api Version
- /// 2024-04-03
+ /// 2024-08-08-preview
///
/// -
/// Resource
diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/LongRunningOperation/SessionHostConfigurationOperationSource.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/LongRunningOperation/SessionHostConfigurationOperationSource.cs
new file mode 100644
index 000000000000..31218d597d27
--- /dev/null
+++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/LongRunningOperation/SessionHostConfigurationOperationSource.cs
@@ -0,0 +1,38 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System.Text.Json;
+using System.Threading;
+using System.Threading.Tasks;
+using Azure.Core;
+
+namespace Azure.ResourceManager.DesktopVirtualization
+{
+ internal class SessionHostConfigurationOperationSource : IOperationSource
+ {
+ private readonly ArmClient _client;
+
+ internal SessionHostConfigurationOperationSource(ArmClient client)
+ {
+ _client = client;
+ }
+
+ SessionHostConfigurationResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken)
+ {
+ using var document = JsonDocument.Parse(response.ContentStream);
+ var data = SessionHostConfigurationData.DeserializeSessionHostConfigurationData(document.RootElement);
+ return new SessionHostConfigurationResource(_client, data);
+ }
+
+ async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken)
+ {
+ using var document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false);
+ var data = SessionHostConfigurationData.DeserializeSessionHostConfigurationData(document.RootElement);
+ return new SessionHostConfigurationResource(_client, data);
+ }
+ }
+}
diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/ActiveDirectoryInfoPatchProperties.Serialization.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/ActiveDirectoryInfoPatchProperties.Serialization.cs
new file mode 100644
index 000000000000..e559a89b1268
--- /dev/null
+++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/ActiveDirectoryInfoPatchProperties.Serialization.cs
@@ -0,0 +1,133 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.ClientModel.Primitives;
+using System.Collections.Generic;
+using System.Text.Json;
+using Azure.Core;
+
+namespace Azure.ResourceManager.DesktopVirtualization.Models
+{
+ internal partial class ActiveDirectoryInfoPatchProperties : IUtf8JsonSerializable, IJsonModel
+ {
+ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions);
+
+ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options)
+ {
+ writer.WriteStartObject();
+ JsonModelWriteCore(writer, options);
+ writer.WriteEndObject();
+ }
+
+ /// The JSON writer.
+ /// The client options for reading and writing models.
+ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+ if (format != "J")
+ {
+ throw new FormatException($"The model {nameof(ActiveDirectoryInfoPatchProperties)} does not support writing '{format}' format.");
+ }
+
+ if (Optional.IsDefined(DomainCredentials))
+ {
+ writer.WritePropertyName("domainCredentials"u8);
+ writer.WriteObjectValue(DomainCredentials, options);
+ }
+ if (options.Format != "W" && _serializedAdditionalRawData != null)
+ {
+ foreach (var item in _serializedAdditionalRawData)
+ {
+ writer.WritePropertyName(item.Key);
+#if NET6_0_OR_GREATER
+ writer.WriteRawValue(item.Value);
+#else
+ using (JsonDocument document = JsonDocument.Parse(item.Value))
+ {
+ JsonSerializer.Serialize(writer, document.RootElement);
+ }
+#endif
+ }
+ }
+ }
+
+ ActiveDirectoryInfoPatchProperties IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+ if (format != "J")
+ {
+ throw new FormatException($"The model {nameof(ActiveDirectoryInfoPatchProperties)} does not support reading '{format}' format.");
+ }
+
+ using JsonDocument document = JsonDocument.ParseValue(ref reader);
+ return DeserializeActiveDirectoryInfoPatchProperties(document.RootElement, options);
+ }
+
+ internal static ActiveDirectoryInfoPatchProperties DeserializeActiveDirectoryInfoPatchProperties(JsonElement element, ModelReaderWriterOptions options = null)
+ {
+ options ??= ModelSerializationExtensions.WireOptions;
+
+ if (element.ValueKind == JsonValueKind.Null)
+ {
+ return null;
+ }
+ KeyVaultCredentialsPatchProperties domainCredentials = default;
+ IDictionary serializedAdditionalRawData = default;
+ Dictionary rawDataDictionary = new Dictionary();
+ foreach (var property in element.EnumerateObject())
+ {
+ if (property.NameEquals("domainCredentials"u8))
+ {
+ if (property.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ domainCredentials = KeyVaultCredentialsPatchProperties.DeserializeKeyVaultCredentialsPatchProperties(property.Value, options);
+ continue;
+ }
+ if (options.Format != "W")
+ {
+ rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText()));
+ }
+ }
+ serializedAdditionalRawData = rawDataDictionary;
+ return new ActiveDirectoryInfoPatchProperties(domainCredentials, serializedAdditionalRawData);
+ }
+
+ BinaryData IPersistableModel.Write(ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+
+ switch (format)
+ {
+ case "J":
+ return ModelReaderWriter.Write(this, options);
+ default:
+ throw new FormatException($"The model {nameof(ActiveDirectoryInfoPatchProperties)} does not support writing '{options.Format}' format.");
+ }
+ }
+
+ ActiveDirectoryInfoPatchProperties IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+
+ switch (format)
+ {
+ case "J":
+ {
+ using JsonDocument document = JsonDocument.Parse(data);
+ return DeserializeActiveDirectoryInfoPatchProperties(document.RootElement, options);
+ }
+ default:
+ throw new FormatException($"The model {nameof(ActiveDirectoryInfoPatchProperties)} does not support reading '{options.Format}' format.");
+ }
+ }
+
+ string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J";
+ }
+}
diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/ActiveDirectoryInfoPatchProperties.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/ActiveDirectoryInfoPatchProperties.cs
new file mode 100644
index 000000000000..619f0aabc0ca
--- /dev/null
+++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/ActiveDirectoryInfoPatchProperties.cs
@@ -0,0 +1,66 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections.Generic;
+
+namespace Azure.ResourceManager.DesktopVirtualization.Models
+{
+ /// Active directory info. Only one should be populated based on the join type.
+ internal partial class ActiveDirectoryInfoPatchProperties
+ {
+ ///
+ /// Keeps track of any properties unknown to the library.
+ ///
+ /// To assign an object to the value of this property use .
+ ///
+ ///
+ /// To assign an already formatted json string to this property use .
+ ///
+ ///
+ /// Examples:
+ ///
+ /// -
+ /// BinaryData.FromObjectAsJson("foo")
+ /// Creates a payload of "foo".
+ ///
+ /// -
+ /// BinaryData.FromString("\"foo\"")
+ /// Creates a payload of "foo".
+ ///
+ /// -
+ /// BinaryData.FromObjectAsJson(new { key = "value" })
+ /// Creates a payload of { "key": "value" }.
+ ///
+ /// -
+ /// BinaryData.FromString("{\"key\": \"value\"}")
+ /// Creates a payload of { "key": "value" }.
+ ///
+ ///
+ ///
+ ///
+ private IDictionary _serializedAdditionalRawData;
+
+ /// Initializes a new instance of .
+ public ActiveDirectoryInfoPatchProperties()
+ {
+ }
+
+ /// Initializes a new instance of .
+ /// Credentials needed to create the virtual machine.
+ /// Keeps track of any properties unknown to the library.
+ internal ActiveDirectoryInfoPatchProperties(KeyVaultCredentialsPatchProperties domainCredentials, IDictionary serializedAdditionalRawData)
+ {
+ DomainCredentials = domainCredentials;
+ _serializedAdditionalRawData = serializedAdditionalRawData;
+ }
+
+ /// Credentials needed to create the virtual machine.
+ [WirePath("domainCredentials")]
+ public KeyVaultCredentialsPatchProperties DomainCredentials { get; set; }
+ }
+}
diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/ActiveDirectoryInfoProperties.Serialization.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/ActiveDirectoryInfoProperties.Serialization.cs
new file mode 100644
index 000000000000..bb08f52c0cb1
--- /dev/null
+++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/ActiveDirectoryInfoProperties.Serialization.cs
@@ -0,0 +1,224 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.ClientModel.Primitives;
+using System.Collections.Generic;
+using System.Text;
+using System.Text.Json;
+using Azure.Core;
+
+namespace Azure.ResourceManager.DesktopVirtualization.Models
+{
+ public partial class ActiveDirectoryInfoProperties : IUtf8JsonSerializable, IJsonModel
+ {
+ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions);
+
+ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options)
+ {
+ writer.WriteStartObject();
+ JsonModelWriteCore(writer, options);
+ writer.WriteEndObject();
+ }
+
+ /// The JSON writer.
+ /// The client options for reading and writing models.
+ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+ if (format != "J")
+ {
+ throw new FormatException($"The model {nameof(ActiveDirectoryInfoProperties)} does not support writing '{format}' format.");
+ }
+
+ writer.WritePropertyName("domainCredentials"u8);
+ writer.WriteObjectValue(DomainCredentials, options);
+ writer.WritePropertyName("ouPath"u8);
+ writer.WriteStringValue(OuPath);
+ if (Optional.IsDefined(DomainName))
+ {
+ writer.WritePropertyName("domainName"u8);
+ writer.WriteStringValue(DomainName);
+ }
+ if (options.Format != "W" && _serializedAdditionalRawData != null)
+ {
+ foreach (var item in _serializedAdditionalRawData)
+ {
+ writer.WritePropertyName(item.Key);
+#if NET6_0_OR_GREATER
+ writer.WriteRawValue(item.Value);
+#else
+ using (JsonDocument document = JsonDocument.Parse(item.Value))
+ {
+ JsonSerializer.Serialize(writer, document.RootElement);
+ }
+#endif
+ }
+ }
+ }
+
+ ActiveDirectoryInfoProperties IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+ if (format != "J")
+ {
+ throw new FormatException($"The model {nameof(ActiveDirectoryInfoProperties)} does not support reading '{format}' format.");
+ }
+
+ using JsonDocument document = JsonDocument.ParseValue(ref reader);
+ return DeserializeActiveDirectoryInfoProperties(document.RootElement, options);
+ }
+
+ internal static ActiveDirectoryInfoProperties DeserializeActiveDirectoryInfoProperties(JsonElement element, ModelReaderWriterOptions options = null)
+ {
+ options ??= ModelSerializationExtensions.WireOptions;
+
+ if (element.ValueKind == JsonValueKind.Null)
+ {
+ return null;
+ }
+ KeyVaultCredentialsProperties domainCredentials = default;
+ string ouPath = default;
+ string domainName = default;
+ IDictionary serializedAdditionalRawData = default;
+ Dictionary rawDataDictionary = new Dictionary();
+ foreach (var property in element.EnumerateObject())
+ {
+ if (property.NameEquals("domainCredentials"u8))
+ {
+ domainCredentials = KeyVaultCredentialsProperties.DeserializeKeyVaultCredentialsProperties(property.Value, options);
+ continue;
+ }
+ if (property.NameEquals("ouPath"u8))
+ {
+ ouPath = property.Value.GetString();
+ continue;
+ }
+ if (property.NameEquals("domainName"u8))
+ {
+ domainName = property.Value.GetString();
+ continue;
+ }
+ if (options.Format != "W")
+ {
+ rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText()));
+ }
+ }
+ serializedAdditionalRawData = rawDataDictionary;
+ return new ActiveDirectoryInfoProperties(domainCredentials, ouPath, domainName, serializedAdditionalRawData);
+ }
+
+ private BinaryData SerializeBicep(ModelReaderWriterOptions options)
+ {
+ StringBuilder builder = new StringBuilder();
+ BicepModelReaderWriterOptions bicepOptions = options as BicepModelReaderWriterOptions;
+ IDictionary propertyOverrides = null;
+ bool hasObjectOverride = bicepOptions != null && bicepOptions.PropertyOverrides.TryGetValue(this, out propertyOverrides);
+ bool hasPropertyOverride = false;
+ string propertyOverride = null;
+
+ builder.AppendLine("{");
+
+ hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(DomainCredentials), out propertyOverride);
+ if (hasPropertyOverride)
+ {
+ builder.Append(" domainCredentials: ");
+ builder.AppendLine(propertyOverride);
+ }
+ else
+ {
+ if (Optional.IsDefined(DomainCredentials))
+ {
+ builder.Append(" domainCredentials: ");
+ BicepSerializationHelpers.AppendChildObject(builder, DomainCredentials, options, 2, false, " domainCredentials: ");
+ }
+ }
+
+ hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(OuPath), out propertyOverride);
+ if (hasPropertyOverride)
+ {
+ builder.Append(" ouPath: ");
+ builder.AppendLine(propertyOverride);
+ }
+ else
+ {
+ if (Optional.IsDefined(OuPath))
+ {
+ builder.Append(" ouPath: ");
+ if (OuPath.Contains(Environment.NewLine))
+ {
+ builder.AppendLine("'''");
+ builder.AppendLine($"{OuPath}'''");
+ }
+ else
+ {
+ builder.AppendLine($"'{OuPath}'");
+ }
+ }
+ }
+
+ hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(DomainName), out propertyOverride);
+ if (hasPropertyOverride)
+ {
+ builder.Append(" domainName: ");
+ builder.AppendLine(propertyOverride);
+ }
+ else
+ {
+ if (Optional.IsDefined(DomainName))
+ {
+ builder.Append(" domainName: ");
+ if (DomainName.Contains(Environment.NewLine))
+ {
+ builder.AppendLine("'''");
+ builder.AppendLine($"{DomainName}'''");
+ }
+ else
+ {
+ builder.AppendLine($"'{DomainName}'");
+ }
+ }
+ }
+
+ builder.AppendLine("}");
+ return BinaryData.FromString(builder.ToString());
+ }
+
+ BinaryData IPersistableModel.Write(ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+
+ switch (format)
+ {
+ case "J":
+ return ModelReaderWriter.Write(this, options);
+ case "bicep":
+ return SerializeBicep(options);
+ default:
+ throw new FormatException($"The model {nameof(ActiveDirectoryInfoProperties)} does not support writing '{options.Format}' format.");
+ }
+ }
+
+ ActiveDirectoryInfoProperties IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+
+ switch (format)
+ {
+ case "J":
+ {
+ using JsonDocument document = JsonDocument.Parse(data);
+ return DeserializeActiveDirectoryInfoProperties(document.RootElement, options);
+ }
+ default:
+ throw new FormatException($"The model {nameof(ActiveDirectoryInfoProperties)} does not support reading '{options.Format}' format.");
+ }
+ }
+
+ string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J";
+ }
+}
diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/ActiveDirectoryInfoProperties.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/ActiveDirectoryInfoProperties.cs
new file mode 100644
index 000000000000..baf61fefeccc
--- /dev/null
+++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/ActiveDirectoryInfoProperties.cs
@@ -0,0 +1,89 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections.Generic;
+
+namespace Azure.ResourceManager.DesktopVirtualization.Models
+{
+ /// Active directory info. Only one should be populated based on the join type.
+ public partial class ActiveDirectoryInfoProperties
+ {
+ ///
+ /// Keeps track of any properties unknown to the library.
+ ///
+ /// To assign an object to the value of this property use .
+ ///
+ ///
+ /// To assign an already formatted json string to this property use .
+ ///
+ ///
+ /// Examples:
+ ///
+ /// -
+ /// BinaryData.FromObjectAsJson("foo")
+ /// Creates a payload of "foo".
+ ///
+ /// -
+ /// BinaryData.FromString("\"foo\"")
+ /// Creates a payload of "foo".
+ ///
+ /// -
+ /// BinaryData.FromObjectAsJson(new { key = "value" })
+ /// Creates a payload of { "key": "value" }.
+ ///
+ /// -
+ /// BinaryData.FromString("{\"key\": \"value\"}")
+ /// Creates a payload of { "key": "value" }.
+ ///
+ ///
+ ///
+ ///
+ private IDictionary _serializedAdditionalRawData;
+
+ /// Initializes a new instance of .
+ /// Credentials needed to create the virtual machine.
+ /// The organizational unit(OU) path.
+ /// or is null.
+ public ActiveDirectoryInfoProperties(KeyVaultCredentialsProperties domainCredentials, string ouPath)
+ {
+ Argument.AssertNotNull(domainCredentials, nameof(domainCredentials));
+ Argument.AssertNotNull(ouPath, nameof(ouPath));
+
+ DomainCredentials = domainCredentials;
+ OuPath = ouPath;
+ }
+
+ /// Initializes a new instance of .
+ /// Credentials needed to create the virtual machine.
+ /// The organizational unit(OU) path.
+ /// The domain a virtual machine connected to a hostpool will join.
+ /// Keeps track of any properties unknown to the library.
+ internal ActiveDirectoryInfoProperties(KeyVaultCredentialsProperties domainCredentials, string ouPath, string domainName, IDictionary serializedAdditionalRawData)
+ {
+ DomainCredentials = domainCredentials;
+ OuPath = ouPath;
+ DomainName = domainName;
+ _serializedAdditionalRawData = serializedAdditionalRawData;
+ }
+
+ /// Initializes a new instance of for deserialization.
+ internal ActiveDirectoryInfoProperties()
+ {
+ }
+
+ /// Credentials needed to create the virtual machine.
+ [WirePath("domainCredentials")]
+ public KeyVaultCredentialsProperties DomainCredentials { get; set; }
+ /// The organizational unit(OU) path.
+ [WirePath("ouPath")]
+ public string OuPath { get; set; }
+ /// The domain a virtual machine connected to a hostpool will join.
+ [WirePath("domainName")]
+ public string DomainName { get; set; }
+ }
+}
diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/ActiveSessionHostConfigurationList.Serialization.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/ActiveSessionHostConfigurationList.Serialization.cs
new file mode 100644
index 000000000000..41828989917a
--- /dev/null
+++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/ActiveSessionHostConfigurationList.Serialization.cs
@@ -0,0 +1,219 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.ClientModel.Primitives;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Text.Json;
+using Azure.Core;
+
+namespace Azure.ResourceManager.DesktopVirtualization.Models
+{
+ internal partial class ActiveSessionHostConfigurationList : IUtf8JsonSerializable, IJsonModel
+ {
+ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions);
+
+ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options)
+ {
+ writer.WriteStartObject();
+ JsonModelWriteCore(writer, options);
+ writer.WriteEndObject();
+ }
+
+ /// The JSON writer.
+ /// The client options for reading and writing models.
+ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+ if (format != "J")
+ {
+ throw new FormatException($"The model {nameof(ActiveSessionHostConfigurationList)} does not support writing '{format}' format.");
+ }
+
+ if (Optional.IsCollectionDefined(Value))
+ {
+ writer.WritePropertyName("value"u8);
+ writer.WriteStartArray();
+ foreach (var item in Value)
+ {
+ writer.WriteObjectValue(item, options);
+ }
+ writer.WriteEndArray();
+ }
+ if (options.Format != "W" && Optional.IsDefined(NextLink))
+ {
+ writer.WritePropertyName("nextLink"u8);
+ writer.WriteStringValue(NextLink);
+ }
+ if (options.Format != "W" && _serializedAdditionalRawData != null)
+ {
+ foreach (var item in _serializedAdditionalRawData)
+ {
+ writer.WritePropertyName(item.Key);
+#if NET6_0_OR_GREATER
+ writer.WriteRawValue(item.Value);
+#else
+ using (JsonDocument document = JsonDocument.Parse(item.Value))
+ {
+ JsonSerializer.Serialize(writer, document.RootElement);
+ }
+#endif
+ }
+ }
+ }
+
+ ActiveSessionHostConfigurationList IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+ if (format != "J")
+ {
+ throw new FormatException($"The model {nameof(ActiveSessionHostConfigurationList)} does not support reading '{format}' format.");
+ }
+
+ using JsonDocument document = JsonDocument.ParseValue(ref reader);
+ return DeserializeActiveSessionHostConfigurationList(document.RootElement, options);
+ }
+
+ internal static ActiveSessionHostConfigurationList DeserializeActiveSessionHostConfigurationList(JsonElement element, ModelReaderWriterOptions options = null)
+ {
+ options ??= ModelSerializationExtensions.WireOptions;
+
+ if (element.ValueKind == JsonValueKind.Null)
+ {
+ return null;
+ }
+ IReadOnlyList value = default;
+ string nextLink = default;
+ IDictionary serializedAdditionalRawData = default;
+ Dictionary rawDataDictionary = new Dictionary();
+ foreach (var property in element.EnumerateObject())
+ {
+ if (property.NameEquals("value"u8))
+ {
+ if (property.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ List array = new List();
+ foreach (var item in property.Value.EnumerateArray())
+ {
+ array.Add(ActiveSessionHostConfigurationData.DeserializeActiveSessionHostConfigurationData(item, options));
+ }
+ value = array;
+ continue;
+ }
+ if (property.NameEquals("nextLink"u8))
+ {
+ nextLink = property.Value.GetString();
+ continue;
+ }
+ if (options.Format != "W")
+ {
+ rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText()));
+ }
+ }
+ serializedAdditionalRawData = rawDataDictionary;
+ return new ActiveSessionHostConfigurationList(value ?? new ChangeTrackingList(), nextLink, serializedAdditionalRawData);
+ }
+
+ private BinaryData SerializeBicep(ModelReaderWriterOptions options)
+ {
+ StringBuilder builder = new StringBuilder();
+ BicepModelReaderWriterOptions bicepOptions = options as BicepModelReaderWriterOptions;
+ IDictionary propertyOverrides = null;
+ bool hasObjectOverride = bicepOptions != null && bicepOptions.PropertyOverrides.TryGetValue(this, out propertyOverrides);
+ bool hasPropertyOverride = false;
+ string propertyOverride = null;
+
+ builder.AppendLine("{");
+
+ hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Value), out propertyOverride);
+ if (hasPropertyOverride)
+ {
+ builder.Append(" value: ");
+ builder.AppendLine(propertyOverride);
+ }
+ else
+ {
+ if (Optional.IsCollectionDefined(Value))
+ {
+ if (Value.Any())
+ {
+ builder.Append(" value: ");
+ builder.AppendLine("[");
+ foreach (var item in Value)
+ {
+ BicepSerializationHelpers.AppendChildObject(builder, item, options, 4, true, " value: ");
+ }
+ builder.AppendLine(" ]");
+ }
+ }
+ }
+
+ hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(NextLink), out propertyOverride);
+ if (hasPropertyOverride)
+ {
+ builder.Append(" nextLink: ");
+ builder.AppendLine(propertyOverride);
+ }
+ else
+ {
+ if (Optional.IsDefined(NextLink))
+ {
+ builder.Append(" nextLink: ");
+ if (NextLink.Contains(Environment.NewLine))
+ {
+ builder.AppendLine("'''");
+ builder.AppendLine($"{NextLink}'''");
+ }
+ else
+ {
+ builder.AppendLine($"'{NextLink}'");
+ }
+ }
+ }
+
+ builder.AppendLine("}");
+ return BinaryData.FromString(builder.ToString());
+ }
+
+ BinaryData IPersistableModel.Write(ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+
+ switch (format)
+ {
+ case "J":
+ return ModelReaderWriter.Write(this, options);
+ case "bicep":
+ return SerializeBicep(options);
+ default:
+ throw new FormatException($"The model {nameof(ActiveSessionHostConfigurationList)} does not support writing '{options.Format}' format.");
+ }
+ }
+
+ ActiveSessionHostConfigurationList IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+
+ switch (format)
+ {
+ case "J":
+ {
+ using JsonDocument document = JsonDocument.Parse(data);
+ return DeserializeActiveSessionHostConfigurationList(document.RootElement, options);
+ }
+ default:
+ throw new FormatException($"The model {nameof(ActiveSessionHostConfigurationList)} does not support reading '{options.Format}' format.");
+ }
+ }
+
+ string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J";
+ }
+}
diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/ActiveSessionHostConfigurationList.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/ActiveSessionHostConfigurationList.cs
new file mode 100644
index 000000000000..64f67c5b5257
--- /dev/null
+++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/ActiveSessionHostConfigurationList.cs
@@ -0,0 +1,70 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections.Generic;
+
+namespace Azure.ResourceManager.DesktopVirtualization.Models
+{
+ /// List of ActiveSessionHostConfiguration definitions.
+ internal partial class ActiveSessionHostConfigurationList
+ {
+ ///
+ /// Keeps track of any properties unknown to the library.
+ ///
+ /// To assign an object to the value of this property use .
+ ///
+ ///
+ /// To assign an already formatted json string to this property use .
+ ///
+ ///
+ /// Examples:
+ ///
+ /// -
+ /// BinaryData.FromObjectAsJson("foo")
+ /// Creates a payload of "foo".
+ ///
+ /// -
+ /// BinaryData.FromString("\"foo\"")
+ /// Creates a payload of "foo".
+ ///
+ /// -
+ /// BinaryData.FromObjectAsJson(new { key = "value" })
+ /// Creates a payload of { "key": "value" }.
+ ///
+ /// -
+ /// BinaryData.FromString("{\"key\": \"value\"}")
+ /// Creates a payload of { "key": "value" }.
+ ///
+ ///
+ ///
+ ///
+ private IDictionary _serializedAdditionalRawData;
+
+ /// Initializes a new instance of .
+ internal ActiveSessionHostConfigurationList()
+ {
+ Value = new ChangeTrackingList();
+ }
+
+ /// Initializes a new instance of .
+ /// List of ActiveSessionHostConfiguration definitions.
+ /// Link to the next page of results.
+ /// Keeps track of any properties unknown to the library.
+ internal ActiveSessionHostConfigurationList(IReadOnlyList value, string nextLink, IDictionary serializedAdditionalRawData)
+ {
+ Value = value;
+ NextLink = nextLink;
+ _serializedAdditionalRawData = serializedAdditionalRawData;
+ }
+
+ /// List of ActiveSessionHostConfiguration definitions.
+ public IReadOnlyList Value { get; }
+ /// Link to the next page of results.
+ public string NextLink { get; }
+ }
+}
diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/AppAttachPackageInfoProperties.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/AppAttachPackageInfoProperties.cs
index 150139b210a3..75f9f111631b 100644
--- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/AppAttachPackageInfoProperties.cs
+++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/AppAttachPackageInfoProperties.cs
@@ -54,17 +54,17 @@ public AppAttachPackageInfoProperties()
/// Initializes a new instance of .
/// Alias of App Attach Package. Assigned at import time.
- /// VHD/CIM image path on Network Share.
+ /// VHD/CIM/APP-V image path on Network Share.
/// Package Name from appxmanifest.xml.
- /// Package Family Name from appxmanifest.xml. Contains Package Name and Publisher name.
- /// Package Full Name from appxmanifest.xml.
+ /// Identifier not including the package version, for Msix packages it is the family name from the appxmanifest.xml.
+ /// Identifier including the package version, for Msix packages it is the full name from the appxmanifest.xml.
/// User friendly Name to be displayed in the portal.
/// Relative Path to the package inside the image.
/// Specifies how to register Package in feed.
/// Make this version of the package the active one across the hostpool.
/// List of package dependencies.
- /// Package version found in the appxmanifest.xml.
- /// Date Package was last updated, found in the appxmanifest.xml.
+ /// Package Version found in the appxmanifest.xml.
+ /// Date the package source was last updated, for Msix packages this is found in the appxmanifest.xml.
/// List of package applications.
/// Certificate name found in the appxmanifest.xml.
/// Date certificate expires, found in the appxmanifest.xml.
@@ -94,16 +94,16 @@ internal AppAttachPackageInfoProperties(string packageAlias, string imagePath, s
/// Alias of App Attach Package. Assigned at import time.
[WirePath("packageAlias")]
public string PackageAlias { get; set; }
- /// VHD/CIM image path on Network Share.
+ /// VHD/CIM/APP-V image path on Network Share.
[WirePath("imagePath")]
public string ImagePath { get; set; }
/// Package Name from appxmanifest.xml.
[WirePath("packageName")]
public string PackageName { get; set; }
- /// Package Family Name from appxmanifest.xml. Contains Package Name and Publisher name.
+ /// Identifier not including the package version, for Msix packages it is the family name from the appxmanifest.xml.
[WirePath("packageFamilyName")]
public string PackageFamilyName { get; set; }
- /// Package Full Name from appxmanifest.xml.
+ /// Identifier including the package version, for Msix packages it is the full name from the appxmanifest.xml.
[WirePath("packageFullName")]
public string PackageFullName { get; set; }
/// User friendly Name to be displayed in the portal.
@@ -121,10 +121,10 @@ internal AppAttachPackageInfoProperties(string packageAlias, string imagePath, s
/// List of package dependencies.
[WirePath("packageDependencies")]
public IList PackageDependencies { get; set; }
- /// Package version found in the appxmanifest.xml.
+ /// Package Version found in the appxmanifest.xml.
[WirePath("version")]
public string Version { get; set; }
- /// Date Package was last updated, found in the appxmanifest.xml.
+ /// Date the package source was last updated, for Msix packages this is found in the appxmanifest.xml.
[WirePath("lastUpdated")]
public DateTimeOffset? LastUpdatedOn { get; set; }
/// List of package applications.
diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/AppAttachPackagePatch.Serialization.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/AppAttachPackagePatch.Serialization.cs
index 0e03ba8f35e8..bce6dd1c65a3 100644
--- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/AppAttachPackagePatch.Serialization.cs
+++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/AppAttachPackagePatch.Serialization.cs
@@ -8,6 +8,7 @@
using System;
using System.ClientModel.Primitives;
using System.Collections.Generic;
+using System.Linq;
using System.Text;
using System.Text.Json;
using Azure.Core;
@@ -37,6 +38,17 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri
}
base.JsonModelWriteCore(writer, options);
+ if (Optional.IsCollectionDefined(Tags))
+ {
+ writer.WritePropertyName("tags"u8);
+ writer.WriteStartObject();
+ foreach (var item in Tags)
+ {
+ writer.WritePropertyName(item.Key);
+ writer.WriteStringValue(item.Value);
+ }
+ writer.WriteEndObject();
+ }
if (Optional.IsDefined(Properties))
{
writer.WritePropertyName("properties"u8);
@@ -64,6 +76,7 @@ internal static AppAttachPackagePatch DeserializeAppAttachPackagePatch(JsonEleme
{
return null;
}
+ IDictionary tags = default;
AppAttachPackagePatchProperties properties = default;
ResourceIdentifier id = default;
string name = default;
@@ -73,6 +86,20 @@ internal static AppAttachPackagePatch DeserializeAppAttachPackagePatch(JsonEleme
Dictionary rawDataDictionary = new Dictionary();
foreach (var property in element.EnumerateObject())
{
+ if (property.NameEquals("tags"u8))
+ {
+ if (property.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ Dictionary dictionary = new Dictionary();
+ foreach (var property0 in property.Value.EnumerateObject())
+ {
+ dictionary.Add(property0.Name, property0.Value.GetString());
+ }
+ tags = dictionary;
+ continue;
+ }
if (property.NameEquals("properties"u8))
{
if (property.Value.ValueKind == JsonValueKind.Null)
@@ -117,6 +144,7 @@ internal static AppAttachPackagePatch DeserializeAppAttachPackagePatch(JsonEleme
name,
type,
systemData,
+ tags ?? new ChangeTrackingDictionary(),
properties,
serializedAdditionalRawData);
}
@@ -155,6 +183,43 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options)
}
}
+ hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Tags), out propertyOverride);
+ if (hasPropertyOverride)
+ {
+ builder.Append(" tags: ");
+ builder.AppendLine(propertyOverride);
+ }
+ else
+ {
+ if (Optional.IsCollectionDefined(Tags))
+ {
+ if (Tags.Any())
+ {
+ builder.Append(" tags: ");
+ builder.AppendLine("{");
+ foreach (var item in Tags)
+ {
+ builder.Append($" '{item.Key}': ");
+ if (item.Value == null)
+ {
+ builder.Append("null");
+ continue;
+ }
+ if (item.Value.Contains(Environment.NewLine))
+ {
+ builder.AppendLine("'''");
+ builder.AppendLine($"{item.Value}'''");
+ }
+ else
+ {
+ builder.AppendLine($"'{item.Value}'");
+ }
+ }
+ builder.AppendLine(" }");
+ }
+ }
+ }
+
hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Properties), out propertyOverride);
if (hasPropertyOverride)
{
diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/AppAttachPackagePatch.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/AppAttachPackagePatch.cs
index 7db935c8b41a..8a687095d165 100644
--- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/AppAttachPackagePatch.cs
+++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/AppAttachPackagePatch.cs
@@ -12,7 +12,7 @@
namespace Azure.ResourceManager.DesktopVirtualization.Models
{
- /// Schema for updatable App Attach Package properties.
+ /// Schema for patchable App Attach Package properties.
public partial class AppAttachPackagePatch : ResourceData
{
///
@@ -50,6 +50,7 @@ public partial class AppAttachPackagePatch : ResourceData
/// Initializes a new instance of .
public AppAttachPackagePatch()
{
+ Tags = new ChangeTrackingDictionary();
}
/// Initializes a new instance of .
@@ -57,14 +58,19 @@ public AppAttachPackagePatch()
/// The name.
/// The resourceType.
/// The systemData.
+ /// tags to be updated.
/// Detailed properties for App Attach Package.
/// Keeps track of any properties unknown to the library.
- internal AppAttachPackagePatch(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, AppAttachPackagePatchProperties properties, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData)
+ internal AppAttachPackagePatch(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AppAttachPackagePatchProperties properties, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData)
{
+ Tags = tags;
Properties = properties;
_serializedAdditionalRawData = serializedAdditionalRawData;
}
+ /// tags to be updated.
+ [WirePath("tags")]
+ public IDictionary Tags { get; }
/// Detailed properties for App Attach Package.
[WirePath("properties")]
public AppAttachPackagePatchProperties Properties { get; set; }
diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/AppAttachPackagePatchProperties.Serialization.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/AppAttachPackagePatchProperties.Serialization.cs
index 4db441d135e5..cbb9eba2c386 100644
--- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/AppAttachPackagePatchProperties.Serialization.cs
+++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/AppAttachPackagePatchProperties.Serialization.cs
@@ -66,6 +66,16 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit
writer.WritePropertyName("failHealthCheckOnStagingFailure"u8);
writer.WriteStringValue(FailHealthCheckOnStagingFailure.Value.ToString());
}
+ if (Optional.IsDefined(PackageLookbackUri))
+ {
+ writer.WritePropertyName("packageLookbackUrl"u8);
+ writer.WriteStringValue(PackageLookbackUri.AbsoluteUri);
+ }
+ if (Optional.IsDefined(CustomData))
+ {
+ writer.WritePropertyName("customData"u8);
+ writer.WriteStringValue(CustomData);
+ }
if (options.Format != "W" && _serializedAdditionalRawData != null)
{
foreach (var item in _serializedAdditionalRawData)
@@ -107,6 +117,8 @@ internal static AppAttachPackagePatchProperties DeserializeAppAttachPackagePatch
IList hostPoolReferences = default;
Uri keyVaultURL = default;
FailHealthCheckOnStagingFailure? failHealthCheckOnStagingFailure = default;
+ Uri packageLookbackUrl = default;
+ string customData = default;
IDictionary serializedAdditionalRawData = default;
Dictionary rawDataDictionary = new Dictionary();
foreach (var property in element.EnumerateObject())
@@ -159,13 +171,34 @@ internal static AppAttachPackagePatchProperties DeserializeAppAttachPackagePatch
failHealthCheckOnStagingFailure = new FailHealthCheckOnStagingFailure(property.Value.GetString());
continue;
}
+ if (property.NameEquals("packageLookbackUrl"u8))
+ {
+ if (property.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ packageLookbackUrl = new Uri(property.Value.GetString());
+ continue;
+ }
+ if (property.NameEquals("customData"u8))
+ {
+ customData = property.Value.GetString();
+ continue;
+ }
if (options.Format != "W")
{
rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText()));
}
}
serializedAdditionalRawData = rawDataDictionary;
- return new AppAttachPackagePatchProperties(image, hostPoolReferences ?? new ChangeTrackingList(), keyVaultURL, failHealthCheckOnStagingFailure, serializedAdditionalRawData);
+ return new AppAttachPackagePatchProperties(
+ image,
+ hostPoolReferences ?? new ChangeTrackingList(),
+ keyVaultURL,
+ failHealthCheckOnStagingFailure,
+ packageLookbackUrl,
+ customData,
+ serializedAdditionalRawData);
}
private BinaryData SerializeBicep(ModelReaderWriterOptions options)
@@ -252,6 +285,44 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options)
}
}
+ hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(PackageLookbackUri), out propertyOverride);
+ if (hasPropertyOverride)
+ {
+ builder.Append(" packageLookbackUrl: ");
+ builder.AppendLine(propertyOverride);
+ }
+ else
+ {
+ if (Optional.IsDefined(PackageLookbackUri))
+ {
+ builder.Append(" packageLookbackUrl: ");
+ builder.AppendLine($"'{PackageLookbackUri.AbsoluteUri}'");
+ }
+ }
+
+ hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(CustomData), out propertyOverride);
+ if (hasPropertyOverride)
+ {
+ builder.Append(" customData: ");
+ builder.AppendLine(propertyOverride);
+ }
+ else
+ {
+ if (Optional.IsDefined(CustomData))
+ {
+ builder.Append(" customData: ");
+ if (CustomData.Contains(Environment.NewLine))
+ {
+ builder.AppendLine("'''");
+ builder.AppendLine($"{CustomData}'''");
+ }
+ else
+ {
+ builder.AppendLine($"'{CustomData}'");
+ }
+ }
+ }
+
builder.AppendLine("}");
return BinaryData.FromString(builder.ToString());
}
diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/AppAttachPackagePatchProperties.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/AppAttachPackagePatchProperties.cs
index 9cab5040c943..0d16d0957677 100644
--- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/AppAttachPackagePatchProperties.cs
+++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/AppAttachPackagePatchProperties.cs
@@ -55,15 +55,19 @@ public AppAttachPackagePatchProperties()
/// Initializes a new instance of .
/// Detailed properties for App Attach Package.
/// List of Hostpool resource Ids.
- /// URL path to certificate name located in keyVault.
+ /// URL of keyvault location to store certificate.
/// Parameter indicating how the health check should behave if this package fails staging.
+ /// Lookback url to third party control plane, should be null for first party packages.
+ /// Field that can be populated with custom data and filtered on in list GET calls.
/// Keeps track of any properties unknown to the library.
- internal AppAttachPackagePatchProperties(AppAttachPackageInfoProperties image, IList hostPoolReferences, Uri keyVaultUri, FailHealthCheckOnStagingFailure? failHealthCheckOnStagingFailure, IDictionary serializedAdditionalRawData)
+ internal AppAttachPackagePatchProperties(AppAttachPackageInfoProperties image, IList hostPoolReferences, Uri keyVaultUri, FailHealthCheckOnStagingFailure? failHealthCheckOnStagingFailure, Uri packageLookbackUri, string customData, IDictionary serializedAdditionalRawData)
{
Image = image;
HostPoolReferences = hostPoolReferences;
KeyVaultUri = keyVaultUri;
FailHealthCheckOnStagingFailure = failHealthCheckOnStagingFailure;
+ PackageLookbackUri = packageLookbackUri;
+ CustomData = customData;
_serializedAdditionalRawData = serializedAdditionalRawData;
}
@@ -73,11 +77,17 @@ internal AppAttachPackagePatchProperties(AppAttachPackageInfoProperties image, I
/// List of Hostpool resource Ids.
[WirePath("hostPoolReferences")]
public IList HostPoolReferences { get; }
- /// URL path to certificate name located in keyVault.
+ /// URL of keyvault location to store certificate.
[WirePath("keyVaultURL")]
public Uri KeyVaultUri { get; set; }
/// Parameter indicating how the health check should behave if this package fails staging.
[WirePath("failHealthCheckOnStagingFailure")]
public FailHealthCheckOnStagingFailure? FailHealthCheckOnStagingFailure { get; set; }
+ /// Lookback url to third party control plane, should be null for first party packages.
+ [WirePath("packageLookbackUrl")]
+ public Uri PackageLookbackUri { get; set; }
+ /// Field that can be populated with custom data and filtered on in list GET calls.
+ [WirePath("customData")]
+ public string CustomData { get; set; }
}
}
diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/AppAttachPackageProperties.Serialization.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/AppAttachPackageProperties.Serialization.cs
index ea453d33c498..d88484baedb0 100644
--- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/AppAttachPackageProperties.Serialization.cs
+++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/AppAttachPackageProperties.Serialization.cs
@@ -66,6 +66,28 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit
writer.WritePropertyName("failHealthCheckOnStagingFailure"u8);
writer.WriteStringValue(FailHealthCheckOnStagingFailure.Value.ToString());
}
+ if (Optional.IsDefined(PackageOwnerName))
+ {
+ writer.WritePropertyName("packageOwnerName"u8);
+ writer.WriteStringValue(PackageOwnerName);
+ }
+ if (Optional.IsDefined(PackageLookbackUri))
+ {
+ if (PackageLookbackUri != null)
+ {
+ writer.WritePropertyName("packageLookbackUrl"u8);
+ writer.WriteStringValue(PackageLookbackUri.AbsoluteUri);
+ }
+ else
+ {
+ writer.WriteNull("packageLookbackUrl");
+ }
+ }
+ if (Optional.IsDefined(CustomData))
+ {
+ writer.WritePropertyName("customData"u8);
+ writer.WriteStringValue(CustomData);
+ }
if (options.Format != "W" && _serializedAdditionalRawData != null)
{
foreach (var item in _serializedAdditionalRawData)
@@ -108,6 +130,9 @@ internal static AppAttachPackageProperties DeserializeAppAttachPackageProperties
IList hostPoolReferences = default;
Uri keyVaultURL = default;
FailHealthCheckOnStagingFailure? failHealthCheckOnStagingFailure = default;
+ string packageOwnerName = default;
+ Uri packageLookbackUrl = default;
+ string customData = default;
IDictionary serializedAdditionalRawData = default;
Dictionary rawDataDictionary = new Dictionary();
foreach (var property in element.EnumerateObject())
@@ -162,6 +187,26 @@ internal static AppAttachPackageProperties DeserializeAppAttachPackageProperties
failHealthCheckOnStagingFailure = new FailHealthCheckOnStagingFailure(property.Value.GetString());
continue;
}
+ if (property.NameEquals("packageOwnerName"u8))
+ {
+ packageOwnerName = property.Value.GetString();
+ continue;
+ }
+ if (property.NameEquals("packageLookbackUrl"u8))
+ {
+ if (property.Value.ValueKind == JsonValueKind.Null)
+ {
+ packageLookbackUrl = null;
+ continue;
+ }
+ packageLookbackUrl = new Uri(property.Value.GetString());
+ continue;
+ }
+ if (property.NameEquals("customData"u8))
+ {
+ customData = property.Value.GetString();
+ continue;
+ }
if (options.Format != "W")
{
rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText()));
@@ -174,6 +219,9 @@ internal static AppAttachPackageProperties DeserializeAppAttachPackageProperties
hostPoolReferences ?? new ChangeTrackingList(),
keyVaultURL,
failHealthCheckOnStagingFailure,
+ packageOwnerName,
+ packageLookbackUrl,
+ customData,
serializedAdditionalRawData);
}
@@ -284,6 +332,67 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options)
}
}
+ hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(PackageOwnerName), out propertyOverride);
+ if (hasPropertyOverride)
+ {
+ builder.Append(" packageOwnerName: ");
+ builder.AppendLine(propertyOverride);
+ }
+ else
+ {
+ if (Optional.IsDefined(PackageOwnerName))
+ {
+ builder.Append(" packageOwnerName: ");
+ if (PackageOwnerName.Contains(Environment.NewLine))
+ {
+ builder.AppendLine("'''");
+ builder.AppendLine($"{PackageOwnerName}'''");
+ }
+ else
+ {
+ builder.AppendLine($"'{PackageOwnerName}'");
+ }
+ }
+ }
+
+ hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(PackageLookbackUri), out propertyOverride);
+ if (hasPropertyOverride)
+ {
+ builder.Append(" packageLookbackUrl: ");
+ builder.AppendLine(propertyOverride);
+ }
+ else
+ {
+ if (Optional.IsDefined(PackageLookbackUri))
+ {
+ builder.Append(" packageLookbackUrl: ");
+ builder.AppendLine($"'{PackageLookbackUri.AbsoluteUri}'");
+ }
+ }
+
+ hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(CustomData), out propertyOverride);
+ if (hasPropertyOverride)
+ {
+ builder.Append(" customData: ");
+ builder.AppendLine(propertyOverride);
+ }
+ else
+ {
+ if (Optional.IsDefined(CustomData))
+ {
+ builder.Append(" customData: ");
+ if (CustomData.Contains(Environment.NewLine))
+ {
+ builder.AppendLine("'''");
+ builder.AppendLine($"{CustomData}'''");
+ }
+ else
+ {
+ builder.AppendLine($"'{CustomData}'");
+ }
+ }
+ }
+
builder.AppendLine("}");
return BinaryData.FromString(builder.ToString());
}
diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/AppAttachPackageProperties.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/AppAttachPackageProperties.cs
index 5ed2b98f68d7..68011a27f3ec 100644
--- a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/AppAttachPackageProperties.cs
+++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/AppAttachPackageProperties.cs
@@ -55,16 +55,22 @@ public AppAttachPackageProperties()
/// The provisioning state of the App Attach Package.
/// Detailed properties for App Attach Package.
/// List of Hostpool resource Ids.
- /// URL path to certificate name located in keyVault.
+ /// URL of keyvault location to store certificate.
/// Parameter indicating how the health check should behave if this package fails staging.
+ /// Specific name of package owner, is "AppAttach" for native app attach packages.
+ /// Lookback url to third party control plane, is null for native app attach packages.
+ /// Field that can be populated with custom data and filtered on in list GET calls.
/// Keeps track of any properties unknown to the library.
- internal AppAttachPackageProperties(AppAttachPackageProvisioningState? provisioningState, AppAttachPackageInfoProperties image, IList hostPoolReferences, Uri keyVaultUri, FailHealthCheckOnStagingFailure? failHealthCheckOnStagingFailure, IDictionary serializedAdditionalRawData)
+ internal AppAttachPackageProperties(AppAttachPackageProvisioningState? provisioningState, AppAttachPackageInfoProperties image, IList hostPoolReferences, Uri keyVaultUri, FailHealthCheckOnStagingFailure? failHealthCheckOnStagingFailure, string packageOwnerName, Uri packageLookbackUri, string customData, IDictionary serializedAdditionalRawData)
{
ProvisioningState = provisioningState;
Image = image;
HostPoolReferences = hostPoolReferences;
KeyVaultUri = keyVaultUri;
FailHealthCheckOnStagingFailure = failHealthCheckOnStagingFailure;
+ PackageOwnerName = packageOwnerName;
+ PackageLookbackUri = packageLookbackUri;
+ CustomData = customData;
_serializedAdditionalRawData = serializedAdditionalRawData;
}
@@ -77,11 +83,20 @@ internal AppAttachPackageProperties(AppAttachPackageProvisioningState? provision
/// List of Hostpool resource Ids.
[WirePath("hostPoolReferences")]
public IList HostPoolReferences { get; }
- /// URL path to certificate name located in keyVault.
+ /// URL of keyvault location to store certificate.
[WirePath("keyVaultURL")]
public Uri KeyVaultUri { get; set; }
/// Parameter indicating how the health check should behave if this package fails staging.
[WirePath("failHealthCheckOnStagingFailure")]
public FailHealthCheckOnStagingFailure? FailHealthCheckOnStagingFailure { get; set; }
+ /// Specific name of package owner, is "AppAttach" for native app attach packages.
+ [WirePath("packageOwnerName")]
+ public string PackageOwnerName { get; set; }
+ /// Lookback url to third party control plane, is null for native app attach packages.
+ [WirePath("packageLookbackUrl")]
+ public Uri PackageLookbackUri { get; set; }
+ /// Field that can be populated with custom data and filtered on in list GET calls.
+ [WirePath("customData")]
+ public string CustomData { get; set; }
}
}
diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/AzureActiveDirectoryInfoProperties.Serialization.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/AzureActiveDirectoryInfoProperties.Serialization.cs
new file mode 100644
index 000000000000..58959ee32411
--- /dev/null
+++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/AzureActiveDirectoryInfoProperties.Serialization.cs
@@ -0,0 +1,167 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.ClientModel.Primitives;
+using System.Collections.Generic;
+using System.Text;
+using System.Text.Json;
+using Azure.Core;
+
+namespace Azure.ResourceManager.DesktopVirtualization.Models
+{
+ internal partial class AzureActiveDirectoryInfoProperties : IUtf8JsonSerializable, IJsonModel
+ {
+ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions);
+
+ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options)
+ {
+ writer.WriteStartObject();
+ JsonModelWriteCore(writer, options);
+ writer.WriteEndObject();
+ }
+
+ /// The JSON writer.
+ /// The client options for reading and writing models.
+ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+ if (format != "J")
+ {
+ throw new FormatException($"The model {nameof(AzureActiveDirectoryInfoProperties)} does not support writing '{format}' format.");
+ }
+
+ writer.WritePropertyName("mdmProviderGuid"u8);
+ writer.WriteStringValue(MdmProviderGuid);
+ if (options.Format != "W" && _serializedAdditionalRawData != null)
+ {
+ foreach (var item in _serializedAdditionalRawData)
+ {
+ writer.WritePropertyName(item.Key);
+#if NET6_0_OR_GREATER
+ writer.WriteRawValue(item.Value);
+#else
+ using (JsonDocument document = JsonDocument.Parse(item.Value))
+ {
+ JsonSerializer.Serialize(writer, document.RootElement);
+ }
+#endif
+ }
+ }
+ }
+
+ AzureActiveDirectoryInfoProperties IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+ if (format != "J")
+ {
+ throw new FormatException($"The model {nameof(AzureActiveDirectoryInfoProperties)} does not support reading '{format}' format.");
+ }
+
+ using JsonDocument document = JsonDocument.ParseValue(ref reader);
+ return DeserializeAzureActiveDirectoryInfoProperties(document.RootElement, options);
+ }
+
+ internal static AzureActiveDirectoryInfoProperties DeserializeAzureActiveDirectoryInfoProperties(JsonElement element, ModelReaderWriterOptions options = null)
+ {
+ options ??= ModelSerializationExtensions.WireOptions;
+
+ if (element.ValueKind == JsonValueKind.Null)
+ {
+ return null;
+ }
+ string mdmProviderGuid = default;
+ IDictionary serializedAdditionalRawData = default;
+ Dictionary rawDataDictionary = new Dictionary();
+ foreach (var property in element.EnumerateObject())
+ {
+ if (property.NameEquals("mdmProviderGuid"u8))
+ {
+ mdmProviderGuid = property.Value.GetString();
+ continue;
+ }
+ if (options.Format != "W")
+ {
+ rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText()));
+ }
+ }
+ serializedAdditionalRawData = rawDataDictionary;
+ return new AzureActiveDirectoryInfoProperties(mdmProviderGuid, serializedAdditionalRawData);
+ }
+
+ private BinaryData SerializeBicep(ModelReaderWriterOptions options)
+ {
+ StringBuilder builder = new StringBuilder();
+ BicepModelReaderWriterOptions bicepOptions = options as BicepModelReaderWriterOptions;
+ IDictionary propertyOverrides = null;
+ bool hasObjectOverride = bicepOptions != null && bicepOptions.PropertyOverrides.TryGetValue(this, out propertyOverrides);
+ bool hasPropertyOverride = false;
+ string propertyOverride = null;
+
+ builder.AppendLine("{");
+
+ hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(MdmProviderGuid), out propertyOverride);
+ if (hasPropertyOverride)
+ {
+ builder.Append(" mdmProviderGuid: ");
+ builder.AppendLine(propertyOverride);
+ }
+ else
+ {
+ if (Optional.IsDefined(MdmProviderGuid))
+ {
+ builder.Append(" mdmProviderGuid: ");
+ if (MdmProviderGuid.Contains(Environment.NewLine))
+ {
+ builder.AppendLine("'''");
+ builder.AppendLine($"{MdmProviderGuid}'''");
+ }
+ else
+ {
+ builder.AppendLine($"'{MdmProviderGuid}'");
+ }
+ }
+ }
+
+ builder.AppendLine("}");
+ return BinaryData.FromString(builder.ToString());
+ }
+
+ BinaryData IPersistableModel.Write(ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+
+ switch (format)
+ {
+ case "J":
+ return ModelReaderWriter.Write(this, options);
+ case "bicep":
+ return SerializeBicep(options);
+ default:
+ throw new FormatException($"The model {nameof(AzureActiveDirectoryInfoProperties)} does not support writing '{options.Format}' format.");
+ }
+ }
+
+ AzureActiveDirectoryInfoProperties IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+
+ switch (format)
+ {
+ case "J":
+ {
+ using JsonDocument document = JsonDocument.Parse(data);
+ return DeserializeAzureActiveDirectoryInfoProperties(document.RootElement, options);
+ }
+ default:
+ throw new FormatException($"The model {nameof(AzureActiveDirectoryInfoProperties)} does not support reading '{options.Format}' format.");
+ }
+ }
+
+ string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J";
+ }
+}
diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/AzureActiveDirectoryInfoProperties.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/AzureActiveDirectoryInfoProperties.cs
new file mode 100644
index 000000000000..53c6097fe555
--- /dev/null
+++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/AzureActiveDirectoryInfoProperties.cs
@@ -0,0 +1,76 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections.Generic;
+
+namespace Azure.ResourceManager.DesktopVirtualization.Models
+{
+ /// Azure Active directory info. Only one should be populated based on the join type.
+ internal partial class AzureActiveDirectoryInfoProperties
+ {
+ ///
+ /// Keeps track of any properties unknown to the library.
+ ///
+ /// To assign an object to the value of this property use .
+ ///
+ ///
+ /// To assign an already formatted json string to this property use .
+ ///
+ ///
+ /// Examples:
+ ///
+ /// -
+ /// BinaryData.FromObjectAsJson("foo")
+ /// Creates a payload of "foo".
+ ///
+ /// -
+ /// BinaryData.FromString("\"foo\"")
+ /// Creates a payload of "foo".
+ ///
+ /// -
+ /// BinaryData.FromObjectAsJson(new { key = "value" })
+ /// Creates a payload of { "key": "value" }.
+ ///
+ /// -
+ /// BinaryData.FromString("{\"key\": \"value\"}")
+ /// Creates a payload of { "key": "value" }.
+ ///
+ ///
+ ///
+ ///
+ private IDictionary _serializedAdditionalRawData;
+
+ /// Initializes a new instance of .
+ /// The Mobile Device Management(MDM) guid.
+ /// is null.
+ public AzureActiveDirectoryInfoProperties(string mdmProviderGuid)
+ {
+ Argument.AssertNotNull(mdmProviderGuid, nameof(mdmProviderGuid));
+
+ MdmProviderGuid = mdmProviderGuid;
+ }
+
+ /// Initializes a new instance of .
+ /// The Mobile Device Management(MDM) guid.
+ /// Keeps track of any properties unknown to the library.
+ internal AzureActiveDirectoryInfoProperties(string mdmProviderGuid, IDictionary serializedAdditionalRawData)
+ {
+ MdmProviderGuid = mdmProviderGuid;
+ _serializedAdditionalRawData = serializedAdditionalRawData;
+ }
+
+ /// Initializes a new instance of for deserialization.
+ internal AzureActiveDirectoryInfoProperties()
+ {
+ }
+
+ /// The Mobile Device Management(MDM) guid.
+ [WirePath("mdmProviderGuid")]
+ public string MdmProviderGuid { get; set; }
+ }
+}
diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/BootDiagnosticsInfoPatchProperties.Serialization.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/BootDiagnosticsInfoPatchProperties.Serialization.cs
new file mode 100644
index 000000000000..6161e1fb384a
--- /dev/null
+++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/BootDiagnosticsInfoPatchProperties.Serialization.cs
@@ -0,0 +1,148 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.ClientModel.Primitives;
+using System.Collections.Generic;
+using System.Text.Json;
+using Azure.Core;
+
+namespace Azure.ResourceManager.DesktopVirtualization.Models
+{
+ public partial class BootDiagnosticsInfoPatchProperties : IUtf8JsonSerializable, IJsonModel
+ {
+ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions);
+
+ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options)
+ {
+ writer.WriteStartObject();
+ JsonModelWriteCore(writer, options);
+ writer.WriteEndObject();
+ }
+
+ /// The JSON writer.
+ /// The client options for reading and writing models.
+ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+ if (format != "J")
+ {
+ throw new FormatException($"The model {nameof(BootDiagnosticsInfoPatchProperties)} does not support writing '{format}' format.");
+ }
+
+ if (Optional.IsDefined(Enabled))
+ {
+ writer.WritePropertyName("enabled"u8);
+ writer.WriteBooleanValue(Enabled.Value);
+ }
+ if (Optional.IsDefined(StorageUri))
+ {
+ writer.WritePropertyName("storageUri"u8);
+ writer.WriteStringValue(StorageUri.AbsoluteUri);
+ }
+ if (options.Format != "W" && _serializedAdditionalRawData != null)
+ {
+ foreach (var item in _serializedAdditionalRawData)
+ {
+ writer.WritePropertyName(item.Key);
+#if NET6_0_OR_GREATER
+ writer.WriteRawValue(item.Value);
+#else
+ using (JsonDocument document = JsonDocument.Parse(item.Value))
+ {
+ JsonSerializer.Serialize(writer, document.RootElement);
+ }
+#endif
+ }
+ }
+ }
+
+ BootDiagnosticsInfoPatchProperties IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+ if (format != "J")
+ {
+ throw new FormatException($"The model {nameof(BootDiagnosticsInfoPatchProperties)} does not support reading '{format}' format.");
+ }
+
+ using JsonDocument document = JsonDocument.ParseValue(ref reader);
+ return DeserializeBootDiagnosticsInfoPatchProperties(document.RootElement, options);
+ }
+
+ internal static BootDiagnosticsInfoPatchProperties DeserializeBootDiagnosticsInfoPatchProperties(JsonElement element, ModelReaderWriterOptions options = null)
+ {
+ options ??= ModelSerializationExtensions.WireOptions;
+
+ if (element.ValueKind == JsonValueKind.Null)
+ {
+ return null;
+ }
+ bool? enabled = default;
+ Uri storageUri = default;
+ IDictionary serializedAdditionalRawData = default;
+ Dictionary rawDataDictionary = new Dictionary();
+ foreach (var property in element.EnumerateObject())
+ {
+ if (property.NameEquals("enabled"u8))
+ {
+ if (property.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ enabled = property.Value.GetBoolean();
+ continue;
+ }
+ if (property.NameEquals("storageUri"u8))
+ {
+ if (property.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ storageUri = new Uri(property.Value.GetString());
+ continue;
+ }
+ if (options.Format != "W")
+ {
+ rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText()));
+ }
+ }
+ serializedAdditionalRawData = rawDataDictionary;
+ return new BootDiagnosticsInfoPatchProperties(enabled, storageUri, serializedAdditionalRawData);
+ }
+
+ BinaryData IPersistableModel.Write(ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+
+ switch (format)
+ {
+ case "J":
+ return ModelReaderWriter.Write(this, options);
+ default:
+ throw new FormatException($"The model {nameof(BootDiagnosticsInfoPatchProperties)} does not support writing '{options.Format}' format.");
+ }
+ }
+
+ BootDiagnosticsInfoPatchProperties IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+
+ switch (format)
+ {
+ case "J":
+ {
+ using JsonDocument document = JsonDocument.Parse(data);
+ return DeserializeBootDiagnosticsInfoPatchProperties(document.RootElement, options);
+ }
+ default:
+ throw new FormatException($"The model {nameof(BootDiagnosticsInfoPatchProperties)} does not support reading '{options.Format}' format.");
+ }
+ }
+
+ string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J";
+ }
+}
diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/BootDiagnosticsInfoPatchProperties.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/BootDiagnosticsInfoPatchProperties.cs
new file mode 100644
index 000000000000..bfe54f4305d7
--- /dev/null
+++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/BootDiagnosticsInfoPatchProperties.cs
@@ -0,0 +1,71 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections.Generic;
+
+namespace Azure.ResourceManager.DesktopVirtualization.Models
+{
+ /// Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status. <br><br> You can easily view the output of your console log. <br><br> Azure also enables you to see a screenshot of the VM from the hypervisor.
+ public partial class BootDiagnosticsInfoPatchProperties
+ {
+ ///
+ /// Keeps track of any properties unknown to the library.
+ ///
+ /// To assign an object to the value of this property use .
+ ///
+ ///
+ /// To assign an already formatted json string to this property use .
+ ///
+ ///
+ /// Examples:
+ ///
+ /// -
+ /// BinaryData.FromObjectAsJson("foo")
+ /// Creates a payload of "foo".
+ ///
+ /// -
+ /// BinaryData.FromString("\"foo\"")
+ /// Creates a payload of "foo".
+ ///
+ /// -
+ /// BinaryData.FromObjectAsJson(new { key = "value" })
+ /// Creates a payload of { "key": "value" }.
+ ///
+ /// -
+ /// BinaryData.FromString("{\"key\": \"value\"}")
+ /// Creates a payload of { "key": "value" }.
+ ///
+ ///
+ ///
+ ///
+ private IDictionary _serializedAdditionalRawData;
+
+ /// Initializes a new instance of .
+ public BootDiagnosticsInfoPatchProperties()
+ {
+ }
+
+ /// Initializes a new instance of .
+ /// Whether boot diagnostics should be enabled on the Virtual Machine.
+ /// Uri of the storage account to use for placing the console output and screenshot. <br><br>If storageUri is not specified while enabling boot diagnostics, managed storage will be used.
+ /// Keeps track of any properties unknown to the library.
+ internal BootDiagnosticsInfoPatchProperties(bool? enabled, Uri storageUri, IDictionary serializedAdditionalRawData)
+ {
+ Enabled = enabled;
+ StorageUri = storageUri;
+ _serializedAdditionalRawData = serializedAdditionalRawData;
+ }
+
+ /// Whether boot diagnostics should be enabled on the Virtual Machine.
+ [WirePath("enabled")]
+ public bool? Enabled { get; set; }
+ /// Uri of the storage account to use for placing the console output and screenshot. <br><br>If storageUri is not specified while enabling boot diagnostics, managed storage will be used.
+ [WirePath("storageUri")]
+ public Uri StorageUri { get; set; }
+ }
+}
diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/BootDiagnosticsInfoProperties.Serialization.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/BootDiagnosticsInfoProperties.Serialization.cs
new file mode 100644
index 000000000000..d08c51879c90
--- /dev/null
+++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/BootDiagnosticsInfoProperties.Serialization.cs
@@ -0,0 +1,205 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.ClientModel.Primitives;
+using System.Collections.Generic;
+using System.Text;
+using System.Text.Json;
+using Azure.Core;
+
+namespace Azure.ResourceManager.DesktopVirtualization.Models
+{
+ public partial class BootDiagnosticsInfoProperties : IUtf8JsonSerializable, IJsonModel
+ {
+ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions);
+
+ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options)
+ {
+ writer.WriteStartObject();
+ JsonModelWriteCore(writer, options);
+ writer.WriteEndObject();
+ }
+
+ /// The JSON writer.
+ /// The client options for reading and writing models.
+ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+ if (format != "J")
+ {
+ throw new FormatException($"The model {nameof(BootDiagnosticsInfoProperties)} does not support writing '{format}' format.");
+ }
+
+ if (Optional.IsDefined(Enabled))
+ {
+ writer.WritePropertyName("enabled"u8);
+ writer.WriteBooleanValue(Enabled.Value);
+ }
+ if (Optional.IsDefined(StorageUri))
+ {
+ if (StorageUri != null)
+ {
+ writer.WritePropertyName("storageUri"u8);
+ writer.WriteStringValue(StorageUri.AbsoluteUri);
+ }
+ else
+ {
+ writer.WriteNull("storageUri");
+ }
+ }
+ if (options.Format != "W" && _serializedAdditionalRawData != null)
+ {
+ foreach (var item in _serializedAdditionalRawData)
+ {
+ writer.WritePropertyName(item.Key);
+#if NET6_0_OR_GREATER
+ writer.WriteRawValue(item.Value);
+#else
+ using (JsonDocument document = JsonDocument.Parse(item.Value))
+ {
+ JsonSerializer.Serialize(writer, document.RootElement);
+ }
+#endif
+ }
+ }
+ }
+
+ BootDiagnosticsInfoProperties IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+ if (format != "J")
+ {
+ throw new FormatException($"The model {nameof(BootDiagnosticsInfoProperties)} does not support reading '{format}' format.");
+ }
+
+ using JsonDocument document = JsonDocument.ParseValue(ref reader);
+ return DeserializeBootDiagnosticsInfoProperties(document.RootElement, options);
+ }
+
+ internal static BootDiagnosticsInfoProperties DeserializeBootDiagnosticsInfoProperties(JsonElement element, ModelReaderWriterOptions options = null)
+ {
+ options ??= ModelSerializationExtensions.WireOptions;
+
+ if (element.ValueKind == JsonValueKind.Null)
+ {
+ return null;
+ }
+ bool? enabled = default;
+ Uri storageUri = default;
+ IDictionary serializedAdditionalRawData = default;
+ Dictionary rawDataDictionary = new Dictionary();
+ foreach (var property in element.EnumerateObject())
+ {
+ if (property.NameEquals("enabled"u8))
+ {
+ if (property.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ enabled = property.Value.GetBoolean();
+ continue;
+ }
+ if (property.NameEquals("storageUri"u8))
+ {
+ if (property.Value.ValueKind == JsonValueKind.Null)
+ {
+ storageUri = null;
+ continue;
+ }
+ storageUri = new Uri(property.Value.GetString());
+ continue;
+ }
+ if (options.Format != "W")
+ {
+ rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText()));
+ }
+ }
+ serializedAdditionalRawData = rawDataDictionary;
+ return new BootDiagnosticsInfoProperties(enabled, storageUri, serializedAdditionalRawData);
+ }
+
+ private BinaryData SerializeBicep(ModelReaderWriterOptions options)
+ {
+ StringBuilder builder = new StringBuilder();
+ BicepModelReaderWriterOptions bicepOptions = options as BicepModelReaderWriterOptions;
+ IDictionary propertyOverrides = null;
+ bool hasObjectOverride = bicepOptions != null && bicepOptions.PropertyOverrides.TryGetValue(this, out propertyOverrides);
+ bool hasPropertyOverride = false;
+ string propertyOverride = null;
+
+ builder.AppendLine("{");
+
+ hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Enabled), out propertyOverride);
+ if (hasPropertyOverride)
+ {
+ builder.Append(" enabled: ");
+ builder.AppendLine(propertyOverride);
+ }
+ else
+ {
+ if (Optional.IsDefined(Enabled))
+ {
+ builder.Append(" enabled: ");
+ var boolValue = Enabled.Value == true ? "true" : "false";
+ builder.AppendLine($"{boolValue}");
+ }
+ }
+
+ hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(StorageUri), out propertyOverride);
+ if (hasPropertyOverride)
+ {
+ builder.Append(" storageUri: ");
+ builder.AppendLine(propertyOverride);
+ }
+ else
+ {
+ if (Optional.IsDefined(StorageUri))
+ {
+ builder.Append(" storageUri: ");
+ builder.AppendLine($"'{StorageUri.AbsoluteUri}'");
+ }
+ }
+
+ builder.AppendLine("}");
+ return BinaryData.FromString(builder.ToString());
+ }
+
+ BinaryData IPersistableModel.Write(ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+
+ switch (format)
+ {
+ case "J":
+ return ModelReaderWriter.Write(this, options);
+ case "bicep":
+ return SerializeBicep(options);
+ default:
+ throw new FormatException($"The model {nameof(BootDiagnosticsInfoProperties)} does not support writing '{options.Format}' format.");
+ }
+ }
+
+ BootDiagnosticsInfoProperties IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+
+ switch (format)
+ {
+ case "J":
+ {
+ using JsonDocument document = JsonDocument.Parse(data);
+ return DeserializeBootDiagnosticsInfoProperties(document.RootElement, options);
+ }
+ default:
+ throw new FormatException($"The model {nameof(BootDiagnosticsInfoProperties)} does not support reading '{options.Format}' format.");
+ }
+ }
+
+ string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J";
+ }
+}
diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/BootDiagnosticsInfoProperties.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/BootDiagnosticsInfoProperties.cs
new file mode 100644
index 000000000000..52c5e66bdf7b
--- /dev/null
+++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/BootDiagnosticsInfoProperties.cs
@@ -0,0 +1,71 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections.Generic;
+
+namespace Azure.ResourceManager.DesktopVirtualization.Models
+{
+ /// Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status. <br><br> You can easily view the output of your console log. <br><br> Azure also enables you to see a screenshot of the VM from the hypervisor.
+ public partial class BootDiagnosticsInfoProperties
+ {
+ ///
+ /// Keeps track of any properties unknown to the library.
+ ///
+ /// To assign an object to the value of this property use .
+ ///
+ ///
+ /// To assign an already formatted json string to this property use .
+ ///
+ ///
+ /// Examples:
+ ///
+ /// -
+ /// BinaryData.FromObjectAsJson("foo")
+ /// Creates a payload of "foo".
+ ///
+ /// -
+ /// BinaryData.FromString("\"foo\"")
+ /// Creates a payload of "foo".
+ ///
+ /// -
+ /// BinaryData.FromObjectAsJson(new { key = "value" })
+ /// Creates a payload of { "key": "value" }.
+ ///
+ /// -
+ /// BinaryData.FromString("{\"key\": \"value\"}")
+ /// Creates a payload of { "key": "value" }.
+ ///
+ ///
+ ///
+ ///
+ private IDictionary _serializedAdditionalRawData;
+
+ /// Initializes a new instance of .
+ public BootDiagnosticsInfoProperties()
+ {
+ }
+
+ /// Initializes a new instance of .
+ /// Whether boot diagnostics should be enabled on the Virtual Machine.
+ /// Uri of the storage account to use for placing the console output and screenshot. <br><br>If storageUri is not specified while enabling boot diagnostics, managed storage will be used.
+ /// Keeps track of any properties unknown to the library.
+ internal BootDiagnosticsInfoProperties(bool? enabled, Uri storageUri, IDictionary serializedAdditionalRawData)
+ {
+ Enabled = enabled;
+ StorageUri = storageUri;
+ _serializedAdditionalRawData = serializedAdditionalRawData;
+ }
+
+ /// Whether boot diagnostics should be enabled on the Virtual Machine.
+ [WirePath("enabled")]
+ public bool? Enabled { get; set; }
+ /// Uri of the storage account to use for placing the console output and screenshot. <br><br>If storageUri is not specified while enabling boot diagnostics, managed storage will be used.
+ [WirePath("storageUri")]
+ public Uri StorageUri { get; set; }
+ }
+}
diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/CustomInfoPatchProperties.Serialization.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/CustomInfoPatchProperties.Serialization.cs
new file mode 100644
index 000000000000..8334b5a70ab9
--- /dev/null
+++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/CustomInfoPatchProperties.Serialization.cs
@@ -0,0 +1,133 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.ClientModel.Primitives;
+using System.Collections.Generic;
+using System.Text.Json;
+using Azure.Core;
+
+namespace Azure.ResourceManager.DesktopVirtualization.Models
+{
+ internal partial class CustomInfoPatchProperties : IUtf8JsonSerializable, IJsonModel
+ {
+ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions);
+
+ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options)
+ {
+ writer.WriteStartObject();
+ JsonModelWriteCore(writer, options);
+ writer.WriteEndObject();
+ }
+
+ /// The JSON writer.
+ /// The client options for reading and writing models.
+ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+ if (format != "J")
+ {
+ throw new FormatException($"The model {nameof(CustomInfoPatchProperties)} does not support writing '{format}' format.");
+ }
+
+ if (Optional.IsDefined(ResourceId))
+ {
+ writer.WritePropertyName("resourceId"u8);
+ writer.WriteStringValue(ResourceId);
+ }
+ if (options.Format != "W" && _serializedAdditionalRawData != null)
+ {
+ foreach (var item in _serializedAdditionalRawData)
+ {
+ writer.WritePropertyName(item.Key);
+#if NET6_0_OR_GREATER
+ writer.WriteRawValue(item.Value);
+#else
+ using (JsonDocument document = JsonDocument.Parse(item.Value))
+ {
+ JsonSerializer.Serialize(writer, document.RootElement);
+ }
+#endif
+ }
+ }
+ }
+
+ CustomInfoPatchProperties IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+ if (format != "J")
+ {
+ throw new FormatException($"The model {nameof(CustomInfoPatchProperties)} does not support reading '{format}' format.");
+ }
+
+ using JsonDocument document = JsonDocument.ParseValue(ref reader);
+ return DeserializeCustomInfoPatchProperties(document.RootElement, options);
+ }
+
+ internal static CustomInfoPatchProperties DeserializeCustomInfoPatchProperties(JsonElement element, ModelReaderWriterOptions options = null)
+ {
+ options ??= ModelSerializationExtensions.WireOptions;
+
+ if (element.ValueKind == JsonValueKind.Null)
+ {
+ return null;
+ }
+ ResourceIdentifier resourceId = default;
+ IDictionary serializedAdditionalRawData = default;
+ Dictionary rawDataDictionary = new Dictionary();
+ foreach (var property in element.EnumerateObject())
+ {
+ if (property.NameEquals("resourceId"u8))
+ {
+ if (property.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ resourceId = new ResourceIdentifier(property.Value.GetString());
+ continue;
+ }
+ if (options.Format != "W")
+ {
+ rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText()));
+ }
+ }
+ serializedAdditionalRawData = rawDataDictionary;
+ return new CustomInfoPatchProperties(resourceId, serializedAdditionalRawData);
+ }
+
+ BinaryData IPersistableModel.Write(ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+
+ switch (format)
+ {
+ case "J":
+ return ModelReaderWriter.Write(this, options);
+ default:
+ throw new FormatException($"The model {nameof(CustomInfoPatchProperties)} does not support writing '{options.Format}' format.");
+ }
+ }
+
+ CustomInfoPatchProperties IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+
+ switch (format)
+ {
+ case "J":
+ {
+ using JsonDocument document = JsonDocument.Parse(data);
+ return DeserializeCustomInfoPatchProperties(document.RootElement, options);
+ }
+ default:
+ throw new FormatException($"The model {nameof(CustomInfoPatchProperties)} does not support reading '{options.Format}' format.");
+ }
+ }
+
+ string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J";
+ }
+}
diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/CustomInfoPatchProperties.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/CustomInfoPatchProperties.cs
new file mode 100644
index 000000000000..dc841215a87f
--- /dev/null
+++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/CustomInfoPatchProperties.cs
@@ -0,0 +1,67 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections.Generic;
+using Azure.Core;
+
+namespace Azure.ResourceManager.DesktopVirtualization.Models
+{
+ /// Custom image information.
+ internal partial class CustomInfoPatchProperties
+ {
+ ///
+ /// Keeps track of any properties unknown to the library.
+ ///
+ /// To assign an object to the value of this property use .
+ ///
+ ///
+ /// To assign an already formatted json string to this property use .
+ ///
+ ///
+ /// Examples:
+ ///
+ /// -
+ /// BinaryData.FromObjectAsJson("foo")
+ /// Creates a payload of "foo".
+ ///
+ /// -
+ /// BinaryData.FromString("\"foo\"")
+ /// Creates a payload of "foo".
+ ///
+ /// -
+ /// BinaryData.FromObjectAsJson(new { key = "value" })
+ /// Creates a payload of { "key": "value" }.
+ ///
+ /// -
+ /// BinaryData.FromString("{\"key\": \"value\"}")
+ /// Creates a payload of { "key": "value" }.
+ ///
+ ///
+ ///
+ ///
+ private IDictionary _serializedAdditionalRawData;
+
+ /// Initializes a new instance of .
+ public CustomInfoPatchProperties()
+ {
+ }
+
+ /// Initializes a new instance of .
+ /// The resource id of the custom image.
+ /// Keeps track of any properties unknown to the library.
+ internal CustomInfoPatchProperties(ResourceIdentifier resourceId, IDictionary serializedAdditionalRawData)
+ {
+ ResourceId = resourceId;
+ _serializedAdditionalRawData = serializedAdditionalRawData;
+ }
+
+ /// The resource id of the custom image.
+ [WirePath("resourceId")]
+ public ResourceIdentifier ResourceId { get; set; }
+ }
+}
diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/CustomInfoProperties.Serialization.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/CustomInfoProperties.Serialization.cs
new file mode 100644
index 000000000000..b90178e5b160
--- /dev/null
+++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/CustomInfoProperties.Serialization.cs
@@ -0,0 +1,159 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.ClientModel.Primitives;
+using System.Collections.Generic;
+using System.Text;
+using System.Text.Json;
+using Azure.Core;
+
+namespace Azure.ResourceManager.DesktopVirtualization.Models
+{
+ internal partial class CustomInfoProperties : IUtf8JsonSerializable, IJsonModel
+ {
+ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions);
+
+ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options)
+ {
+ writer.WriteStartObject();
+ JsonModelWriteCore(writer, options);
+ writer.WriteEndObject();
+ }
+
+ /// The JSON writer.
+ /// The client options for reading and writing models.
+ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+ if (format != "J")
+ {
+ throw new FormatException($"The model {nameof(CustomInfoProperties)} does not support writing '{format}' format.");
+ }
+
+ writer.WritePropertyName("resourceId"u8);
+ writer.WriteStringValue(ResourceId);
+ if (options.Format != "W" && _serializedAdditionalRawData != null)
+ {
+ foreach (var item in _serializedAdditionalRawData)
+ {
+ writer.WritePropertyName(item.Key);
+#if NET6_0_OR_GREATER
+ writer.WriteRawValue(item.Value);
+#else
+ using (JsonDocument document = JsonDocument.Parse(item.Value))
+ {
+ JsonSerializer.Serialize(writer, document.RootElement);
+ }
+#endif
+ }
+ }
+ }
+
+ CustomInfoProperties IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+ if (format != "J")
+ {
+ throw new FormatException($"The model {nameof(CustomInfoProperties)} does not support reading '{format}' format.");
+ }
+
+ using JsonDocument document = JsonDocument.ParseValue(ref reader);
+ return DeserializeCustomInfoProperties(document.RootElement, options);
+ }
+
+ internal static CustomInfoProperties DeserializeCustomInfoProperties(JsonElement element, ModelReaderWriterOptions options = null)
+ {
+ options ??= ModelSerializationExtensions.WireOptions;
+
+ if (element.ValueKind == JsonValueKind.Null)
+ {
+ return null;
+ }
+ ResourceIdentifier resourceId = default;
+ IDictionary serializedAdditionalRawData = default;
+ Dictionary rawDataDictionary = new Dictionary();
+ foreach (var property in element.EnumerateObject())
+ {
+ if (property.NameEquals("resourceId"u8))
+ {
+ resourceId = new ResourceIdentifier(property.Value.GetString());
+ continue;
+ }
+ if (options.Format != "W")
+ {
+ rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText()));
+ }
+ }
+ serializedAdditionalRawData = rawDataDictionary;
+ return new CustomInfoProperties(resourceId, serializedAdditionalRawData);
+ }
+
+ private BinaryData SerializeBicep(ModelReaderWriterOptions options)
+ {
+ StringBuilder builder = new StringBuilder();
+ BicepModelReaderWriterOptions bicepOptions = options as BicepModelReaderWriterOptions;
+ IDictionary propertyOverrides = null;
+ bool hasObjectOverride = bicepOptions != null && bicepOptions.PropertyOverrides.TryGetValue(this, out propertyOverrides);
+ bool hasPropertyOverride = false;
+ string propertyOverride = null;
+
+ builder.AppendLine("{");
+
+ hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(ResourceId), out propertyOverride);
+ if (hasPropertyOverride)
+ {
+ builder.Append(" resourceId: ");
+ builder.AppendLine(propertyOverride);
+ }
+ else
+ {
+ if (Optional.IsDefined(ResourceId))
+ {
+ builder.Append(" resourceId: ");
+ builder.AppendLine($"'{ResourceId.ToString()}'");
+ }
+ }
+
+ builder.AppendLine("}");
+ return BinaryData.FromString(builder.ToString());
+ }
+
+ BinaryData IPersistableModel.Write(ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+
+ switch (format)
+ {
+ case "J":
+ return ModelReaderWriter.Write(this, options);
+ case "bicep":
+ return SerializeBicep(options);
+ default:
+ throw new FormatException($"The model {nameof(CustomInfoProperties)} does not support writing '{options.Format}' format.");
+ }
+ }
+
+ CustomInfoProperties IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+
+ switch (format)
+ {
+ case "J":
+ {
+ using JsonDocument document = JsonDocument.Parse(data);
+ return DeserializeCustomInfoProperties(document.RootElement, options);
+ }
+ default:
+ throw new FormatException($"The model {nameof(CustomInfoProperties)} does not support reading '{options.Format}' format.");
+ }
+ }
+
+ string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J";
+ }
+}
diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/CustomInfoProperties.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/CustomInfoProperties.cs
new file mode 100644
index 000000000000..70468866dcf2
--- /dev/null
+++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/CustomInfoProperties.cs
@@ -0,0 +1,77 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections.Generic;
+using Azure.Core;
+
+namespace Azure.ResourceManager.DesktopVirtualization.Models
+{
+ /// Custom image information.
+ internal partial class CustomInfoProperties
+ {
+ ///
+ /// Keeps track of any properties unknown to the library.
+ ///
+ /// To assign an object to the value of this property use .
+ ///
+ ///
+ /// To assign an already formatted json string to this property use .
+ ///
+ ///
+ /// Examples:
+ ///
+ /// -
+ /// BinaryData.FromObjectAsJson("foo")
+ /// Creates a payload of "foo".
+ ///
+ /// -
+ /// BinaryData.FromString("\"foo\"")
+ /// Creates a payload of "foo".
+ ///
+ /// -
+ /// BinaryData.FromObjectAsJson(new { key = "value" })
+ /// Creates a payload of { "key": "value" }.
+ ///
+ /// -
+ /// BinaryData.FromString("{\"key\": \"value\"}")
+ /// Creates a payload of { "key": "value" }.
+ ///
+ ///
+ ///
+ ///
+ private IDictionary _serializedAdditionalRawData;
+
+ /// Initializes a new instance of .
+ /// The resource id of the custom image.
+ /// is null.
+ public CustomInfoProperties(ResourceIdentifier resourceId)
+ {
+ Argument.AssertNotNull(resourceId, nameof(resourceId));
+
+ ResourceId = resourceId;
+ }
+
+ /// Initializes a new instance of .
+ /// The resource id of the custom image.
+ /// Keeps track of any properties unknown to the library.
+ internal CustomInfoProperties(ResourceIdentifier resourceId, IDictionary serializedAdditionalRawData)
+ {
+ ResourceId = resourceId;
+ _serializedAdditionalRawData = serializedAdditionalRawData;
+ }
+
+ /// Initializes a new instance of for deserialization.
+ internal CustomInfoProperties()
+ {
+ }
+
+ /// The resource id of the custom image.
+ [WirePath("resourceId")]
+ public ResourceIdentifier ResourceId { get; set; }
+ }
+}
diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/DirectUDP.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/DirectUDP.cs
new file mode 100644
index 000000000000..85ae7021d9ad
--- /dev/null
+++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/DirectUDP.cs
@@ -0,0 +1,54 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.ComponentModel;
+
+namespace Azure.ResourceManager.DesktopVirtualization.Models
+{
+ /// Default: AVD-wide settings are used to determine connection availability, Enabled: UDP will attempt this connection type when making connections. This means that this connection is possible, but is not guaranteed, as there are other factors that may prevent this connection type, Disabled: UDP will not attempt this connection type when making connections.
+ public readonly partial struct DirectUDP : IEquatable
+ {
+ private readonly string _value;
+
+ /// Initializes a new instance of .
+ /// is null.
+ public DirectUDP(string value)
+ {
+ _value = value ?? throw new ArgumentNullException(nameof(value));
+ }
+
+ private const string DefaultValue = "Default";
+ private const string EnabledValue = "Enabled";
+ private const string DisabledValue = "Disabled";
+
+ /// Default.
+ public static DirectUDP Default { get; } = new DirectUDP(DefaultValue);
+ /// Enabled.
+ public static DirectUDP Enabled { get; } = new DirectUDP(EnabledValue);
+ /// Disabled.
+ public static DirectUDP Disabled { get; } = new DirectUDP(DisabledValue);
+ /// Determines if two values are the same.
+ public static bool operator ==(DirectUDP left, DirectUDP right) => left.Equals(right);
+ /// Determines if two values are not the same.
+ public static bool operator !=(DirectUDP left, DirectUDP right) => !left.Equals(right);
+ /// Converts a to a .
+ public static implicit operator DirectUDP(string value) => new DirectUDP(value);
+
+ ///
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public override bool Equals(object obj) => obj is DirectUDP other && Equals(other);
+ ///
+ public bool Equals(DirectUDP other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase);
+
+ ///
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0;
+ ///
+ public override string ToString() => _value;
+ }
+}
diff --git a/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/DiskInfoPatchProperties.Serialization.cs b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/DiskInfoPatchProperties.Serialization.cs
new file mode 100644
index 000000000000..8afa25a25579
--- /dev/null
+++ b/sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/src/Generated/Models/DiskInfoPatchProperties.Serialization.cs
@@ -0,0 +1,133 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.ClientModel.Primitives;
+using System.Collections.Generic;
+using System.Text.Json;
+using Azure.Core;
+
+namespace Azure.ResourceManager.DesktopVirtualization.Models
+{
+ internal partial class DiskInfoPatchProperties : IUtf8JsonSerializable, IJsonModel
+ {
+ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions);
+
+ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options)
+ {
+ writer.WriteStartObject();
+ JsonModelWriteCore(writer, options);
+ writer.WriteEndObject();
+ }
+
+ ///