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/ci.mgmt.yml b/sdk/desktopvirtualization/ci.mgmt.yml
index 3d6f40025c77..b6af32cc15c3 100644
--- a/sdk/desktopvirtualization/ci.mgmt.yml
+++ b/sdk/desktopvirtualization/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/desktopvirtualization/ci.mgmt.yml
- sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/desktopvirtualization/ci.mgmt.yml
+ - sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/devcenter/ci.mgmt.yml b/sdk/devcenter/ci.mgmt.yml
index 136d77bbba6d..cfa8320239dd 100644
--- a/sdk/devcenter/ci.mgmt.yml
+++ b/sdk/devcenter/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/devcenter/ci.mgmt.yml
- sdk/devcenter/Azure.ResourceManager.DevCenter/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/devcenter/ci.mgmt.yml
+ - sdk/devcenter/Azure.ResourceManager.DevCenter/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/deviceprovisioningservices/ci.mgmt.yml b/sdk/deviceprovisioningservices/ci.mgmt.yml
index f9c94973a324..733989d927dc 100644
--- a/sdk/deviceprovisioningservices/ci.mgmt.yml
+++ b/sdk/deviceprovisioningservices/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/deviceprovisioningservices/ci.mgmt.yml
- sdk/deviceprovisioningservices/Azure.ResourceManager.DeviceProvisioningServices/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/deviceprovisioningservices/ci.mgmt.yml
+ - sdk/deviceprovisioningservices/Azure.ResourceManager.DeviceProvisioningServices/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/deviceregistry/ci.mgmt.yml b/sdk/deviceregistry/ci.mgmt.yml
index 05fffe301114..271e718d8676 100644
--- a/sdk/deviceregistry/ci.mgmt.yml
+++ b/sdk/deviceregistry/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/deviceregistry/ci.mgmt.yml
- sdk/deviceregistry/Azure.ResourceManager.DeviceRegistry/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/deviceregistry/ci.mgmt.yml
+ - sdk/deviceregistry/Azure.ResourceManager.DeviceRegistry/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/deviceupdate/ci.mgmt.yml b/sdk/deviceupdate/ci.mgmt.yml
index c1315e462bb9..d8abd00a2256 100644
--- a/sdk/deviceupdate/ci.mgmt.yml
+++ b/sdk/deviceupdate/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/deviceupdate/ci.mgmt.yml
- sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/deviceupdate/ci.mgmt.yml
+ - sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/devopsinfrastructure/ci.mgmt.yml b/sdk/devopsinfrastructure/ci.mgmt.yml
index 0f2db1225cf0..8e463b9f3794 100644
--- a/sdk/devopsinfrastructure/ci.mgmt.yml
+++ b/sdk/devopsinfrastructure/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/devopsinfrastructure/ci.mgmt.yml
- sdk/devopsinfrastructure/Azure.ResourceManager.DevOpsInfrastructure/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/devopsinfrastructure/ci.mgmt.yml
+ - sdk/devopsinfrastructure/Azure.ResourceManager.DevOpsInfrastructure/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/devspaces/ci.mgmt.yml b/sdk/devspaces/ci.mgmt.yml
index b63234a64555..248d3c3143f0 100644
--- a/sdk/devspaces/ci.mgmt.yml
+++ b/sdk/devspaces/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/devspaces/ci.mgmt.yml
- sdk/devspaces/Azure.ResourceManager.DevSpaces/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/devspaces/ci.mgmt.yml
+ - sdk/devspaces/Azure.ResourceManager.DevSpaces/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/devtestlabs/ci.mgmt.yml b/sdk/devtestlabs/ci.mgmt.yml
index 1946409a6b75..7ee994de378b 100644
--- a/sdk/devtestlabs/ci.mgmt.yml
+++ b/sdk/devtestlabs/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/devtestlabs/ci.mgmt.yml
- sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/devtestlabs/ci.mgmt.yml
+ - sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/digitaltwins/ci.mgmt.yml b/sdk/digitaltwins/ci.mgmt.yml
index a0e8233a36cf..a8766e215b7c 100644
--- a/sdk/digitaltwins/ci.mgmt.yml
+++ b/sdk/digitaltwins/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/digitaltwins/ci.mgmt.yml
- sdk/digitaltwins/Azure.ResourceManager.DigitalTwins/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/digitaltwins/ci.mgmt.yml
+ - sdk/digitaltwins/Azure.ResourceManager.DigitalTwins/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/dns/ci.mgmt.yml b/sdk/dns/ci.mgmt.yml
index 8357809b4e6f..ec6edfb21775 100644
--- a/sdk/dns/ci.mgmt.yml
+++ b/sdk/dns/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/dns/ci.mgmt.yml
- sdk/dns/Azure.ResourceManager.Dns/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/dns/ci.mgmt.yml
+ - sdk/dns/Azure.ResourceManager.Dns/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/dnsresolver/ci.mgmt.yml b/sdk/dnsresolver/ci.mgmt.yml
index afa270cdc600..6b2569c11c49 100644
--- a/sdk/dnsresolver/ci.mgmt.yml
+++ b/sdk/dnsresolver/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/dnsresolver/ci.mgmt.yml
- sdk/dnsresolver/Azure.ResourceManager.DnsResolver/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/dnsresolver/ci.mgmt.yml
+ - sdk/dnsresolver/Azure.ResourceManager.DnsResolver/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/dynatrace/ci.mgmt.yml b/sdk/dynatrace/ci.mgmt.yml
index f76bf3a316af..fe97a3c1f612 100644
--- a/sdk/dynatrace/ci.mgmt.yml
+++ b/sdk/dynatrace/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/dynatrace/ci.mgmt.yml
- sdk/dynatrace/Azure.ResourceManager.Dynatrace/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/dynatrace/ci.mgmt.yml
+ - sdk/dynatrace/Azure.ResourceManager.Dynatrace/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/edgeorder/ci.mgmt.yml b/sdk/edgeorder/ci.mgmt.yml
index 4d1fbaa121f9..cb4d87c29a1b 100644
--- a/sdk/edgeorder/ci.mgmt.yml
+++ b/sdk/edgeorder/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/edgeorder/ci.mgmt.yml
- sdk/edgeorder/Azure.ResourceManager.EdgeOrder/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/edgeorder/ci.mgmt.yml
+ - sdk/edgeorder/Azure.ResourceManager.EdgeOrder/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/edgezones/ci.mgmt.yml b/sdk/edgezones/ci.mgmt.yml
index 9dc8d79aab30..ebed00842581 100644
--- a/sdk/edgezones/ci.mgmt.yml
+++ b/sdk/edgezones/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/edgezones/ci.mgmt.yml
- sdk/edgezones/Azure.ResourceManager.EdgeZones/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/edgezones/ci.mgmt.yml
+ - sdk/edgezones/Azure.ResourceManager.EdgeZones/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/elastic/ci.mgmt.yml b/sdk/elastic/ci.mgmt.yml
index 76ecd8b3923d..2e29070fce4a 100644
--- a/sdk/elastic/ci.mgmt.yml
+++ b/sdk/elastic/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/elastic/ci.mgmt.yml
- sdk/elastic/Azure.ResourceManager.Elastic/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/elastic/ci.mgmt.yml
+ - sdk/elastic/Azure.ResourceManager.Elastic/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/elasticsan/ci.mgmt.yml b/sdk/elasticsan/ci.mgmt.yml
index 7e2bb35dde21..dba4416415e9 100644
--- a/sdk/elasticsan/ci.mgmt.yml
+++ b/sdk/elasticsan/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/elasticsan/ci.mgmt.yml
- sdk/elasticsan/Azure.ResourceManager.ElasticSan/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/elasticsan/ci.mgmt.yml
+ - sdk/elasticsan/Azure.ResourceManager.ElasticSan/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/eventgrid/ci.mgmt.yml b/sdk/eventgrid/ci.mgmt.yml
index cb02a1b84e8b..1b2eaffc0fdd 100644
--- a/sdk/eventgrid/ci.mgmt.yml
+++ b/sdk/eventgrid/ci.mgmt.yml
@@ -2,6 +2,7 @@
# This is for Track 2 managment plane SDK
trigger: none
+
pr:
branches:
include:
@@ -14,6 +15,18 @@ pr:
- sdk/eventgrid/ci.mgmt.yml
- sdk/eventgrid/Azure.ResourceManager.EventGrid/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/eventgrid/ci.mgmt.yml
+ - sdk/eventgrid/Azure.ResourceManager.EventGrid/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/eventhub/ci.mgmt.yml b/sdk/eventhub/ci.mgmt.yml
index b7c0045fffb3..dadda2db6dc5 100644
--- a/sdk/eventhub/ci.mgmt.yml
+++ b/sdk/eventhub/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/eventhub/ci.mgmt.yml
- sdk/eventhub/Azure.ResourceManager.EventHubs/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/eventhub/ci.mgmt.yml
+ - sdk/eventhub/Azure.ResourceManager.EventHubs/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/extendedlocation/ci.mgmt.yml b/sdk/extendedlocation/ci.mgmt.yml
index 4fb53374be74..e9c6939e2b1d 100644
--- a/sdk/extendedlocation/ci.mgmt.yml
+++ b/sdk/extendedlocation/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/extendedlocation/ci.mgmt.yml
- sdk/extendedlocation/Azure.ResourceManager.ExtendedLocations/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/extendedlocation/ci.mgmt.yml
+ - sdk/extendedlocation/Azure.ResourceManager.ExtendedLocations/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/fabric/ci.mgmt.yml b/sdk/fabric/ci.mgmt.yml
index d0bc6cea6eb9..5cc91d0c8722 100644
--- a/sdk/fabric/ci.mgmt.yml
+++ b/sdk/fabric/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/fabric/ci.mgmt.yml
- sdk/fabric/Azure.ResourceManager.Fabric/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/fabric/ci.mgmt.yml
+ - sdk/fabric/Azure.ResourceManager.Fabric/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/fleet/ci.mgmt.yml b/sdk/fleet/ci.mgmt.yml
index 09a225882401..469d40cad619 100644
--- a/sdk/fleet/ci.mgmt.yml
+++ b/sdk/fleet/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/fleet/ci.mgmt.yml
- sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/fleet/ci.mgmt.yml
+ - sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/fluidrelay/ci.mgmt.yml b/sdk/fluidrelay/ci.mgmt.yml
index d43dfe94d729..1673db3a9f26 100644
--- a/sdk/fluidrelay/ci.mgmt.yml
+++ b/sdk/fluidrelay/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/fluidrelay/ci.mgmt.yml
- sdk/fluidrelay/Azure.ResourceManager.FluidRelay/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/fluidrelay/ci.mgmt.yml
+ - sdk/fluidrelay/Azure.ResourceManager.FluidRelay/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/frontdoor/ci.mgmt.yml b/sdk/frontdoor/ci.mgmt.yml
index bff9dbcae78c..f19923a1b43d 100644
--- a/sdk/frontdoor/ci.mgmt.yml
+++ b/sdk/frontdoor/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/frontdoor/ci.mgmt.yml
- sdk/frontdoor/Azure.ResourceManager.FrontDoor/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/frontdoor/ci.mgmt.yml
+ - sdk/frontdoor/Azure.ResourceManager.FrontDoor/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/grafana/ci.mgmt.yml b/sdk/grafana/ci.mgmt.yml
index a2f22e6ee33b..848173351b4d 100644
--- a/sdk/grafana/ci.mgmt.yml
+++ b/sdk/grafana/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/grafana/ci.mgmt.yml
- sdk/grafana/Azure.ResourceManager.Grafana/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/grafana/ci.mgmt.yml
+ - sdk/grafana/Azure.ResourceManager.Grafana/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/graphservices/ci.mgmt.yml b/sdk/graphservices/ci.mgmt.yml
index 717a9a4a1963..ccd14b614b43 100644
--- a/sdk/graphservices/ci.mgmt.yml
+++ b/sdk/graphservices/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/graphservices/ci.mgmt.yml
- sdk/graphservices/Azure.ResourceManager.GraphServices/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/graphservices/ci.mgmt.yml
+ - sdk/graphservices/Azure.ResourceManager.GraphServices/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/guestconfiguration/ci.mgmt.yml b/sdk/guestconfiguration/ci.mgmt.yml
index 5ebc59550f58..c2d2526d488b 100644
--- a/sdk/guestconfiguration/ci.mgmt.yml
+++ b/sdk/guestconfiguration/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/guestconfiguration/ci.mgmt.yml
- sdk/guestconfiguration/Azure.ResourceManager.GuestConfiguration/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/guestconfiguration/ci.mgmt.yml
+ - sdk/guestconfiguration/Azure.ResourceManager.GuestConfiguration/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/hardwaresecuritymodules/ci.mgmt.yml b/sdk/hardwaresecuritymodules/ci.mgmt.yml
index 21778711f99e..d94eea966253 100644
--- a/sdk/hardwaresecuritymodules/ci.mgmt.yml
+++ b/sdk/hardwaresecuritymodules/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/hardwaresecuritymodules/ci.mgmt.yml
- sdk/hardwaresecuritymodules/Azure.ResourceManager.HardwareSecurityModules/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/hardwaresecuritymodules/ci.mgmt.yml
+ - sdk/hardwaresecuritymodules/Azure.ResourceManager.HardwareSecurityModules/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/hdinsight/ci.mgmt.yml b/sdk/hdinsight/ci.mgmt.yml
index 4df0a02f5c80..29d3b404c76a 100644
--- a/sdk/hdinsight/ci.mgmt.yml
+++ b/sdk/hdinsight/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/hdinsight/ci.mgmt.yml
- sdk/hdinsight/Azure.ResourceManager.HDInsight/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/hdinsight/ci.mgmt.yml
+ - sdk/hdinsight/Azure.ResourceManager.HDInsight/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/hdinsightcontainers/ci.mgmt.yml b/sdk/hdinsightcontainers/ci.mgmt.yml
index 69a7566e0caa..66a879d8fbcd 100644
--- a/sdk/hdinsightcontainers/ci.mgmt.yml
+++ b/sdk/hdinsightcontainers/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/hdinsightcontainers/ci.mgmt.yml
- sdk/hdinsightcontainers/Azure.ResourceManager.HDInsight.Containers/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/hdinsightcontainers/ci.mgmt.yml
+ - sdk/hdinsightcontainers/Azure.ResourceManager.HDInsight.Containers/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/healthbot/ci.mgmt.yml b/sdk/healthbot/ci.mgmt.yml
index 14bfc7f855e6..4c2698659502 100644
--- a/sdk/healthbot/ci.mgmt.yml
+++ b/sdk/healthbot/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/healthbot/ci.mgmt.yml
- sdk/healthbot/Azure.ResourceManager.HealthBot/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/healthbot/ci.mgmt.yml
+ - sdk/healthbot/Azure.ResourceManager.HealthBot/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/healthcareapis/ci.mgmt.yml b/sdk/healthcareapis/ci.mgmt.yml
index 57030df35e56..6f02ac8fd023 100644
--- a/sdk/healthcareapis/ci.mgmt.yml
+++ b/sdk/healthcareapis/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/healthcareapis/ci.mgmt.yml
- sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/healthcareapis/ci.mgmt.yml
+ - sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/healthdataaiservices/ci.mgmt.yml b/sdk/healthdataaiservices/ci.mgmt.yml
index 016a917c1e19..45857afa5722 100644
--- a/sdk/healthdataaiservices/ci.mgmt.yml
+++ b/sdk/healthdataaiservices/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/healthdataaiservices/ci.mgmt.yml
- sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/healthdataaiservices/ci.mgmt.yml
+ - sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/hybridaks/ci.mgmt.yml b/sdk/hybridaks/ci.mgmt.yml
index 552eb3298d3a..af3d82703d11 100644
--- a/sdk/hybridaks/ci.mgmt.yml
+++ b/sdk/hybridaks/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/hybridaks/ci.mgmt.yml
- sdk/hybridaks/Azure.ResourceManager.HybridContainerService/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/hybridaks/ci.mgmt.yml
+ - sdk/hybridaks/Azure.ResourceManager.HybridContainerService/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/hybridcompute/ci.mgmt.yml b/sdk/hybridcompute/ci.mgmt.yml
index d163a966512d..15f8656c399e 100644
--- a/sdk/hybridcompute/ci.mgmt.yml
+++ b/sdk/hybridcompute/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/hybridcompute/ci.mgmt.yml
- sdk/hybridcompute/Azure.ResourceManager.HybridCompute/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/hybridcompute/ci.mgmt.yml
+ - sdk/hybridcompute/Azure.ResourceManager.HybridCompute/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/hybridconnectivity/ci.mgmt.yml b/sdk/hybridconnectivity/ci.mgmt.yml
index 9ccca42ef557..8d809d4d9633 100644
--- a/sdk/hybridconnectivity/ci.mgmt.yml
+++ b/sdk/hybridconnectivity/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/hybridconnectivity/ci.mgmt.yml
- sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/hybridconnectivity/ci.mgmt.yml
+ - sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/hybridkubernetes/ci.mgmt.yml b/sdk/hybridkubernetes/ci.mgmt.yml
index fff768430c9d..bb98635a8e1c 100644
--- a/sdk/hybridkubernetes/ci.mgmt.yml
+++ b/sdk/hybridkubernetes/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/hybridkubernetes/ci.mgmt.yml
- sdk/hybridkubernetes/Azure.ResourceManager.Kubernetes/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/hybridkubernetes/ci.mgmt.yml
+ - sdk/hybridkubernetes/Azure.ResourceManager.Kubernetes/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/hybridnetwork/ci.mgmt.yml b/sdk/hybridnetwork/ci.mgmt.yml
index 35f71f8ae870..39412ff81f05 100644
--- a/sdk/hybridnetwork/ci.mgmt.yml
+++ b/sdk/hybridnetwork/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/hybridnetwork/ci.mgmt.yml
- sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/hybridnetwork/ci.mgmt.yml
+ - sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/informaticadatamanagement/ci.mgmt.yml b/sdk/informaticadatamanagement/ci.mgmt.yml
index 03013cc9c90b..82d3bafd3f7f 100644
--- a/sdk/informaticadatamanagement/ci.mgmt.yml
+++ b/sdk/informaticadatamanagement/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/informaticadatamanagement/ci.mgmt.yml
- sdk/informaticadatamanagement/Azure.ResourceManager.InformaticaDataManagement/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/informaticadatamanagement/ci.mgmt.yml
+ - sdk/informaticadatamanagement/Azure.ResourceManager.InformaticaDataManagement/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/iot/ci.mgmt.yml b/sdk/iot/ci.mgmt.yml
index 6260cd0d71f2..199578b03331 100644
--- a/sdk/iot/ci.mgmt.yml
+++ b/sdk/iot/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/iot/ci.mgmt.yml
- sdk/iot/Azure.ResourceManager.IotFirmwareDefense/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/iot/ci.mgmt.yml
+ - sdk/iot/Azure.ResourceManager.IotFirmwareDefense/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/iotcentral/ci.mgmt.yml b/sdk/iotcentral/ci.mgmt.yml
index 1702fd71c6dd..1225f99c37fd 100644
--- a/sdk/iotcentral/ci.mgmt.yml
+++ b/sdk/iotcentral/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/iotcentral/ci.mgmt.yml
- sdk/iotcentral/Azure.ResourceManager.IotCentral/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/iotcentral/ci.mgmt.yml
+ - sdk/iotcentral/Azure.ResourceManager.IotCentral/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/iothub/ci.mgmt.yml b/sdk/iothub/ci.mgmt.yml
index 5eb9e999a89c..63fb10994eac 100644
--- a/sdk/iothub/ci.mgmt.yml
+++ b/sdk/iothub/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/iothub/ci.mgmt.yml
- sdk/iothub/Azure.ResourceManager.IotHub/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/iothub/ci.mgmt.yml
+ - sdk/iothub/Azure.ResourceManager.IotHub/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/keyvault/ci.mgmt.yml b/sdk/keyvault/ci.mgmt.yml
index b48c2f8d4ff4..8ad905079a0a 100644
--- a/sdk/keyvault/ci.mgmt.yml
+++ b/sdk/keyvault/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/keyvault/ci.mgmt.yml
- sdk/keyvault/Azure.ResourceManager.KeyVault/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/keyvault/ci.mgmt.yml
+ - sdk/keyvault/Azure.ResourceManager.KeyVault/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/kubernetesconfiguration/ci.mgmt.yml b/sdk/kubernetesconfiguration/ci.mgmt.yml
index 4249ef57fa6e..d3fb470a7b6e 100644
--- a/sdk/kubernetesconfiguration/ci.mgmt.yml
+++ b/sdk/kubernetesconfiguration/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/kubernetesconfiguration/ci.mgmt.yml
- sdk/kubernetesconfiguration/Azure.ResourceManager.KubernetesConfiguration/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/kubernetesconfiguration/ci.mgmt.yml
+ - sdk/kubernetesconfiguration/Azure.ResourceManager.KubernetesConfiguration/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/kusto/ci.mgmt.yml b/sdk/kusto/ci.mgmt.yml
index 374cf1f0cb81..c410d1487d18 100644
--- a/sdk/kusto/ci.mgmt.yml
+++ b/sdk/kusto/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/kusto/ci.mgmt.yml
- sdk/kusto/Azure.ResourceManager.Kusto/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/kusto/ci.mgmt.yml
+ - sdk/kusto/Azure.ResourceManager.Kusto/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/labservices/ci.mgmt.yml b/sdk/labservices/ci.mgmt.yml
index 48f80379ab14..f8a982072965 100644
--- a/sdk/labservices/ci.mgmt.yml
+++ b/sdk/labservices/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/labservices/ci.mgmt.yml
- sdk/labservices/Azure.ResourceManager.LabServices/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/labservices/ci.mgmt.yml
+ - sdk/labservices/Azure.ResourceManager.LabServices/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/loadtestservice/ci.mgmt.yml b/sdk/loadtestservice/ci.mgmt.yml
index 4e3d99d42979..dfc32939e497 100644
--- a/sdk/loadtestservice/ci.mgmt.yml
+++ b/sdk/loadtestservice/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/loadtestservice/ci.mgmt.yml
- sdk/loadtestservice/Azure.ResourceManager.LoadTesting/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/loadtestservice/ci.mgmt.yml
+ - sdk/loadtestservice/Azure.ResourceManager.LoadTesting/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/logic/ci.mgmt.yml b/sdk/logic/ci.mgmt.yml
index b89b224082ee..5bed51facd34 100644
--- a/sdk/logic/ci.mgmt.yml
+++ b/sdk/logic/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/logic/ci.mgmt.yml
- sdk/logic/Azure.ResourceManager.Logic/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/logic/ci.mgmt.yml
+ - sdk/logic/Azure.ResourceManager.Logic/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/machinelearningcompute/ci.mgmt.yml b/sdk/machinelearningcompute/ci.mgmt.yml
index 9ea84fdf4d15..5ea619231191 100644
--- a/sdk/machinelearningcompute/ci.mgmt.yml
+++ b/sdk/machinelearningcompute/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/machinelearningcompute/ci.mgmt.yml
- sdk/machinelearningcompute/Azure.ResourceManager.MachineLearningCompute/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/machinelearningcompute/ci.mgmt.yml
+ - sdk/machinelearningcompute/Azure.ResourceManager.MachineLearningCompute/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/machinelearningservices/ci.mgmt.yml b/sdk/machinelearningservices/ci.mgmt.yml
index 457299ab20b9..3a99ed224fc2 100644
--- a/sdk/machinelearningservices/ci.mgmt.yml
+++ b/sdk/machinelearningservices/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/machinelearningservices/ci.mgmt.yml
- sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/machinelearningservices/ci.mgmt.yml
+ - sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/maintenance/ci.mgmt.yml b/sdk/maintenance/ci.mgmt.yml
index c49cc1565d6d..94c552b69f26 100644
--- a/sdk/maintenance/ci.mgmt.yml
+++ b/sdk/maintenance/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/maintenance/ci.mgmt.yml
- sdk/maintenance/Azure.ResourceManager.Maintenance/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/maintenance/ci.mgmt.yml
+ - sdk/maintenance/Azure.ResourceManager.Maintenance/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/managednetwork/ci.mgmt.yml b/sdk/managednetwork/ci.mgmt.yml
index 431d66d1245b..08c9f3d0ce55 100644
--- a/sdk/managednetwork/ci.mgmt.yml
+++ b/sdk/managednetwork/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/managednetwork/ci.mgmt.yml
- sdk/managednetwork/Azure.ResourceManager.ManagedNetwork/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/managednetwork/ci.mgmt.yml
+ - sdk/managednetwork/Azure.ResourceManager.ManagedNetwork/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/managednetworkfabric/ci.mgmt.yml b/sdk/managednetworkfabric/ci.mgmt.yml
index aa6b571b04e2..3212ad45bbde 100644
--- a/sdk/managednetworkfabric/ci.mgmt.yml
+++ b/sdk/managednetworkfabric/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/managednetworkfabric/ci.mgmt.yml
- sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/managednetworkfabric/ci.mgmt.yml
+ - sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/managedserviceidentity/ci.mgmt.yml b/sdk/managedserviceidentity/ci.mgmt.yml
index c8f3a187f918..c9cd4b0f235a 100644
--- a/sdk/managedserviceidentity/ci.mgmt.yml
+++ b/sdk/managedserviceidentity/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/managedserviceidentity/ci.mgmt.yml
- sdk/managedserviceidentity/Azure.ResourceManager.ManagedServiceIdentities/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/managedserviceidentity/ci.mgmt.yml
+ - sdk/managedserviceidentity/Azure.ResourceManager.ManagedServiceIdentities/
+
extends:
template: ../../eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/managedservices/ci.mgmt.yml b/sdk/managedservices/ci.mgmt.yml
index d6c0ccd16eef..88360bb2defa 100644
--- a/sdk/managedservices/ci.mgmt.yml
+++ b/sdk/managedservices/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/managedservices/ci.mgmt.yml
- sdk/managedservices/Azure.ResourceManager.ManagedServices/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/managedservices/ci.mgmt.yml
+ - sdk/managedservices/Azure.ResourceManager.ManagedServices/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/managementpartner/ci.mgmt.yml b/sdk/managementpartner/ci.mgmt.yml
index 52c8e762088e..6fdd0118e1b9 100644
--- a/sdk/managementpartner/ci.mgmt.yml
+++ b/sdk/managementpartner/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/managementpartner/ci.mgmt.yml
- sdk/managementpartner/Azure.ResourceManager.ManagementPartner/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/managementpartner/ci.mgmt.yml
+ - sdk/managementpartner/Azure.ResourceManager.ManagementPartner/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/maps/ci.mgmt.yml b/sdk/maps/ci.mgmt.yml
index 2f16079cab2e..7ee4f1ddad3c 100644
--- a/sdk/maps/ci.mgmt.yml
+++ b/sdk/maps/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/maps/ci.mgmt.yml
- sdk/maps/Azure.ResourceManager.Maps/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/maps/ci.mgmt.yml
+ - sdk/maps/Azure.ResourceManager.Maps/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/marketplace/ci.mgmt.yml b/sdk/marketplace/ci.mgmt.yml
index e6574bdb3039..42bc8a147b30 100644
--- a/sdk/marketplace/ci.mgmt.yml
+++ b/sdk/marketplace/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/marketplace/ci.mgmt.yml
- sdk/marketplace/Azure.ResourceManager.Marketplace/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/marketplace/ci.mgmt.yml
+ - sdk/marketplace/Azure.ResourceManager.Marketplace/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/marketplaceordering/ci.mgmt.yml b/sdk/marketplaceordering/ci.mgmt.yml
index 2b1f8721902e..c602647fb32d 100644
--- a/sdk/marketplaceordering/ci.mgmt.yml
+++ b/sdk/marketplaceordering/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/marketplaceordering/ci.mgmt.yml
- sdk/marketplaceordering/Azure.ResourceManager.MarketplaceOrdering/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/marketplaceordering/ci.mgmt.yml
+ - sdk/marketplaceordering/Azure.ResourceManager.MarketplaceOrdering/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/mediaservices/ci.mgmt.yml b/sdk/mediaservices/ci.mgmt.yml
index 55656f3ae48b..201ecc9d995d 100644
--- a/sdk/mediaservices/ci.mgmt.yml
+++ b/sdk/mediaservices/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/mediaservices/ci.mgmt.yml
- sdk/mediaservices/Azure.ResourceManager.Media/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/mediaservices/ci.mgmt.yml
+ - sdk/mediaservices/Azure.ResourceManager.Media/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/migrationdiscoverysap/ci.mgmt.yml b/sdk/migrationdiscoverysap/ci.mgmt.yml
index f5eb354d28e7..26c079f3d6f5 100644
--- a/sdk/migrationdiscoverysap/ci.mgmt.yml
+++ b/sdk/migrationdiscoverysap/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/migrationdiscoverysap/ci.mgmt.yml
- sdk/migrationdiscoverysap/Azure.ResourceManager.MigrationDiscoverySap/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/migrationdiscoverysap/ci.mgmt.yml
+ - sdk/migrationdiscoverysap/Azure.ResourceManager.MigrationDiscoverySap/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/mixedreality/ci.mgmt.yml b/sdk/mixedreality/ci.mgmt.yml
index 81c0c2744232..d342a10a32e0 100644
--- a/sdk/mixedreality/ci.mgmt.yml
+++ b/sdk/mixedreality/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/mixedreality/ci.mgmt.yml
- sdk/mixedreality/Azure.ResourceManager.MixedReality/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/mixedreality/ci.mgmt.yml
+ - sdk/mixedreality/Azure.ResourceManager.MixedReality/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/mobilenetwork/ci.mgmt.yml b/sdk/mobilenetwork/ci.mgmt.yml
index 8a68e6749ba7..325154bfbfb7 100644
--- a/sdk/mobilenetwork/ci.mgmt.yml
+++ b/sdk/mobilenetwork/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/mobilenetwork/ci.mgmt.yml
- sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/mobilenetwork/ci.mgmt.yml
+ - sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/
+
extends:
template: ../../eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/mongocluster/ci.mgmt.yml b/sdk/mongocluster/ci.mgmt.yml
index d2eafe7877dd..10f6e93db8bc 100644
--- a/sdk/mongocluster/ci.mgmt.yml
+++ b/sdk/mongocluster/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/mongocluster/ci.mgmt.yml
- sdk/mongocluster/Azure.ResourceManager.MongoCluster/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/mongocluster/ci.mgmt.yml
+ - sdk/mongocluster/Azure.ResourceManager.MongoCluster/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/monitor/ci.mgmt.yml b/sdk/monitor/ci.mgmt.yml
index 8beeded4e3b9..5933fd35d9e5 100644
--- a/sdk/monitor/ci.mgmt.yml
+++ b/sdk/monitor/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/monitor/ci.mgmt.yml
- sdk/monitor/Azure.ResourceManager.Monitor/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/monitor/ci.mgmt.yml
+ - sdk/monitor/Azure.ResourceManager.Monitor/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/mysql/ci.mgmt.yml b/sdk/mysql/ci.mgmt.yml
index e1521b4ed568..2ba5627ae3fc 100644
--- a/sdk/mysql/ci.mgmt.yml
+++ b/sdk/mysql/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/mysql/ci.mgmt.yml
- sdk/mysql/Azure.ResourceManager.MySql/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/mysql/ci.mgmt.yml
+ - sdk/mysql/Azure.ResourceManager.MySql/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/neonpostgres/ci.mgmt.yml b/sdk/neonpostgres/ci.mgmt.yml
index 72d449fc7a16..00f734ba7230 100644
--- a/sdk/neonpostgres/ci.mgmt.yml
+++ b/sdk/neonpostgres/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/neonpostgres/ci.mgmt.yml
- sdk/neonpostgres/Azure.ResourceManager.NeonPostgres/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/neonpostgres/ci.mgmt.yml
+ - sdk/neonpostgres/Azure.ResourceManager.NeonPostgres/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/netapp/ci.mgmt.yml b/sdk/netapp/ci.mgmt.yml
index 05a683e910f5..5d0a3e741513 100644
--- a/sdk/netapp/ci.mgmt.yml
+++ b/sdk/netapp/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/netapp/ci.mgmt.yml
- sdk/netapp/Azure.ResourceManager.NetApp/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/netapp/ci.mgmt.yml
+ - sdk/netapp/Azure.ResourceManager.NetApp/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/network/ci.mgmt.yml b/sdk/network/ci.mgmt.yml
index edf77de02a49..f69378e6c236 100644
--- a/sdk/network/ci.mgmt.yml
+++ b/sdk/network/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/network/ci.mgmt.yml
- sdk/network/Azure.ResourceManager.Network/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/network/ci.mgmt.yml
+ - sdk/network/Azure.ResourceManager.Network/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/networkanalytics/ci.mgmt.yml b/sdk/networkanalytics/ci.mgmt.yml
index 9ece072ce867..52934a1bad24 100644
--- a/sdk/networkanalytics/ci.mgmt.yml
+++ b/sdk/networkanalytics/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/networkanalytics/ci.mgmt.yml
- sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/networkanalytics/ci.mgmt.yml
+ - sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/networkcloud/ci.mgmt.yml b/sdk/networkcloud/ci.mgmt.yml
index f6c281af22a9..940f908b8c75 100644
--- a/sdk/networkcloud/ci.mgmt.yml
+++ b/sdk/networkcloud/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/networkcloud/ci.mgmt.yml
- sdk/networkcloud/Azure.ResourceManager.NetworkCloud/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/networkcloud/ci.mgmt.yml
+ - sdk/networkcloud/Azure.ResourceManager.NetworkCloud/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/networkfunction/ci.mgmt.yml b/sdk/networkfunction/ci.mgmt.yml
index a3c743ef532a..b05cf6e5e1cc 100644
--- a/sdk/networkfunction/ci.mgmt.yml
+++ b/sdk/networkfunction/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/networkfunction/ci.mgmt.yml
- sdk/networkfunction/Azure.ResourceManager.NetworkFunction/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/networkfunction/ci.mgmt.yml
+ - sdk/networkfunction/Azure.ResourceManager.NetworkFunction/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/newrelicobservability/ci.mgmt.yml b/sdk/newrelicobservability/ci.mgmt.yml
index d01ef74cd749..599cfd845f2c 100644
--- a/sdk/newrelicobservability/ci.mgmt.yml
+++ b/sdk/newrelicobservability/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/newrelicobservability/ci.mgmt.yml
- sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/newrelicobservability/ci.mgmt.yml
+ - sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/nginx/ci.mgmt.yml b/sdk/nginx/ci.mgmt.yml
index f701b26a561a..39e047ce0015 100644
--- a/sdk/nginx/ci.mgmt.yml
+++ b/sdk/nginx/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/nginx/ci.mgmt.yml
- sdk/nginx/Azure.ResourceManager.Nginx/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/nginx/ci.mgmt.yml
+ - sdk/nginx/Azure.ResourceManager.Nginx/
+
extends:
template: ../../eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/notificationhubs/ci.mgmt.yml b/sdk/notificationhubs/ci.mgmt.yml
index ba5a26631dd4..8d9f15f7758b 100644
--- a/sdk/notificationhubs/ci.mgmt.yml
+++ b/sdk/notificationhubs/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/notificationhubs/ci.mgmt.yml
- sdk/notificationhubs/Azure.ResourceManager.NotificationHubs/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/notificationhubs/ci.mgmt.yml
+ - sdk/notificationhubs/Azure.ResourceManager.NotificationHubs/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/openenergyplatform/ci.mgmt.yml b/sdk/openenergyplatform/ci.mgmt.yml
index 1ab74128b4db..f2394b80f6b9 100644
--- a/sdk/openenergyplatform/ci.mgmt.yml
+++ b/sdk/openenergyplatform/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/openenergyplatform/ci.mgmt.yml
- sdk/openenergyplatform/Azure.ResourceManager.EnergyServices/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/openenergyplatform/ci.mgmt.yml
+ - sdk/openenergyplatform/Azure.ResourceManager.EnergyServices/
+
extends:
template: ../../eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/operationalinsights/ci.mgmt.yml b/sdk/operationalinsights/ci.mgmt.yml
index d4c3b61dac40..9e588305c901 100644
--- a/sdk/operationalinsights/ci.mgmt.yml
+++ b/sdk/operationalinsights/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/operationalinsights/ci.mgmt.yml
- sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/operationalinsights/ci.mgmt.yml
+ - sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/oracle/ci.mgmt.yml b/sdk/oracle/ci.mgmt.yml
index ccbd7c096ecf..760950dbd58a 100644
--- a/sdk/oracle/ci.mgmt.yml
+++ b/sdk/oracle/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/oracle/ci.mgmt.yml
- sdk/oracle/Azure.ResourceManager.OracleDatabase/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/oracle/ci.mgmt.yml
+ - sdk/oracle/Azure.ResourceManager.OracleDatabase/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/orbital/ci.mgmt.yml b/sdk/orbital/ci.mgmt.yml
index 701576d2fa62..2b2102df1da3 100644
--- a/sdk/orbital/ci.mgmt.yml
+++ b/sdk/orbital/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/orbital/ci.mgmt.yml
- sdk/orbital/Azure.ResourceManager.Orbital/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/orbital/ci.mgmt.yml
+ - sdk/orbital/Azure.ResourceManager.Orbital/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/paloaltonetworks.ngfw/ci.mgmt.yml b/sdk/paloaltonetworks.ngfw/ci.mgmt.yml
index 77dca48de9ef..6348d3109683 100644
--- a/sdk/paloaltonetworks.ngfw/ci.mgmt.yml
+++ b/sdk/paloaltonetworks.ngfw/ci.mgmt.yml
@@ -1,4 +1,5 @@
trigger: none
+
pr:
branches:
include:
@@ -11,6 +12,18 @@ pr:
- sdk/paloaltonetworks.ngfw/ci.mgmt.yml
- sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/paloaltonetworks.ngfw/ci.mgmt.yml
+ - sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/peering/ci.mgmt.yml b/sdk/peering/ci.mgmt.yml
index 4d3d67e73949..cfef409531ee 100644
--- a/sdk/peering/ci.mgmt.yml
+++ b/sdk/peering/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/peering/ci.mgmt.yml
- sdk/peering/Azure.ResourceManager.Peering/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/peering/ci.mgmt.yml
+ - sdk/peering/Azure.ResourceManager.Peering/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/playwrighttesting/ci.mgmt.yml b/sdk/playwrighttesting/ci.mgmt.yml
index 79addf69162c..b6422b373563 100644
--- a/sdk/playwrighttesting/ci.mgmt.yml
+++ b/sdk/playwrighttesting/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/playwrighttesting/ci.mgmt.yml
- sdk/playwrighttesting/Azure.ResourceManager.PlaywrightTesting/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/playwrighttesting/ci.mgmt.yml
+ - sdk/playwrighttesting/Azure.ResourceManager.PlaywrightTesting/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/policyinsights/ci.mgmt.yml b/sdk/policyinsights/ci.mgmt.yml
index 56fa5c3ead85..c0fa9e7dd917 100644
--- a/sdk/policyinsights/ci.mgmt.yml
+++ b/sdk/policyinsights/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/policyinsights/ci.mgmt.yml
- sdk/policyinsights/Azure.ResourceManager.PolicyInsights/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/policyinsights/ci.mgmt.yml
+ - sdk/policyinsights/Azure.ResourceManager.PolicyInsights/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/postgresql/ci.mgmt.yml b/sdk/postgresql/ci.mgmt.yml
index 77dbaed301ba..08dff06cd11f 100644
--- a/sdk/postgresql/ci.mgmt.yml
+++ b/sdk/postgresql/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/postgresql/ci.mgmt.yml
- sdk/postgresql/Azure.ResourceManager.PostgreSql/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/postgresql/ci.mgmt.yml
+ - sdk/postgresql/Azure.ResourceManager.PostgreSql/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/powerbidedicated/ci.mgmt.yml b/sdk/powerbidedicated/ci.mgmt.yml
index 414f2b8ef0a9..951d3e8d0434 100644
--- a/sdk/powerbidedicated/ci.mgmt.yml
+++ b/sdk/powerbidedicated/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/powerbidedicated/ci.mgmt.yml
- sdk/powerbidedicated/Azure.ResourceManager.PowerBIDedicated/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/powerbidedicated/ci.mgmt.yml
+ - sdk/powerbidedicated/Azure.ResourceManager.PowerBIDedicated/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/privatedns/ci.mgmt.yml b/sdk/privatedns/ci.mgmt.yml
index 86401f2f9675..31c567bfe408 100644
--- a/sdk/privatedns/ci.mgmt.yml
+++ b/sdk/privatedns/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/privatedns/ci.mgmt.yml
- sdk/privatedns/Azure.ResourceManager.PrivateDns/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/privatedns/ci.mgmt.yml
+ - sdk/privatedns/Azure.ResourceManager.PrivateDns/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/providerhub/ci.mgmt.yml b/sdk/providerhub/ci.mgmt.yml
index 2c7f6ca61d3f..3de6a7f30b80 100644
--- a/sdk/providerhub/ci.mgmt.yml
+++ b/sdk/providerhub/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/providerhub/ci.mgmt.yml
- sdk/providerhub/Azure.ResourceManager.ProviderHub/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/providerhub/ci.mgmt.yml
+ - sdk/providerhub/Azure.ResourceManager.ProviderHub/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/purview/ci.mgmt.yml b/sdk/purview/ci.mgmt.yml
index 226718ca583c..d5961aa8833a 100644
--- a/sdk/purview/ci.mgmt.yml
+++ b/sdk/purview/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/purview/ci.mgmt.yml
- sdk/purview/Azure.ResourceManager.Purview/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/purview/ci.mgmt.yml
+ - sdk/purview/Azure.ResourceManager.Purview/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/quantum/ci.mgmt.yml b/sdk/quantum/ci.mgmt.yml
index 8562320fa7c7..6ee02d7799bd 100644
--- a/sdk/quantum/ci.mgmt.yml
+++ b/sdk/quantum/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/quantum/ci.mgmt.yml
- sdk/quantum/Azure.ResourceManager.Quantum/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/quantum/ci.mgmt.yml
+ - sdk/quantum/Azure.ResourceManager.Quantum/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/qumulo/ci.mgmt.yml b/sdk/qumulo/ci.mgmt.yml
index e89c4bea0e70..fe6e1fa253d3 100644
--- a/sdk/qumulo/ci.mgmt.yml
+++ b/sdk/qumulo/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/qumulo/ci.mgmt.yml
- sdk/qumulo/Azure.ResourceManager.Qumulo/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/qumulo/ci.mgmt.yml
+ - sdk/qumulo/Azure.ResourceManager.Qumulo/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/quota/ci.mgmt.yml b/sdk/quota/ci.mgmt.yml
index f1f545ad13f1..9409730d342e 100644
--- a/sdk/quota/ci.mgmt.yml
+++ b/sdk/quota/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/quota/ci.mgmt.yml
- sdk/quota/Azure.ResourceManager.Quota/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/quota/ci.mgmt.yml
+ - sdk/quota/Azure.ResourceManager.Quota/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/recoveryservices-backup/ci.mgmt.yml b/sdk/recoveryservices-backup/ci.mgmt.yml
index 5edfd823e3c0..402121c0f72c 100644
--- a/sdk/recoveryservices-backup/ci.mgmt.yml
+++ b/sdk/recoveryservices-backup/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/recoveryservices-backup/ci.mgmt.yml
- sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/recoveryservices-backup/ci.mgmt.yml
+ - sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/recoveryservices-datareplication/ci.mgmt.yml b/sdk/recoveryservices-datareplication/ci.mgmt.yml
index 2e3966d67a88..143f2e0317c3 100644
--- a/sdk/recoveryservices-datareplication/ci.mgmt.yml
+++ b/sdk/recoveryservices-datareplication/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/recoveryservices-datareplication/ci.mgmt.yml
- sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/recoveryservices-datareplication/ci.mgmt.yml
+ - sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/recoveryservices-siterecovery/ci.mgmt.yml b/sdk/recoveryservices-siterecovery/ci.mgmt.yml
index bded800f3ee2..3a8a3179d5a5 100644
--- a/sdk/recoveryservices-siterecovery/ci.mgmt.yml
+++ b/sdk/recoveryservices-siterecovery/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/recoveryservices-siterecovery/ci.mgmt.yml
- sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/recoveryservices-siterecovery/ci.mgmt.yml
+ - sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/recoveryservices/ci.mgmt.yml b/sdk/recoveryservices/ci.mgmt.yml
index 0e7e6985f21c..d4a5e482dfa7 100644
--- a/sdk/recoveryservices/ci.mgmt.yml
+++ b/sdk/recoveryservices/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/recoveryservices/ci.mgmt.yml
- sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/recoveryservices/ci.mgmt.yml
+ - sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/redis/ci.mgmt.yml b/sdk/redis/ci.mgmt.yml
index 9e6845322580..dfc71e356b87 100644
--- a/sdk/redis/ci.mgmt.yml
+++ b/sdk/redis/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/redis/ci.mgmt.yml
- sdk/redis/Azure.ResourceManager.Redis/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/redis/ci.mgmt.yml
+ - sdk/redis/Azure.ResourceManager.Redis/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/redisenterprise/ci.mgmt.yml b/sdk/redisenterprise/ci.mgmt.yml
index 93641cfe3983..294ec0377bdf 100644
--- a/sdk/redisenterprise/ci.mgmt.yml
+++ b/sdk/redisenterprise/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/redisenterprise/ci.mgmt.yml
- sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/redisenterprise/ci.mgmt.yml
+ - sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/relay/ci.mgmt.yml b/sdk/relay/ci.mgmt.yml
index b69a1efbd0f9..fc5a3764ebb5 100644
--- a/sdk/relay/ci.mgmt.yml
+++ b/sdk/relay/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/relay/ci.mgmt.yml
- sdk/relay/Azure.ResourceManager.Relay/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/relay/ci.mgmt.yml
+ - sdk/relay/Azure.ResourceManager.Relay/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/reservations/ci.mgmt.yml b/sdk/reservations/ci.mgmt.yml
index c46c8c69cd2e..8effbcdd4424 100644
--- a/sdk/reservations/ci.mgmt.yml
+++ b/sdk/reservations/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/reservations/ci.mgmt.yml
- sdk/reservations/Azure.ResourceManager.Reservations/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/reservations/ci.mgmt.yml
+ - sdk/reservations/Azure.ResourceManager.Reservations/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/resourceconnector/ci.mgmt.yml b/sdk/resourceconnector/ci.mgmt.yml
index 81269b9113c7..149f1805dab4 100644
--- a/sdk/resourceconnector/ci.mgmt.yml
+++ b/sdk/resourceconnector/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/resourceconnector/ci.mgmt.yml
- sdk/resourceconnector/Azure.ResourceManager.ResourceConnector/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/resourceconnector/ci.mgmt.yml
+ - sdk/resourceconnector/Azure.ResourceManager.ResourceConnector/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/resourcegraph/ci.mgmt.yml b/sdk/resourcegraph/ci.mgmt.yml
index 5abe050f7709..27656bcd16c2 100644
--- a/sdk/resourcegraph/ci.mgmt.yml
+++ b/sdk/resourcegraph/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/resourcegraph/ci.mgmt.yml
- sdk/resourcegraph/Azure.ResourceManager.ResourceGraph/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/resourcegraph/ci.mgmt.yml
+ - sdk/resourcegraph/Azure.ResourceManager.ResourceGraph/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/resourcehealth/ci.mgmt.yml b/sdk/resourcehealth/ci.mgmt.yml
index fb0a27171a69..bf3868346c7b 100644
--- a/sdk/resourcehealth/ci.mgmt.yml
+++ b/sdk/resourcehealth/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/resourcehealth/ci.mgmt.yml
- sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/resourcehealth/ci.mgmt.yml
+ - sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/resourcemanager/ci.mgmt.yml b/sdk/resourcemanager/ci.mgmt.yml
index 960151044171..f3100605122b 100644
--- a/sdk/resourcemanager/ci.mgmt.yml
+++ b/sdk/resourcemanager/ci.mgmt.yml
@@ -11,198 +11,199 @@ trigger:
- sdk/resourcemanager
- common/ManagementTestShared
- common/ManagementCoreShared
- - sdk/advisor/Azure.ResourceManager.Advisor
- - sdk/agrifood/Azure.ResourceManager.AgFoodPlatform
- - sdk/alertsmanagement/Azure.ResourceManager.AlertsManagement
- - sdk/analysisservices/Azure.ResourceManager.Analysis
- - sdk/apicenter/Azure.ResourceManager.ApiCenter
- - sdk/apimanagement/Azure.ResourceManager.ApiManagement
- - sdk/appcomplianceautomation/Azure.ResourceManager.AppComplianceAutomation
- - sdk/appconfiguration/Azure.ResourceManager.AppConfiguration
- - sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights
- - sdk/appplatform/Azure.ResourceManager.AppPlatform
- - sdk/arc-scvmm/Azure.ResourceManager.ScVmm
- - sdk/astronomer/Azure.ResourceManager.Astro
- - sdk/attestation/Azure.ResourceManager.Attestation
+ - sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw
+ - sdk/batch/Azure.ResourceManager.Batch
+ - sdk/marketplace/Azure.ResourceManager.Marketplace
+ - sdk/fluidrelay/Azure.ResourceManager.FluidRelay
+ - sdk/managedserviceidentity/Azure.ResourceManager.ManagedServiceIdentities
+ - sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere
+ - sdk/servicelinker/Azure.ResourceManager.ServiceLinker
+ - sdk/confluent/Azure.ResourceManager.Confluent
+ - sdk/sqlvirtualmachine/Azure.ResourceManager.SqlVirtualMachine
+ - sdk/hardwaresecuritymodules/Azure.ResourceManager.HardwareSecurityModules
- sdk/authorization/Azure.ResourceManager.Authorization
- - sdk/automanage/Azure.ResourceManager.Automanage
- - sdk/automation/Azure.ResourceManager.Automation
+ - sdk/graphservices/Azure.ResourceManager.GraphServices
+ - sdk/mysql/Azure.ResourceManager.MySql
+ - sdk/containerservice/Azure.ResourceManager.ContainerService
+ - sdk/astronomer/Azure.ResourceManager.Astro
+ - sdk/informaticadatamanagement/Azure.ResourceManager.InformaticaDataManagement
+ - sdk/grafana/Azure.ResourceManager.Grafana
+ - sdk/migrationdiscoverysap/Azure.ResourceManager.MigrationDiscoverySap
+ - sdk/dnsresolver/Azure.ResourceManager.DnsResolver
+ - sdk/websites/Azure.ResourceManager.AppService
+ - sdk/orbital/Azure.ResourceManager.Orbital
+ - sdk/trafficmanager/Azure.ResourceManager.TrafficManager
+ - sdk/servicefabric/Azure.ResourceManager.ServiceFabric
- sdk/avs/Azure.ResourceManager.Avs
- - sdk/azurelargeinstance/Azure.ResourceManager.LargeInstance
- - sdk/azurestackhci/Azure.ResourceManager.Hci
- - sdk/batch/Azure.ResourceManager.Batch
- - sdk/billing/Azure.ResourceManager.Billing
- - sdk/billingbenefits/Azure.ResourceManager.BillingBenefits
- - sdk/blueprint/Azure.ResourceManager.Blueprint
- - sdk/botservice/Azure.ResourceManager.BotService
- - sdk/cdn/Azure.ResourceManager.Cdn
- - sdk/changeanalysis/Azure.ResourceManager.ChangeAnalysis
- - sdk/chaos/Azure.ResourceManager.Chaos
- - sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices
- - sdk/communication/Azure.ResourceManager.Communication
- - sdk/compute/Azure.ResourceManager.Compute
- - sdk/computefleet/Azure.ResourceManager.ComputeFleet
+ - sdk/hdinsightcontainers/Azure.ResourceManager.HDInsight.Containers
+ - sdk/providerhub/Azure.ResourceManager.ProviderHub
- sdk/computeschedule/Azure.ResourceManager.ComputeSchedule
- - sdk/confidentialledger/Azure.ResourceManager.ConfidentialLedger
- - sdk/confluent/Azure.ResourceManager.Confluent
- - sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere
- - sdk/consumption/Azure.ResourceManager.Consumption
- - sdk/containerapps/Azure.ResourceManager.AppContainers
- - sdk/containerinstance/Azure.ResourceManager.ContainerInstance
+ - sdk/securityinsights/Azure.ResourceManager.SecurityInsights
- sdk/containerorchestratorruntime/Azure.ResourceManager.ContainerOrchestratorRuntime
- - sdk/containerregistry/Azure.ResourceManager.ContainerRegistry
- - sdk/containerservice/Azure.ResourceManager.ContainerService
- - sdk/cosmosdb/Azure.ResourceManager.CosmosDB
+ - sdk/playwrighttesting/Azure.ResourceManager.PlaywrightTesting
+ - sdk/managedservices/Azure.ResourceManager.ManagedServices
+ - sdk/reservations/Azure.ResourceManager.Reservations
+ - sdk/digitaltwins/Azure.ResourceManager.DigitalTwins
+ - sdk/billing/Azure.ResourceManager.Billing
+ - sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization
+ - sdk/webpubsub/Azure.ResourceManager.WebPubSub
+ - sdk/maintenance/Azure.ResourceManager.Maintenance
+ - sdk/securitydevops/Azure.ResourceManager.SecurityDevOps
+ - sdk/networkfunction/Azure.ResourceManager.NetworkFunction
+ - sdk/hybridcompute/Azure.ResourceManager.HybridCompute
+ - sdk/guestconfiguration/Azure.ResourceManager.GuestConfiguration
+ - sdk/redis/Azure.ResourceManager.Redis
- sdk/cosmosdbforpostgresql/Azure.ResourceManager.CosmosDBForPostgreSql
+ - sdk/datashare/Azure.ResourceManager.DataShare
- sdk/costmanagement/Azure.ResourceManager.CostManagement
- - sdk/customer-insights/Azure.ResourceManager.CustomerInsights
- - sdk/databox/Azure.ResourceManager.DataBox
- - sdk/databoxedge/Azure.ResourceManager.DataBoxEdge
- - sdk/datadog/Azure.ResourceManager.Datadog
- - sdk/datafactory/Azure.ResourceManager.DataFactory
- - sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics
- - sdk/datalake-store/Azure.ResourceManager.DataLakeStore
+ - sdk/storagemover/Azure.ResourceManager.StorageMover
+ - sdk/frontdoor/Azure.ResourceManager.FrontDoor
- sdk/datamigration/Azure.ResourceManager.DataMigration
+ - sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication
- sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup
- - sdk/datashare/Azure.ResourceManager.DataShare
+ - sdk/nginx/Azure.ResourceManager.Nginx
+ - sdk/datalake-store/Azure.ResourceManager.DataLakeStore
+ - sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics
+ - sdk/analysisservices/Azure.ResourceManager.Analysis
+ - sdk/workloadssapvirtualinstance/Azure.ResourceManager.SapVirtualInstances
+ - sdk/search/Azure.ResourceManager.Search
+ - sdk/communication/Azure.ResourceManager.Communication
+ - sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters
+ - sdk/devtestlabs/Azure.ResourceManager.DevTestLabs
+ - sdk/storage/Azure.ResourceManager.Storage
+ - sdk/blueprint/Azure.ResourceManager.Blueprint
+ - sdk/consumption/Azure.ResourceManager.Consumption
+ - sdk/sqlmanagement/Azure.ResourceManager.Sql
+ - sdk/qumulo/Azure.ResourceManager.Qumulo
+ - sdk/privatedns/Azure.ResourceManager.PrivateDns
+ - sdk/confidentialledger/Azure.ResourceManager.ConfidentialLedger
+ - sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric
+ - sdk/alertsmanagement/Azure.ResourceManager.AlertsManagement
+ - sdk/subscription/Azure.ResourceManager.Subscription
+ - sdk/storageactions/Azure.ResourceManager.StorageActions
+ - sdk/datadog/Azure.ResourceManager.Datadog
+ - sdk/mixedreality/Azure.ResourceManager.MixedReality
+ - sdk/fabric/Azure.ResourceManager.Fabric
+ - sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery
+ - sdk/network/Azure.ResourceManager.Network
+ - sdk/appconfiguration/Azure.ResourceManager.AppConfiguration
+ - sdk/hybridkubernetes/Azure.ResourceManager.Kubernetes
+ - sdk/databox/Azure.ResourceManager.DataBox
+ - sdk/healthcareapis/Azure.ResourceManager.HealthcareApis
+ - sdk/voiceservices/Azure.ResourceManager.VoiceServices
+ - sdk/azurelargeinstance/Azure.ResourceManager.LargeInstance
+ - sdk/automation/Azure.ResourceManager.Automation
+ - sdk/elastic/Azure.ResourceManager.Elastic
+ - sdk/appplatform/Azure.ResourceManager.AppPlatform
+ - sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics
+ - sdk/oracle/Azure.ResourceManager.OracleDatabase
+ - sdk/cdn/Azure.ResourceManager.Cdn
+ - sdk/monitor/Azure.ResourceManager.Monitor
+ - sdk/attestation/Azure.ResourceManager.Attestation
+ - sdk/mongocluster/Azure.ResourceManager.MongoCluster
+ - sdk/hdinsight/Azure.ResourceManager.HDInsight
+ - sdk/springappdiscovery/Azure.ResourceManager.SpringAppDiscovery
+ - sdk/operationalinsights/Azure.ResourceManager.OperationalInsights
+ - sdk/agrifood/Azure.ResourceManager.AgFoodPlatform
+ - sdk/containerinstance/Azure.ResourceManager.ContainerInstance
+ - sdk/changeanalysis/Azure.ResourceManager.ChangeAnalysis
+ - sdk/arc-scvmm/Azure.ResourceManager.ScVmm
+ - sdk/resourcehealth/Azure.ResourceManager.ResourceHealth
+ - sdk/servicebus/Azure.ResourceManager.ServiceBus
+ - sdk/signalr/Azure.ResourceManager.SignalR
+ - sdk/appcomplianceautomation/Azure.ResourceManager.AppComplianceAutomation
+ - sdk/logic/Azure.ResourceManager.Logic
- sdk/defendereasm/Azure.ResourceManager.DefenderEasm
- - sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization
- - sdk/devcenter/Azure.ResourceManager.DevCenter
- - sdk/deviceprovisioningservices/Azure.ResourceManager.DeviceProvisioningServices
- - sdk/deviceregistry/Azure.ResourceManager.DeviceRegistry
+ - sdk/networkcloud/Azure.ResourceManager.NetworkCloud
+ - sdk/storagepool/Azure.ResourceManager.StoragePool
+ - sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices
+ - sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics
+ - sdk/mediaservices/Azure.ResourceManager.Media
+ - sdk/cosmosdb/Azure.ResourceManager.CosmosDB
+ - sdk/resources/Azure.ResourceManager.Resources
+ - sdk/powerbidedicated/Azure.ResourceManager.PowerBIDedicated
- sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate
- - sdk/devopsinfrastructure/Azure.ResourceManager.DevOpsInfrastructure
- - sdk/devspaces/Azure.ResourceManager.DevSpaces
- - sdk/devtestlabs/Azure.ResourceManager.DevTestLabs
- - sdk/digitaltwins/Azure.ResourceManager.DigitalTwins
- - sdk/dns/Azure.ResourceManager.Dns
- - sdk/dnsresolver/Azure.ResourceManager.DnsResolver
- sdk/dynatrace/Azure.ResourceManager.Dynatrace
- - sdk/edgeorder/Azure.ResourceManager.EdgeOrder
- - sdk/edgezones/Azure.ResourceManager.EdgeZones
- - sdk/elastic/Azure.ResourceManager.Elastic
+ - sdk/botservice/Azure.ResourceManager.BotService
+ - sdk/deviceprovisioningservices/Azure.ResourceManager.DeviceProvisioningServices
+ - sdk/kubernetesconfiguration/Azure.ResourceManager.KubernetesConfiguration
+ - sdk/synapse/Azure.ResourceManager.Synapse
+ - sdk/trustedsigning/Azure.ResourceManager.TrustedSigning
+ - sdk/maps/Azure.ResourceManager.Maps
+ - sdk/iotcentral/Azure.ResourceManager.IotCentral
+ - sdk/machinelearningcompute/Azure.ResourceManager.MachineLearningCompute
+ - sdk/postgresql/Azure.ResourceManager.PostgreSql
+ - sdk/workloadmonitor/Azure.ResourceManager.WorkloadMonitor
+ - sdk/marketplaceordering/Azure.ResourceManager.MarketplaceOrdering
+ - sdk/iot/Azure.ResourceManager.IotFirmwareDefense
+ - sdk/quota/Azure.ResourceManager.Quota
+ - sdk/machinelearningservices/Azure.ResourceManager.MachineLearning
+ - sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise
+ - sdk/relay/Azure.ResourceManager.Relay
+ - sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork
+ - sdk/selfhelp/Azure.ResourceManager.SelfHelp
- sdk/elasticsan/Azure.ResourceManager.ElasticSan
- - sdk/eventgrid/Azure.ResourceManager.EventGrid
+ - sdk/dns/Azure.ResourceManager.Dns
+ - sdk/policyinsights/Azure.ResourceManager.PolicyInsights
+ - sdk/peering/Azure.ResourceManager.Peering
- sdk/eventhub/Azure.ResourceManager.EventHubs
- - sdk/extendedlocation/Azure.ResourceManager.ExtendedLocations
- - sdk/fabric/Azure.ResourceManager.Fabric
- - sdk/fleet/Azure.ResourceManager.ContainerServiceFleet
- - sdk/fluidrelay/Azure.ResourceManager.FluidRelay
- - sdk/frontdoor/Azure.ResourceManager.FrontDoor
- - sdk/grafana/Azure.ResourceManager.Grafana
- - sdk/graphservices/Azure.ResourceManager.GraphServices
- - sdk/guestconfiguration/Azure.ResourceManager.GuestConfiguration
- - sdk/hardwaresecuritymodules/Azure.ResourceManager.HardwareSecurityModules
- - sdk/hdinsight/Azure.ResourceManager.HDInsight
- - sdk/hdinsightcontainers/Azure.ResourceManager.HDInsight.Containers
+ - sdk/kusto/Azure.ResourceManager.Kusto
- sdk/healthbot/Azure.ResourceManager.HealthBot
- - sdk/healthcareapis/Azure.ResourceManager.HealthcareApis
+ - sdk/datafactory/Azure.ResourceManager.DataFactory
+ - sdk/storagecache/Azure.ResourceManager.StorageCache
- sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices
- - sdk/hybridaks/Azure.ResourceManager.HybridContainerService
- - sdk/hybridcompute/Azure.ResourceManager.HybridCompute
- - sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity
- - sdk/hybridkubernetes/Azure.ResourceManager.Kubernetes
- - sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork
- - sdk/informaticadatamanagement/Azure.ResourceManager.InformaticaDataManagement
- - sdk/iot/Azure.ResourceManager.IotFirmwareDefense
- - sdk/iotcentral/Azure.ResourceManager.IotCentral
+ - sdk/containerregistry/Azure.ResourceManager.ContainerRegistry
+ - sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability
+ - sdk/standbypool/Azure.ResourceManager.StandbyPool
+ - sdk/terraform/Azure.ResourceManager.Terraform
+ - sdk/advisor/Azure.ResourceManager.Advisor
+ - sdk/edgezones/Azure.ResourceManager.EdgeZones
+ - sdk/apimanagement/Azure.ResourceManager.ApiManagement
+ - sdk/notificationhubs/Azure.ResourceManager.NotificationHubs
+ - sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup
+ - sdk/eventgrid/Azure.ResourceManager.EventGrid
+ - sdk/openenergyplatform/Azure.ResourceManager.EnergyServices
+ - sdk/devopsinfrastructure/Azure.ResourceManager.DevOpsInfrastructure
- sdk/iothub/Azure.ResourceManager.IotHub
- - sdk/keyvault/Azure.ResourceManager.KeyVault
- - sdk/kubernetesconfiguration/Azure.ResourceManager.KubernetesConfiguration
- - sdk/kusto/Azure.ResourceManager.Kusto
+ - sdk/quantum/Azure.ResourceManager.Quantum
+ - sdk/customer-insights/Azure.ResourceManager.CustomerInsights
+ - sdk/automanage/Azure.ResourceManager.Automanage
+ - sdk/managementpartner/Azure.ResourceManager.ManagementPartner
+ - sdk/edgeorder/Azure.ResourceManager.EdgeOrder
+ - sdk/extendedlocation/Azure.ResourceManager.ExtendedLocations
+ - sdk/resourcemover/Azure.ResourceManager.ResourceMover
+ - sdk/workloads/Azure.ResourceManager.Workloads
+ - sdk/support/Azure.ResourceManager.Support
+ - sdk/compute/Azure.ResourceManager.Compute
+ - sdk/billingbenefits/Azure.ResourceManager.BillingBenefits
+ - sdk/purview/Azure.ResourceManager.Purview
+ - sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork
+ - sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights
+ - sdk/containerapps/Azure.ResourceManager.AppContainers
- sdk/labservices/Azure.ResourceManager.LabServices
- sdk/loadtestservice/Azure.ResourceManager.LoadTesting
- - sdk/logic/Azure.ResourceManager.Logic
- - sdk/machinelearningcompute/Azure.ResourceManager.MachineLearningCompute
- - sdk/machinelearningservices/Azure.ResourceManager.MachineLearning
- - sdk/maintenance/Azure.ResourceManager.Maintenance
+ - sdk/storagesync/Azure.ResourceManager.StorageSync
+ - sdk/recoveryservices/Azure.ResourceManager.RecoveryServices
+ - sdk/sphere/Azure.ResourceManager.Sphere
+ - sdk/chaos/Azure.ResourceManager.Chaos
+ - sdk/securitycenter/Azure.ResourceManager.SecurityCenter
+ - sdk/azurestackhci/Azure.ResourceManager.Hci
+ - sdk/keyvault/Azure.ResourceManager.KeyVault
+ - sdk/hybridaks/Azure.ResourceManager.HybridContainerService
+ - sdk/resourcegraph/Azure.ResourceManager.ResourceGraph
+ - sdk/servicenetworking/Azure.ResourceManager.ServiceNetworking
+ - sdk/devspaces/Azure.ResourceManager.DevSpaces
+ - sdk/resourceconnector/Azure.ResourceManager.ResourceConnector
+ - sdk/fleet/Azure.ResourceManager.ContainerServiceFleet
+ - sdk/devcenter/Azure.ResourceManager.DevCenter
+ - sdk/databoxedge/Azure.ResourceManager.DataBoxEdge
+ - sdk/neonpostgres/Azure.ResourceManager.NeonPostgres
+ - sdk/computefleet/Azure.ResourceManager.ComputeFleet
- sdk/managednetwork/Azure.ResourceManager.ManagedNetwork
- - sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric
- - sdk/managedserviceidentity/Azure.ResourceManager.ManagedServiceIdentities
- - sdk/managedservices/Azure.ResourceManager.ManagedServices
- - sdk/managementpartner/Azure.ResourceManager.ManagementPartner
- - sdk/maps/Azure.ResourceManager.Maps
- - sdk/marketplace/Azure.ResourceManager.Marketplace
- - sdk/marketplaceordering/Azure.ResourceManager.MarketplaceOrdering
- - sdk/mediaservices/Azure.ResourceManager.Media
- - sdk/migrationdiscoverysap/Azure.ResourceManager.MigrationDiscoverySap
- - sdk/mixedreality/Azure.ResourceManager.MixedReality
- - sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork
- - sdk/mongocluster/Azure.ResourceManager.MongoCluster
- - sdk/monitor/Azure.ResourceManager.Monitor
- - sdk/mysql/Azure.ResourceManager.MySql
- - sdk/neonpostgres/Azure.ResourceManager.NeonPostgres
- sdk/netapp/Azure.ResourceManager.NetApp
- - sdk/network/Azure.ResourceManager.Network
- - sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics
- - sdk/networkcloud/Azure.ResourceManager.NetworkCloud
- - sdk/networkfunction/Azure.ResourceManager.NetworkFunction
- - sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability
- - sdk/nginx/Azure.ResourceManager.Nginx
- - sdk/notificationhubs/Azure.ResourceManager.NotificationHubs
- - sdk/openenergyplatform/Azure.ResourceManager.EnergyServices
- - sdk/operationalinsights/Azure.ResourceManager.OperationalInsights
- - sdk/oracle/Azure.ResourceManager.OracleDatabase
- - sdk/orbital/Azure.ResourceManager.Orbital
- - sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw
- - sdk/peering/Azure.ResourceManager.Peering
- - sdk/playwrighttesting/Azure.ResourceManager.PlaywrightTesting
- - sdk/policyinsights/Azure.ResourceManager.PolicyInsights
- - sdk/postgresql/Azure.ResourceManager.PostgreSql
- - sdk/powerbidedicated/Azure.ResourceManager.PowerBIDedicated
- - sdk/privatedns/Azure.ResourceManager.PrivateDns
- - sdk/providerhub/Azure.ResourceManager.ProviderHub
- - sdk/purview/Azure.ResourceManager.Purview
- - sdk/quantum/Azure.ResourceManager.Quantum
- - sdk/qumulo/Azure.ResourceManager.Qumulo
- - sdk/quota/Azure.ResourceManager.Quota
- - sdk/recoveryservices/Azure.ResourceManager.RecoveryServices
- - sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup
- - sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication
- - sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery
- - sdk/redis/Azure.ResourceManager.Redis
- - sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise
- - sdk/relay/Azure.ResourceManager.Relay
- - sdk/reservations/Azure.ResourceManager.Reservations
- - sdk/resourceconnector/Azure.ResourceManager.ResourceConnector
- - sdk/resourcegraph/Azure.ResourceManager.ResourceGraph
- - sdk/resourcehealth/Azure.ResourceManager.ResourceHealth
- - sdk/resourcemover/Azure.ResourceManager.ResourceMover
- - sdk/resources/Azure.ResourceManager.Resources
- - sdk/search/Azure.ResourceManager.Search
- - sdk/securitycenter/Azure.ResourceManager.SecurityCenter
- - sdk/securitydevops/Azure.ResourceManager.SecurityDevOps
- - sdk/securityinsights/Azure.ResourceManager.SecurityInsights
- - sdk/selfhelp/Azure.ResourceManager.SelfHelp
- - sdk/servicebus/Azure.ResourceManager.ServiceBus
- - sdk/servicefabric/Azure.ResourceManager.ServiceFabric
- - sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters
- - sdk/servicelinker/Azure.ResourceManager.ServiceLinker
- - sdk/servicenetworking/Azure.ResourceManager.ServiceNetworking
- - sdk/signalr/Azure.ResourceManager.SignalR
- - sdk/sphere/Azure.ResourceManager.Sphere
- - sdk/springappdiscovery/Azure.ResourceManager.SpringAppDiscovery
- - sdk/sqlmanagement/Azure.ResourceManager.Sql
- - sdk/sqlvirtualmachine/Azure.ResourceManager.SqlVirtualMachine
- - sdk/standbypool/Azure.ResourceManager.StandbyPool
- - sdk/storage/Azure.ResourceManager.Storage
- - sdk/storageactions/Azure.ResourceManager.StorageActions
- - sdk/storagecache/Azure.ResourceManager.StorageCache
- - sdk/storagemover/Azure.ResourceManager.StorageMover
- - sdk/storagepool/Azure.ResourceManager.StoragePool
- - sdk/storagesync/Azure.ResourceManager.StorageSync
- - sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics
- - sdk/subscription/Azure.ResourceManager.Subscription
- - sdk/support/Azure.ResourceManager.Support
- - sdk/synapse/Azure.ResourceManager.Synapse
- - sdk/terraform/Azure.ResourceManager.Terraform
- - sdk/trafficmanager/Azure.ResourceManager.TrafficManager
- - sdk/trustedsigning/Azure.ResourceManager.TrustedSigning
- - sdk/voiceservices/Azure.ResourceManager.VoiceServices
- - sdk/webpubsub/Azure.ResourceManager.WebPubSub
- - sdk/websites/Azure.ResourceManager.AppService
- - sdk/workloadmonitor/Azure.ResourceManager.WorkloadMonitor
- - sdk/workloads/Azure.ResourceManager.Workloads
+ - sdk/apicenter/Azure.ResourceManager.ApiCenter
+ - sdk/deviceregistry/Azure.ResourceManager.DeviceRegistry
+ - sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity
pr:
branches:
@@ -216,198 +217,199 @@ pr:
- sdk/resourcemanager
- common/ManagementTestShared
- common/ManagementCoreShared
- - sdk/advisor/Azure.ResourceManager.Advisor
- - sdk/agrifood/Azure.ResourceManager.AgFoodPlatform
- - sdk/alertsmanagement/Azure.ResourceManager.AlertsManagement
- - sdk/analysisservices/Azure.ResourceManager.Analysis
- - sdk/apicenter/Azure.ResourceManager.ApiCenter
- - sdk/apimanagement/Azure.ResourceManager.ApiManagement
- - sdk/appcomplianceautomation/Azure.ResourceManager.AppComplianceAutomation
- - sdk/appconfiguration/Azure.ResourceManager.AppConfiguration
- - sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights
- - sdk/appplatform/Azure.ResourceManager.AppPlatform
- - sdk/arc-scvmm/Azure.ResourceManager.ScVmm
- - sdk/astronomer/Azure.ResourceManager.Astro
- - sdk/attestation/Azure.ResourceManager.Attestation
+ - sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw
+ - sdk/batch/Azure.ResourceManager.Batch
+ - sdk/marketplace/Azure.ResourceManager.Marketplace
+ - sdk/fluidrelay/Azure.ResourceManager.FluidRelay
+ - sdk/managedserviceidentity/Azure.ResourceManager.ManagedServiceIdentities
+ - sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere
+ - sdk/servicelinker/Azure.ResourceManager.ServiceLinker
+ - sdk/confluent/Azure.ResourceManager.Confluent
+ - sdk/sqlvirtualmachine/Azure.ResourceManager.SqlVirtualMachine
+ - sdk/hardwaresecuritymodules/Azure.ResourceManager.HardwareSecurityModules
- sdk/authorization/Azure.ResourceManager.Authorization
- - sdk/automanage/Azure.ResourceManager.Automanage
- - sdk/automation/Azure.ResourceManager.Automation
+ - sdk/graphservices/Azure.ResourceManager.GraphServices
+ - sdk/mysql/Azure.ResourceManager.MySql
+ - sdk/containerservice/Azure.ResourceManager.ContainerService
+ - sdk/astronomer/Azure.ResourceManager.Astro
+ - sdk/informaticadatamanagement/Azure.ResourceManager.InformaticaDataManagement
+ - sdk/grafana/Azure.ResourceManager.Grafana
+ - sdk/migrationdiscoverysap/Azure.ResourceManager.MigrationDiscoverySap
+ - sdk/dnsresolver/Azure.ResourceManager.DnsResolver
+ - sdk/websites/Azure.ResourceManager.AppService
+ - sdk/orbital/Azure.ResourceManager.Orbital
+ - sdk/trafficmanager/Azure.ResourceManager.TrafficManager
+ - sdk/servicefabric/Azure.ResourceManager.ServiceFabric
- sdk/avs/Azure.ResourceManager.Avs
- - sdk/azurelargeinstance/Azure.ResourceManager.LargeInstance
- - sdk/azurestackhci/Azure.ResourceManager.Hci
- - sdk/batch/Azure.ResourceManager.Batch
- - sdk/billing/Azure.ResourceManager.Billing
- - sdk/billingbenefits/Azure.ResourceManager.BillingBenefits
- - sdk/blueprint/Azure.ResourceManager.Blueprint
- - sdk/botservice/Azure.ResourceManager.BotService
- - sdk/cdn/Azure.ResourceManager.Cdn
- - sdk/changeanalysis/Azure.ResourceManager.ChangeAnalysis
- - sdk/chaos/Azure.ResourceManager.Chaos
- - sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices
- - sdk/communication/Azure.ResourceManager.Communication
- - sdk/compute/Azure.ResourceManager.Compute
- - sdk/computefleet/Azure.ResourceManager.ComputeFleet
+ - sdk/hdinsightcontainers/Azure.ResourceManager.HDInsight.Containers
+ - sdk/providerhub/Azure.ResourceManager.ProviderHub
- sdk/computeschedule/Azure.ResourceManager.ComputeSchedule
- - sdk/confidentialledger/Azure.ResourceManager.ConfidentialLedger
- - sdk/confluent/Azure.ResourceManager.Confluent
- - sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere
- - sdk/consumption/Azure.ResourceManager.Consumption
- - sdk/containerapps/Azure.ResourceManager.AppContainers
- - sdk/containerinstance/Azure.ResourceManager.ContainerInstance
+ - sdk/securityinsights/Azure.ResourceManager.SecurityInsights
- sdk/containerorchestratorruntime/Azure.ResourceManager.ContainerOrchestratorRuntime
- - sdk/containerregistry/Azure.ResourceManager.ContainerRegistry
- - sdk/containerservice/Azure.ResourceManager.ContainerService
- - sdk/cosmosdb/Azure.ResourceManager.CosmosDB
+ - sdk/playwrighttesting/Azure.ResourceManager.PlaywrightTesting
+ - sdk/managedservices/Azure.ResourceManager.ManagedServices
+ - sdk/reservations/Azure.ResourceManager.Reservations
+ - sdk/digitaltwins/Azure.ResourceManager.DigitalTwins
+ - sdk/billing/Azure.ResourceManager.Billing
+ - sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization
+ - sdk/webpubsub/Azure.ResourceManager.WebPubSub
+ - sdk/maintenance/Azure.ResourceManager.Maintenance
+ - sdk/securitydevops/Azure.ResourceManager.SecurityDevOps
+ - sdk/networkfunction/Azure.ResourceManager.NetworkFunction
+ - sdk/hybridcompute/Azure.ResourceManager.HybridCompute
+ - sdk/guestconfiguration/Azure.ResourceManager.GuestConfiguration
+ - sdk/redis/Azure.ResourceManager.Redis
- sdk/cosmosdbforpostgresql/Azure.ResourceManager.CosmosDBForPostgreSql
+ - sdk/datashare/Azure.ResourceManager.DataShare
- sdk/costmanagement/Azure.ResourceManager.CostManagement
- - sdk/customer-insights/Azure.ResourceManager.CustomerInsights
- - sdk/databox/Azure.ResourceManager.DataBox
- - sdk/databoxedge/Azure.ResourceManager.DataBoxEdge
- - sdk/datadog/Azure.ResourceManager.Datadog
- - sdk/datafactory/Azure.ResourceManager.DataFactory
- - sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics
- - sdk/datalake-store/Azure.ResourceManager.DataLakeStore
+ - sdk/storagemover/Azure.ResourceManager.StorageMover
+ - sdk/frontdoor/Azure.ResourceManager.FrontDoor
- sdk/datamigration/Azure.ResourceManager.DataMigration
+ - sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication
- sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup
- - sdk/datashare/Azure.ResourceManager.DataShare
- - sdk/defendereasm/Azure.ResourceManager.DefenderEasm
- - sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization
- - sdk/devcenter/Azure.ResourceManager.DevCenter
- - sdk/deviceprovisioningservices/Azure.ResourceManager.DeviceProvisioningServices
- - sdk/deviceregistry/Azure.ResourceManager.DeviceRegistry
- - sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate
- - sdk/devopsinfrastructure/Azure.ResourceManager.DevOpsInfrastructure
- - sdk/devspaces/Azure.ResourceManager.DevSpaces
+ - sdk/nginx/Azure.ResourceManager.Nginx
+ - sdk/datalake-store/Azure.ResourceManager.DataLakeStore
+ - sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics
+ - sdk/analysisservices/Azure.ResourceManager.Analysis
+ - sdk/workloadssapvirtualinstance/Azure.ResourceManager.SapVirtualInstances
+ - sdk/search/Azure.ResourceManager.Search
+ - sdk/communication/Azure.ResourceManager.Communication
+ - sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters
- sdk/devtestlabs/Azure.ResourceManager.DevTestLabs
- - sdk/digitaltwins/Azure.ResourceManager.DigitalTwins
- - sdk/dns/Azure.ResourceManager.Dns
- - sdk/dnsresolver/Azure.ResourceManager.DnsResolver
- - sdk/dynatrace/Azure.ResourceManager.Dynatrace
- - sdk/edgeorder/Azure.ResourceManager.EdgeOrder
- - sdk/edgezones/Azure.ResourceManager.EdgeZones
- - sdk/elastic/Azure.ResourceManager.Elastic
- - sdk/elasticsan/Azure.ResourceManager.ElasticSan
- - sdk/eventgrid/Azure.ResourceManager.EventGrid
- - sdk/eventhub/Azure.ResourceManager.EventHubs
- - sdk/extendedlocation/Azure.ResourceManager.ExtendedLocations
- - sdk/fabric/Azure.ResourceManager.Fabric
- - sdk/fleet/Azure.ResourceManager.ContainerServiceFleet
- - sdk/fluidrelay/Azure.ResourceManager.FluidRelay
- - sdk/frontdoor/Azure.ResourceManager.FrontDoor
- - sdk/grafana/Azure.ResourceManager.Grafana
- - sdk/graphservices/Azure.ResourceManager.GraphServices
- - sdk/guestconfiguration/Azure.ResourceManager.GuestConfiguration
- - sdk/hardwaresecuritymodules/Azure.ResourceManager.HardwareSecurityModules
- - sdk/hdinsight/Azure.ResourceManager.HDInsight
- - sdk/hdinsightcontainers/Azure.ResourceManager.HDInsight.Containers
- - sdk/healthbot/Azure.ResourceManager.HealthBot
- - sdk/healthcareapis/Azure.ResourceManager.HealthcareApis
- - sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices
- - sdk/hybridaks/Azure.ResourceManager.HybridContainerService
- - sdk/hybridcompute/Azure.ResourceManager.HybridCompute
- - sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity
- - sdk/hybridkubernetes/Azure.ResourceManager.Kubernetes
- - sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork
- - sdk/informaticadatamanagement/Azure.ResourceManager.InformaticaDataManagement
- - sdk/iot/Azure.ResourceManager.IotFirmwareDefense
- - sdk/iotcentral/Azure.ResourceManager.IotCentral
- - sdk/iothub/Azure.ResourceManager.IotHub
- - sdk/keyvault/Azure.ResourceManager.KeyVault
- - sdk/kubernetesconfiguration/Azure.ResourceManager.KubernetesConfiguration
- - sdk/kusto/Azure.ResourceManager.Kusto
- - sdk/labservices/Azure.ResourceManager.LabServices
- - sdk/loadtestservice/Azure.ResourceManager.LoadTesting
- - sdk/logic/Azure.ResourceManager.Logic
- - sdk/machinelearningcompute/Azure.ResourceManager.MachineLearningCompute
- - sdk/machinelearningservices/Azure.ResourceManager.MachineLearning
- - sdk/maintenance/Azure.ResourceManager.Maintenance
- - sdk/managednetwork/Azure.ResourceManager.ManagedNetwork
+ - sdk/storage/Azure.ResourceManager.Storage
+ - sdk/blueprint/Azure.ResourceManager.Blueprint
+ - sdk/consumption/Azure.ResourceManager.Consumption
+ - sdk/sqlmanagement/Azure.ResourceManager.Sql
+ - sdk/qumulo/Azure.ResourceManager.Qumulo
+ - sdk/privatedns/Azure.ResourceManager.PrivateDns
+ - sdk/confidentialledger/Azure.ResourceManager.ConfidentialLedger
- sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric
- - sdk/managedserviceidentity/Azure.ResourceManager.ManagedServiceIdentities
- - sdk/managedservices/Azure.ResourceManager.ManagedServices
- - sdk/managementpartner/Azure.ResourceManager.ManagementPartner
- - sdk/maps/Azure.ResourceManager.Maps
- - sdk/marketplace/Azure.ResourceManager.Marketplace
- - sdk/marketplaceordering/Azure.ResourceManager.MarketplaceOrdering
- - sdk/mediaservices/Azure.ResourceManager.Media
- - sdk/migrationdiscoverysap/Azure.ResourceManager.MigrationDiscoverySap
+ - sdk/alertsmanagement/Azure.ResourceManager.AlertsManagement
+ - sdk/subscription/Azure.ResourceManager.Subscription
+ - sdk/storageactions/Azure.ResourceManager.StorageActions
+ - sdk/datadog/Azure.ResourceManager.Datadog
- sdk/mixedreality/Azure.ResourceManager.MixedReality
- - sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork
- - sdk/mongocluster/Azure.ResourceManager.MongoCluster
- - sdk/monitor/Azure.ResourceManager.Monitor
- - sdk/mysql/Azure.ResourceManager.MySql
- - sdk/neonpostgres/Azure.ResourceManager.NeonPostgres
- - sdk/netapp/Azure.ResourceManager.NetApp
+ - sdk/fabric/Azure.ResourceManager.Fabric
+ - sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery
- sdk/network/Azure.ResourceManager.Network
- - sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics
- - sdk/networkcloud/Azure.ResourceManager.NetworkCloud
- - sdk/networkfunction/Azure.ResourceManager.NetworkFunction
- - sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability
- - sdk/nginx/Azure.ResourceManager.Nginx
- - sdk/notificationhubs/Azure.ResourceManager.NotificationHubs
- - sdk/openenergyplatform/Azure.ResourceManager.EnergyServices
- - sdk/operationalinsights/Azure.ResourceManager.OperationalInsights
+ - sdk/appconfiguration/Azure.ResourceManager.AppConfiguration
+ - sdk/hybridkubernetes/Azure.ResourceManager.Kubernetes
+ - sdk/databox/Azure.ResourceManager.DataBox
+ - sdk/healthcareapis/Azure.ResourceManager.HealthcareApis
+ - sdk/voiceservices/Azure.ResourceManager.VoiceServices
+ - sdk/azurelargeinstance/Azure.ResourceManager.LargeInstance
+ - sdk/automation/Azure.ResourceManager.Automation
+ - sdk/elastic/Azure.ResourceManager.Elastic
+ - sdk/appplatform/Azure.ResourceManager.AppPlatform
+ - sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics
- sdk/oracle/Azure.ResourceManager.OracleDatabase
- - sdk/orbital/Azure.ResourceManager.Orbital
- - sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw
- - sdk/peering/Azure.ResourceManager.Peering
- - sdk/playwrighttesting/Azure.ResourceManager.PlaywrightTesting
- - sdk/policyinsights/Azure.ResourceManager.PolicyInsights
- - sdk/postgresql/Azure.ResourceManager.PostgreSql
- - sdk/powerbidedicated/Azure.ResourceManager.PowerBIDedicated
- - sdk/privatedns/Azure.ResourceManager.PrivateDns
- - sdk/providerhub/Azure.ResourceManager.ProviderHub
- - sdk/purview/Azure.ResourceManager.Purview
- - sdk/quantum/Azure.ResourceManager.Quantum
- - sdk/qumulo/Azure.ResourceManager.Qumulo
- - sdk/quota/Azure.ResourceManager.Quota
- - sdk/recoveryservices/Azure.ResourceManager.RecoveryServices
- - sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup
- - sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication
- - sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery
- - sdk/redis/Azure.ResourceManager.Redis
- - sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise
- - sdk/relay/Azure.ResourceManager.Relay
- - sdk/reservations/Azure.ResourceManager.Reservations
- - sdk/resourceconnector/Azure.ResourceManager.ResourceConnector
- - sdk/resourcegraph/Azure.ResourceManager.ResourceGraph
+ - sdk/cdn/Azure.ResourceManager.Cdn
+ - sdk/monitor/Azure.ResourceManager.Monitor
+ - sdk/attestation/Azure.ResourceManager.Attestation
+ - sdk/mongocluster/Azure.ResourceManager.MongoCluster
+ - sdk/hdinsight/Azure.ResourceManager.HDInsight
+ - sdk/springappdiscovery/Azure.ResourceManager.SpringAppDiscovery
+ - sdk/operationalinsights/Azure.ResourceManager.OperationalInsights
+ - sdk/agrifood/Azure.ResourceManager.AgFoodPlatform
+ - sdk/containerinstance/Azure.ResourceManager.ContainerInstance
+ - sdk/changeanalysis/Azure.ResourceManager.ChangeAnalysis
+ - sdk/arc-scvmm/Azure.ResourceManager.ScVmm
- sdk/resourcehealth/Azure.ResourceManager.ResourceHealth
- - sdk/resourcemover/Azure.ResourceManager.ResourceMover
- - sdk/resources/Azure.ResourceManager.Resources
- - sdk/search/Azure.ResourceManager.Search
- - sdk/securitycenter/Azure.ResourceManager.SecurityCenter
- - sdk/securitydevops/Azure.ResourceManager.SecurityDevOps
- - sdk/securityinsights/Azure.ResourceManager.SecurityInsights
- - sdk/selfhelp/Azure.ResourceManager.SelfHelp
- sdk/servicebus/Azure.ResourceManager.ServiceBus
- - sdk/servicefabric/Azure.ResourceManager.ServiceFabric
- - sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters
- - sdk/servicelinker/Azure.ResourceManager.ServiceLinker
- - sdk/servicenetworking/Azure.ResourceManager.ServiceNetworking
- sdk/signalr/Azure.ResourceManager.SignalR
- - sdk/sphere/Azure.ResourceManager.Sphere
- - sdk/springappdiscovery/Azure.ResourceManager.SpringAppDiscovery
- - sdk/sqlmanagement/Azure.ResourceManager.Sql
- - sdk/sqlvirtualmachine/Azure.ResourceManager.SqlVirtualMachine
- - sdk/standbypool/Azure.ResourceManager.StandbyPool
- - sdk/storage/Azure.ResourceManager.Storage
- - sdk/storageactions/Azure.ResourceManager.StorageActions
- - sdk/storagecache/Azure.ResourceManager.StorageCache
- - sdk/storagemover/Azure.ResourceManager.StorageMover
+ - sdk/appcomplianceautomation/Azure.ResourceManager.AppComplianceAutomation
+ - sdk/logic/Azure.ResourceManager.Logic
+ - sdk/defendereasm/Azure.ResourceManager.DefenderEasm
+ - sdk/networkcloud/Azure.ResourceManager.NetworkCloud
- sdk/storagepool/Azure.ResourceManager.StoragePool
- - sdk/storagesync/Azure.ResourceManager.StorageSync
+ - sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices
- sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics
- - sdk/subscription/Azure.ResourceManager.Subscription
- - sdk/support/Azure.ResourceManager.Support
+ - sdk/mediaservices/Azure.ResourceManager.Media
+ - sdk/cosmosdb/Azure.ResourceManager.CosmosDB
+ - sdk/resources/Azure.ResourceManager.Resources
+ - sdk/powerbidedicated/Azure.ResourceManager.PowerBIDedicated
+ - sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate
+ - sdk/dynatrace/Azure.ResourceManager.Dynatrace
+ - sdk/botservice/Azure.ResourceManager.BotService
+ - sdk/deviceprovisioningservices/Azure.ResourceManager.DeviceProvisioningServices
+ - sdk/kubernetesconfiguration/Azure.ResourceManager.KubernetesConfiguration
- sdk/synapse/Azure.ResourceManager.Synapse
- - sdk/terraform/Azure.ResourceManager.Terraform
- - sdk/trafficmanager/Azure.ResourceManager.TrafficManager
- sdk/trustedsigning/Azure.ResourceManager.TrustedSigning
- - sdk/voiceservices/Azure.ResourceManager.VoiceServices
- - sdk/webpubsub/Azure.ResourceManager.WebPubSub
- - sdk/websites/Azure.ResourceManager.AppService
+ - sdk/maps/Azure.ResourceManager.Maps
+ - sdk/iotcentral/Azure.ResourceManager.IotCentral
+ - sdk/machinelearningcompute/Azure.ResourceManager.MachineLearningCompute
+ - sdk/postgresql/Azure.ResourceManager.PostgreSql
- sdk/workloadmonitor/Azure.ResourceManager.WorkloadMonitor
+ - sdk/marketplaceordering/Azure.ResourceManager.MarketplaceOrdering
+ - sdk/iot/Azure.ResourceManager.IotFirmwareDefense
+ - sdk/quota/Azure.ResourceManager.Quota
+ - sdk/machinelearningservices/Azure.ResourceManager.MachineLearning
+ - sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise
+ - sdk/relay/Azure.ResourceManager.Relay
+ - sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork
+ - sdk/selfhelp/Azure.ResourceManager.SelfHelp
+ - sdk/elasticsan/Azure.ResourceManager.ElasticSan
+ - sdk/dns/Azure.ResourceManager.Dns
+ - sdk/policyinsights/Azure.ResourceManager.PolicyInsights
+ - sdk/peering/Azure.ResourceManager.Peering
+ - sdk/eventhub/Azure.ResourceManager.EventHubs
+ - sdk/kusto/Azure.ResourceManager.Kusto
+ - sdk/healthbot/Azure.ResourceManager.HealthBot
+ - sdk/datafactory/Azure.ResourceManager.DataFactory
+ - sdk/storagecache/Azure.ResourceManager.StorageCache
+ - sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices
+ - sdk/containerregistry/Azure.ResourceManager.ContainerRegistry
+ - sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability
+ - sdk/standbypool/Azure.ResourceManager.StandbyPool
+ - sdk/terraform/Azure.ResourceManager.Terraform
+ - sdk/advisor/Azure.ResourceManager.Advisor
+ - sdk/edgezones/Azure.ResourceManager.EdgeZones
+ - sdk/apimanagement/Azure.ResourceManager.ApiManagement
+ - sdk/notificationhubs/Azure.ResourceManager.NotificationHubs
+ - sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup
+ - sdk/eventgrid/Azure.ResourceManager.EventGrid
+ - sdk/openenergyplatform/Azure.ResourceManager.EnergyServices
+ - sdk/devopsinfrastructure/Azure.ResourceManager.DevOpsInfrastructure
+ - sdk/iothub/Azure.ResourceManager.IotHub
+ - sdk/quantum/Azure.ResourceManager.Quantum
+ - sdk/customer-insights/Azure.ResourceManager.CustomerInsights
+ - sdk/automanage/Azure.ResourceManager.Automanage
+ - sdk/managementpartner/Azure.ResourceManager.ManagementPartner
+ - sdk/edgeorder/Azure.ResourceManager.EdgeOrder
+ - sdk/extendedlocation/Azure.ResourceManager.ExtendedLocations
+ - sdk/resourcemover/Azure.ResourceManager.ResourceMover
- sdk/workloads/Azure.ResourceManager.Workloads
+ - sdk/support/Azure.ResourceManager.Support
+ - sdk/compute/Azure.ResourceManager.Compute
+ - sdk/billingbenefits/Azure.ResourceManager.BillingBenefits
+ - sdk/purview/Azure.ResourceManager.Purview
+ - sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork
+ - sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights
+ - sdk/containerapps/Azure.ResourceManager.AppContainers
+ - sdk/labservices/Azure.ResourceManager.LabServices
+ - sdk/loadtestservice/Azure.ResourceManager.LoadTesting
+ - sdk/storagesync/Azure.ResourceManager.StorageSync
+ - sdk/recoveryservices/Azure.ResourceManager.RecoveryServices
+ - sdk/sphere/Azure.ResourceManager.Sphere
+ - sdk/chaos/Azure.ResourceManager.Chaos
+ - sdk/securitycenter/Azure.ResourceManager.SecurityCenter
+ - sdk/azurestackhci/Azure.ResourceManager.Hci
+ - sdk/keyvault/Azure.ResourceManager.KeyVault
+ - sdk/hybridaks/Azure.ResourceManager.HybridContainerService
+ - sdk/resourcegraph/Azure.ResourceManager.ResourceGraph
+ - sdk/servicenetworking/Azure.ResourceManager.ServiceNetworking
+ - sdk/devspaces/Azure.ResourceManager.DevSpaces
+ - sdk/resourceconnector/Azure.ResourceManager.ResourceConnector
+ - sdk/fleet/Azure.ResourceManager.ContainerServiceFleet
+ - sdk/devcenter/Azure.ResourceManager.DevCenter
+ - sdk/databoxedge/Azure.ResourceManager.DataBoxEdge
+ - sdk/neonpostgres/Azure.ResourceManager.NeonPostgres
+ - sdk/computefleet/Azure.ResourceManager.ComputeFleet
+ - sdk/managednetwork/Azure.ResourceManager.ManagedNetwork
+ - sdk/netapp/Azure.ResourceManager.NetApp
+ - sdk/apicenter/Azure.ResourceManager.ApiCenter
+ - sdk/deviceregistry/Azure.ResourceManager.DeviceRegistry
+ - sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
diff --git a/sdk/resourcemover/ci.mgmt.yml b/sdk/resourcemover/ci.mgmt.yml
index 519b8a431926..bbb814c6a4f0 100644
--- a/sdk/resourcemover/ci.mgmt.yml
+++ b/sdk/resourcemover/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/resourcemover/ci.mgmt.yml
- sdk/resourcemover/Azure.ResourceManager.ResourceMover/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/resourcemover/ci.mgmt.yml
+ - sdk/resourcemover/Azure.ResourceManager.ResourceMover/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/resources/ci.mgmt.yml b/sdk/resources/ci.mgmt.yml
index 3fefd5254c85..ff65cb96d07d 100644
--- a/sdk/resources/ci.mgmt.yml
+++ b/sdk/resources/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/resources/ci.mgmt.yml
- sdk/resources/Azure.ResourceManager.Resources/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/resources/ci.mgmt.yml
+ - sdk/resources/Azure.ResourceManager.Resources/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/search/ci.mgmt.yml b/sdk/search/ci.mgmt.yml
index a8c2a632c1c8..63c0e200644f 100644
--- a/sdk/search/ci.mgmt.yml
+++ b/sdk/search/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/search/ci.mgmt.yml
- sdk/search/Azure.ResourceManager.Search/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/search/ci.mgmt.yml
+ - sdk/search/Azure.ResourceManager.Search/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/securitycenter/ci.mgmt.yml b/sdk/securitycenter/ci.mgmt.yml
index c728522efab2..6ed8ff4d67a9 100644
--- a/sdk/securitycenter/ci.mgmt.yml
+++ b/sdk/securitycenter/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/securitycenter/ci.mgmt.yml
- sdk/securitycenter/Azure.ResourceManager.SecurityCenter/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/securitycenter/ci.mgmt.yml
+ - sdk/securitycenter/Azure.ResourceManager.SecurityCenter/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/securitydevops/ci.mgmt.yml b/sdk/securitydevops/ci.mgmt.yml
index c5a54a9ad206..972d98a7376e 100644
--- a/sdk/securitydevops/ci.mgmt.yml
+++ b/sdk/securitydevops/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/securitydevops/ci.mgmt.yml
- sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/securitydevops/ci.mgmt.yml
+ - sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/securityinsights/ci.mgmt.yml b/sdk/securityinsights/ci.mgmt.yml
index f1d428ebef90..0659cac2858f 100644
--- a/sdk/securityinsights/ci.mgmt.yml
+++ b/sdk/securityinsights/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/securityinsights/ci.mgmt.yml
- sdk/securityinsights/Azure.ResourceManager.SecurityInsights/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/securityinsights/ci.mgmt.yml
+ - sdk/securityinsights/Azure.ResourceManager.SecurityInsights/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/selfhelp/ci.mgmt.yml b/sdk/selfhelp/ci.mgmt.yml
index bb6a162210eb..ac13ec845ce7 100644
--- a/sdk/selfhelp/ci.mgmt.yml
+++ b/sdk/selfhelp/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/selfhelp/ci.mgmt.yml
- sdk/selfhelp/Azure.ResourceManager.SelfHelp/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/selfhelp/ci.mgmt.yml
+ - sdk/selfhelp/Azure.ResourceManager.SelfHelp/
+
extends:
template: ../../eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/servicebus/ci.mgmt.yml b/sdk/servicebus/ci.mgmt.yml
index 02c45dc88e18..f2ead205ced6 100644
--- a/sdk/servicebus/ci.mgmt.yml
+++ b/sdk/servicebus/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/servicebus/ci.mgmt.yml
- sdk/servicebus/Azure.ResourceManager.ServiceBus/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/servicebus/ci.mgmt.yml
+ - sdk/servicebus/Azure.ResourceManager.ServiceBus/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/servicefabric/ci.mgmt.yml b/sdk/servicefabric/ci.mgmt.yml
index 430f48c8c87b..afc886a4f7f2 100644
--- a/sdk/servicefabric/ci.mgmt.yml
+++ b/sdk/servicefabric/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/servicefabric/ci.mgmt.yml
- sdk/servicefabric/Azure.ResourceManager.ServiceFabric/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/servicefabric/ci.mgmt.yml
+ - sdk/servicefabric/Azure.ResourceManager.ServiceFabric/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/servicefabricmanagedclusters/ci.mgmt.yml b/sdk/servicefabricmanagedclusters/ci.mgmt.yml
index e73289f589f4..022ac0f03cd1 100644
--- a/sdk/servicefabricmanagedclusters/ci.mgmt.yml
+++ b/sdk/servicefabricmanagedclusters/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/servicefabricmanagedclusters/ci.mgmt.yml
- sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/servicefabricmanagedclusters/ci.mgmt.yml
+ - sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/servicelinker/ci.mgmt.yml b/sdk/servicelinker/ci.mgmt.yml
index 77df314e977a..6069e04a3157 100644
--- a/sdk/servicelinker/ci.mgmt.yml
+++ b/sdk/servicelinker/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/servicelinker/ci.mgmt.yml
- sdk/servicelinker/Azure.ResourceManager.ServiceLinker/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/servicelinker/ci.mgmt.yml
+ - sdk/servicelinker/Azure.ResourceManager.ServiceLinker/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/servicenetworking/ci.mgmt.yml b/sdk/servicenetworking/ci.mgmt.yml
index b2332ae15224..4551f1325475 100644
--- a/sdk/servicenetworking/ci.mgmt.yml
+++ b/sdk/servicenetworking/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/servicenetworking/ci.mgmt.yml
- sdk/servicenetworking/Azure.ResourceManager.ServiceNetworking/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/servicenetworking/ci.mgmt.yml
+ - sdk/servicenetworking/Azure.ResourceManager.ServiceNetworking/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/signalr/ci.mgmt.yml b/sdk/signalr/ci.mgmt.yml
index c934ed4314fa..f066849c56a1 100644
--- a/sdk/signalr/ci.mgmt.yml
+++ b/sdk/signalr/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/signalr/ci.mgmt.yml
- sdk/signalr/Azure.ResourceManager.SignalR/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/signalr/ci.mgmt.yml
+ - sdk/signalr/Azure.ResourceManager.SignalR/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/sphere/ci.mgmt.yml b/sdk/sphere/ci.mgmt.yml
index f3f33e9d00f4..749774244735 100644
--- a/sdk/sphere/ci.mgmt.yml
+++ b/sdk/sphere/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/sphere/ci.mgmt.yml
- sdk/sphere/Azure.ResourceManager.Sphere/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/sphere/ci.mgmt.yml
+ - sdk/sphere/Azure.ResourceManager.Sphere/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/springappdiscovery/ci.mgmt.yml b/sdk/springappdiscovery/ci.mgmt.yml
index 7676386684df..f86c14368089 100644
--- a/sdk/springappdiscovery/ci.mgmt.yml
+++ b/sdk/springappdiscovery/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/springappdiscovery/ci.mgmt.yml
- sdk/springappdiscovery/Azure.ResourceManager.SpringAppDiscovery/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/springappdiscovery/ci.mgmt.yml
+ - sdk/springappdiscovery/Azure.ResourceManager.SpringAppDiscovery/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/sqlmanagement/ci.mgmt.yml b/sdk/sqlmanagement/ci.mgmt.yml
index da93d03f2d33..8377a2663681 100644
--- a/sdk/sqlmanagement/ci.mgmt.yml
+++ b/sdk/sqlmanagement/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/sqlmanagement/ci.mgmt.yml
- sdk/sqlmanagement/Azure.ResourceManager.Sql/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/sqlmanagement/ci.mgmt.yml
+ - sdk/sqlmanagement/Azure.ResourceManager.Sql/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/sqlvirtualmachine/ci.mgmt.yml b/sdk/sqlvirtualmachine/ci.mgmt.yml
index 28c6192fa86b..049e315855ed 100644
--- a/sdk/sqlvirtualmachine/ci.mgmt.yml
+++ b/sdk/sqlvirtualmachine/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/sqlvirtualmachine/ci.mgmt.yml
- sdk/sqlvirtualmachine/Azure.ResourceManager.SqlVirtualMachine/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/sqlvirtualmachine/ci.mgmt.yml
+ - sdk/sqlvirtualmachine/Azure.ResourceManager.SqlVirtualMachine/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/standbypool/ci.mgmt.yml b/sdk/standbypool/ci.mgmt.yml
index 0763a516e2c1..54ce1137a123 100644
--- a/sdk/standbypool/ci.mgmt.yml
+++ b/sdk/standbypool/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/standbypool/ci.mgmt.yml
- sdk/standbypool/Azure.ResourceManager.StandbyPool/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/standbypool/ci.mgmt.yml
+ - sdk/standbypool/Azure.ResourceManager.StandbyPool/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/storage/ci.mgmt.yml b/sdk/storage/ci.mgmt.yml
index 95bc19b325d5..6f05608983be 100644
--- a/sdk/storage/ci.mgmt.yml
+++ b/sdk/storage/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/storage/ci.mgmt.yml
- sdk/storage/Azure.ResourceManager.Storage/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/storage/ci.mgmt.yml
+ - sdk/storage/Azure.ResourceManager.Storage/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/storageactions/ci.mgmt.yml b/sdk/storageactions/ci.mgmt.yml
index 27062b4565a8..b27838343a2e 100644
--- a/sdk/storageactions/ci.mgmt.yml
+++ b/sdk/storageactions/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/storageactions/ci.mgmt.yml
- sdk/storageactions/Azure.ResourceManager.StorageActions/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/storageactions/ci.mgmt.yml
+ - sdk/storageactions/Azure.ResourceManager.StorageActions/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/storagecache/ci.mgmt.yml b/sdk/storagecache/ci.mgmt.yml
index c6abf63baf2c..84c922940939 100644
--- a/sdk/storagecache/ci.mgmt.yml
+++ b/sdk/storagecache/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/storagecache/ci.mgmt.yml
- sdk/storagecache/Azure.ResourceManager.StorageCache/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/storagecache/ci.mgmt.yml
+ - sdk/storagecache/Azure.ResourceManager.StorageCache/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/storagemover/ci.mgmt.yml b/sdk/storagemover/ci.mgmt.yml
index e9055f49e1a9..4e45261a60aa 100644
--- a/sdk/storagemover/ci.mgmt.yml
+++ b/sdk/storagemover/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/storagemover/ci.mgmt.yml
- sdk/storagemover/Azure.ResourceManager.StorageMover/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/storagemover/ci.mgmt.yml
+ - sdk/storagemover/Azure.ResourceManager.StorageMover/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/storagepool/ci.mgmt.yml b/sdk/storagepool/ci.mgmt.yml
index 2178fc390757..6592a12a262a 100644
--- a/sdk/storagepool/ci.mgmt.yml
+++ b/sdk/storagepool/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/storagepool/ci.mgmt.yml
- sdk/storagepool/Azure.ResourceManager.StoragePool/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/storagepool/ci.mgmt.yml
+ - sdk/storagepool/Azure.ResourceManager.StoragePool/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/storagesync/ci.mgmt.yml b/sdk/storagesync/ci.mgmt.yml
index a8789947c687..b9fcbb66b30f 100644
--- a/sdk/storagesync/ci.mgmt.yml
+++ b/sdk/storagesync/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/storagesync/ci.mgmt.yml
- sdk/storagesync/Azure.ResourceManager.StorageSync/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/storagesync/ci.mgmt.yml
+ - sdk/storagesync/Azure.ResourceManager.StorageSync/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/streamanalytics/ci.mgmt.yml b/sdk/streamanalytics/ci.mgmt.yml
index 09d108a1a7d9..860cd851bbd1 100644
--- a/sdk/streamanalytics/ci.mgmt.yml
+++ b/sdk/streamanalytics/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/streamanalytics/ci.mgmt.yml
- sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/streamanalytics/ci.mgmt.yml
+ - sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/subscription/ci.mgmt.yml b/sdk/subscription/ci.mgmt.yml
index f9067b4c0af3..a00a0e9c56ad 100644
--- a/sdk/subscription/ci.mgmt.yml
+++ b/sdk/subscription/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/subscription/ci.mgmt.yml
- sdk/subscription/Azure.ResourceManager.Subscription/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/subscription/ci.mgmt.yml
+ - sdk/subscription/Azure.ResourceManager.Subscription/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/support/ci.mgmt.yml b/sdk/support/ci.mgmt.yml
index 5a947c4c4939..d5c857ad8346 100644
--- a/sdk/support/ci.mgmt.yml
+++ b/sdk/support/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/support/ci.mgmt.yml
- sdk/support/Azure.ResourceManager.Support/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/support/ci.mgmt.yml
+ - sdk/support/Azure.ResourceManager.Support/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/synapse/ci.mgmt.yml b/sdk/synapse/ci.mgmt.yml
index 0a089a504291..18c8132c4803 100644
--- a/sdk/synapse/ci.mgmt.yml
+++ b/sdk/synapse/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/synapse/ci.mgmt.yml
- sdk/synapse/Azure.ResourceManager.Synapse/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/synapse/ci.mgmt.yml
+ - sdk/synapse/Azure.ResourceManager.Synapse/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/terraform/ci.mgmt.yml b/sdk/terraform/ci.mgmt.yml
index 82c4c1f05a4c..5f7b3d41fb27 100644
--- a/sdk/terraform/ci.mgmt.yml
+++ b/sdk/terraform/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/terraform/ci.mgmt.yml
- sdk/terraform/Azure.ResourceManager.Terraform/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/terraform/ci.mgmt.yml
+ - sdk/terraform/Azure.ResourceManager.Terraform/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/trafficmanager/ci.mgmt.yml b/sdk/trafficmanager/ci.mgmt.yml
index 528f78b70b96..86b17c08ac4e 100644
--- a/sdk/trafficmanager/ci.mgmt.yml
+++ b/sdk/trafficmanager/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/trafficmanager/ci.mgmt.yml
- sdk/trafficmanager/Azure.ResourceManager.TrafficManager/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/trafficmanager/ci.mgmt.yml
+ - sdk/trafficmanager/Azure.ResourceManager.TrafficManager/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/trustedsigning/ci.mgmt.yml b/sdk/trustedsigning/ci.mgmt.yml
index 5b67358a4477..07fb171ee416 100644
--- a/sdk/trustedsigning/ci.mgmt.yml
+++ b/sdk/trustedsigning/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/trustedsigning/ci.mgmt.yml
- sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/trustedsigning/ci.mgmt.yml
+ - sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/voiceservices/ci.mgmt.yml b/sdk/voiceservices/ci.mgmt.yml
index a914d1640296..64ea2eb63c0f 100644
--- a/sdk/voiceservices/ci.mgmt.yml
+++ b/sdk/voiceservices/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/voiceservices/ci.mgmt.yml
- sdk/voiceservices/Azure.ResourceManager.VoiceServices/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/voiceservices/ci.mgmt.yml
+ - sdk/voiceservices/Azure.ResourceManager.VoiceServices/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/webpubsub/ci.mgmt.yml b/sdk/webpubsub/ci.mgmt.yml
index 6bcb8439a2b0..a312a96feb5a 100644
--- a/sdk/webpubsub/ci.mgmt.yml
+++ b/sdk/webpubsub/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/webpubsub/ci.mgmt.yml
- sdk/webpubsub/Azure.ResourceManager.WebPubSub/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/webpubsub/ci.mgmt.yml
+ - sdk/webpubsub/Azure.ResourceManager.WebPubSub/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/websites/ci.mgmt.yml b/sdk/websites/ci.mgmt.yml
index d67c580bc414..4dbf184acc87 100644
--- a/sdk/websites/ci.mgmt.yml
+++ b/sdk/websites/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/websites/ci.mgmt.yml
- sdk/websites/Azure.ResourceManager.AppService/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/websites/ci.mgmt.yml
+ - sdk/websites/Azure.ResourceManager.AppService/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/workloadmonitor/ci.mgmt.yml b/sdk/workloadmonitor/ci.mgmt.yml
index 7c6a51fbe75c..e834be340ea9 100644
--- a/sdk/workloadmonitor/ci.mgmt.yml
+++ b/sdk/workloadmonitor/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/workloadmonitor/ci.mgmt.yml
- sdk/workloadmonitor/Azure.ResourceManager.WorkloadMonitor/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/workloadmonitor/ci.mgmt.yml
+ - sdk/workloadmonitor/Azure.ResourceManager.WorkloadMonitor/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/workloads/ci.mgmt.yml b/sdk/workloads/ci.mgmt.yml
index e3457d69ceaa..bf3983053473 100644
--- a/sdk/workloads/ci.mgmt.yml
+++ b/sdk/workloads/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/workloads/ci.mgmt.yml
- sdk/workloads/Azure.ResourceManager.Workloads/
+
+ branches:
+ include:
+ - main
+ - feature/*
+ - hotfix/*
+ - release/*
+ paths:
+ include:
+ - sdk/workloads/ci.mgmt.yml
+ - sdk/workloads/Azure.ResourceManager.Workloads/
+
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
diff --git a/sdk/workloadssapvirtualinstance/Azure.ResourceManager.SapVirtualInstances/Azure.ResourceManager.SapVirtualInstances.sln b/sdk/workloadssapvirtualinstance/Azure.ResourceManager.SapVirtualInstances/Azure.ResourceManager.SapVirtualInstances.sln
new file mode 100644
index 000000000000..d20c0df9296c
--- /dev/null
+++ b/sdk/workloadssapvirtualinstance/Azure.ResourceManager.SapVirtualInstances/Azure.ResourceManager.SapVirtualInstances.sln
@@ -0,0 +1,56 @@
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio Version 16
+VisualStudioVersion = 16.0.29709.97
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Azure.Core.TestFramework", "..\..\core\Azure.Core.TestFramework\src\Azure.Core.TestFramework.csproj", "{ECC730C1-4AEA-420C-916A-66B19B79E4DC}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Azure.ResourceManager.SapVirtualInstances", "src\Azure.ResourceManager.SapVirtualInstances.csproj", "{28FF4005-4467-4E36-92E7-DEA27DEB1519}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Azure.ResourceManager.SapVirtualInstances.Tests", "tests\Azure.ResourceManager.SapVirtualInstances.Tests.csproj", "{1F1CD1D4-9932-4B73-99D8-C252A67D4B46}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {B0C276D1-2930-4887-B29A-D1A33E7009A2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {B0C276D1-2930-4887-B29A-D1A33E7009A2}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {B0C276D1-2930-4887-B29A-D1A33E7009A2}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {B0C276D1-2930-4887-B29A-D1A33E7009A2}.Release|Any CPU.Build.0 = Release|Any CPU
+ {8E9A77AC-792A-4432-8320-ACFD46730401}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {8E9A77AC-792A-4432-8320-ACFD46730401}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {8E9A77AC-792A-4432-8320-ACFD46730401}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {8E9A77AC-792A-4432-8320-ACFD46730401}.Release|Any CPU.Build.0 = Release|Any CPU
+ {ECC730C1-4AEA-420C-916A-66B19B79E4DC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {ECC730C1-4AEA-420C-916A-66B19B79E4DC}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {ECC730C1-4AEA-420C-916A-66B19B79E4DC}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {ECC730C1-4AEA-420C-916A-66B19B79E4DC}.Release|Any CPU.Build.0 = Release|Any CPU
+ {A4241C1F-A53D-474C-9E4E-075054407E74}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {A4241C1F-A53D-474C-9E4E-075054407E74}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {A4241C1F-A53D-474C-9E4E-075054407E74}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {A4241C1F-A53D-474C-9E4E-075054407E74}.Release|Any CPU.Build.0 = Release|Any CPU
+ {FA8BD3F1-8616-47B6-974C-7576CDF4717E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {FA8BD3F1-8616-47B6-974C-7576CDF4717E}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {FA8BD3F1-8616-47B6-974C-7576CDF4717E}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {FA8BD3F1-8616-47B6-974C-7576CDF4717E}.Release|Any CPU.Build.0 = Release|Any CPU
+ {85677AD3-C214-42FA-AE6E-49B956CAC8DC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {85677AD3-C214-42FA-AE6E-49B956CAC8DC}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {85677AD3-C214-42FA-AE6E-49B956CAC8DC}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {85677AD3-C214-42FA-AE6E-49B956CAC8DC}.Release|Any CPU.Build.0 = Release|Any CPU
+ {28FF4005-4467-4E36-92E7-DEA27DEB1519}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {28FF4005-4467-4E36-92E7-DEA27DEB1519}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {28FF4005-4467-4E36-92E7-DEA27DEB1519}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {28FF4005-4467-4E36-92E7-DEA27DEB1519}.Release|Any CPU.Build.0 = Release|Any CPU
+ {1F1CD1D4-9932-4B73-99D8-C252A67D4B46}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {1F1CD1D4-9932-4B73-99D8-C252A67D4B46}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {1F1CD1D4-9932-4B73-99D8-C252A67D4B46}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {1F1CD1D4-9932-4B73-99D8-C252A67D4B46}.Release|Any CPU.Build.0 = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+ GlobalSection(ExtensibilityGlobals) = postSolution
+ SolutionGuid = {A97F4B90-2591-4689-B1F8-5F21FE6D6CAE}
+ EndGlobalSection
+EndGlobal
diff --git a/sdk/workloadssapvirtualinstance/Azure.ResourceManager.SapVirtualInstances/CHANGELOG.md b/sdk/workloadssapvirtualinstance/Azure.ResourceManager.SapVirtualInstances/CHANGELOG.md
new file mode 100644
index 000000000000..13dd08af78ab
--- /dev/null
+++ b/sdk/workloadssapvirtualinstance/Azure.ResourceManager.SapVirtualInstances/CHANGELOG.md
@@ -0,0 +1,11 @@
+# Release History
+
+## 1.0.0-beta.1 (Unreleased)
+
+### Features Added
+
+### Breaking Changes
+
+### Bugs Fixed
+
+### Other Changes
diff --git a/sdk/workloadssapvirtualinstance/Azure.ResourceManager.SapVirtualInstances/Directory.Build.props b/sdk/workloadssapvirtualinstance/Azure.ResourceManager.SapVirtualInstances/Directory.Build.props
new file mode 100644
index 000000000000..63bd836ad44b
--- /dev/null
+++ b/sdk/workloadssapvirtualinstance/Azure.ResourceManager.SapVirtualInstances/Directory.Build.props
@@ -0,0 +1,6 @@
+
+
+
+
diff --git a/sdk/workloadssapvirtualinstance/Azure.ResourceManager.SapVirtualInstances/README.md b/sdk/workloadssapvirtualinstance/Azure.ResourceManager.SapVirtualInstances/README.md
new file mode 100644
index 000000000000..c2d813e761af
--- /dev/null
+++ b/sdk/workloadssapvirtualinstance/Azure.ResourceManager.SapVirtualInstances/README.md
@@ -0,0 +1,86 @@
+# Azure.ResourceManager.SapVirtualInstances client library for .NET
+
+Azure.ResourceManager.SapVirtualInstances is a managed service that helps developers get secret simply and securely.
+
+Use the client library for to:
+
+* [Get secret](https://docs.microsoft.com/azure)
+
+[Source code][source_root] | [Package (NuGet)][package] | [API reference documentation][reference_docs] | [Product documentation][azconfig_docs] | [Samples][source_samples]
+
+ [Source code](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/workloadssapvirtualinstance/Azure.ResourceManager.SapVirtualInstances/src) | [Package (NuGet)](https://www.nuget.org/packages) | [API reference documentation](https://azure.github.io/azure-sdk-for-net) | [Product documentation](https://docs.microsoft.com/azure)
+
+## Getting started
+
+This section should include everything a developer needs to do to install and create their first client connection *very quickly*.
+
+### Install the package
+
+First, provide instruction for obtaining and installing the package or library. This section might include only a single line of code, like `dotnet add package package-name`, but should enable a developer to successfully install the package from NuGet, npm, or even cloning a GitHub repository.
+
+Install the client library for .NET with [NuGet](https://www.nuget.org/ ):
+
+```dotnetcli
+dotnet add package Azure.ResourceManager.SapVirtualInstances --prerelease
+```
+
+### Prerequisites
+
+Include a section after the install command that details any requirements that must be satisfied before a developer can [authenticate](#authenticate-the-client) and test all of the snippets in the [Examples](#examples) section. For example, for Cosmos DB:
+
+> You must have an [Azure subscription](https://azure.microsoft.com/free/dotnet/) and [Cosmos DB account](https://docs.microsoft.com/azure/cosmos-db/account-overview) (SQL API). In order to take advantage of the C# 8.0 syntax, it is recommended that you compile using the [.NET Core SDK](https://dotnet.microsoft.com/download) 3.0 or higher with a [language version](https://docs.microsoft.com/dotnet/csharp/language-reference/configure-language-version#override-a-default) of `latest`. It is also possible to compile with the .NET Core SDK 2.1.x using a language version of `preview`.
+
+### Authenticate the client
+
+If your library requires authentication for use, such as for Azure services, include instructions and example code needed for initializing and authenticating.
+
+For example, include details on obtaining an account key and endpoint URI, setting environment variables for each, and initializing the client object.
+
+## Key concepts
+
+The *Key concepts* section should describe the functionality of the main classes. Point out the most important and useful classes in the package (with links to their reference pages) and explain how those classes work together. Feel free to use bulleted lists, tables, code blocks, or even diagrams for clarity.
+
+Include the *Thread safety* and *Additional concepts* sections below at the end of your *Key concepts* section. You may remove or add links depending on what your library makes use of:
+
+### Thread safety
+
+We guarantee that all client instance methods are thread-safe and independent of each other ([guideline](https://azure.github.io/azure-sdk/dotnet_introduction.html#dotnet-service-methods-thread-safety)). This ensures that the recommendation of reusing client instances is always safe, even across threads.
+
+### Additional concepts
+
+[Client options](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#configuring-service-clients-using-clientoptions) |
+[Accessing the response](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#accessing-http-response-details-using-responset) |
+[Long-running operations](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#consuming-long-running-operations-using-operationt) |
+[Handling failures](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#reporting-errors-requestfailedexception) |
+[Diagnostics](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/Diagnostics.md) |
+[Mocking](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/README.md#mocking) |
+[Client lifetime](https://devblogs.microsoft.com/azure-sdk/lifetime-management-and-thread-safety-guarantees-of-azure-sdk-net-clients/)
+
+
+## Examples
+
+You can familiarize yourself with different APIs using [Samples](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/workloadssapvirtualinstance/Azure.ResourceManager.SapVirtualInstances/samples).
+
+## Troubleshooting
+
+Describe common errors and exceptions, how to "unpack" them if necessary, and include guidance for graceful handling and recovery.
+
+Provide information to help developers avoid throttling or other service-enforced errors they might encounter. For example, provide guidance and examples for using retry or connection policies in the API.
+
+If the package or a related package supports it, include tips for logging or enabling instrumentation to help them debug their code.
+
+## Next steps
+
+* Provide a link to additional code examples, ideally to those sitting alongside the README in the package's `/samples` directory.
+* If appropriate, point users to other packages that might be useful.
+* If you think there's a good chance that developers might stumble across your package in error (because they're searching for specific functionality and mistakenly think the package provides that functionality), point them to the packages they might be looking for.
+
+## Contributing
+
+This is a template, but your SDK readme should include details on how to contribute code to the repo/package.
+
+
+[style-guide-msft]: https://docs.microsoft.com/style-guide/capitalization
+[style-guide-cloud]: https://aka.ms/azsdk/cloud-style-guide
+
+
diff --git a/sdk/workloadssapvirtualinstance/Azure.ResourceManager.SapVirtualInstances/samples/Generated/Samples/Sample_SAPApplicationServerInstanceCollection.cs b/sdk/workloadssapvirtualinstance/Azure.ResourceManager.SapVirtualInstances/samples/Generated/Samples/Sample_SAPApplicationServerInstanceCollection.cs
new file mode 100644
index 000000000000..92f502050781
--- /dev/null
+++ b/sdk/workloadssapvirtualinstance/Azure.ResourceManager.SapVirtualInstances/samples/Generated/Samples/Sample_SAPApplicationServerInstanceCollection.cs
@@ -0,0 +1,245 @@
+// 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.SapVirtualInstances.Models;
+using NUnit.Framework;
+
+namespace Azure.ResourceManager.SapVirtualInstances.Samples
+{
+ public partial class Sample_SAPApplicationServerInstanceCollection
+ {
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Get_SAPApplicationServerInstancesGet()
+ {
+ // Generated from example definition: 2024-09-01/SapApplicationServerInstances_Get.json
+ // this example is just showing the usage of "SAPApplicationServerInstance_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 SAPVirtualInstanceResource created on azure
+ // for more information of creating SAPVirtualInstanceResource, please refer to the document of SAPVirtualInstanceResource
+ string subscriptionId = "6d875e77-e412-4d7d-9af4-8895278b4443";
+ string resourceGroupName = "test-rg";
+ string sapVirtualInstanceName = "X00";
+ ResourceIdentifier sapVirtualInstanceResourceId = SAPVirtualInstanceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, sapVirtualInstanceName);
+ SAPVirtualInstanceResource sapVirtualInstance = client.GetSAPVirtualInstanceResource(sapVirtualInstanceResourceId);
+
+ // get the collection of this SAPApplicationServerInstanceResource
+ SAPApplicationServerInstanceCollection collection = sapVirtualInstance.GetSAPApplicationServerInstances();
+
+ // invoke the operation
+ string applicationInstanceName = "app01";
+ SAPApplicationServerInstanceResource result = await collection.GetAsync(applicationInstanceName);
+
+ // 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
+ SAPApplicationServerInstanceData 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 Exists_SAPApplicationServerInstancesGet()
+ {
+ // Generated from example definition: 2024-09-01/SapApplicationServerInstances_Get.json
+ // this example is just showing the usage of "SAPApplicationServerInstance_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 SAPVirtualInstanceResource created on azure
+ // for more information of creating SAPVirtualInstanceResource, please refer to the document of SAPVirtualInstanceResource
+ string subscriptionId = "6d875e77-e412-4d7d-9af4-8895278b4443";
+ string resourceGroupName = "test-rg";
+ string sapVirtualInstanceName = "X00";
+ ResourceIdentifier sapVirtualInstanceResourceId = SAPVirtualInstanceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, sapVirtualInstanceName);
+ SAPVirtualInstanceResource sapVirtualInstance = client.GetSAPVirtualInstanceResource(sapVirtualInstanceResourceId);
+
+ // get the collection of this SAPApplicationServerInstanceResource
+ SAPApplicationServerInstanceCollection collection = sapVirtualInstance.GetSAPApplicationServerInstances();
+
+ // invoke the operation
+ string applicationInstanceName = "app01";
+ bool result = await collection.ExistsAsync(applicationInstanceName);
+
+ Console.WriteLine($"Succeeded: {result}");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task GetIfExists_SAPApplicationServerInstancesGet()
+ {
+ // Generated from example definition: 2024-09-01/SapApplicationServerInstances_Get.json
+ // this example is just showing the usage of "SAPApplicationServerInstance_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 SAPVirtualInstanceResource created on azure
+ // for more information of creating SAPVirtualInstanceResource, please refer to the document of SAPVirtualInstanceResource
+ string subscriptionId = "6d875e77-e412-4d7d-9af4-8895278b4443";
+ string resourceGroupName = "test-rg";
+ string sapVirtualInstanceName = "X00";
+ ResourceIdentifier sapVirtualInstanceResourceId = SAPVirtualInstanceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, sapVirtualInstanceName);
+ SAPVirtualInstanceResource sapVirtualInstance = client.GetSAPVirtualInstanceResource(sapVirtualInstanceResourceId);
+
+ // get the collection of this SAPApplicationServerInstanceResource
+ SAPApplicationServerInstanceCollection collection = sapVirtualInstance.GetSAPApplicationServerInstances();
+
+ // invoke the operation
+ string applicationInstanceName = "app01";
+ NullableResponse response = await collection.GetIfExistsAsync(applicationInstanceName);
+ SAPApplicationServerInstanceResource result = response.HasValue ? response.Value : null;
+
+ if (result == null)
+ {
+ Console.WriteLine("Succeeded with null as result");
+ }
+ else
+ {
+ // 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
+ SAPApplicationServerInstanceData 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_SAPApplicationServerInstancesCreate()
+ {
+ // Generated from example definition: 2024-09-01/SapApplicationServerInstances_Create.json
+ // this example is just showing the usage of "SAPApplicationServerInstance_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
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this SAPVirtualInstanceResource created on azure
+ // for more information of creating SAPVirtualInstanceResource, please refer to the document of SAPVirtualInstanceResource
+ string subscriptionId = "6d875e77-e412-4d7d-9af4-8895278b4443";
+ string resourceGroupName = "test-rg";
+ string sapVirtualInstanceName = "X00";
+ ResourceIdentifier sapVirtualInstanceResourceId = SAPVirtualInstanceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, sapVirtualInstanceName);
+ SAPVirtualInstanceResource sapVirtualInstance = client.GetSAPVirtualInstanceResource(sapVirtualInstanceResourceId);
+
+ // get the collection of this SAPApplicationServerInstanceResource
+ SAPApplicationServerInstanceCollection collection = sapVirtualInstance.GetSAPApplicationServerInstances();
+
+ // invoke the operation
+ string applicationInstanceName = "app01";
+ SAPApplicationServerInstanceData data = new SAPApplicationServerInstanceData(new AzureLocation("westcentralus"))
+ {
+ Properties = new SAPApplicationServerProperties(),
+ Tags =
+{
+},
+ };
+ ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, applicationInstanceName, data);
+ SAPApplicationServerInstanceResource 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
+ SAPApplicationServerInstanceData 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_CreateSAPApplicationServerInstancesForHASystemWithAvailabilitySet()
+ {
+ // Generated from example definition: 2024-09-01/SapApplicationServerInstances_CreateForHaWithAvailabilitySet.json
+ // this example is just showing the usage of "SAPApplicationServerInstance_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
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this SAPVirtualInstanceResource created on azure
+ // for more information of creating SAPVirtualInstanceResource, please refer to the document of SAPVirtualInstanceResource
+ string subscriptionId = "6d875e77-e412-4d7d-9af4-8895278b4443";
+ string resourceGroupName = "test-rg";
+ string sapVirtualInstanceName = "X00";
+ ResourceIdentifier sapVirtualInstanceResourceId = SAPVirtualInstanceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, sapVirtualInstanceName);
+ SAPVirtualInstanceResource sapVirtualInstance = client.GetSAPVirtualInstanceResource(sapVirtualInstanceResourceId);
+
+ // get the collection of this SAPApplicationServerInstanceResource
+ SAPApplicationServerInstanceCollection collection = sapVirtualInstance.GetSAPApplicationServerInstances();
+
+ // invoke the operation
+ string applicationInstanceName = "app01";
+ SAPApplicationServerInstanceData data = new SAPApplicationServerInstanceData(new AzureLocation("westcentralus"))
+ {
+ Properties = new SAPApplicationServerProperties(),
+ Tags =
+{
+},
+ };
+ ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, applicationInstanceName, data);
+ SAPApplicationServerInstanceResource 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
+ SAPApplicationServerInstanceData 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 GetAll_SapApplicationServerInstancesListBySAPVirtualInstance()
+ {
+ // Generated from example definition: 2024-09-01/SapApplicationServerInstances_ListBySapVirtualInstance.json
+ // this example is just showing the usage of "SAPApplicationServerInstance_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
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this SAPVirtualInstanceResource created on azure
+ // for more information of creating SAPVirtualInstanceResource, please refer to the document of SAPVirtualInstanceResource
+ string subscriptionId = "6d875e77-e412-4d7d-9af4-8895278b4443";
+ string resourceGroupName = "test-rg";
+ string sapVirtualInstanceName = "X00";
+ ResourceIdentifier sapVirtualInstanceResourceId = SAPVirtualInstanceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, sapVirtualInstanceName);
+ SAPVirtualInstanceResource sapVirtualInstance = client.GetSAPVirtualInstanceResource(sapVirtualInstanceResourceId);
+
+ // get the collection of this SAPApplicationServerInstanceResource
+ SAPApplicationServerInstanceCollection collection = sapVirtualInstance.GetSAPApplicationServerInstances();
+
+ // invoke the operation and iterate over the result
+ await foreach (SAPApplicationServerInstanceResource item in collection.GetAllAsync())
+ {
+ // the variable item 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
+ SAPApplicationServerInstanceData resourceData = item.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
+ Console.WriteLine("Succeeded");
+ }
+ }
+}
diff --git a/sdk/workloadssapvirtualinstance/Azure.ResourceManager.SapVirtualInstances/samples/Generated/Samples/Sample_SAPApplicationServerInstanceResource.cs b/sdk/workloadssapvirtualinstance/Azure.ResourceManager.SapVirtualInstances/samples/Generated/Samples/Sample_SAPApplicationServerInstanceResource.cs
new file mode 100644
index 000000000000..244898de8de9
--- /dev/null
+++ b/sdk/workloadssapvirtualinstance/Azure.ResourceManager.SapVirtualInstances/samples/Generated/Samples/Sample_SAPApplicationServerInstanceResource.cs
@@ -0,0 +1,306 @@
+// 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.SapVirtualInstances.Models;
+using NUnit.Framework;
+
+namespace Azure.ResourceManager.SapVirtualInstances.Samples
+{
+ public partial class Sample_SAPApplicationServerInstanceResource
+ {
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Get_SAPApplicationServerInstancesGet()
+ {
+ // Generated from example definition: 2024-09-01/SapApplicationServerInstances_Get.json
+ // this example is just showing the usage of "SAPApplicationServerInstance_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 SAPApplicationServerInstanceResource created on azure
+ // for more information of creating SAPApplicationServerInstanceResource, please refer to the document of SAPApplicationServerInstanceResource
+ string subscriptionId = "6d875e77-e412-4d7d-9af4-8895278b4443";
+ string resourceGroupName = "test-rg";
+ string sapVirtualInstanceName = "X00";
+ string applicationInstanceName = "app01";
+ ResourceIdentifier sapApplicationServerInstanceResourceId = SAPApplicationServerInstanceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, sapVirtualInstanceName, applicationInstanceName);
+ SAPApplicationServerInstanceResource sapApplicationServerInstance = client.GetSAPApplicationServerInstanceResource(sapApplicationServerInstanceResourceId);
+
+ // invoke the operation
+ SAPApplicationServerInstanceResource result = await sapApplicationServerInstance.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
+ SAPApplicationServerInstanceData 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_SAPApplicationServerInstancesUpdate()
+ {
+ // Generated from example definition: 2024-09-01/SapApplicationServerInstances_Update.json
+ // this example is just showing the usage of "SAPApplicationServerInstance_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 SAPApplicationServerInstanceResource created on azure
+ // for more information of creating SAPApplicationServerInstanceResource, please refer to the document of SAPApplicationServerInstanceResource
+ string subscriptionId = "6d875e77-e412-4d7d-9af4-8895278b4443";
+ string resourceGroupName = "test-rg";
+ string sapVirtualInstanceName = "X00";
+ string applicationInstanceName = "app01";
+ ResourceIdentifier sapApplicationServerInstanceResourceId = SAPApplicationServerInstanceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, sapVirtualInstanceName, applicationInstanceName);
+ SAPApplicationServerInstanceResource sapApplicationServerInstance = client.GetSAPApplicationServerInstanceResource(sapApplicationServerInstanceResourceId);
+
+ // invoke the operation
+ SAPApplicationServerInstancePatch patch = new SAPApplicationServerInstancePatch()
+ {
+ Tags =
+{
+["tag1"] = "value1",
+},
+ };
+ SAPApplicationServerInstanceResource result = await sapApplicationServerInstance.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
+ SAPApplicationServerInstanceData 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 Delete_SAPApplicationServerInstancesDelete()
+ {
+ // Generated from example definition: 2024-09-01/SapApplicationServerInstances_Delete.json
+ // this example is just showing the usage of "SAPApplicationServerInstance_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
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this SAPApplicationServerInstanceResource created on azure
+ // for more information of creating SAPApplicationServerInstanceResource, please refer to the document of SAPApplicationServerInstanceResource
+ string subscriptionId = "6d875e77-e412-4d7d-9af4-8895278b4443";
+ string resourceGroupName = "test-rg";
+ string sapVirtualInstanceName = "X00";
+ string applicationInstanceName = "app01";
+ ResourceIdentifier sapApplicationServerInstanceResourceId = SAPApplicationServerInstanceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, sapVirtualInstanceName, applicationInstanceName);
+ SAPApplicationServerInstanceResource sapApplicationServerInstance = client.GetSAPApplicationServerInstanceResource(sapApplicationServerInstanceResourceId);
+
+ // invoke the operation
+ await sapApplicationServerInstance.DeleteAsync(WaitUntil.Completed);
+
+ Console.WriteLine("Succeeded");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Start_StartTheSAPApplicationServerInstance()
+ {
+ // Generated from example definition: 2024-09-01/SapApplicationServerInstances_StartInstance.json
+ // this example is just showing the usage of "SAPApplicationServerInstances_Start" 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 SAPApplicationServerInstanceResource created on azure
+ // for more information of creating SAPApplicationServerInstanceResource, please refer to the document of SAPApplicationServerInstanceResource
+ string subscriptionId = "8e17e36c-42e9-4cd5-a078-7b44883414e0";
+ string resourceGroupName = "test-rg";
+ string sapVirtualInstanceName = "X00";
+ string applicationInstanceName = "app01";
+ ResourceIdentifier sapApplicationServerInstanceResourceId = SAPApplicationServerInstanceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, sapVirtualInstanceName, applicationInstanceName);
+ SAPApplicationServerInstanceResource sapApplicationServerInstance = client.GetSAPApplicationServerInstanceResource(sapApplicationServerInstanceResourceId);
+
+ // invoke the operation
+ StartRequest body = new StartRequest();
+ ArmOperation lro = await sapApplicationServerInstance.StartAsync(WaitUntil.Completed, body: body);
+ OperationStatusResult result = lro.Value;
+
+ Console.WriteLine($"Succeeded: {result}");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Start_StartVirtualMachineAndTheSAPApplicationServerInstanceOnIt()
+ {
+ // Generated from example definition: 2024-09-01/SapApplicationServerInstances_StartInstanceVM.json
+ // this example is just showing the usage of "SAPApplicationServerInstances_Start" 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 SAPApplicationServerInstanceResource created on azure
+ // for more information of creating SAPApplicationServerInstanceResource, please refer to the document of SAPApplicationServerInstanceResource
+ string subscriptionId = "8e17e36c-42e9-4cd5-a078-7b44883414e0";
+ string resourceGroupName = "test-rg";
+ string sapVirtualInstanceName = "X00";
+ string applicationInstanceName = "app01";
+ ResourceIdentifier sapApplicationServerInstanceResourceId = SAPApplicationServerInstanceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, sapVirtualInstanceName, applicationInstanceName);
+ SAPApplicationServerInstanceResource sapApplicationServerInstance = client.GetSAPApplicationServerInstanceResource(sapApplicationServerInstanceResourceId);
+
+ // invoke the operation
+ StartRequest body = new StartRequest()
+ {
+ StartVm = true,
+ };
+ ArmOperation lro = await sapApplicationServerInstance.StartAsync(WaitUntil.Completed, body: body);
+ OperationStatusResult result = lro.Value;
+
+ Console.WriteLine($"Succeeded: {result}");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Stop_StopTheSAPApplicationServerInstance()
+ {
+ // Generated from example definition: 2024-09-01/SapApplicationServerInstances_StopInstance.json
+ // this example is just showing the usage of "SAPApplicationServerInstances_Stop" 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 SAPApplicationServerInstanceResource created on azure
+ // for more information of creating SAPApplicationServerInstanceResource, please refer to the document of SAPApplicationServerInstanceResource
+ string subscriptionId = "8e17e36c-42e9-4cd5-a078-7b44883414e0";
+ string resourceGroupName = "test-rg";
+ string sapVirtualInstanceName = "X00";
+ string applicationInstanceName = "app01";
+ ResourceIdentifier sapApplicationServerInstanceResourceId = SAPApplicationServerInstanceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, sapVirtualInstanceName, applicationInstanceName);
+ SAPApplicationServerInstanceResource sapApplicationServerInstance = client.GetSAPApplicationServerInstanceResource(sapApplicationServerInstanceResourceId);
+
+ // invoke the operation
+ StopRequest body = new StopRequest()
+ {
+ SoftStopTimeoutSeconds = 0L,
+ };
+ ArmOperation lro = await sapApplicationServerInstance.StopAsync(WaitUntil.Completed, body: body);
+ OperationStatusResult result = lro.Value;
+
+ Console.WriteLine($"Succeeded: {result}");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Stop_StopTheSAPApplicationServerInstanceAndItSInfrastructure()
+ {
+ // Generated from example definition: 2024-09-01/SapApplicationServerInstances_StopInstanceInfrastructure.json
+ // this example is just showing the usage of "SAPApplicationServerInstances_Stop" 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 SAPApplicationServerInstanceResource created on azure
+ // for more information of creating SAPApplicationServerInstanceResource, please refer to the document of SAPApplicationServerInstanceResource
+ string subscriptionId = "8e17e36c-42e9-4cd5-a078-7b44883414e0";
+ string resourceGroupName = "test-rg";
+ string sapVirtualInstanceName = "X00";
+ string applicationInstanceName = "app01";
+ ResourceIdentifier sapApplicationServerInstanceResourceId = SAPApplicationServerInstanceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, sapVirtualInstanceName, applicationInstanceName);
+ SAPApplicationServerInstanceResource sapApplicationServerInstance = client.GetSAPApplicationServerInstanceResource(sapApplicationServerInstanceResourceId);
+
+ // invoke the operation
+ StopRequest body = new StopRequest()
+ {
+ SoftStopTimeoutSeconds = 0L,
+ DeallocateVm = true,
+ };
+ ArmOperation lro = await sapApplicationServerInstance.StopAsync(WaitUntil.Completed, body: body);
+ OperationStatusResult result = lro.Value;
+
+ Console.WriteLine($"Succeeded: {result}");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Stop_SoftStopTheSAPApplicationServerInstance()
+ {
+ // Generated from example definition: 2024-09-01/SapApplicationServerInstances_StopInstanceSoft.json
+ // this example is just showing the usage of "SAPApplicationServerInstances_Stop" 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 SAPApplicationServerInstanceResource created on azure
+ // for more information of creating SAPApplicationServerInstanceResource, please refer to the document of SAPApplicationServerInstanceResource
+ string subscriptionId = "8e17e36c-42e9-4cd5-a078-7b44883414e0";
+ string resourceGroupName = "test-rg";
+ string sapVirtualInstanceName = "X00";
+ string applicationInstanceName = "app01";
+ ResourceIdentifier sapApplicationServerInstanceResourceId = SAPApplicationServerInstanceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, sapVirtualInstanceName, applicationInstanceName);
+ SAPApplicationServerInstanceResource sapApplicationServerInstance = client.GetSAPApplicationServerInstanceResource(sapApplicationServerInstanceResourceId);
+
+ // invoke the operation
+ StopRequest body = new StopRequest()
+ {
+ SoftStopTimeoutSeconds = 300L,
+ };
+ ArmOperation lro = await sapApplicationServerInstance.StopAsync(WaitUntil.Completed, body: body);
+ OperationStatusResult result = lro.Value;
+
+ Console.WriteLine($"Succeeded: {result}");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Stop_SoftStopTheSAPApplicationServerInstanceAndItSInfrastructure()
+ {
+ // Generated from example definition: 2024-09-01/SapApplicationServerInstances_StopInstanceSoftInfrastructure.json
+ // this example is just showing the usage of "SAPApplicationServerInstances_Stop" 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 SAPApplicationServerInstanceResource created on azure
+ // for more information of creating SAPApplicationServerInstanceResource, please refer to the document of SAPApplicationServerInstanceResource
+ string subscriptionId = "8e17e36c-42e9-4cd5-a078-7b44883414e0";
+ string resourceGroupName = "test-rg";
+ string sapVirtualInstanceName = "X00";
+ string applicationInstanceName = "app01";
+ ResourceIdentifier sapApplicationServerInstanceResourceId = SAPApplicationServerInstanceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, sapVirtualInstanceName, applicationInstanceName);
+ SAPApplicationServerInstanceResource sapApplicationServerInstance = client.GetSAPApplicationServerInstanceResource(sapApplicationServerInstanceResourceId);
+
+ // invoke the operation
+ StopRequest body = new StopRequest()
+ {
+ SoftStopTimeoutSeconds = 300L,
+ DeallocateVm = true,
+ };
+ ArmOperation lro = await sapApplicationServerInstance.StopAsync(WaitUntil.Completed, body: body);
+ OperationStatusResult result = lro.Value;
+
+ Console.WriteLine($"Succeeded: {result}");
+ }
+ }
+}
diff --git a/sdk/workloadssapvirtualinstance/Azure.ResourceManager.SapVirtualInstances/samples/Generated/Samples/Sample_SAPCentralServerInstanceCollection.cs b/sdk/workloadssapvirtualinstance/Azure.ResourceManager.SapVirtualInstances/samples/Generated/Samples/Sample_SAPCentralServerInstanceCollection.cs
new file mode 100644
index 000000000000..ab2b621b5125
--- /dev/null
+++ b/sdk/workloadssapvirtualinstance/Azure.ResourceManager.SapVirtualInstances/samples/Generated/Samples/Sample_SAPCentralServerInstanceCollection.cs
@@ -0,0 +1,245 @@
+// 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.SapVirtualInstances.Models;
+using NUnit.Framework;
+
+namespace Azure.ResourceManager.SapVirtualInstances.Samples
+{
+ public partial class Sample_SAPCentralServerInstanceCollection
+ {
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Get_SapCentralServerInstancesGet()
+ {
+ // Generated from example definition: 2024-09-01/SapCentralInstances_Get.json
+ // this example is just showing the usage of "SAPCentralServerInstance_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 SAPVirtualInstanceResource created on azure
+ // for more information of creating SAPVirtualInstanceResource, please refer to the document of SAPVirtualInstanceResource
+ string subscriptionId = "6d875e77-e412-4d7d-9af4-8895278b4443";
+ string resourceGroupName = "test-rg";
+ string sapVirtualInstanceName = "X00";
+ ResourceIdentifier sapVirtualInstanceResourceId = SAPVirtualInstanceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, sapVirtualInstanceName);
+ SAPVirtualInstanceResource sapVirtualInstance = client.GetSAPVirtualInstanceResource(sapVirtualInstanceResourceId);
+
+ // get the collection of this SAPCentralServerInstanceResource
+ SAPCentralServerInstanceCollection collection = sapVirtualInstance.GetSAPCentralServerInstances();
+
+ // invoke the operation
+ string centralInstanceName = "centralServer";
+ SAPCentralServerInstanceResource result = await collection.GetAsync(centralInstanceName);
+
+ // 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
+ SAPCentralServerInstanceData 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 Exists_SapCentralServerInstancesGet()
+ {
+ // Generated from example definition: 2024-09-01/SapCentralInstances_Get.json
+ // this example is just showing the usage of "SAPCentralServerInstance_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 SAPVirtualInstanceResource created on azure
+ // for more information of creating SAPVirtualInstanceResource, please refer to the document of SAPVirtualInstanceResource
+ string subscriptionId = "6d875e77-e412-4d7d-9af4-8895278b4443";
+ string resourceGroupName = "test-rg";
+ string sapVirtualInstanceName = "X00";
+ ResourceIdentifier sapVirtualInstanceResourceId = SAPVirtualInstanceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, sapVirtualInstanceName);
+ SAPVirtualInstanceResource sapVirtualInstance = client.GetSAPVirtualInstanceResource(sapVirtualInstanceResourceId);
+
+ // get the collection of this SAPCentralServerInstanceResource
+ SAPCentralServerInstanceCollection collection = sapVirtualInstance.GetSAPCentralServerInstances();
+
+ // invoke the operation
+ string centralInstanceName = "centralServer";
+ bool result = await collection.ExistsAsync(centralInstanceName);
+
+ Console.WriteLine($"Succeeded: {result}");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task GetIfExists_SapCentralServerInstancesGet()
+ {
+ // Generated from example definition: 2024-09-01/SapCentralInstances_Get.json
+ // this example is just showing the usage of "SAPCentralServerInstance_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 SAPVirtualInstanceResource created on azure
+ // for more information of creating SAPVirtualInstanceResource, please refer to the document of SAPVirtualInstanceResource
+ string subscriptionId = "6d875e77-e412-4d7d-9af4-8895278b4443";
+ string resourceGroupName = "test-rg";
+ string sapVirtualInstanceName = "X00";
+ ResourceIdentifier sapVirtualInstanceResourceId = SAPVirtualInstanceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, sapVirtualInstanceName);
+ SAPVirtualInstanceResource sapVirtualInstance = client.GetSAPVirtualInstanceResource(sapVirtualInstanceResourceId);
+
+ // get the collection of this SAPCentralServerInstanceResource
+ SAPCentralServerInstanceCollection collection = sapVirtualInstance.GetSAPCentralServerInstances();
+
+ // invoke the operation
+ string centralInstanceName = "centralServer";
+ NullableResponse response = await collection.GetIfExistsAsync(centralInstanceName);
+ SAPCentralServerInstanceResource result = response.HasValue ? response.Value : null;
+
+ if (result == null)
+ {
+ Console.WriteLine("Succeeded with null as result");
+ }
+ else
+ {
+ // 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
+ SAPCentralServerInstanceData 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_SapCentralServerInstancesCreate()
+ {
+ // Generated from example definition: 2024-09-01/SapCentralInstances_Create.json
+ // this example is just showing the usage of "SAPCentralServerInstance_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
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this SAPVirtualInstanceResource created on azure
+ // for more information of creating SAPVirtualInstanceResource, please refer to the document of SAPVirtualInstanceResource
+ string subscriptionId = "6d875e77-e412-4d7d-9af4-8895278b4443";
+ string resourceGroupName = "test-rg";
+ string sapVirtualInstanceName = "X00";
+ ResourceIdentifier sapVirtualInstanceResourceId = SAPVirtualInstanceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, sapVirtualInstanceName);
+ SAPVirtualInstanceResource sapVirtualInstance = client.GetSAPVirtualInstanceResource(sapVirtualInstanceResourceId);
+
+ // get the collection of this SAPCentralServerInstanceResource
+ SAPCentralServerInstanceCollection collection = sapVirtualInstance.GetSAPCentralServerInstances();
+
+ // invoke the operation
+ string centralInstanceName = "centralServer";
+ SAPCentralServerInstanceData data = new SAPCentralServerInstanceData(new AzureLocation("westcentralus"))
+ {
+ Properties = new SAPCentralServerProperties(),
+ Tags =
+{
+},
+ };
+ ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, centralInstanceName, data);
+ SAPCentralServerInstanceResource 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
+ SAPCentralServerInstanceData 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_CreateSAPCentralInstancesForHASystemWithAvailabilitySet()
+ {
+ // Generated from example definition: 2024-09-01/SapCentralInstances_CreateForHaWithAvailabilitySet.json
+ // this example is just showing the usage of "SAPCentralServerInstance_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
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this SAPVirtualInstanceResource created on azure
+ // for more information of creating SAPVirtualInstanceResource, please refer to the document of SAPVirtualInstanceResource
+ string subscriptionId = "6d875e77-e412-4d7d-9af4-8895278b4443";
+ string resourceGroupName = "test-rg";
+ string sapVirtualInstanceName = "X00";
+ ResourceIdentifier sapVirtualInstanceResourceId = SAPVirtualInstanceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, sapVirtualInstanceName);
+ SAPVirtualInstanceResource sapVirtualInstance = client.GetSAPVirtualInstanceResource(sapVirtualInstanceResourceId);
+
+ // get the collection of this SAPCentralServerInstanceResource
+ SAPCentralServerInstanceCollection collection = sapVirtualInstance.GetSAPCentralServerInstances();
+
+ // invoke the operation
+ string centralInstanceName = "centralServer";
+ SAPCentralServerInstanceData data = new SAPCentralServerInstanceData(new AzureLocation("westcentralus"))
+ {
+ Properties = new SAPCentralServerProperties(),
+ Tags =
+{
+},
+ };
+ ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, centralInstanceName, data);
+ SAPCentralServerInstanceResource 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
+ SAPCentralServerInstanceData 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 GetAll_SAPCentralInstancesListBySAPVirtualInstance()
+ {
+ // Generated from example definition: 2024-09-01/SapCentralServerInstances_ListBySapVirtualInstance.json
+ // this example is just showing the usage of "SAPCentralServerInstance_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
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this SAPVirtualInstanceResource created on azure
+ // for more information of creating SAPVirtualInstanceResource, please refer to the document of SAPVirtualInstanceResource
+ string subscriptionId = "6d875e77-e412-4d7d-9af4-8895278b4443";
+ string resourceGroupName = "test-rg";
+ string sapVirtualInstanceName = "X00";
+ ResourceIdentifier sapVirtualInstanceResourceId = SAPVirtualInstanceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, sapVirtualInstanceName);
+ SAPVirtualInstanceResource sapVirtualInstance = client.GetSAPVirtualInstanceResource(sapVirtualInstanceResourceId);
+
+ // get the collection of this SAPCentralServerInstanceResource
+ SAPCentralServerInstanceCollection collection = sapVirtualInstance.GetSAPCentralServerInstances();
+
+ // invoke the operation and iterate over the result
+ await foreach (SAPCentralServerInstanceResource item in collection.GetAllAsync())
+ {
+ // the variable item 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
+ SAPCentralServerInstanceData resourceData = item.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
+ Console.WriteLine("Succeeded");
+ }
+ }
+}
diff --git a/sdk/workloadssapvirtualinstance/Azure.ResourceManager.SapVirtualInstances/samples/Generated/Samples/Sample_SAPCentralServerInstanceResource.cs b/sdk/workloadssapvirtualinstance/Azure.ResourceManager.SapVirtualInstances/samples/Generated/Samples/Sample_SAPCentralServerInstanceResource.cs
new file mode 100644
index 000000000000..43d3c60e1ac3
--- /dev/null
+++ b/sdk/workloadssapvirtualinstance/Azure.ResourceManager.SapVirtualInstances/samples/Generated/Samples/Sample_SAPCentralServerInstanceResource.cs
@@ -0,0 +1,240 @@
+// 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.SapVirtualInstances.Models;
+using NUnit.Framework;
+
+namespace Azure.ResourceManager.SapVirtualInstances.Samples
+{
+ public partial class Sample_SAPCentralServerInstanceResource
+ {
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Get_SapCentralServerInstancesGet()
+ {
+ // Generated from example definition: 2024-09-01/SapCentralInstances_Get.json
+ // this example is just showing the usage of "SAPCentralServerInstance_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 SAPCentralServerInstanceResource created on azure
+ // for more information of creating SAPCentralServerInstanceResource, please refer to the document of SAPCentralServerInstanceResource
+ string subscriptionId = "6d875e77-e412-4d7d-9af4-8895278b4443";
+ string resourceGroupName = "test-rg";
+ string sapVirtualInstanceName = "X00";
+ string centralInstanceName = "centralServer";
+ ResourceIdentifier sapCentralServerInstanceResourceId = SAPCentralServerInstanceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, sapVirtualInstanceName, centralInstanceName);
+ SAPCentralServerInstanceResource sapCentralServerInstance = client.GetSAPCentralServerInstanceResource(sapCentralServerInstanceResourceId);
+
+ // invoke the operation
+ SAPCentralServerInstanceResource result = await sapCentralServerInstance.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
+ SAPCentralServerInstanceData 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_SapCentralServerInstancesUpdate()
+ {
+ // Generated from example definition: 2024-09-01/SapCentralInstances_Update.json
+ // this example is just showing the usage of "SAPCentralServerInstance_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 SAPCentralServerInstanceResource created on azure
+ // for more information of creating SAPCentralServerInstanceResource, please refer to the document of SAPCentralServerInstanceResource
+ string subscriptionId = "6d875e77-e412-4d7d-9af4-8895278b4443";
+ string resourceGroupName = "test-rg";
+ string sapVirtualInstanceName = "X00";
+ string centralInstanceName = "centralServer";
+ ResourceIdentifier sapCentralServerInstanceResourceId = SAPCentralServerInstanceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, sapVirtualInstanceName, centralInstanceName);
+ SAPCentralServerInstanceResource sapCentralServerInstance = client.GetSAPCentralServerInstanceResource(sapCentralServerInstanceResourceId);
+
+ // invoke the operation
+ SAPCentralServerInstancePatch patch = new SAPCentralServerInstancePatch()
+ {
+ Tags =
+{
+["tag1"] = "value1",
+},
+ };
+ SAPCentralServerInstanceResource result = await sapCentralServerInstance.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
+ SAPCentralServerInstanceData 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 Delete_SapCentralServerInstancesDelete()
+ {
+ // Generated from example definition: 2024-09-01/SapCentralInstances_Delete.json
+ // this example is just showing the usage of "SAPCentralServerInstance_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
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this SAPCentralServerInstanceResource created on azure
+ // for more information of creating SAPCentralServerInstanceResource, please refer to the document of SAPCentralServerInstanceResource
+ string subscriptionId = "6d875e77-e412-4d7d-9af4-8895278b4443";
+ string resourceGroupName = "test-rg";
+ string sapVirtualInstanceName = "X00";
+ string centralInstanceName = "centralServer";
+ ResourceIdentifier sapCentralServerInstanceResourceId = SAPCentralServerInstanceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, sapVirtualInstanceName, centralInstanceName);
+ SAPCentralServerInstanceResource sapCentralServerInstance = client.GetSAPCentralServerInstanceResource(sapCentralServerInstanceResourceId);
+
+ // invoke the operation
+ await sapCentralServerInstance.DeleteAsync(WaitUntil.Completed);
+
+ Console.WriteLine("Succeeded");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Start_StartTheSAPCentralServicesInstance()
+ {
+ // Generated from example definition: 2024-09-01/SapCentralInstances_StartInstance.json
+ // this example is just showing the usage of "SAPCentralServerInstances_Start" 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 SAPCentralServerInstanceResource created on azure
+ // for more information of creating SAPCentralServerInstanceResource, please refer to the document of SAPCentralServerInstanceResource
+ string subscriptionId = "8e17e36c-42e9-4cd5-a078-7b44883414e0";
+ string resourceGroupName = "test-rg";
+ string sapVirtualInstanceName = "X00";
+ string centralInstanceName = "centralServer";
+ ResourceIdentifier sapCentralServerInstanceResourceId = SAPCentralServerInstanceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, sapVirtualInstanceName, centralInstanceName);
+ SAPCentralServerInstanceResource sapCentralServerInstance = client.GetSAPCentralServerInstanceResource(sapCentralServerInstanceResourceId);
+
+ // invoke the operation
+ StartRequest body = new StartRequest();
+ ArmOperation lro = await sapCentralServerInstance.StartAsync(WaitUntil.Completed, body: body);
+ OperationStatusResult result = lro.Value;
+
+ Console.WriteLine($"Succeeded: {result}");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Start_StartTheVirtualMachineSAndTheSAPCentralServicesInstanceOnIt()
+ {
+ // Generated from example definition: 2024-09-01/SapCentralInstances_StartInstanceVM.json
+ // this example is just showing the usage of "SAPCentralServerInstances_Start" 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 SAPCentralServerInstanceResource created on azure
+ // for more information of creating SAPCentralServerInstanceResource, please refer to the document of SAPCentralServerInstanceResource
+ string subscriptionId = "8e17e36c-42e9-4cd5-a078-7b44883414e0";
+ string resourceGroupName = "test-rg";
+ string sapVirtualInstanceName = "X00";
+ string centralInstanceName = "centralServer";
+ ResourceIdentifier sapCentralServerInstanceResourceId = SAPCentralServerInstanceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, sapVirtualInstanceName, centralInstanceName);
+ SAPCentralServerInstanceResource sapCentralServerInstance = client.GetSAPCentralServerInstanceResource(sapCentralServerInstanceResourceId);
+
+ // invoke the operation
+ StartRequest body = new StartRequest()
+ {
+ StartVm = true,
+ };
+ ArmOperation lro = await sapCentralServerInstance.StartAsync(WaitUntil.Completed, body: body);
+ OperationStatusResult result = lro.Value;
+
+ Console.WriteLine($"Succeeded: {result}");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Stop_StopTheSAPCentralServicesInstance()
+ {
+ // Generated from example definition: 2024-09-01/SapCentralInstances_StopInstance.json
+ // this example is just showing the usage of "SAPCentralServerInstances_Stop" 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 SAPCentralServerInstanceResource created on azure
+ // for more information of creating SAPCentralServerInstanceResource, please refer to the document of SAPCentralServerInstanceResource
+ string subscriptionId = "8e17e36c-42e9-4cd5-a078-7b44883414e0";
+ string resourceGroupName = "test-rg";
+ string sapVirtualInstanceName = "X00";
+ string centralInstanceName = "centralServer";
+ ResourceIdentifier sapCentralServerInstanceResourceId = SAPCentralServerInstanceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, sapVirtualInstanceName, centralInstanceName);
+ SAPCentralServerInstanceResource sapCentralServerInstance = client.GetSAPCentralServerInstanceResource(sapCentralServerInstanceResourceId);
+
+ // invoke the operation
+ StopRequest body = new StopRequest()
+ {
+ SoftStopTimeoutSeconds = 1200L,
+ };
+ ArmOperation lro = await sapCentralServerInstance.StopAsync(WaitUntil.Completed, body: body);
+ OperationStatusResult result = lro.Value;
+
+ Console.WriteLine($"Succeeded: {result}");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Stop_StopTheSAPCentralServicesInstanceAndItsUnderlyingVirtualMachineS()
+ {
+ // Generated from example definition: 2024-09-01/SapCentralInstances_StopInstanceVM.json
+ // this example is just showing the usage of "SAPCentralServerInstances_Stop" 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 SAPCentralServerInstanceResource created on azure
+ // for more information of creating SAPCentralServerInstanceResource, please refer to the document of SAPCentralServerInstanceResource
+ string subscriptionId = "8e17e36c-42e9-4cd5-a078-7b44883414e0";
+ string resourceGroupName = "test-rg";
+ string sapVirtualInstanceName = "X00";
+ string centralInstanceName = "centralServer";
+ ResourceIdentifier sapCentralServerInstanceResourceId = SAPCentralServerInstanceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, sapVirtualInstanceName, centralInstanceName);
+ SAPCentralServerInstanceResource sapCentralServerInstance = client.GetSAPCentralServerInstanceResource(sapCentralServerInstanceResourceId);
+
+ // invoke the operation
+ StopRequest body = new StopRequest()
+ {
+ DeallocateVm = true,
+ };
+ ArmOperation lro = await sapCentralServerInstance.StopAsync(WaitUntil.Completed, body: body);
+ OperationStatusResult result = lro.Value;
+
+ Console.WriteLine($"Succeeded: {result}");
+ }
+ }
+}
diff --git a/sdk/workloadssapvirtualinstance/Azure.ResourceManager.SapVirtualInstances/samples/Generated/Samples/Sample_SAPDatabaseInstanceCollection.cs b/sdk/workloadssapvirtualinstance/Azure.ResourceManager.SapVirtualInstances/samples/Generated/Samples/Sample_SAPDatabaseInstanceCollection.cs
new file mode 100644
index 000000000000..9eb33c9f0ec2
--- /dev/null
+++ b/sdk/workloadssapvirtualinstance/Azure.ResourceManager.SapVirtualInstances/samples/Generated/Samples/Sample_SAPDatabaseInstanceCollection.cs
@@ -0,0 +1,245 @@
+// 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.SapVirtualInstances.Models;
+using NUnit.Framework;
+
+namespace Azure.ResourceManager.SapVirtualInstances.Samples
+{
+ public partial class Sample_SAPDatabaseInstanceCollection
+ {
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Get_SAPDatabaseInstancesGet()
+ {
+ // Generated from example definition: 2024-09-01/SapDatabaseInstances_Get.json
+ // this example is just showing the usage of "SAPDatabaseInstance_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 SAPVirtualInstanceResource created on azure
+ // for more information of creating SAPVirtualInstanceResource, please refer to the document of SAPVirtualInstanceResource
+ string subscriptionId = "6d875e77-e412-4d7d-9af4-8895278b4443";
+ string resourceGroupName = "test-rg";
+ string sapVirtualInstanceName = "X00";
+ ResourceIdentifier sapVirtualInstanceResourceId = SAPVirtualInstanceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, sapVirtualInstanceName);
+ SAPVirtualInstanceResource sapVirtualInstance = client.GetSAPVirtualInstanceResource(sapVirtualInstanceResourceId);
+
+ // get the collection of this SAPDatabaseInstanceResource
+ SAPDatabaseInstanceCollection collection = sapVirtualInstance.GetSAPDatabaseInstances();
+
+ // invoke the operation
+ string databaseInstanceName = "databaseServer";
+ SAPDatabaseInstanceResource result = await collection.GetAsync(databaseInstanceName);
+
+ // 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
+ SAPDatabaseInstanceData 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 Exists_SAPDatabaseInstancesGet()
+ {
+ // Generated from example definition: 2024-09-01/SapDatabaseInstances_Get.json
+ // this example is just showing the usage of "SAPDatabaseInstance_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 SAPVirtualInstanceResource created on azure
+ // for more information of creating SAPVirtualInstanceResource, please refer to the document of SAPVirtualInstanceResource
+ string subscriptionId = "6d875e77-e412-4d7d-9af4-8895278b4443";
+ string resourceGroupName = "test-rg";
+ string sapVirtualInstanceName = "X00";
+ ResourceIdentifier sapVirtualInstanceResourceId = SAPVirtualInstanceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, sapVirtualInstanceName);
+ SAPVirtualInstanceResource sapVirtualInstance = client.GetSAPVirtualInstanceResource(sapVirtualInstanceResourceId);
+
+ // get the collection of this SAPDatabaseInstanceResource
+ SAPDatabaseInstanceCollection collection = sapVirtualInstance.GetSAPDatabaseInstances();
+
+ // invoke the operation
+ string databaseInstanceName = "databaseServer";
+ bool result = await collection.ExistsAsync(databaseInstanceName);
+
+ Console.WriteLine($"Succeeded: {result}");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task GetIfExists_SAPDatabaseInstancesGet()
+ {
+ // Generated from example definition: 2024-09-01/SapDatabaseInstances_Get.json
+ // this example is just showing the usage of "SAPDatabaseInstance_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 SAPVirtualInstanceResource created on azure
+ // for more information of creating SAPVirtualInstanceResource, please refer to the document of SAPVirtualInstanceResource
+ string subscriptionId = "6d875e77-e412-4d7d-9af4-8895278b4443";
+ string resourceGroupName = "test-rg";
+ string sapVirtualInstanceName = "X00";
+ ResourceIdentifier sapVirtualInstanceResourceId = SAPVirtualInstanceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, sapVirtualInstanceName);
+ SAPVirtualInstanceResource sapVirtualInstance = client.GetSAPVirtualInstanceResource(sapVirtualInstanceResourceId);
+
+ // get the collection of this SAPDatabaseInstanceResource
+ SAPDatabaseInstanceCollection collection = sapVirtualInstance.GetSAPDatabaseInstances();
+
+ // invoke the operation
+ string databaseInstanceName = "databaseServer";
+ NullableResponse response = await collection.GetIfExistsAsync(databaseInstanceName);
+ SAPDatabaseInstanceResource result = response.HasValue ? response.Value : null;
+
+ if (result == null)
+ {
+ Console.WriteLine("Succeeded with null as result");
+ }
+ else
+ {
+ // 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
+ SAPDatabaseInstanceData 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_SAPDatabaseInstancesCreate()
+ {
+ // Generated from example definition: 2024-09-01/SapDatabaseInstances_Create.json
+ // this example is just showing the usage of "SAPDatabaseInstance_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
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this SAPVirtualInstanceResource created on azure
+ // for more information of creating SAPVirtualInstanceResource, please refer to the document of SAPVirtualInstanceResource
+ string subscriptionId = "6d875e77-e412-4d7d-9af4-8895278b4443";
+ string resourceGroupName = "test-rg";
+ string sapVirtualInstanceName = "X00";
+ ResourceIdentifier sapVirtualInstanceResourceId = SAPVirtualInstanceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, sapVirtualInstanceName);
+ SAPVirtualInstanceResource sapVirtualInstance = client.GetSAPVirtualInstanceResource(sapVirtualInstanceResourceId);
+
+ // get the collection of this SAPDatabaseInstanceResource
+ SAPDatabaseInstanceCollection collection = sapVirtualInstance.GetSAPDatabaseInstances();
+
+ // invoke the operation
+ string databaseInstanceName = "databaseServer";
+ SAPDatabaseInstanceData data = new SAPDatabaseInstanceData(new AzureLocation("westcentralus"))
+ {
+ Properties = new SAPDatabaseProperties(),
+ Tags =
+{
+},
+ };
+ ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, databaseInstanceName, data);
+ SAPDatabaseInstanceResource 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
+ SAPDatabaseInstanceData 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_CreateSAPDatabaseInstancesForHASystemWithAvailabilitySet()
+ {
+ // Generated from example definition: 2024-09-01/SapDatabaseInstances_CreateForHaWithAvailabilitySet.json
+ // this example is just showing the usage of "SAPDatabaseInstance_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
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this SAPVirtualInstanceResource created on azure
+ // for more information of creating SAPVirtualInstanceResource, please refer to the document of SAPVirtualInstanceResource
+ string subscriptionId = "6d875e77-e412-4d7d-9af4-8895278b4443";
+ string resourceGroupName = "test-rg";
+ string sapVirtualInstanceName = "X00";
+ ResourceIdentifier sapVirtualInstanceResourceId = SAPVirtualInstanceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, sapVirtualInstanceName);
+ SAPVirtualInstanceResource sapVirtualInstance = client.GetSAPVirtualInstanceResource(sapVirtualInstanceResourceId);
+
+ // get the collection of this SAPDatabaseInstanceResource
+ SAPDatabaseInstanceCollection collection = sapVirtualInstance.GetSAPDatabaseInstances();
+
+ // invoke the operation
+ string databaseInstanceName = "databaseServer";
+ SAPDatabaseInstanceData data = new SAPDatabaseInstanceData(new AzureLocation("westcentralus"))
+ {
+ Properties = new SAPDatabaseProperties(),
+ Tags =
+{
+},
+ };
+ ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, databaseInstanceName, data);
+ SAPDatabaseInstanceResource 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
+ SAPDatabaseInstanceData 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 GetAll_SAPDatabaseInstancesListBySAPVirtualInstance()
+ {
+ // Generated from example definition: 2024-09-01/SapDatabaseInstances_List.json
+ // this example is just showing the usage of "SAPDatabaseInstance_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
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this SAPVirtualInstanceResource created on azure
+ // for more information of creating SAPVirtualInstanceResource, please refer to the document of SAPVirtualInstanceResource
+ string subscriptionId = "6d875e77-e412-4d7d-9af4-8895278b4443";
+ string resourceGroupName = "test-rg";
+ string sapVirtualInstanceName = "X00";
+ ResourceIdentifier sapVirtualInstanceResourceId = SAPVirtualInstanceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, sapVirtualInstanceName);
+ SAPVirtualInstanceResource sapVirtualInstance = client.GetSAPVirtualInstanceResource(sapVirtualInstanceResourceId);
+
+ // get the collection of this SAPDatabaseInstanceResource
+ SAPDatabaseInstanceCollection collection = sapVirtualInstance.GetSAPDatabaseInstances();
+
+ // invoke the operation and iterate over the result
+ await foreach (SAPDatabaseInstanceResource item in collection.GetAllAsync())
+ {
+ // the variable item 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
+ SAPDatabaseInstanceData resourceData = item.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
+ Console.WriteLine("Succeeded");
+ }
+ }
+}
diff --git a/sdk/workloadssapvirtualinstance/Azure.ResourceManager.SapVirtualInstances/samples/Generated/Samples/Sample_SAPDatabaseInstanceResource.cs b/sdk/workloadssapvirtualinstance/Azure.ResourceManager.SapVirtualInstances/samples/Generated/Samples/Sample_SAPDatabaseInstanceResource.cs
new file mode 100644
index 000000000000..18e8ebba7f22
--- /dev/null
+++ b/sdk/workloadssapvirtualinstance/Azure.ResourceManager.SapVirtualInstances/samples/Generated/Samples/Sample_SAPDatabaseInstanceResource.cs
@@ -0,0 +1,306 @@
+// 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.SapVirtualInstances.Models;
+using NUnit.Framework;
+
+namespace Azure.ResourceManager.SapVirtualInstances.Samples
+{
+ public partial class Sample_SAPDatabaseInstanceResource
+ {
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Get_SAPDatabaseInstancesGet()
+ {
+ // Generated from example definition: 2024-09-01/SapDatabaseInstances_Get.json
+ // this example is just showing the usage of "SAPDatabaseInstance_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 SAPDatabaseInstanceResource created on azure
+ // for more information of creating SAPDatabaseInstanceResource, please refer to the document of SAPDatabaseInstanceResource
+ string subscriptionId = "6d875e77-e412-4d7d-9af4-8895278b4443";
+ string resourceGroupName = "test-rg";
+ string sapVirtualInstanceName = "X00";
+ string databaseInstanceName = "databaseServer";
+ ResourceIdentifier sapDatabaseInstanceResourceId = SAPDatabaseInstanceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, sapVirtualInstanceName, databaseInstanceName);
+ SAPDatabaseInstanceResource sapDatabaseInstance = client.GetSAPDatabaseInstanceResource(sapDatabaseInstanceResourceId);
+
+ // invoke the operation
+ SAPDatabaseInstanceResource result = await sapDatabaseInstance.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
+ SAPDatabaseInstanceData 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_SAPDatabaseInstancesUpdate()
+ {
+ // Generated from example definition: 2024-09-01/SapDatabaseInstances_Update.json
+ // this example is just showing the usage of "SAPDatabaseInstance_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 SAPDatabaseInstanceResource created on azure
+ // for more information of creating SAPDatabaseInstanceResource, please refer to the document of SAPDatabaseInstanceResource
+ string subscriptionId = "6d875e77-e412-4d7d-9af4-8895278b4443";
+ string resourceGroupName = "test-rg";
+ string sapVirtualInstanceName = "X00";
+ string databaseInstanceName = "databaseServer";
+ ResourceIdentifier sapDatabaseInstanceResourceId = SAPDatabaseInstanceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, sapVirtualInstanceName, databaseInstanceName);
+ SAPDatabaseInstanceResource sapDatabaseInstance = client.GetSAPDatabaseInstanceResource(sapDatabaseInstanceResourceId);
+
+ // invoke the operation
+ SAPDatabaseInstancePatch patch = new SAPDatabaseInstancePatch()
+ {
+ Tags =
+{
+["key1"] = "value1",
+},
+ };
+ SAPDatabaseInstanceResource result = await sapDatabaseInstance.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
+ SAPDatabaseInstanceData 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 Delete_SAPDatabaseInstancesDelete()
+ {
+ // Generated from example definition: 2024-09-01/SapDatabaseInstances_Delete.json
+ // this example is just showing the usage of "SAPDatabaseInstance_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
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this SAPDatabaseInstanceResource created on azure
+ // for more information of creating SAPDatabaseInstanceResource, please refer to the document of SAPDatabaseInstanceResource
+ string subscriptionId = "6d875e77-e412-4d7d-9af4-8895278b4443";
+ string resourceGroupName = "test-rg";
+ string sapVirtualInstanceName = "X00";
+ string databaseInstanceName = "databaseServer";
+ ResourceIdentifier sapDatabaseInstanceResourceId = SAPDatabaseInstanceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, sapVirtualInstanceName, databaseInstanceName);
+ SAPDatabaseInstanceResource sapDatabaseInstance = client.GetSAPDatabaseInstanceResource(sapDatabaseInstanceResourceId);
+
+ // invoke the operation
+ await sapDatabaseInstance.DeleteAsync(WaitUntil.Completed);
+
+ Console.WriteLine("Succeeded");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Start_StartTheDatabaseInstanceOfTheSAPSystem()
+ {
+ // Generated from example definition: 2024-09-01/SapDatabaseInstances_StartInstance.json
+ // this example is just showing the usage of "SAPDatabaseInstances_Start" 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 SAPDatabaseInstanceResource created on azure
+ // for more information of creating SAPDatabaseInstanceResource, please refer to the document of SAPDatabaseInstanceResource
+ string subscriptionId = "8e17e36c-42e9-4cd5-a078-7b44883414e0";
+ string resourceGroupName = "test-rg";
+ string sapVirtualInstanceName = "X00";
+ string databaseInstanceName = "db0";
+ ResourceIdentifier sapDatabaseInstanceResourceId = SAPDatabaseInstanceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, sapVirtualInstanceName, databaseInstanceName);
+ SAPDatabaseInstanceResource sapDatabaseInstance = client.GetSAPDatabaseInstanceResource(sapDatabaseInstanceResourceId);
+
+ // invoke the operation
+ StartRequest body = new StartRequest();
+ ArmOperation lro = await sapDatabaseInstance.StartAsync(WaitUntil.Completed, body: body);
+ OperationStatusResult result = lro.Value;
+
+ Console.WriteLine($"Succeeded: {result}");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Start_StartVirtualMachineAndTheDatabaseInstanceOfTheSAPSystemOnIt()
+ {
+ // Generated from example definition: 2024-09-01/SapDatabaseInstances_StartInstanceVM.json
+ // this example is just showing the usage of "SAPDatabaseInstances_Start" 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 SAPDatabaseInstanceResource created on azure
+ // for more information of creating SAPDatabaseInstanceResource, please refer to the document of SAPDatabaseInstanceResource
+ string subscriptionId = "8e17e36c-42e9-4cd5-a078-7b44883414e0";
+ string resourceGroupName = "test-rg";
+ string sapVirtualInstanceName = "X00";
+ string databaseInstanceName = "db0";
+ ResourceIdentifier sapDatabaseInstanceResourceId = SAPDatabaseInstanceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, sapVirtualInstanceName, databaseInstanceName);
+ SAPDatabaseInstanceResource sapDatabaseInstance = client.GetSAPDatabaseInstanceResource(sapDatabaseInstanceResourceId);
+
+ // invoke the operation
+ StartRequest body = new StartRequest()
+ {
+ StartVm = true,
+ };
+ ArmOperation lro = await sapDatabaseInstance.StartAsync(WaitUntil.Completed, body: body);
+ OperationStatusResult result = lro.Value;
+
+ Console.WriteLine($"Succeeded: {result}");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Stop_StopTheDatabaseInstanceOfTheSAPSystem()
+ {
+ // Generated from example definition: 2024-09-01/SapDatabaseInstances_StopInstance.json
+ // this example is just showing the usage of "SAPDatabaseInstances_Stop" 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 SAPDatabaseInstanceResource created on azure
+ // for more information of creating SAPDatabaseInstanceResource, please refer to the document of SAPDatabaseInstanceResource
+ string subscriptionId = "8e17e36c-42e9-4cd5-a078-7b44883414e0";
+ string resourceGroupName = "test-rg";
+ string sapVirtualInstanceName = "X00";
+ string databaseInstanceName = "db0";
+ ResourceIdentifier sapDatabaseInstanceResourceId = SAPDatabaseInstanceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, sapVirtualInstanceName, databaseInstanceName);
+ SAPDatabaseInstanceResource sapDatabaseInstance = client.GetSAPDatabaseInstanceResource(sapDatabaseInstanceResourceId);
+
+ // invoke the operation
+ StopRequest body = new StopRequest()
+ {
+ SoftStopTimeoutSeconds = 0L,
+ };
+ ArmOperation lro = await sapDatabaseInstance.StopAsync(WaitUntil.Completed, body: body);
+ OperationStatusResult result = lro.Value;
+
+ Console.WriteLine($"Succeeded: {result}");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Stop_SoftStopTheDatabaseInstanceOfTheSAPSystem()
+ {
+ // Generated from example definition: 2024-09-01/SapDatabaseInstances_StopInstanceSoft.json
+ // this example is just showing the usage of "SAPDatabaseInstances_Stop" 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 SAPDatabaseInstanceResource created on azure
+ // for more information of creating SAPDatabaseInstanceResource, please refer to the document of SAPDatabaseInstanceResource
+ string subscriptionId = "8e17e36c-42e9-4cd5-a078-7b44883414e0";
+ string resourceGroupName = "test-rg";
+ string sapVirtualInstanceName = "X00";
+ string databaseInstanceName = "db0";
+ ResourceIdentifier sapDatabaseInstanceResourceId = SAPDatabaseInstanceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, sapVirtualInstanceName, databaseInstanceName);
+ SAPDatabaseInstanceResource sapDatabaseInstance = client.GetSAPDatabaseInstanceResource(sapDatabaseInstanceResourceId);
+
+ // invoke the operation
+ StopRequest body = new StopRequest()
+ {
+ SoftStopTimeoutSeconds = 300L,
+ };
+ ArmOperation lro = await sapDatabaseInstance.StopAsync(WaitUntil.Completed, body: body);
+ OperationStatusResult result = lro.Value;
+
+ Console.WriteLine($"Succeeded: {result}");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Stop_SoftStopTheDatabaseInstanceOfTheSAPSystemAndTheUnderlyingVirtualMachineS()
+ {
+ // Generated from example definition: 2024-09-01/SapDatabaseInstances_StopInstanceSoftVM.json
+ // this example is just showing the usage of "SAPDatabaseInstances_Stop" 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 SAPDatabaseInstanceResource created on azure
+ // for more information of creating SAPDatabaseInstanceResource, please refer to the document of SAPDatabaseInstanceResource
+ string subscriptionId = "8e17e36c-42e9-4cd5-a078-7b44883414e0";
+ string resourceGroupName = "test-rg";
+ string sapVirtualInstanceName = "X00";
+ string databaseInstanceName = "db0";
+ ResourceIdentifier sapDatabaseInstanceResourceId = SAPDatabaseInstanceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, sapVirtualInstanceName, databaseInstanceName);
+ SAPDatabaseInstanceResource sapDatabaseInstance = client.GetSAPDatabaseInstanceResource(sapDatabaseInstanceResourceId);
+
+ // invoke the operation
+ StopRequest body = new StopRequest()
+ {
+ SoftStopTimeoutSeconds = 300L,
+ DeallocateVm = true,
+ };
+ ArmOperation lro = await sapDatabaseInstance.StopAsync(WaitUntil.Completed, body: body);
+ OperationStatusResult result = lro.Value;
+
+ Console.WriteLine($"Succeeded: {result}");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Stop_StopTheDatabaseInstanceOfTheSAPSystemAndTheUnderlyingVirtualMachineS()
+ {
+ // Generated from example definition: 2024-09-01/SapDatabaseInstances_StopInstanceVM.json
+ // this example is just showing the usage of "SAPDatabaseInstances_Stop" 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 SAPDatabaseInstanceResource created on azure
+ // for more information of creating SAPDatabaseInstanceResource, please refer to the document of SAPDatabaseInstanceResource
+ string subscriptionId = "8e17e36c-42e9-4cd5-a078-7b44883414e0";
+ string resourceGroupName = "test-rg";
+ string sapVirtualInstanceName = "X00";
+ string databaseInstanceName = "db0";
+ ResourceIdentifier sapDatabaseInstanceResourceId = SAPDatabaseInstanceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, sapVirtualInstanceName, databaseInstanceName);
+ SAPDatabaseInstanceResource sapDatabaseInstance = client.GetSAPDatabaseInstanceResource(sapDatabaseInstanceResourceId);
+
+ // invoke the operation
+ StopRequest body = new StopRequest()
+ {
+ SoftStopTimeoutSeconds = 0L,
+ DeallocateVm = true,
+ };
+ ArmOperation lro = await sapDatabaseInstance.StopAsync(WaitUntil.Completed, body: body);
+ OperationStatusResult result = lro.Value;
+
+ Console.WriteLine($"Succeeded: {result}");
+ }
+ }
+}
diff --git a/sdk/workloadssapvirtualinstance/Azure.ResourceManager.SapVirtualInstances/samples/Generated/Samples/Sample_SAPVirtualInstanceCollection.cs b/sdk/workloadssapvirtualinstance/Azure.ResourceManager.SapVirtualInstances/samples/Generated/Samples/Sample_SAPVirtualInstanceCollection.cs
new file mode 100644
index 000000000000..608d9cb48d50
--- /dev/null
+++ b/sdk/workloadssapvirtualinstance/Azure.ResourceManager.SapVirtualInstances/samples/Generated/Samples/Sample_SAPVirtualInstanceCollection.cs
@@ -0,0 +1,3766 @@
+// 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.Resources;
+using Azure.ResourceManager.SapVirtualInstances.Models;
+using NUnit.Framework;
+
+namespace Azure.ResourceManager.SapVirtualInstances.Samples
+{
+ public partial class Sample_SAPVirtualInstanceCollection
+ {
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Get_SAPVirtualInstancesGet()
+ {
+ // Generated from example definition: 2024-09-01/SapVirtualInstances_Get.json
+ // this example is just showing the usage of "SAPVirtualInstance_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 ResourceGroupResource created on azure
+ // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource
+ string subscriptionId = "8e17e36c-42e9-4cd5-a078-7b44883414e0";
+ string resourceGroupName = "test-rg";
+ ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName);
+ ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId);
+
+ // get the collection of this SAPVirtualInstanceResource
+ SAPVirtualInstanceCollection collection = resourceGroupResource.GetSAPVirtualInstances();
+
+ // invoke the operation
+ string sapVirtualInstanceName = "X00";
+ SAPVirtualInstanceResource result = await collection.GetAsync(sapVirtualInstanceName);
+
+ // 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
+ SAPVirtualInstanceData 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 Exists_SAPVirtualInstancesGet()
+ {
+ // Generated from example definition: 2024-09-01/SapVirtualInstances_Get.json
+ // this example is just showing the usage of "SAPVirtualInstance_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 ResourceGroupResource created on azure
+ // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource
+ string subscriptionId = "8e17e36c-42e9-4cd5-a078-7b44883414e0";
+ string resourceGroupName = "test-rg";
+ ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName);
+ ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId);
+
+ // get the collection of this SAPVirtualInstanceResource
+ SAPVirtualInstanceCollection collection = resourceGroupResource.GetSAPVirtualInstances();
+
+ // invoke the operation
+ string sapVirtualInstanceName = "X00";
+ bool result = await collection.ExistsAsync(sapVirtualInstanceName);
+
+ Console.WriteLine($"Succeeded: {result}");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task GetIfExists_SAPVirtualInstancesGet()
+ {
+ // Generated from example definition: 2024-09-01/SapVirtualInstances_Get.json
+ // this example is just showing the usage of "SAPVirtualInstance_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 ResourceGroupResource created on azure
+ // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource
+ string subscriptionId = "8e17e36c-42e9-4cd5-a078-7b44883414e0";
+ string resourceGroupName = "test-rg";
+ ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName);
+ ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId);
+
+ // get the collection of this SAPVirtualInstanceResource
+ SAPVirtualInstanceCollection collection = resourceGroupResource.GetSAPVirtualInstances();
+
+ // invoke the operation
+ string sapVirtualInstanceName = "X00";
+ NullableResponse response = await collection.GetIfExistsAsync(sapVirtualInstanceName);
+ SAPVirtualInstanceResource result = response.HasValue ? response.Value : null;
+
+ if (result == null)
+ {
+ Console.WriteLine("Succeeded with null as result");
+ }
+ else
+ {
+ // 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
+ SAPVirtualInstanceData 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 Get_SAPVirtualInstancesGetWithACSSInstallationBlocked()
+ {
+ // Generated from example definition: 2024-09-01/SapVirtualInstances_GetAcssInstallationBlocked.json
+ // this example is just showing the usage of "SAPVirtualInstance_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 ResourceGroupResource created on azure
+ // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource
+ string subscriptionId = "8e17e36c-42e9-4cd5-a078-7b44883414e0";
+ string resourceGroupName = "test-rg";
+ ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName);
+ ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId);
+
+ // get the collection of this SAPVirtualInstanceResource
+ SAPVirtualInstanceCollection collection = resourceGroupResource.GetSAPVirtualInstances();
+
+ // invoke the operation
+ string sapVirtualInstanceName = "X00";
+ SAPVirtualInstanceResource result = await collection.GetAsync(sapVirtualInstanceName);
+
+ // 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
+ SAPVirtualInstanceData 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 Exists_SAPVirtualInstancesGetWithACSSInstallationBlocked()
+ {
+ // Generated from example definition: 2024-09-01/SapVirtualInstances_GetAcssInstallationBlocked.json
+ // this example is just showing the usage of "SAPVirtualInstance_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 ResourceGroupResource created on azure
+ // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource
+ string subscriptionId = "8e17e36c-42e9-4cd5-a078-7b44883414e0";
+ string resourceGroupName = "test-rg";
+ ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName);
+ ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId);
+
+ // get the collection of this SAPVirtualInstanceResource
+ SAPVirtualInstanceCollection collection = resourceGroupResource.GetSAPVirtualInstances();
+
+ // invoke the operation
+ string sapVirtualInstanceName = "X00";
+ bool result = await collection.ExistsAsync(sapVirtualInstanceName);
+
+ Console.WriteLine($"Succeeded: {result}");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task GetIfExists_SAPVirtualInstancesGetWithACSSInstallationBlocked()
+ {
+ // Generated from example definition: 2024-09-01/SapVirtualInstances_GetAcssInstallationBlocked.json
+ // this example is just showing the usage of "SAPVirtualInstance_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 ResourceGroupResource created on azure
+ // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource
+ string subscriptionId = "8e17e36c-42e9-4cd5-a078-7b44883414e0";
+ string resourceGroupName = "test-rg";
+ ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName);
+ ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId);
+
+ // get the collection of this SAPVirtualInstanceResource
+ SAPVirtualInstanceCollection collection = resourceGroupResource.GetSAPVirtualInstances();
+
+ // invoke the operation
+ string sapVirtualInstanceName = "X00";
+ NullableResponse response = await collection.GetIfExistsAsync(sapVirtualInstanceName);
+ SAPVirtualInstanceResource result = response.HasValue ? response.Value : null;
+
+ if (result == null)
+ {
+ Console.WriteLine("Succeeded with null as result");
+ }
+ else
+ {
+ // 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
+ SAPVirtualInstanceData 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_DetectSAPSoftwareInstallationOnADistributedSystem()
+ {
+ // Generated from example definition: 2024-09-01/SapVirtualInstances_CreateDetectDS.json
+ // this example is just showing the usage of "SAPVirtualInstance_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
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ResourceGroupResource created on azure
+ // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource
+ string subscriptionId = "8e17e36c-42e9-4cd5-a078-7b44883414e0";
+ string resourceGroupName = "test-rg";
+ ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName);
+ ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId);
+
+ // get the collection of this SAPVirtualInstanceResource
+ SAPVirtualInstanceCollection collection = resourceGroupResource.GetSAPVirtualInstances();
+
+ // invoke the operation
+ string sapVirtualInstanceName = "X00";
+ SAPVirtualInstanceData data = new SAPVirtualInstanceData(new AzureLocation("eastus2"))
+ {
+ Properties = new SAPVirtualInstanceProperties(SAPEnvironmentType.Prod, SAPProductType.S4HANA, new DeploymentWithOSConfiguration()
+ {
+ AppLocation = "eastus",
+ InfrastructureConfiguration = new ThreeTierConfiguration("{{resourcegrp}}", new CentralServerConfiguration("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/app", new VirtualMachineConfiguration("Standard_E4ds_v4", new ImageReference()
+ {
+ Publisher = "RedHat",
+ Offer = "RHEL-SAP-HA",
+ Sku = "84sapha-gen2",
+ Version = "latest",
+ }, new OSProfile()
+ {
+ AdminUsername = "azureuser",
+ OSConfiguration = new LinuxConfiguration()
+ {
+ DisablePasswordAuthentication = true,
+ SshKeyPair = new SshKeyPair()
+ {
+ PublicKey = "{{sshkey}}",
+ PrivateKey = "{{privateKey}}",
+ },
+ },
+ }), 1L), new ApplicationServerConfiguration("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/app", new VirtualMachineConfiguration("Standard_E4ds_v4", new ImageReference()
+ {
+ Publisher = "RedHat",
+ Offer = "RHEL-SAP-HA",
+ Sku = "84sapha-gen2",
+ Version = "latest",
+ }, new OSProfile()
+ {
+ AdminUsername = "azureuser",
+ OSConfiguration = new LinuxConfiguration()
+ {
+ DisablePasswordAuthentication = true,
+ SshKeyPair = new SshKeyPair()
+ {
+ PublicKey = "{{sshkey}}",
+ PrivateKey = "{{privateKey}}",
+ },
+ },
+ }), 2L), new DatabaseConfiguration("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/app", new VirtualMachineConfiguration("Standard_M32ts", new ImageReference()
+ {
+ Publisher = "RedHat",
+ Offer = "RHEL-SAP-HA",
+ Sku = "84sapha-gen2",
+ Version = "latest",
+ }, new OSProfile()
+ {
+ AdminUsername = "azureuser",
+ OSConfiguration = new LinuxConfiguration()
+ {
+ DisablePasswordAuthentication = true,
+ SshKeyPair = new SshKeyPair()
+ {
+ PublicKey = "{{sshkey}}",
+ PrivateKey = "{{privateKey}}",
+ },
+ },
+ }), 1L))
+ {
+ IsSecondaryIPEnabled = true,
+ },
+ SoftwareConfiguration = new ExternalInstallationSoftwareConfiguration()
+ {
+ CentralServerVmId = "/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Compute/virtualMachines/sapq20scsvm0",
+ },
+ OSSapConfiguration = new OSSapConfiguration()
+ {
+ SapFqdn = "sap.bpaas.com",
+ },
+ }),
+ Tags =
+{
+["created by"] = "azureuser",
+},
+ };
+ ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, sapVirtualInstanceName, data);
+ SAPVirtualInstanceResource 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
+ SAPVirtualInstanceData 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_DetectSAPSoftwareInstallationOnAnHASystemWithAvailabilitySet()
+ {
+ // Generated from example definition: 2024-09-01/SapVirtualInstances_CreateDetectHaAvailabilitySet.json
+ // this example is just showing the usage of "SAPVirtualInstance_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
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ResourceGroupResource created on azure
+ // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource
+ string subscriptionId = "8e17e36c-42e9-4cd5-a078-7b44883414e0";
+ string resourceGroupName = "test-rg";
+ ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName);
+ ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId);
+
+ // get the collection of this SAPVirtualInstanceResource
+ SAPVirtualInstanceCollection collection = resourceGroupResource.GetSAPVirtualInstances();
+
+ // invoke the operation
+ string sapVirtualInstanceName = "X00";
+ SAPVirtualInstanceData data = new SAPVirtualInstanceData(new AzureLocation("westcentralus"))
+ {
+ Properties = new SAPVirtualInstanceProperties(SAPEnvironmentType.Prod, SAPProductType.S4HANA, new DeploymentWithOSConfiguration()
+ {
+ AppLocation = "eastus",
+ InfrastructureConfiguration = new ThreeTierConfiguration("X00-RG", new CentralServerConfiguration("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet", new VirtualMachineConfiguration("Standard_E16ds_v4", new ImageReference()
+ {
+ Publisher = "RedHat",
+ Offer = "RHEL-SAP-HA",
+ Sku = "84sapha-gen2",
+ Version = "latest",
+ }, new OSProfile()
+ {
+ AdminUsername = "{your-username}",
+ OSConfiguration = new LinuxConfiguration()
+ {
+ DisablePasswordAuthentication = true,
+ SshKeyPair = new SshKeyPair()
+ {
+ PublicKey = "abc",
+ PrivateKey = "xyz",
+ },
+ },
+ }), 2L), new ApplicationServerConfiguration("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet", new VirtualMachineConfiguration("Standard_E32ds_v4", new ImageReference()
+ {
+ Publisher = "RedHat",
+ Offer = "RHEL-SAP-HA",
+ Sku = "84sapha-gen2",
+ Version = "latest",
+ }, new OSProfile()
+ {
+ AdminUsername = "{your-username}",
+ OSConfiguration = new LinuxConfiguration()
+ {
+ DisablePasswordAuthentication = true,
+ SshKeyPair = new SshKeyPair()
+ {
+ PublicKey = "abc",
+ PrivateKey = "xyz",
+ },
+ },
+ }), 6L), new DatabaseConfiguration("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/dbsubnet", new VirtualMachineConfiguration("Standard_M32ts", new ImageReference()
+ {
+ Publisher = "RedHat",
+ Offer = "RHEL-SAP-HA",
+ Sku = "84sapha-gen2",
+ Version = "latest",
+ }, new OSProfile()
+ {
+ AdminUsername = "{your-username}",
+ OSConfiguration = new LinuxConfiguration()
+ {
+ DisablePasswordAuthentication = true,
+ SshKeyPair = new SshKeyPair()
+ {
+ PublicKey = "abc",
+ PrivateKey = "xyz",
+ },
+ },
+ }), 2L)
+ {
+ DatabaseType = SAPDatabaseType.HANA,
+ })
+ {
+ HighAvailabilityType = SAPHighAvailabilityType.AvailabilitySet,
+ },
+ SoftwareConfiguration = new ExternalInstallationSoftwareConfiguration()
+ {
+ CentralServerVmId = "/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Compute/virtualMachines/sapq20scsvm0",
+ },
+ OSSapConfiguration = new OSSapConfiguration()
+ {
+ SapFqdn = "xyz.test.com",
+ },
+ }),
+ Tags =
+{
+},
+ };
+ ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, sapVirtualInstanceName, data);
+ SAPVirtualInstanceResource 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
+ SAPVirtualInstanceData 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_DetectSAPSoftwareInstallationOnAnHASystemWithAvailabilityZone()
+ {
+ // Generated from example definition: 2024-09-01/SapVirtualInstances_CreateDetectHaAvailabilityZone.json
+ // this example is just showing the usage of "SAPVirtualInstance_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
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ResourceGroupResource created on azure
+ // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource
+ string subscriptionId = "8e17e36c-42e9-4cd5-a078-7b44883414e0";
+ string resourceGroupName = "test-rg";
+ ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName);
+ ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId);
+
+ // get the collection of this SAPVirtualInstanceResource
+ SAPVirtualInstanceCollection collection = resourceGroupResource.GetSAPVirtualInstances();
+
+ // invoke the operation
+ string sapVirtualInstanceName = "X00";
+ SAPVirtualInstanceData data = new SAPVirtualInstanceData(new AzureLocation("westcentralus"))
+ {
+ Properties = new SAPVirtualInstanceProperties(SAPEnvironmentType.Prod, SAPProductType.S4HANA, new DeploymentWithOSConfiguration()
+ {
+ AppLocation = "eastus",
+ InfrastructureConfiguration = new ThreeTierConfiguration("X00-RG", new CentralServerConfiguration("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet", new VirtualMachineConfiguration("Standard_E16ds_v4", new ImageReference()
+ {
+ Publisher = "RedHat",
+ Offer = "RHEL-SAP-HA",
+ Sku = "84sapha-gen2",
+ Version = "latest",
+ }, new OSProfile()
+ {
+ AdminUsername = "{your-username}",
+ OSConfiguration = new LinuxConfiguration()
+ {
+ DisablePasswordAuthentication = true,
+ SshKeyPair = new SshKeyPair()
+ {
+ PublicKey = "abc",
+ PrivateKey = "xyz",
+ },
+ },
+ }), 2L), new ApplicationServerConfiguration("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet", new VirtualMachineConfiguration("Standard_E32ds_v4", new ImageReference()
+ {
+ Publisher = "RedHat",
+ Offer = "RHEL-SAP-HA",
+ Sku = "84sapha-gen2",
+ Version = "latest",
+ }, new OSProfile()
+ {
+ AdminUsername = "{your-username}",
+ OSConfiguration = new LinuxConfiguration()
+ {
+ DisablePasswordAuthentication = true,
+ SshKeyPair = new SshKeyPair()
+ {
+ PublicKey = "abc",
+ PrivateKey = "xyz",
+ },
+ },
+ }), 6L), new DatabaseConfiguration("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/dbsubnet", new VirtualMachineConfiguration("Standard_M32ts", new ImageReference()
+ {
+ Publisher = "RedHat",
+ Offer = "RHEL-SAP-HA",
+ Sku = "84sapha-gen2",
+ Version = "latest",
+ }, new OSProfile()
+ {
+ AdminUsername = "{your-username}",
+ OSConfiguration = new LinuxConfiguration()
+ {
+ DisablePasswordAuthentication = true,
+ SshKeyPair = new SshKeyPair()
+ {
+ PublicKey = "abc",
+ PrivateKey = "xyz",
+ },
+ },
+ }), 2L)
+ {
+ DatabaseType = SAPDatabaseType.HANA,
+ })
+ {
+ HighAvailabilityType = SAPHighAvailabilityType.AvailabilityZone,
+ },
+ SoftwareConfiguration = new ExternalInstallationSoftwareConfiguration()
+ {
+ CentralServerVmId = "/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Compute/virtualMachines/sapq20scsvm0",
+ },
+ OSSapConfiguration = new OSSapConfiguration()
+ {
+ SapFqdn = "xyz.test.com",
+ },
+ }),
+ Tags =
+{
+},
+ };
+ ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, sapVirtualInstanceName, data);
+ SAPVirtualInstanceResource 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
+ SAPVirtualInstanceData 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_DetectSAPSoftwareInstallationOnASingleServerSystem()
+ {
+ // Generated from example definition: 2024-09-01/SapVirtualInstances_CreateDetectSingleServer.json
+ // this example is just showing the usage of "SAPVirtualInstance_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
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ResourceGroupResource created on azure
+ // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource
+ string subscriptionId = "8e17e36c-42e9-4cd5-a078-7b44883414e0";
+ string resourceGroupName = "test-rg";
+ ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName);
+ ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId);
+
+ // get the collection of this SAPVirtualInstanceResource
+ SAPVirtualInstanceCollection collection = resourceGroupResource.GetSAPVirtualInstances();
+
+ // invoke the operation
+ string sapVirtualInstanceName = "X00";
+ SAPVirtualInstanceData data = new SAPVirtualInstanceData(new AzureLocation("westcentralus"))
+ {
+ Properties = new SAPVirtualInstanceProperties(SAPEnvironmentType.NonProd, SAPProductType.S4HANA, new DeploymentWithOSConfiguration()
+ {
+ AppLocation = "eastus",
+ InfrastructureConfiguration = new SingleServerConfiguration("X00-RG", "/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet", new VirtualMachineConfiguration("Standard_E32ds_v4", new ImageReference()
+ {
+ Publisher = "RedHat",
+ Offer = "RHEL-SAP-HA",
+ Sku = "84sapha-gen2",
+ Version = "latest",
+ }, new OSProfile()
+ {
+ AdminUsername = "{your-username}",
+ OSConfiguration = new LinuxConfiguration()
+ {
+ DisablePasswordAuthentication = true,
+ SshKeyPair = new SshKeyPair()
+ {
+ PublicKey = "abc",
+ PrivateKey = "xyz",
+ },
+ },
+ }))
+ {
+ IsSecondaryIPEnabled = true,
+ DatabaseType = SAPDatabaseType.HANA,
+ },
+ SoftwareConfiguration = new ExternalInstallationSoftwareConfiguration()
+ {
+ CentralServerVmId = "/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Compute/virtualMachines/sapq20scsvm0",
+ },
+ OSSapConfiguration = new OSSapConfiguration()
+ {
+ SapFqdn = "xyz.test.com",
+ },
+ }),
+ Tags =
+{
+},
+ };
+ ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, sapVirtualInstanceName, data);
+ SAPVirtualInstanceResource 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
+ SAPVirtualInstanceData 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_CreateInfrastructureOnlyForDistributedSystem()
+ {
+ // Generated from example definition: 2024-09-01/SapVirtualInstances_CreateInfraDS.json
+ // this example is just showing the usage of "SAPVirtualInstance_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
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ResourceGroupResource created on azure
+ // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource
+ string subscriptionId = "8e17e36c-42e9-4cd5-a078-7b44883414e0";
+ string resourceGroupName = "test-rg";
+ ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName);
+ ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId);
+
+ // get the collection of this SAPVirtualInstanceResource
+ SAPVirtualInstanceCollection collection = resourceGroupResource.GetSAPVirtualInstances();
+
+ // invoke the operation
+ string sapVirtualInstanceName = "X00";
+ SAPVirtualInstanceData data = new SAPVirtualInstanceData(new AzureLocation("westcentralus"))
+ {
+ Properties = new SAPVirtualInstanceProperties(SAPEnvironmentType.Prod, SAPProductType.S4HANA, new DeploymentConfiguration()
+ {
+ AppLocation = "eastus",
+ InfrastructureConfiguration = new ThreeTierConfiguration("X00-RG", new CentralServerConfiguration("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet", new VirtualMachineConfiguration("Standard_E16ds_v4", new ImageReference()
+ {
+ Publisher = "RedHat",
+ Offer = "RHEL-SAP",
+ Sku = "84sapha-gen2",
+ Version = "latest",
+ }, new OSProfile()
+ {
+ AdminUsername = "{your-username}",
+ OSConfiguration = new LinuxConfiguration()
+ {
+ DisablePasswordAuthentication = true,
+ SshPublicKeys =
+{
+new SshPublicKey()
+{
+KeyData = "ssh-rsa public key",
+}
+},
+ },
+ }), 1L), new ApplicationServerConfiguration("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet", new VirtualMachineConfiguration("Standard_E32ds_v4", new ImageReference()
+ {
+ Publisher = "RedHat",
+ Offer = "RHEL-SAP",
+ Sku = "84sapha-gen2",
+ Version = "latest",
+ }, new OSProfile()
+ {
+ AdminUsername = "{your-username}",
+ OSConfiguration = new LinuxConfiguration()
+ {
+ DisablePasswordAuthentication = true,
+ SshPublicKeys =
+{
+new SshPublicKey()
+{
+KeyData = "ssh-rsa public key",
+}
+},
+ },
+ }), 6L), new DatabaseConfiguration("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/dbsubnet", new VirtualMachineConfiguration("Standard_M32ts", new ImageReference()
+ {
+ Publisher = "RedHat",
+ Offer = "RHEL-SAP",
+ Sku = "84sapha-gen2",
+ Version = "latest",
+ }, new OSProfile()
+ {
+ AdminUsername = "{your-username}",
+ OSConfiguration = new LinuxConfiguration()
+ {
+ DisablePasswordAuthentication = true,
+ SshPublicKeys =
+{
+new SshPublicKey()
+{
+KeyData = "ssh-rsa public key",
+}
+},
+ },
+ }), 1L)
+ {
+ DatabaseType = SAPDatabaseType.HANA,
+ }),
+ }),
+ Tags =
+{
+},
+ };
+ ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, sapVirtualInstanceName, data);
+ SAPVirtualInstanceResource 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
+ SAPVirtualInstanceData 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_CreateInfrastructureWithDiskAndOSConfigurationForDistributedSystemRecommended()
+ {
+ // Generated from example definition: 2024-09-01/SapVirtualInstances_CreateInfraDiskOsDSRecommended.json
+ // this example is just showing the usage of "SAPVirtualInstance_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
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ResourceGroupResource created on azure
+ // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource
+ string subscriptionId = "8e17e36c-42e9-4cd5-a078-7b44883414e0";
+ string resourceGroupName = "test-rg";
+ ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName);
+ ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId);
+
+ // get the collection of this SAPVirtualInstanceResource
+ SAPVirtualInstanceCollection collection = resourceGroupResource.GetSAPVirtualInstances();
+
+ // invoke the operation
+ string sapVirtualInstanceName = "X00";
+ SAPVirtualInstanceData data = new SAPVirtualInstanceData(new AzureLocation("westcentralus"))
+ {
+ Properties = new SAPVirtualInstanceProperties(SAPEnvironmentType.Prod, SAPProductType.S4HANA, new DeploymentWithOSConfiguration()
+ {
+ AppLocation = "eastus",
+ InfrastructureConfiguration = new ThreeTierConfiguration("X00-RG", new CentralServerConfiguration("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/dindurkhya-e2etesting/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet", new VirtualMachineConfiguration("Standard_E16ds_v4", new ImageReference()
+ {
+ Publisher = "RedHat",
+ Offer = "RHEL-SAP",
+ Sku = "84sapha-gen2",
+ Version = "latest",
+ }, new OSProfile()
+ {
+ AdminUsername = "{your-username}",
+ OSConfiguration = new LinuxConfiguration()
+ {
+ DisablePasswordAuthentication = true,
+ SshKeyPair = new SshKeyPair()
+ {
+ PublicKey = "abc",
+ PrivateKey = "xyz",
+ },
+ },
+ }), 1L), new ApplicationServerConfiguration("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/dindurkhya-e2etesting/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet", new VirtualMachineConfiguration("Standard_E32ds_v4", new ImageReference()
+ {
+ Publisher = "RedHat",
+ Offer = "RHEL-SAP",
+ Sku = "84sapha-gen2",
+ Version = "latest",
+ }, new OSProfile()
+ {
+ AdminUsername = "{your-username}",
+ OSConfiguration = new LinuxConfiguration()
+ {
+ DisablePasswordAuthentication = true,
+ SshKeyPair = new SshKeyPair()
+ {
+ PublicKey = "abc",
+ PrivateKey = "xyz",
+ },
+ },
+ }), 6L), new DatabaseConfiguration("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/dindurkhya-e2etesting/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/dbsubnet", new VirtualMachineConfiguration("Standard_M32ts", new ImageReference()
+ {
+ Publisher = "RedHat",
+ Offer = "RHEL-SAP",
+ Sku = "84sapha-gen2",
+ Version = "latest",
+ }, new OSProfile()
+ {
+ AdminUsername = "{your-username}",
+ OSConfiguration = new LinuxConfiguration()
+ {
+ DisablePasswordAuthentication = true,
+ SshKeyPair = new SshKeyPair()
+ {
+ PublicKey = "abc",
+ PrivateKey = "xyz",
+ },
+ },
+ }), 1L)
+ {
+ DatabaseType = SAPDatabaseType.HANA,
+ DiskVolumeConfigurations =
+{
+["backup"] = new DiskVolumeConfiguration()
+{
+Count = 2L,
+SizeGB = 256L,
+SkuName = DiskSkuName.StandardSSDLRS,
+},
+["hana/data"] = new DiskVolumeConfiguration()
+{
+Count = 4L,
+SizeGB = 128L,
+SkuName = DiskSkuName.PremiumLRS,
+},
+["hana/log"] = new DiskVolumeConfiguration()
+{
+Count = 3L,
+SizeGB = 128L,
+SkuName = DiskSkuName.PremiumLRS,
+},
+["hana/shared"] = new DiskVolumeConfiguration()
+{
+Count = 1L,
+SizeGB = 256L,
+SkuName = DiskSkuName.StandardSSDLRS,
+},
+["os"] = new DiskVolumeConfiguration()
+{
+Count = 1L,
+SizeGB = 64L,
+SkuName = DiskSkuName.StandardSSDLRS,
+},
+["usr/sap"] = new DiskVolumeConfiguration()
+{
+Count = 1L,
+SizeGB = 128L,
+SkuName = DiskSkuName.PremiumLRS,
+},
+},
+ }),
+ OSSapConfiguration = new OSSapConfiguration()
+ {
+ SapFqdn = "xyz.test.com",
+ },
+ }),
+ Tags =
+{
+},
+ };
+ ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, sapVirtualInstanceName, data);
+ SAPVirtualInstanceResource 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
+ SAPVirtualInstanceData 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_CreateInfrastructureWithDiskAndOSConfigurationForHASystemWithAvailabilitySetRecommended()
+ {
+ // Generated from example definition: 2024-09-01/SapVirtualInstances_CreateInfraDiskOsHaAvailabilitySetRecommended.json
+ // this example is just showing the usage of "SAPVirtualInstance_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
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ResourceGroupResource created on azure
+ // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource
+ string subscriptionId = "8e17e36c-42e9-4cd5-a078-7b44883414e0";
+ string resourceGroupName = "test-rg";
+ ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName);
+ ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId);
+
+ // get the collection of this SAPVirtualInstanceResource
+ SAPVirtualInstanceCollection collection = resourceGroupResource.GetSAPVirtualInstances();
+
+ // invoke the operation
+ string sapVirtualInstanceName = "X00";
+ SAPVirtualInstanceData data = new SAPVirtualInstanceData(new AzureLocation("westcentralus"))
+ {
+ Properties = new SAPVirtualInstanceProperties(SAPEnvironmentType.Prod, SAPProductType.S4HANA, new DeploymentWithOSConfiguration()
+ {
+ AppLocation = "eastus",
+ InfrastructureConfiguration = new ThreeTierConfiguration("X00-RG", new CentralServerConfiguration("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/dindurkhya-e2etesting/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet", new VirtualMachineConfiguration("Standard_E16ds_v4", new ImageReference()
+ {
+ Publisher = "RedHat",
+ Offer = "RHEL-SAP",
+ Sku = "84sapha-gen2",
+ Version = "latest",
+ }, new OSProfile()
+ {
+ AdminUsername = "{your-username}",
+ OSConfiguration = new LinuxConfiguration()
+ {
+ DisablePasswordAuthentication = true,
+ SshKeyPair = new SshKeyPair()
+ {
+ PublicKey = "abc",
+ PrivateKey = "xyz",
+ },
+ },
+ }), 2L), new ApplicationServerConfiguration("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/dindurkhya-e2etesting/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet", new VirtualMachineConfiguration("Standard_E32ds_v4", new ImageReference()
+ {
+ Publisher = "RedHat",
+ Offer = "RHEL-SAP",
+ Sku = "84sapha-gen2",
+ Version = "latest",
+ }, new OSProfile()
+ {
+ AdminUsername = "{your-username}",
+ OSConfiguration = new LinuxConfiguration()
+ {
+ DisablePasswordAuthentication = true,
+ SshKeyPair = new SshKeyPair()
+ {
+ PublicKey = "abc",
+ PrivateKey = "xyz",
+ },
+ },
+ }), 6L), new DatabaseConfiguration("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/dindurkhya-e2etesting/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/dbsubnet", new VirtualMachineConfiguration("Standard_M32ts", new ImageReference()
+ {
+ Publisher = "RedHat",
+ Offer = "RHEL-SAP",
+ Sku = "84sapha-gen2",
+ Version = "latest",
+ }, new OSProfile()
+ {
+ AdminUsername = "{your-username}",
+ OSConfiguration = new LinuxConfiguration()
+ {
+ DisablePasswordAuthentication = true,
+ SshKeyPair = new SshKeyPair()
+ {
+ PublicKey = "abc",
+ PrivateKey = "xyz",
+ },
+ },
+ }), 2L)
+ {
+ DatabaseType = SAPDatabaseType.HANA,
+ DiskVolumeConfigurations =
+{
+["backup"] = new DiskVolumeConfiguration()
+{
+Count = 2L,
+SizeGB = 256L,
+SkuName = DiskSkuName.StandardSSDLRS,
+},
+["hana/data"] = new DiskVolumeConfiguration()
+{
+Count = 4L,
+SizeGB = 128L,
+SkuName = DiskSkuName.PremiumLRS,
+},
+["hana/log"] = new DiskVolumeConfiguration()
+{
+Count = 3L,
+SizeGB = 128L,
+SkuName = DiskSkuName.PremiumLRS,
+},
+["hana/shared"] = new DiskVolumeConfiguration()
+{
+Count = 1L,
+SizeGB = 256L,
+SkuName = DiskSkuName.StandardSSDLRS,
+},
+["os"] = new DiskVolumeConfiguration()
+{
+Count = 1L,
+SizeGB = 64L,
+SkuName = DiskSkuName.StandardSSDLRS,
+},
+["usr/sap"] = new DiskVolumeConfiguration()
+{
+Count = 1L,
+SizeGB = 128L,
+SkuName = DiskSkuName.PremiumLRS,
+},
+},
+ })
+ {
+ HighAvailabilityType = SAPHighAvailabilityType.AvailabilitySet,
+ },
+ OSSapConfiguration = new OSSapConfiguration()
+ {
+ SapFqdn = "xyz.test.com",
+ },
+ }),
+ Tags =
+{
+},
+ };
+ ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, sapVirtualInstanceName, data);
+ SAPVirtualInstanceResource 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
+ SAPVirtualInstanceData 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_CreateInfrastructureWithDiskAndOSConfigurationForHASystemWithAvailabilityZoneRecommended()
+ {
+ // Generated from example definition: 2024-09-01/SapVirtualInstances_CreateInfraDiskOsHaAvailabilityZoneRecommended.json
+ // this example is just showing the usage of "SAPVirtualInstance_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
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ResourceGroupResource created on azure
+ // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource
+ string subscriptionId = "8e17e36c-42e9-4cd5-a078-7b44883414e0";
+ string resourceGroupName = "test-rg";
+ ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName);
+ ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId);
+
+ // get the collection of this SAPVirtualInstanceResource
+ SAPVirtualInstanceCollection collection = resourceGroupResource.GetSAPVirtualInstances();
+
+ // invoke the operation
+ string sapVirtualInstanceName = "X00";
+ SAPVirtualInstanceData data = new SAPVirtualInstanceData(new AzureLocation("westcentralus"))
+ {
+ Properties = new SAPVirtualInstanceProperties(SAPEnvironmentType.Prod, SAPProductType.S4HANA, new DeploymentWithOSConfiguration()
+ {
+ AppLocation = "eastus",
+ InfrastructureConfiguration = new ThreeTierConfiguration("X00-RG", new CentralServerConfiguration("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/dindurkhya-e2etesting/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet", new VirtualMachineConfiguration("Standard_E16ds_v4", new ImageReference()
+ {
+ Publisher = "RedHat",
+ Offer = "RHEL-SAP",
+ Sku = "84sapha-gen2",
+ Version = "latest",
+ }, new OSProfile()
+ {
+ AdminUsername = "{your-username}",
+ OSConfiguration = new LinuxConfiguration()
+ {
+ DisablePasswordAuthentication = true,
+ SshKeyPair = new SshKeyPair()
+ {
+ PublicKey = "abc",
+ PrivateKey = "xyz",
+ },
+ },
+ }), 2L), new ApplicationServerConfiguration("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/dindurkhya-e2etesting/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet", new VirtualMachineConfiguration("Standard_E32ds_v4", new ImageReference()
+ {
+ Publisher = "RedHat",
+ Offer = "RHEL-SAP",
+ Sku = "84sapha-gen2",
+ Version = "latest",
+ }, new OSProfile()
+ {
+ AdminUsername = "{your-username}",
+ OSConfiguration = new LinuxConfiguration()
+ {
+ DisablePasswordAuthentication = true,
+ SshKeyPair = new SshKeyPair()
+ {
+ PublicKey = "abc",
+ PrivateKey = "xyz",
+ },
+ },
+ }), 6L), new DatabaseConfiguration("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/dindurkhya-e2etesting/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/dbsubnet", new VirtualMachineConfiguration("Standard_M32ts", new ImageReference()
+ {
+ Publisher = "RedHat",
+ Offer = "RHEL-SAP",
+ Sku = "84sapha-gen2",
+ Version = "latest",
+ }, new OSProfile()
+ {
+ AdminUsername = "{your-username}",
+ OSConfiguration = new LinuxConfiguration()
+ {
+ DisablePasswordAuthentication = true,
+ SshKeyPair = new SshKeyPair()
+ {
+ PublicKey = "abc",
+ PrivateKey = "xyz",
+ },
+ },
+ }), 2L)
+ {
+ DatabaseType = SAPDatabaseType.HANA,
+ DiskVolumeConfigurations =
+{
+["backup"] = new DiskVolumeConfiguration()
+{
+Count = 2L,
+SizeGB = 256L,
+SkuName = DiskSkuName.StandardSSDLRS,
+},
+["hana/data"] = new DiskVolumeConfiguration()
+{
+Count = 4L,
+SizeGB = 128L,
+SkuName = DiskSkuName.PremiumLRS,
+},
+["hana/log"] = new DiskVolumeConfiguration()
+{
+Count = 3L,
+SizeGB = 128L,
+SkuName = DiskSkuName.PremiumLRS,
+},
+["hana/shared"] = new DiskVolumeConfiguration()
+{
+Count = 1L,
+SizeGB = 256L,
+SkuName = DiskSkuName.StandardSSDLRS,
+},
+["os"] = new DiskVolumeConfiguration()
+{
+Count = 1L,
+SizeGB = 64L,
+SkuName = DiskSkuName.StandardSSDLRS,
+},
+["usr/sap"] = new DiskVolumeConfiguration()
+{
+Count = 1L,
+SizeGB = 128L,
+SkuName = DiskSkuName.PremiumLRS,
+},
+},
+ })
+ {
+ HighAvailabilityType = SAPHighAvailabilityType.AvailabilityZone,
+ },
+ OSSapConfiguration = new OSSapConfiguration()
+ {
+ SapFqdn = "xyz.test.com",
+ },
+ }),
+ Tags =
+{
+},
+ };
+ ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, sapVirtualInstanceName, data);
+ SAPVirtualInstanceResource 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
+ SAPVirtualInstanceData 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_CreateInfrastructureWithDiskAndOSConfigurationsForSingleServerSystemRecommended()
+ {
+ // Generated from example definition: 2024-09-01/SapVirtualInstances_CreateInfraDiskOsSingleServerRecommended.json
+ // this example is just showing the usage of "SAPVirtualInstance_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
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ResourceGroupResource created on azure
+ // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource
+ string subscriptionId = "8e17e36c-42e9-4cd5-a078-7b44883414e0";
+ string resourceGroupName = "test-rg";
+ ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName);
+ ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId);
+
+ // get the collection of this SAPVirtualInstanceResource
+ SAPVirtualInstanceCollection collection = resourceGroupResource.GetSAPVirtualInstances();
+
+ // invoke the operation
+ string sapVirtualInstanceName = "X00";
+ SAPVirtualInstanceData data = new SAPVirtualInstanceData(new AzureLocation("westcentralus"))
+ {
+ Properties = new SAPVirtualInstanceProperties(SAPEnvironmentType.NonProd, SAPProductType.S4HANA, new DeploymentWithOSConfiguration()
+ {
+ AppLocation = "eastus",
+ InfrastructureConfiguration = new SingleServerConfiguration("X00-RG", "/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/dindurkhya-e2etesting/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet", new VirtualMachineConfiguration("Standard_E32ds_v4", new ImageReference()
+ {
+ Publisher = "RedHat",
+ Offer = "RHEL-SAP",
+ Sku = "84sapha-gen2",
+ Version = "latest",
+ }, new OSProfile()
+ {
+ AdminUsername = "{your-username}",
+ OSConfiguration = new LinuxConfiguration()
+ {
+ DisablePasswordAuthentication = true,
+ SshKeyPair = new SshKeyPair()
+ {
+ PublicKey = "abc",
+ PrivateKey = "xyz",
+ },
+ },
+ }))
+ {
+ IsSecondaryIPEnabled = true,
+ DatabaseType = SAPDatabaseType.HANA,
+ DiskVolumeConfigurations =
+{
+["backup"] = new DiskVolumeConfiguration()
+{
+Count = 2L,
+SizeGB = 256L,
+SkuName = DiskSkuName.StandardSSDLRS,
+},
+["hana/data"] = new DiskVolumeConfiguration()
+{
+Count = 4L,
+SizeGB = 128L,
+SkuName = DiskSkuName.PremiumLRS,
+},
+["hana/log"] = new DiskVolumeConfiguration()
+{
+Count = 3L,
+SizeGB = 128L,
+SkuName = DiskSkuName.PremiumLRS,
+},
+["hana/shared"] = new DiskVolumeConfiguration()
+{
+Count = 1L,
+SizeGB = 256L,
+SkuName = DiskSkuName.StandardSSDLRS,
+},
+["os"] = new DiskVolumeConfiguration()
+{
+Count = 1L,
+SizeGB = 64L,
+SkuName = DiskSkuName.StandardSSDLRS,
+},
+["usr/sap"] = new DiskVolumeConfiguration()
+{
+Count = 1L,
+SizeGB = 128L,
+SkuName = DiskSkuName.PremiumLRS,
+},
+},
+ },
+ OSSapConfiguration = new OSSapConfiguration()
+ {
+ SapFqdn = "xyz.test.com",
+ },
+ }),
+ Tags =
+{
+},
+ };
+ ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, sapVirtualInstanceName, data);
+ SAPVirtualInstanceResource 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
+ SAPVirtualInstanceData 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_CreateInfrastructureOnlyForHASystemWithAvailabilitySet()
+ {
+ // Generated from example definition: 2024-09-01/SapVirtualInstances_CreateInfraHaAvailabilitySet.json
+ // this example is just showing the usage of "SAPVirtualInstance_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
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ResourceGroupResource created on azure
+ // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource
+ string subscriptionId = "8e17e36c-42e9-4cd5-a078-7b44883414e0";
+ string resourceGroupName = "test-rg";
+ ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName);
+ ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId);
+
+ // get the collection of this SAPVirtualInstanceResource
+ SAPVirtualInstanceCollection collection = resourceGroupResource.GetSAPVirtualInstances();
+
+ // invoke the operation
+ string sapVirtualInstanceName = "X00";
+ SAPVirtualInstanceData data = new SAPVirtualInstanceData(new AzureLocation("westcentralus"))
+ {
+ Properties = new SAPVirtualInstanceProperties(SAPEnvironmentType.Prod, SAPProductType.S4HANA, new DeploymentConfiguration()
+ {
+ AppLocation = "eastus",
+ InfrastructureConfiguration = new ThreeTierConfiguration("X00-RG", new CentralServerConfiguration("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet", new VirtualMachineConfiguration("Standard_E16ds_v4", new ImageReference()
+ {
+ Publisher = "RedHat",
+ Offer = "RHEL-SAP",
+ Sku = "84sapha-gen2",
+ Version = "latest",
+ }, new OSProfile()
+ {
+ AdminUsername = "{your-username}",
+ OSConfiguration = new LinuxConfiguration()
+ {
+ DisablePasswordAuthentication = true,
+ SshPublicKeys =
+{
+new SshPublicKey()
+{
+KeyData = "ssh-rsa public key",
+}
+},
+ },
+ }), 2L), new ApplicationServerConfiguration("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet", new VirtualMachineConfiguration("Standard_E32ds_v4", new ImageReference()
+ {
+ Publisher = "RedHat",
+ Offer = "RHEL-SAP",
+ Sku = "84sapha-gen2",
+ Version = "latest",
+ }, new OSProfile()
+ {
+ AdminUsername = "{your-username}",
+ OSConfiguration = new LinuxConfiguration()
+ {
+ DisablePasswordAuthentication = true,
+ SshPublicKeys =
+{
+new SshPublicKey()
+{
+KeyData = "ssh-rsa public key",
+}
+},
+ },
+ }), 5L), new DatabaseConfiguration("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/dbsubnet", new VirtualMachineConfiguration("Standard_M32ts", new ImageReference()
+ {
+ Publisher = "RedHat",
+ Offer = "RHEL-SAP",
+ Sku = "84sapha-gen2",
+ Version = "latest",
+ }, new OSProfile()
+ {
+ AdminUsername = "{your-username}",
+ OSConfiguration = new LinuxConfiguration()
+ {
+ DisablePasswordAuthentication = true,
+ SshPublicKeys =
+{
+new SshPublicKey()
+{
+KeyData = "ssh-rsa public key",
+}
+},
+ },
+ }), 2L)
+ {
+ DatabaseType = SAPDatabaseType.HANA,
+ })
+ {
+ HighAvailabilityType = SAPHighAvailabilityType.AvailabilitySet,
+ },
+ }),
+ Tags =
+{
+},
+ };
+ ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, sapVirtualInstanceName, data);
+ SAPVirtualInstanceResource 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
+ SAPVirtualInstanceData 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_CreateInfrastructureOnlyForHASystemWithAvailabilityZone()
+ {
+ // Generated from example definition: 2024-09-01/SapVirtualInstances_CreateInfraHaAvailabilityZone.json
+ // this example is just showing the usage of "SAPVirtualInstance_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
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ResourceGroupResource created on azure
+ // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource
+ string subscriptionId = "8e17e36c-42e9-4cd5-a078-7b44883414e0";
+ string resourceGroupName = "test-rg";
+ ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName);
+ ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId);
+
+ // get the collection of this SAPVirtualInstanceResource
+ SAPVirtualInstanceCollection collection = resourceGroupResource.GetSAPVirtualInstances();
+
+ // invoke the operation
+ string sapVirtualInstanceName = "X00";
+ SAPVirtualInstanceData data = new SAPVirtualInstanceData(new AzureLocation("westcentralus"))
+ {
+ Properties = new SAPVirtualInstanceProperties(SAPEnvironmentType.Prod, SAPProductType.S4HANA, new DeploymentConfiguration()
+ {
+ AppLocation = "eastus",
+ InfrastructureConfiguration = new ThreeTierConfiguration("X00-RG", new CentralServerConfiguration("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet", new VirtualMachineConfiguration("Standard_E16ds_v4", new ImageReference()
+ {
+ Publisher = "RedHat",
+ Offer = "RHEL-SAP",
+ Sku = "84sapha-gen2",
+ Version = "latest",
+ }, new OSProfile()
+ {
+ AdminUsername = "{your-username}",
+ OSConfiguration = new LinuxConfiguration()
+ {
+ DisablePasswordAuthentication = true,
+ SshPublicKeys =
+{
+new SshPublicKey()
+{
+KeyData = "ssh-rsa public key",
+}
+},
+ },
+ }), 2L), new ApplicationServerConfiguration("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet", new VirtualMachineConfiguration("Standard_E32ds_v4", new ImageReference()
+ {
+ Publisher = "RedHat",
+ Offer = "RHEL-SAP",
+ Sku = "84sapha-gen2",
+ Version = "latest",
+ }, new OSProfile()
+ {
+ AdminUsername = "{your-username}",
+ OSConfiguration = new LinuxConfiguration()
+ {
+ DisablePasswordAuthentication = true,
+ SshPublicKeys =
+{
+new SshPublicKey()
+{
+KeyData = "ssh-rsa public key",
+}
+},
+ },
+ }), 6L), new DatabaseConfiguration("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/dbsubnet", new VirtualMachineConfiguration("Standard_M32ts", new ImageReference()
+ {
+ Publisher = "RedHat",
+ Offer = "RHEL-SAP",
+ Sku = "84sapha-gen2",
+ Version = "latest",
+ }, new OSProfile()
+ {
+ AdminUsername = "{your-username}",
+ OSConfiguration = new LinuxConfiguration()
+ {
+ DisablePasswordAuthentication = true,
+ SshPublicKeys =
+{
+new SshPublicKey()
+{
+KeyData = "ssh-rsa public key",
+}
+},
+ },
+ }), 2L)
+ {
+ DatabaseType = SAPDatabaseType.HANA,
+ })
+ {
+ HighAvailabilityType = SAPHighAvailabilityType.AvailabilityZone,
+ },
+ }),
+ Tags =
+{
+},
+ };
+ ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, sapVirtualInstanceName, data);
+ SAPVirtualInstanceResource 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
+ SAPVirtualInstanceData 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_CreateInfrastructureWithOSConfigurationWithAzureComputeGalleryImage()
+ {
+ // Generated from example definition: 2024-09-01/SapVirtualInstances_CreateInfraOsComputeGalleryImage.json
+ // this example is just showing the usage of "SAPVirtualInstance_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
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ResourceGroupResource created on azure
+ // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource
+ string subscriptionId = "8e17e36c-42e9-4cd5-a078-7b44883414e0";
+ string resourceGroupName = "test-rg";
+ ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName);
+ ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId);
+
+ // get the collection of this SAPVirtualInstanceResource
+ SAPVirtualInstanceCollection collection = resourceGroupResource.GetSAPVirtualInstances();
+
+ // invoke the operation
+ string sapVirtualInstanceName = "X00";
+ SAPVirtualInstanceData data = new SAPVirtualInstanceData(new AzureLocation("westcentralus"))
+ {
+ Properties = new SAPVirtualInstanceProperties(SAPEnvironmentType.Prod, SAPProductType.S4HANA, new DeploymentConfiguration()
+ {
+ AppLocation = "eastus",
+ InfrastructureConfiguration = new ThreeTierConfiguration("X00-RG", new CentralServerConfiguration("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet", new VirtualMachineConfiguration("Standard_E16ds_v4", new ImageReference()
+ {
+ Id = new ResourceIdentifier("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Compute/galleries/testgallery/images/rhelimagetest/versions/0.0.1"),
+ }, new OSProfile()
+ {
+ AdminUsername = "{your-username}",
+ OSConfiguration = new LinuxConfiguration()
+ {
+ DisablePasswordAuthentication = true,
+ SshPublicKeys =
+{
+new SshPublicKey()
+{
+KeyData = "ssh-rsa public key",
+}
+},
+ },
+ }), 2L), new ApplicationServerConfiguration("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet", new VirtualMachineConfiguration("Standard_E32ds_v4", new ImageReference()
+ {
+ Id = new ResourceIdentifier("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Compute/galleries/testgallery/images/rhelimagetest/versions/0.0.1"),
+ }, new OSProfile()
+ {
+ AdminUsername = "{your-username}",
+ OSConfiguration = new LinuxConfiguration()
+ {
+ DisablePasswordAuthentication = true,
+ SshPublicKeys =
+{
+new SshPublicKey()
+{
+KeyData = "ssh-rsa public key",
+}
+},
+ },
+ }), 6L), new DatabaseConfiguration("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/dbsubnet", new VirtualMachineConfiguration("Standard_M32ts", new ImageReference()
+ {
+ Id = new ResourceIdentifier("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Compute/galleries/testgallery/images/rhelimagetest/versions/0.0.1"),
+ }, new OSProfile()
+ {
+ AdminUsername = "{your-username}",
+ OSConfiguration = new LinuxConfiguration()
+ {
+ DisablePasswordAuthentication = true,
+ SshPublicKeys =
+{
+new SshPublicKey()
+{
+KeyData = "ssh-rsa public key",
+}
+},
+ },
+ }), 2L)
+ {
+ DatabaseType = SAPDatabaseType.HANA,
+ })
+ {
+ HighAvailabilityType = SAPHighAvailabilityType.AvailabilityZone,
+ },
+ }),
+ Tags =
+{
+},
+ };
+ ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, sapVirtualInstanceName, data);
+ SAPVirtualInstanceResource 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
+ SAPVirtualInstanceData 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_CreateInfrastructureWithOSConfigurationWithCustomResourceNamesForDistributedSystem()
+ {
+ // Generated from example definition: 2024-09-01/SapVirtualInstances_CreateInfraOsCustomResourceNamesDS.json
+ // this example is just showing the usage of "SAPVirtualInstance_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
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ResourceGroupResource created on azure
+ // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource
+ string subscriptionId = "8e17e36c-42e9-4cd5-a078-7b44883414e0";
+ string resourceGroupName = "test-rg";
+ ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName);
+ ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId);
+
+ // get the collection of this SAPVirtualInstanceResource
+ SAPVirtualInstanceCollection collection = resourceGroupResource.GetSAPVirtualInstances();
+
+ // invoke the operation
+ string sapVirtualInstanceName = "X00";
+ SAPVirtualInstanceData data = new SAPVirtualInstanceData(new AzureLocation("westcentralus"))
+ {
+ Properties = new SAPVirtualInstanceProperties(SAPEnvironmentType.Prod, SAPProductType.S4HANA, new DeploymentWithOSConfiguration()
+ {
+ AppLocation = "eastus",
+ InfrastructureConfiguration = new ThreeTierConfiguration("X00-RG", new CentralServerConfiguration("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet", new VirtualMachineConfiguration("Standard_E16ds_v4", new ImageReference()
+ {
+ Publisher = "RedHat",
+ Offer = "RHEL-SAP",
+ Sku = "84sapha-gen2",
+ Version = "latest",
+ }, new OSProfile()
+ {
+ AdminUsername = "{your-username}",
+ OSConfiguration = new LinuxConfiguration()
+ {
+ DisablePasswordAuthentication = true,
+ SshKeyPair = new SshKeyPair()
+ {
+ PublicKey = "abc",
+ PrivateKey = "xyz",
+ },
+ },
+ }), 1L), new ApplicationServerConfiguration("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet", new VirtualMachineConfiguration("Standard_E32ds_v4", new ImageReference()
+ {
+ Publisher = "RedHat",
+ Offer = "RHEL-SAP",
+ Sku = "84sapha-gen2",
+ Version = "latest",
+ }, new OSProfile()
+ {
+ AdminUsername = "{your-username}",
+ OSConfiguration = new LinuxConfiguration()
+ {
+ DisablePasswordAuthentication = true,
+ SshKeyPair = new SshKeyPair()
+ {
+ PublicKey = "abc",
+ PrivateKey = "xyz",
+ },
+ },
+ }), 6L), new DatabaseConfiguration("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/dbsubnet", new VirtualMachineConfiguration("Standard_M32ts", new ImageReference()
+ {
+ Publisher = "RedHat",
+ Offer = "RHEL-SAP",
+ Sku = "84sapha-gen2",
+ Version = "latest",
+ }, new OSProfile()
+ {
+ AdminUsername = "{your-username}",
+ OSConfiguration = new LinuxConfiguration()
+ {
+ DisablePasswordAuthentication = true,
+ SshKeyPair = new SshKeyPair()
+ {
+ PublicKey = "abc",
+ PrivateKey = "xyz",
+ },
+ },
+ }), 1L)
+ {
+ DatabaseType = SAPDatabaseType.HANA,
+ })
+ {
+ CustomResourceNames = new ThreeTierFullResourceNames()
+ {
+ CentralServer = new CentralServerFullResourceNames()
+ {
+ VirtualMachines =
+{
+new VirtualMachineResourceNames()
+{
+VmName = "ascsvm",
+HostName = "ascshostName",
+NetworkInterfaces =
+{
+new NetworkInterfaceResourceNames()
+{
+NetworkInterfaceName = "ascsnic",
+}
+},
+OSDiskName = "ascsosdisk",
+DataDiskNames =
+{
+["default"] = new string[]
+{
+"ascsdisk0"
+},
+},
+}
+},
+ },
+ ApplicationServer = new ApplicationServerFullResourceNames()
+ {
+ VirtualMachines =
+{
+new VirtualMachineResourceNames()
+{
+VmName = "appvm0",
+HostName = "apphostName0",
+NetworkInterfaces =
+{
+new NetworkInterfaceResourceNames()
+{
+NetworkInterfaceName = "appnic0",
+}
+},
+OSDiskName = "app0osdisk",
+DataDiskNames =
+{
+["default"] = new string[]
+{
+"app0disk0"
+},
+},
+},new VirtualMachineResourceNames()
+{
+VmName = "appvm1",
+HostName = "apphostName1",
+NetworkInterfaces =
+{
+new NetworkInterfaceResourceNames()
+{
+NetworkInterfaceName = "appnic1",
+}
+},
+OSDiskName = "app1osdisk",
+DataDiskNames =
+{
+["default"] = new string[]
+{
+"app1disk0"
+},
+},
+}
+},
+ AvailabilitySetName = "appAvSet",
+ },
+ DatabaseServer = new DatabaseServerFullResourceNames()
+ {
+ VirtualMachines =
+{
+new VirtualMachineResourceNames()
+{
+VmName = "dbvm",
+HostName = "dbhostName",
+NetworkInterfaces =
+{
+new NetworkInterfaceResourceNames()
+{
+NetworkInterfaceName = "dbnic",
+}
+},
+OSDiskName = "dbosdisk",
+DataDiskNames =
+{
+["hanaData"] = new string[]
+{
+"hanadata0","hanadata1"
+},
+["hanaLog"] = new string[]
+{
+"hanalog0","hanalog1","hanalog2"
+},
+["hanaShared"] = new string[]
+{
+"hanashared0","hanashared1"
+},
+["usrSap"] = new string[]
+{
+"usrsap0"
+},
+},
+}
+},
+ },
+ SharedStorage = new SharedStorageResourceNames()
+ {
+ SharedStorageAccountName = "storageacc",
+ SharedStorageAccountPrivateEndPointName = "peForxNFS",
+ },
+ },
+ },
+ OSSapConfiguration = new OSSapConfiguration()
+ {
+ SapFqdn = "xyz.test.com",
+ },
+ }),
+ Tags =
+{
+},
+ };
+ ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, sapVirtualInstanceName, data);
+ SAPVirtualInstanceResource 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
+ SAPVirtualInstanceData 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_CreateInfrastructureWithOSConfigurationWithCustomResourceNamesForHASystemWithAvailabilitySet()
+ {
+ // Generated from example definition: 2024-09-01/SapVirtualInstances_CreateInfraOsCustomResourceNamesHaAvailabilitySet.json
+ // this example is just showing the usage of "SAPVirtualInstance_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
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ResourceGroupResource created on azure
+ // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource
+ string subscriptionId = "8e17e36c-42e9-4cd5-a078-7b44883414e0";
+ string resourceGroupName = "test-rg";
+ ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName);
+ ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId);
+
+ // get the collection of this SAPVirtualInstanceResource
+ SAPVirtualInstanceCollection collection = resourceGroupResource.GetSAPVirtualInstances();
+
+ // invoke the operation
+ string sapVirtualInstanceName = "X00";
+ SAPVirtualInstanceData data = new SAPVirtualInstanceData(new AzureLocation("westcentralus"))
+ {
+ Properties = new SAPVirtualInstanceProperties(SAPEnvironmentType.Prod, SAPProductType.S4HANA, new DeploymentWithOSConfiguration()
+ {
+ AppLocation = "eastus",
+ InfrastructureConfiguration = new ThreeTierConfiguration("X00-RG", new CentralServerConfiguration("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet", new VirtualMachineConfiguration("Standard_E16ds_v4", new ImageReference()
+ {
+ Publisher = "RedHat",
+ Offer = "RHEL-SAP",
+ Sku = "84sapha-gen2",
+ Version = "latest",
+ }, new OSProfile()
+ {
+ AdminUsername = "{your-username}",
+ OSConfiguration = new LinuxConfiguration()
+ {
+ DisablePasswordAuthentication = true,
+ SshKeyPair = new SshKeyPair()
+ {
+ PublicKey = "abc",
+ PrivateKey = "xyz",
+ },
+ },
+ }), 2L), new ApplicationServerConfiguration("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet", new VirtualMachineConfiguration("Standard_E32ds_v4", new ImageReference()
+ {
+ Publisher = "RedHat",
+ Offer = "RHEL-SAP",
+ Sku = "84sapha-gen2",
+ Version = "latest",
+ }, new OSProfile()
+ {
+ AdminUsername = "{your-username}",
+ OSConfiguration = new LinuxConfiguration()
+ {
+ DisablePasswordAuthentication = true,
+ SshKeyPair = new SshKeyPair()
+ {
+ PublicKey = "abc",
+ PrivateKey = "xyz",
+ },
+ },
+ }), 6L), new DatabaseConfiguration("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/dbsubnet", new VirtualMachineConfiguration("Standard_M32ts", new ImageReference()
+ {
+ Publisher = "RedHat",
+ Offer = "RHEL-SAP",
+ Sku = "84sapha-gen2",
+ Version = "latest",
+ }, new OSProfile()
+ {
+ AdminUsername = "{your-username}",
+ OSConfiguration = new LinuxConfiguration()
+ {
+ DisablePasswordAuthentication = true,
+ SshKeyPair = new SshKeyPair()
+ {
+ PublicKey = "abc",
+ PrivateKey = "xyz",
+ },
+ },
+ }), 2L)
+ {
+ DatabaseType = SAPDatabaseType.HANA,
+ })
+ {
+ HighAvailabilityType = SAPHighAvailabilityType.AvailabilitySet,
+ CustomResourceNames = new ThreeTierFullResourceNames()
+ {
+ CentralServer = new CentralServerFullResourceNames()
+ {
+ VirtualMachines =
+{
+new VirtualMachineResourceNames()
+{
+VmName = "ascsvm",
+HostName = "ascshostName",
+NetworkInterfaces =
+{
+new NetworkInterfaceResourceNames()
+{
+NetworkInterfaceName = "ascsnic",
+}
+},
+OSDiskName = "ascsosdisk",
+},new VirtualMachineResourceNames()
+{
+VmName = "ersvm",
+HostName = "ershostName",
+NetworkInterfaces =
+{
+new NetworkInterfaceResourceNames()
+{
+NetworkInterfaceName = "ersnic",
+}
+},
+OSDiskName = "ersosdisk",
+}
+},
+ AvailabilitySetName = "csAvSet",
+ LoadBalancer = new LoadBalancerResourceNames()
+ {
+ LoadBalancerName = "ascslb",
+ FrontendIPConfigurationNames =
+{
+"ascsip0","ersip0"
+},
+ BackendPoolNames =
+{
+"ascsBackendPool"
+},
+ HealthProbeNames =
+{
+"ascsHealthProbe","ersHealthProbe"
+},
+ },
+ },
+ ApplicationServer = new ApplicationServerFullResourceNames()
+ {
+ VirtualMachines =
+{
+new VirtualMachineResourceNames()
+{
+VmName = "appvm0",
+HostName = "apphostName0",
+NetworkInterfaces =
+{
+new NetworkInterfaceResourceNames()
+{
+NetworkInterfaceName = "appnic0",
+}
+},
+OSDiskName = "app0osdisk",
+DataDiskNames =
+{
+["default"] = new string[]
+{
+"app0disk0"
+},
+},
+},new VirtualMachineResourceNames()
+{
+VmName = "appvm1",
+HostName = "apphostName1",
+NetworkInterfaces =
+{
+new NetworkInterfaceResourceNames()
+{
+NetworkInterfaceName = "appnic1",
+}
+},
+OSDiskName = "app1osdisk",
+DataDiskNames =
+{
+["default"] = new string[]
+{
+"app1disk0"
+},
+},
+}
+},
+ AvailabilitySetName = "appAvSet",
+ },
+ DatabaseServer = new DatabaseServerFullResourceNames()
+ {
+ VirtualMachines =
+{
+new VirtualMachineResourceNames()
+{
+VmName = "dbvmpr",
+HostName = "dbprhostName",
+NetworkInterfaces =
+{
+new NetworkInterfaceResourceNames()
+{
+NetworkInterfaceName = "dbprnic",
+}
+},
+OSDiskName = "dbprosdisk",
+DataDiskNames =
+{
+["hanaData"] = new string[]
+{
+"hanadatapr0","hanadatapr1"
+},
+["hanaLog"] = new string[]
+{
+"hanalogpr0","hanalogpr1","hanalogpr2"
+},
+["hanaShared"] = new string[]
+{
+"hanasharedpr0","hanasharedpr1"
+},
+["usrSap"] = new string[]
+{
+"usrsappr0"
+},
+},
+},new VirtualMachineResourceNames()
+{
+VmName = "dbvmsr",
+HostName = "dbsrhostName",
+NetworkInterfaces =
+{
+new NetworkInterfaceResourceNames()
+{
+NetworkInterfaceName = "dbsrnic",
+}
+},
+OSDiskName = "dbsrosdisk",
+DataDiskNames =
+{
+["hanaData"] = new string[]
+{
+"hanadatasr0","hanadatasr1"
+},
+["hanaLog"] = new string[]
+{
+"hanalogsr0","hanalogsr1","hanalogsr2"
+},
+["hanaShared"] = new string[]
+{
+"hanasharedsr0","hanasharedsr1"
+},
+["usrSap"] = new string[]
+{
+"usrsapsr0"
+},
+},
+}
+},
+ AvailabilitySetName = "dbAvSet",
+ LoadBalancer = new LoadBalancerResourceNames()
+ {
+ LoadBalancerName = "dblb",
+ FrontendIPConfigurationNames =
+{
+"dbip"
+},
+ BackendPoolNames =
+{
+"dbBackendPool"
+},
+ HealthProbeNames =
+{
+"dbHealthProbe"
+},
+ },
+ },
+ SharedStorage = new SharedStorageResourceNames()
+ {
+ SharedStorageAccountName = "storageacc",
+ SharedStorageAccountPrivateEndPointName = "peForxNFS",
+ },
+ },
+ },
+ OSSapConfiguration = new OSSapConfiguration()
+ {
+ SapFqdn = "xyz.test.com",
+ },
+ }),
+ Tags =
+{
+},
+ };
+ ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, sapVirtualInstanceName, data);
+ SAPVirtualInstanceResource 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
+ SAPVirtualInstanceData 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_CreateInfrastructureWithOSConfigurationWithCustomResourceNamesForHASystemWithAvailabilityZone()
+ {
+ // Generated from example definition: 2024-09-01/SapVirtualInstances_CreateInfraOsCustomResourceNamesHaAvailabilityZone.json
+ // this example is just showing the usage of "SAPVirtualInstance_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
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ResourceGroupResource created on azure
+ // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource
+ string subscriptionId = "8e17e36c-42e9-4cd5-a078-7b44883414e0";
+ string resourceGroupName = "test-rg";
+ ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName);
+ ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId);
+
+ // get the collection of this SAPVirtualInstanceResource
+ SAPVirtualInstanceCollection collection = resourceGroupResource.GetSAPVirtualInstances();
+
+ // invoke the operation
+ string sapVirtualInstanceName = "X00";
+ SAPVirtualInstanceData data = new SAPVirtualInstanceData(new AzureLocation("westcentralus"))
+ {
+ Properties = new SAPVirtualInstanceProperties(SAPEnvironmentType.Prod, SAPProductType.S4HANA, new DeploymentWithOSConfiguration()
+ {
+ AppLocation = "eastus",
+ InfrastructureConfiguration = new ThreeTierConfiguration("X00-RG", new CentralServerConfiguration("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet", new VirtualMachineConfiguration("Standard_E16ds_v4", new ImageReference()
+ {
+ Publisher = "RedHat",
+ Offer = "RHEL-SAP",
+ Sku = "84sapha-gen2",
+ Version = "latest",
+ }, new OSProfile()
+ {
+ AdminUsername = "{your-username}",
+ OSConfiguration = new LinuxConfiguration()
+ {
+ DisablePasswordAuthentication = true,
+ SshKeyPair = new SshKeyPair()
+ {
+ PublicKey = "abc",
+ PrivateKey = "xyz",
+ },
+ },
+ }), 2L), new ApplicationServerConfiguration("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet", new VirtualMachineConfiguration("Standard_E32ds_v4", new ImageReference()
+ {
+ Publisher = "RedHat",
+ Offer = "RHEL-SAP",
+ Sku = "84sapha-gen2",
+ Version = "latest",
+ }, new OSProfile()
+ {
+ AdminUsername = "{your-username}",
+ OSConfiguration = new LinuxConfiguration()
+ {
+ DisablePasswordAuthentication = true,
+ SshKeyPair = new SshKeyPair()
+ {
+ PublicKey = "abc",
+ PrivateKey = "xyz",
+ },
+ },
+ }), 6L), new DatabaseConfiguration("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/dbsubnet", new VirtualMachineConfiguration("Standard_M32ts", new ImageReference()
+ {
+ Publisher = "RedHat",
+ Offer = "RHEL-SAP",
+ Sku = "84sapha-gen2",
+ Version = "latest",
+ }, new OSProfile()
+ {
+ AdminUsername = "{your-username}",
+ OSConfiguration = new LinuxConfiguration()
+ {
+ DisablePasswordAuthentication = true,
+ SshKeyPair = new SshKeyPair()
+ {
+ PublicKey = "abc",
+ PrivateKey = "xyz",
+ },
+ },
+ }), 2L)
+ {
+ DatabaseType = SAPDatabaseType.HANA,
+ })
+ {
+ HighAvailabilityType = SAPHighAvailabilityType.AvailabilityZone,
+ CustomResourceNames = new ThreeTierFullResourceNames()
+ {
+ CentralServer = new CentralServerFullResourceNames()
+ {
+ VirtualMachines =
+{
+new VirtualMachineResourceNames()
+{
+VmName = "ascsvm",
+HostName = "ascshostName",
+NetworkInterfaces =
+{
+new NetworkInterfaceResourceNames()
+{
+NetworkInterfaceName = "ascsnic",
+}
+},
+OSDiskName = "ascsosdisk",
+},new VirtualMachineResourceNames()
+{
+VmName = "ersvm",
+HostName = "ershostName",
+NetworkInterfaces =
+{
+new NetworkInterfaceResourceNames()
+{
+NetworkInterfaceName = "ersnic",
+}
+},
+OSDiskName = "ersosdisk",
+}
+},
+ LoadBalancer = new LoadBalancerResourceNames()
+ {
+ LoadBalancerName = "ascslb",
+ FrontendIPConfigurationNames =
+{
+"ascsip0","ersip0"
+},
+ BackendPoolNames =
+{
+"ascsBackendPool"
+},
+ HealthProbeNames =
+{
+"ascsHealthProbe","ersHealthProbe"
+},
+ },
+ },
+ ApplicationServer = new ApplicationServerFullResourceNames()
+ {
+ VirtualMachines =
+{
+new VirtualMachineResourceNames()
+{
+VmName = "appvm0",
+HostName = "apphostName0",
+NetworkInterfaces =
+{
+new NetworkInterfaceResourceNames()
+{
+NetworkInterfaceName = "appnic0",
+}
+},
+OSDiskName = "app0osdisk",
+DataDiskNames =
+{
+["default"] = new string[]
+{
+"app0disk0"
+},
+},
+},new VirtualMachineResourceNames()
+{
+VmName = "appvm1",
+HostName = "apphostName1",
+NetworkInterfaces =
+{
+new NetworkInterfaceResourceNames()
+{
+NetworkInterfaceName = "appnic1",
+}
+},
+OSDiskName = "app1osdisk",
+DataDiskNames =
+{
+["default"] = new string[]
+{
+"app1disk0"
+},
+},
+}
+},
+ },
+ DatabaseServer = new DatabaseServerFullResourceNames()
+ {
+ VirtualMachines =
+{
+new VirtualMachineResourceNames()
+{
+VmName = "dbvmpr",
+HostName = "dbprhostName",
+NetworkInterfaces =
+{
+new NetworkInterfaceResourceNames()
+{
+NetworkInterfaceName = "dbprnic",
+}
+},
+OSDiskName = "dbprosdisk",
+DataDiskNames =
+{
+["hanaData"] = new string[]
+{
+"hanadatapr0","hanadatapr1"
+},
+["hanaLog"] = new string[]
+{
+"hanalogpr0","hanalogpr1","hanalogpr2"
+},
+["hanaShared"] = new string[]
+{
+"hanasharedpr0","hanasharedpr1"
+},
+["usrSap"] = new string[]
+{
+"usrsappr0"
+},
+},
+},new VirtualMachineResourceNames()
+{
+VmName = "dbvmsr",
+HostName = "dbsrhostName",
+NetworkInterfaces =
+{
+new NetworkInterfaceResourceNames()
+{
+NetworkInterfaceName = "dbsrnic",
+}
+},
+OSDiskName = "dbsrosdisk",
+DataDiskNames =
+{
+["hanaData"] = new string[]
+{
+"hanadatasr0","hanadatasr1"
+},
+["hanaLog"] = new string[]
+{
+"hanalogsr0","hanalogsr1","hanalogsr2"
+},
+["hanaShared"] = new string[]
+{
+"hanasharedsr0","hanasharedsr1"
+},
+["usrSap"] = new string[]
+{
+"usrsapsr0"
+},
+},
+}
+},
+ LoadBalancer = new LoadBalancerResourceNames()
+ {
+ LoadBalancerName = "dblb",
+ FrontendIPConfigurationNames =
+{
+"dbip"
+},
+ BackendPoolNames =
+{
+"dbBackendPool"
+},
+ HealthProbeNames =
+{
+"dbHealthProbe"
+},
+ },
+ },
+ SharedStorage = new SharedStorageResourceNames()
+ {
+ SharedStorageAccountName = "storageacc",
+ SharedStorageAccountPrivateEndPointName = "peForxNFS",
+ },
+ },
+ },
+ OSSapConfiguration = new OSSapConfiguration()
+ {
+ SapFqdn = "xyz.test.com",
+ },
+ }),
+ Tags =
+{
+},
+ };
+ ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, sapVirtualInstanceName, data);
+ SAPVirtualInstanceResource 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
+ SAPVirtualInstanceData 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_CreateInfrastructureWithOSConfigurationWithCustomResourceNamesForSingleServerSystem()
+ {
+ // Generated from example definition: 2024-09-01/SapVirtualInstances_CreateInfraOsCustomResourceNamesSingleServer.json
+ // this example is just showing the usage of "SAPVirtualInstance_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
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ResourceGroupResource created on azure
+ // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource
+ string subscriptionId = "8e17e36c-42e9-4cd5-a078-7b44883414e0";
+ string resourceGroupName = "test-rg";
+ ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName);
+ ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId);
+
+ // get the collection of this SAPVirtualInstanceResource
+ SAPVirtualInstanceCollection collection = resourceGroupResource.GetSAPVirtualInstances();
+
+ // invoke the operation
+ string sapVirtualInstanceName = "X00";
+ SAPVirtualInstanceData data = new SAPVirtualInstanceData(new AzureLocation("westcentralus"))
+ {
+ Properties = new SAPVirtualInstanceProperties(SAPEnvironmentType.NonProd, SAPProductType.S4HANA, new DeploymentWithOSConfiguration()
+ {
+ AppLocation = "eastus",
+ InfrastructureConfiguration = new SingleServerConfiguration("X00-RG", "/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet", new VirtualMachineConfiguration("Standard_E32ds_v4", new ImageReference()
+ {
+ Publisher = "RedHat",
+ Offer = "RHEL-SAP",
+ Sku = "84sapha-gen2",
+ Version = "latest",
+ }, new OSProfile()
+ {
+ AdminUsername = "{your-username}",
+ OSConfiguration = new LinuxConfiguration()
+ {
+ DisablePasswordAuthentication = true,
+ SshKeyPair = new SshKeyPair()
+ {
+ PublicKey = "abc",
+ PrivateKey = "xyz",
+ },
+ },
+ }))
+ {
+ IsSecondaryIPEnabled = true,
+ DatabaseType = SAPDatabaseType.HANA,
+ },
+ OSSapConfiguration = new OSSapConfiguration()
+ {
+ SapFqdn = "xyz.test.com",
+ },
+ }),
+ Tags =
+{
+},
+ };
+ ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, sapVirtualInstanceName, data);
+ SAPVirtualInstanceResource 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
+ SAPVirtualInstanceData 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_CreateInfrastructureWithOSConfigurationForDistributedSystemRecommended()
+ {
+ // Generated from example definition: 2024-09-01/SapVirtualInstances_CreateInfraOsDSRecommended.json
+ // this example is just showing the usage of "SAPVirtualInstance_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
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ResourceGroupResource created on azure
+ // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource
+ string subscriptionId = "8e17e36c-42e9-4cd5-a078-7b44883414e0";
+ string resourceGroupName = "test-rg";
+ ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName);
+ ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId);
+
+ // get the collection of this SAPVirtualInstanceResource
+ SAPVirtualInstanceCollection collection = resourceGroupResource.GetSAPVirtualInstances();
+
+ // invoke the operation
+ string sapVirtualInstanceName = "X00";
+ SAPVirtualInstanceData data = new SAPVirtualInstanceData(new AzureLocation("westcentralus"))
+ {
+ Properties = new SAPVirtualInstanceProperties(SAPEnvironmentType.Prod, SAPProductType.S4HANA, new DeploymentWithOSConfiguration()
+ {
+ AppLocation = "eastus",
+ InfrastructureConfiguration = new ThreeTierConfiguration("X00-RG", new CentralServerConfiguration("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet", new VirtualMachineConfiguration("Standard_E16ds_v4", new ImageReference()
+ {
+ Publisher = "RedHat",
+ Offer = "RHEL-SAP",
+ Sku = "84sapha-gen2",
+ Version = "latest",
+ }, new OSProfile()
+ {
+ AdminUsername = "{your-username}",
+ OSConfiguration = new LinuxConfiguration()
+ {
+ DisablePasswordAuthentication = true,
+ SshKeyPair = new SshKeyPair()
+ {
+ PublicKey = "abc",
+ PrivateKey = "xyz",
+ },
+ },
+ }), 1L), new ApplicationServerConfiguration("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet", new VirtualMachineConfiguration("Standard_E32ds_v4", new ImageReference()
+ {
+ Publisher = "RedHat",
+ Offer = "RHEL-SAP",
+ Sku = "84sapha-gen2",
+ Version = "latest",
+ }, new OSProfile()
+ {
+ AdminUsername = "{your-username}",
+ OSConfiguration = new LinuxConfiguration()
+ {
+ DisablePasswordAuthentication = true,
+ SshKeyPair = new SshKeyPair()
+ {
+ PublicKey = "abc",
+ PrivateKey = "xyz",
+ },
+ },
+ }), 6L), new DatabaseConfiguration("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/dbsubnet", new VirtualMachineConfiguration("Standard_M32ts", new ImageReference()
+ {
+ Publisher = "RedHat",
+ Offer = "RHEL-SAP",
+ Sku = "84sapha-gen2",
+ Version = "latest",
+ }, new OSProfile()
+ {
+ AdminUsername = "{your-username}",
+ OSConfiguration = new LinuxConfiguration()
+ {
+ DisablePasswordAuthentication = true,
+ SshKeyPair = new SshKeyPair()
+ {
+ PublicKey = "abc",
+ PrivateKey = "xyz",
+ },
+ },
+ }), 1L)
+ {
+ DatabaseType = SAPDatabaseType.HANA,
+ }),
+ OSSapConfiguration = new OSSapConfiguration()
+ {
+ SapFqdn = "xyz.test.com",
+ },
+ }),
+ Tags =
+{
+},
+ };
+ ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, sapVirtualInstanceName, data);
+ SAPVirtualInstanceResource 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
+ SAPVirtualInstanceData 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_CreateInfrastructureWithOSConfigurationForHASystemWithAvailabilitySetRecommended()
+ {
+ // Generated from example definition: 2024-09-01/SapVirtualInstances_CreateInfraOsHaAvailabilitySetRecommended.json
+ // this example is just showing the usage of "SAPVirtualInstance_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
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ResourceGroupResource created on azure
+ // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource
+ string subscriptionId = "8e17e36c-42e9-4cd5-a078-7b44883414e0";
+ string resourceGroupName = "test-rg";
+ ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName);
+ ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId);
+
+ // get the collection of this SAPVirtualInstanceResource
+ SAPVirtualInstanceCollection collection = resourceGroupResource.GetSAPVirtualInstances();
+
+ // invoke the operation
+ string sapVirtualInstanceName = "X00";
+ SAPVirtualInstanceData data = new SAPVirtualInstanceData(new AzureLocation("westcentralus"))
+ {
+ Properties = new SAPVirtualInstanceProperties(SAPEnvironmentType.Prod, SAPProductType.S4HANA, new DeploymentWithOSConfiguration()
+ {
+ AppLocation = "eastus",
+ InfrastructureConfiguration = new ThreeTierConfiguration("X00-RG", new CentralServerConfiguration("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet", new VirtualMachineConfiguration("Standard_E16ds_v4", new ImageReference()
+ {
+ Publisher = "RedHat",
+ Offer = "RHEL-SAP",
+ Sku = "84sapha-gen2",
+ Version = "latest",
+ }, new OSProfile()
+ {
+ AdminUsername = "{your-username}",
+ OSConfiguration = new LinuxConfiguration()
+ {
+ DisablePasswordAuthentication = true,
+ SshKeyPair = new SshKeyPair()
+ {
+ PublicKey = "abc",
+ PrivateKey = "xyz",
+ },
+ },
+ }), 2L), new ApplicationServerConfiguration("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet", new VirtualMachineConfiguration("Standard_E32ds_v4", new ImageReference()
+ {
+ Publisher = "RedHat",
+ Offer = "RHEL-SAP",
+ Sku = "84sapha-gen2",
+ Version = "latest",
+ }, new OSProfile()
+ {
+ AdminUsername = "{your-username}",
+ OSConfiguration = new LinuxConfiguration()
+ {
+ DisablePasswordAuthentication = true,
+ SshKeyPair = new SshKeyPair()
+ {
+ PublicKey = "abc",
+ PrivateKey = "xyz",
+ },
+ },
+ }), 6L), new DatabaseConfiguration("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/dbsubnet", new VirtualMachineConfiguration("Standard_M32ts", new ImageReference()
+ {
+ Publisher = "RedHat",
+ Offer = "RHEL-SAP",
+ Sku = "84sapha-gen2",
+ Version = "latest",
+ }, new OSProfile()
+ {
+ AdminUsername = "{your-username}",
+ OSConfiguration = new LinuxConfiguration()
+ {
+ DisablePasswordAuthentication = true,
+ SshKeyPair = new SshKeyPair()
+ {
+ PublicKey = "abc",
+ PrivateKey = "xyz",
+ },
+ },
+ }), 2L)
+ {
+ DatabaseType = SAPDatabaseType.HANA,
+ })
+ {
+ HighAvailabilityType = SAPHighAvailabilityType.AvailabilitySet,
+ },
+ OSSapConfiguration = new OSSapConfiguration()
+ {
+ SapFqdn = "xyz.test.com",
+ },
+ }),
+ Tags =
+{
+},
+ };
+ ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, sapVirtualInstanceName, data);
+ SAPVirtualInstanceResource 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
+ SAPVirtualInstanceData 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_CreateInfrastructureWithOSConfigurationForHASystemWithAvailabilityZoneRecommended()
+ {
+ // Generated from example definition: 2024-09-01/SapVirtualInstances_CreateInfraOsHaAvailabilityZoneRecommended.json
+ // this example is just showing the usage of "SAPVirtualInstance_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
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ResourceGroupResource created on azure
+ // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource
+ string subscriptionId = "8e17e36c-42e9-4cd5-a078-7b44883414e0";
+ string resourceGroupName = "test-rg";
+ ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName);
+ ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId);
+
+ // get the collection of this SAPVirtualInstanceResource
+ SAPVirtualInstanceCollection collection = resourceGroupResource.GetSAPVirtualInstances();
+
+ // invoke the operation
+ string sapVirtualInstanceName = "X00";
+ SAPVirtualInstanceData data = new SAPVirtualInstanceData(new AzureLocation("westcentralus"))
+ {
+ Properties = new SAPVirtualInstanceProperties(SAPEnvironmentType.Prod, SAPProductType.S4HANA, new DeploymentWithOSConfiguration()
+ {
+ AppLocation = "eastus",
+ InfrastructureConfiguration = new ThreeTierConfiguration("X00-RG", new CentralServerConfiguration("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet", new VirtualMachineConfiguration("Standard_E16ds_v4", new ImageReference()
+ {
+ Publisher = "RedHat",
+ Offer = "RHEL-SAP",
+ Sku = "84sapha-gen2",
+ Version = "latest",
+ }, new OSProfile()
+ {
+ AdminUsername = "{your-username}",
+ OSConfiguration = new LinuxConfiguration()
+ {
+ DisablePasswordAuthentication = true,
+ SshKeyPair = new SshKeyPair()
+ {
+ PublicKey = "abc",
+ PrivateKey = "xyz",
+ },
+ },
+ }), 2L), new ApplicationServerConfiguration("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet", new VirtualMachineConfiguration("Standard_E32ds_v4", new ImageReference()
+ {
+ Publisher = "RedHat",
+ Offer = "RHEL-SAP",
+ Sku = "84sapha-gen2",
+ Version = "latest",
+ }, new OSProfile()
+ {
+ AdminUsername = "{your-username}",
+ OSConfiguration = new LinuxConfiguration()
+ {
+ DisablePasswordAuthentication = true,
+ SshKeyPair = new SshKeyPair()
+ {
+ PublicKey = "abc",
+ PrivateKey = "xyz",
+ },
+ },
+ }), 6L), new DatabaseConfiguration("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/dbsubnet", new VirtualMachineConfiguration("Standard_M32ts", new ImageReference()
+ {
+ Publisher = "RedHat",
+ Offer = "RHEL-SAP",
+ Sku = "84sapha-gen2",
+ Version = "latest",
+ }, new OSProfile()
+ {
+ AdminUsername = "{your-username}",
+ OSConfiguration = new LinuxConfiguration()
+ {
+ DisablePasswordAuthentication = true,
+ SshKeyPair = new SshKeyPair()
+ {
+ PublicKey = "abc",
+ PrivateKey = "xyz",
+ },
+ },
+ }), 2L)
+ {
+ DatabaseType = SAPDatabaseType.HANA,
+ })
+ {
+ HighAvailabilityType = SAPHighAvailabilityType.AvailabilityZone,
+ },
+ OSSapConfiguration = new OSSapConfiguration()
+ {
+ SapFqdn = "xyz.test.com",
+ },
+ }),
+ Tags =
+{
+},
+ };
+ ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, sapVirtualInstanceName, data);
+ SAPVirtualInstanceResource 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
+ SAPVirtualInstanceData 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_CreateInfrastructureWithOSConfigurationForSingleServerSystemRecommended()
+ {
+ // Generated from example definition: 2024-09-01/SapVirtualInstances_CreateInfraOsSIngleServerRecommended.json
+ // this example is just showing the usage of "SAPVirtualInstance_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
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ResourceGroupResource created on azure
+ // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource
+ string subscriptionId = "8e17e36c-42e9-4cd5-a078-7b44883414e0";
+ string resourceGroupName = "test-rg";
+ ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName);
+ ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId);
+
+ // get the collection of this SAPVirtualInstanceResource
+ SAPVirtualInstanceCollection collection = resourceGroupResource.GetSAPVirtualInstances();
+
+ // invoke the operation
+ string sapVirtualInstanceName = "X00";
+ SAPVirtualInstanceData data = new SAPVirtualInstanceData(new AzureLocation("westcentralus"))
+ {
+ Properties = new SAPVirtualInstanceProperties(SAPEnvironmentType.NonProd, SAPProductType.S4HANA, new DeploymentWithOSConfiguration()
+ {
+ AppLocation = "eastus",
+ InfrastructureConfiguration = new SingleServerConfiguration("X00-RG", "/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet", new VirtualMachineConfiguration("Standard_E32ds_v4", new ImageReference()
+ {
+ Publisher = "RedHat",
+ Offer = "RHEL-SAP",
+ Sku = "84sapha-gen2",
+ Version = "latest",
+ }, new OSProfile()
+ {
+ AdminUsername = "{your-username}",
+ OSConfiguration = new LinuxConfiguration()
+ {
+ DisablePasswordAuthentication = true,
+ SshKeyPair = new SshKeyPair()
+ {
+ PublicKey = "abc",
+ PrivateKey = "xyz",
+ },
+ },
+ }))
+ {
+ IsSecondaryIPEnabled = true,
+ DatabaseType = SAPDatabaseType.HANA,
+ },
+ OSSapConfiguration = new OSSapConfiguration()
+ {
+ SapFqdn = "xyz.test.com",
+ },
+ }),
+ Tags =
+{
+},
+ };
+ ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, sapVirtualInstanceName, data);
+ SAPVirtualInstanceResource 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
+ SAPVirtualInstanceData 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_CreateInfrastructureOnlyForSingleServerSystem()
+ {
+ // Generated from example definition: 2024-09-01/SapVirtualInstances_CreateInfraSingleServer.json
+ // this example is just showing the usage of "SAPVirtualInstance_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
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ResourceGroupResource created on azure
+ // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource
+ string subscriptionId = "8e17e36c-42e9-4cd5-a078-7b44883414e0";
+ string resourceGroupName = "test-rg";
+ ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName);
+ ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId);
+
+ // get the collection of this SAPVirtualInstanceResource
+ SAPVirtualInstanceCollection collection = resourceGroupResource.GetSAPVirtualInstances();
+
+ // invoke the operation
+ string sapVirtualInstanceName = "X00";
+ SAPVirtualInstanceData data = new SAPVirtualInstanceData(new AzureLocation("westcentralus"))
+ {
+ Properties = new SAPVirtualInstanceProperties(SAPEnvironmentType.NonProd, SAPProductType.S4HANA, new DeploymentConfiguration()
+ {
+ AppLocation = "eastus",
+ InfrastructureConfiguration = new SingleServerConfiguration("X00-RG", "/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet", new VirtualMachineConfiguration("Standard_E32ds_v4", new ImageReference()
+ {
+ Publisher = "RedHat",
+ Offer = "RHEL-SAP",
+ Sku = "84sapha-gen2",
+ Version = "latest",
+ }, new OSProfile()
+ {
+ AdminUsername = "{your-username}",
+ OSConfiguration = new LinuxConfiguration()
+ {
+ DisablePasswordAuthentication = true,
+ SshPublicKeys =
+{
+new SshPublicKey()
+{
+KeyData = "ssh-rsa public key",
+}
+},
+ },
+ }))
+ {
+ IsSecondaryIPEnabled = true,
+ DatabaseType = SAPDatabaseType.HANA,
+ },
+ }),
+ Tags =
+{
+},
+ };
+ ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, sapVirtualInstanceName, data);
+ SAPVirtualInstanceResource 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
+ SAPVirtualInstanceData 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_CreateInfrastructureWithAnExistingSAPTransportDirectoryFileshare()
+ {
+ // Generated from example definition: 2024-09-01/SapVirtualInstances_CreateInfraWithExistingFileshare.json
+ // this example is just showing the usage of "SAPVirtualInstance_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
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ResourceGroupResource created on azure
+ // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource
+ string subscriptionId = "8e17e36c-42e9-4cd5-a078-7b44883414e0";
+ string resourceGroupName = "test-rg";
+ ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName);
+ ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId);
+
+ // get the collection of this SAPVirtualInstanceResource
+ SAPVirtualInstanceCollection collection = resourceGroupResource.GetSAPVirtualInstances();
+
+ // invoke the operation
+ string sapVirtualInstanceName = "X00";
+ SAPVirtualInstanceData data = new SAPVirtualInstanceData(new AzureLocation("westcentralus"))
+ {
+ Properties = new SAPVirtualInstanceProperties(SAPEnvironmentType.Prod, SAPProductType.S4HANA, new DeploymentWithOSConfiguration()
+ {
+ AppLocation = "eastus",
+ InfrastructureConfiguration = new ThreeTierConfiguration("X00-RG", new CentralServerConfiguration("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet", new VirtualMachineConfiguration("Standard_E16ds_v4", new ImageReference()
+ {
+ Publisher = "RedHat",
+ Offer = "RHEL-SAP",
+ Sku = "84sapha-gen2",
+ Version = "latest",
+ }, new OSProfile()
+ {
+ AdminUsername = "{your-username}",
+ OSConfiguration = new LinuxConfiguration()
+ {
+ DisablePasswordAuthentication = true,
+ SshKeyPair = new SshKeyPair()
+ {
+ PublicKey = "abc",
+ PrivateKey = "xyz",
+ },
+ },
+ }), 1L), new ApplicationServerConfiguration("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet", new VirtualMachineConfiguration("Standard_E32ds_v4", new ImageReference()
+ {
+ Publisher = "RedHat",
+ Offer = "RHEL-SAP",
+ Sku = "84sapha-gen2",
+ Version = "latest",
+ }, new OSProfile()
+ {
+ AdminUsername = "{your-username}",
+ OSConfiguration = new LinuxConfiguration()
+ {
+ DisablePasswordAuthentication = true,
+ SshKeyPair = new SshKeyPair()
+ {
+ PublicKey = "abc",
+ PrivateKey = "xyz",
+ },
+ },
+ }), 6L), new DatabaseConfiguration("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/dbsubnet", new VirtualMachineConfiguration("Standard_M32ts", new ImageReference()
+ {
+ Publisher = "RedHat",
+ Offer = "RHEL-SAP",
+ Sku = "84sapha-gen2",
+ Version = "latest",
+ }, new OSProfile()
+ {
+ AdminUsername = "{your-username}",
+ OSConfiguration = new LinuxConfiguration()
+ {
+ DisablePasswordAuthentication = true,
+ SshKeyPair = new SshKeyPair()
+ {
+ PublicKey = "abc",
+ PrivateKey = "xyz",
+ },
+ },
+ }), 1L)
+ {
+ DatabaseType = SAPDatabaseType.HANA,
+ })
+ {
+ StorageTransportFileShareConfiguration = new MountFileShareConfiguration("/subscriptions/49d64d54-e888-4c46-a868-1936802b762c/resourceGroups/testrg/providers/Microsoft.Network/privateEndpoints/endpoint", "/subscriptions/49d64d54-e888-4c46-a868-1936802b762c/resourceGroups/testrg/providers/Microsoft.Network/privateEndpoints/endpoint"),
+ },
+ OSSapConfiguration = new OSSapConfiguration()
+ {
+ SapFqdn = "xyz.test.com",
+ },
+ }),
+ Tags =
+{
+},
+ };
+ ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, sapVirtualInstanceName, data);
+ SAPVirtualInstanceResource 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
+ SAPVirtualInstanceData 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_CreateInfrastructureWithANewSAPTransportDirectoryFileshare()
+ {
+ // Generated from example definition: 2024-09-01/SapVirtualInstances_CreateInfraWithNewFileshare.json
+ // this example is just showing the usage of "SAPVirtualInstance_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
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ResourceGroupResource created on azure
+ // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource
+ string subscriptionId = "8e17e36c-42e9-4cd5-a078-7b44883414e0";
+ string resourceGroupName = "test-rg";
+ ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName);
+ ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId);
+
+ // get the collection of this SAPVirtualInstanceResource
+ SAPVirtualInstanceCollection collection = resourceGroupResource.GetSAPVirtualInstances();
+
+ // invoke the operation
+ string sapVirtualInstanceName = "X00";
+ SAPVirtualInstanceData data = new SAPVirtualInstanceData(new AzureLocation("westcentralus"))
+ {
+ Properties = new SAPVirtualInstanceProperties(SAPEnvironmentType.Prod, SAPProductType.S4HANA, new DeploymentWithOSConfiguration()
+ {
+ AppLocation = "eastus",
+ InfrastructureConfiguration = new ThreeTierConfiguration("X00-RG", new CentralServerConfiguration("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet", new VirtualMachineConfiguration("Standard_E16ds_v4", new ImageReference()
+ {
+ Publisher = "RedHat",
+ Offer = "RHEL-SAP",
+ Sku = "84sapha-gen2",
+ Version = "latest",
+ }, new OSProfile()
+ {
+ AdminUsername = "{your-username}",
+ OSConfiguration = new LinuxConfiguration()
+ {
+ DisablePasswordAuthentication = true,
+ SshKeyPair = new SshKeyPair()
+ {
+ PublicKey = "abc",
+ PrivateKey = "xyz",
+ },
+ },
+ }), 1L), new ApplicationServerConfiguration("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet", new VirtualMachineConfiguration("Standard_E32ds_v4", new ImageReference()
+ {
+ Publisher = "RedHat",
+ Offer = "RHEL-SAP",
+ Sku = "84sapha-gen2",
+ Version = "latest",
+ }, new OSProfile()
+ {
+ AdminUsername = "{your-username}",
+ OSConfiguration = new LinuxConfiguration()
+ {
+ DisablePasswordAuthentication = true,
+ SshKeyPair = new SshKeyPair()
+ {
+ PublicKey = "abc",
+ PrivateKey = "xyz",
+ },
+ },
+ }), 6L), new DatabaseConfiguration("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/dbsubnet", new VirtualMachineConfiguration("Standard_M32ts", new ImageReference()
+ {
+ Publisher = "RedHat",
+ Offer = "RHEL-SAP",
+ Sku = "84sapha-gen2",
+ Version = "latest",
+ }, new OSProfile()
+ {
+ AdminUsername = "{your-username}",
+ OSConfiguration = new LinuxConfiguration()
+ {
+ DisablePasswordAuthentication = true,
+ SshKeyPair = new SshKeyPair()
+ {
+ PublicKey = "abc",
+ PrivateKey = "xyz",
+ },
+ },
+ }), 1L)
+ {
+ DatabaseType = SAPDatabaseType.HANA,
+ })
+ {
+ StorageTransportFileShareConfiguration = new CreateAndMountFileShareConfiguration()
+ {
+ ResourceGroup = "rgName",
+ StorageAccountName = "storageName",
+ },
+ },
+ OSSapConfiguration = new OSSapConfiguration()
+ {
+ SapFqdn = "xyz.test.com",
+ },
+ }),
+ Tags =
+{
+},
+ };
+ ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, sapVirtualInstanceName, data);
+ SAPVirtualInstanceResource 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
+ SAPVirtualInstanceData 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_CreateInfrastructureWithOSConfigurationWithTrustedAccessEnabled()
+ {
+ // Generated from example definition: 2024-09-01/SapVirtualInstances_CreateInfraWithOsTrustedAccess.json
+ // this example is just showing the usage of "SAPVirtualInstance_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
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ResourceGroupResource created on azure
+ // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource
+ string subscriptionId = "8e17e36c-42e9-4cd5-a078-7b44883414e0";
+ string resourceGroupName = "test-rg";
+ ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName);
+ ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId);
+
+ // get the collection of this SAPVirtualInstanceResource
+ SAPVirtualInstanceCollection collection = resourceGroupResource.GetSAPVirtualInstances();
+
+ // invoke the operation
+ string sapVirtualInstanceName = "X00";
+ SAPVirtualInstanceData data = new SAPVirtualInstanceData(new AzureLocation("westcentralus"))
+ {
+ Properties = new SAPVirtualInstanceProperties(SAPEnvironmentType.Prod, SAPProductType.S4HANA, new DeploymentWithOSConfiguration()
+ {
+ AppLocation = "eastus",
+ InfrastructureConfiguration = new ThreeTierConfiguration("X00-RG", new CentralServerConfiguration("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet", new VirtualMachineConfiguration("Standard_E16ds_v4", new ImageReference()
+ {
+ Publisher = "RedHat",
+ Offer = "RHEL-SAP",
+ Sku = "84sapha-gen2",
+ Version = "latest",
+ }, new OSProfile()
+ {
+ AdminUsername = "{your-username}",
+ OSConfiguration = new LinuxConfiguration()
+ {
+ DisablePasswordAuthentication = true,
+ SshKeyPair = new SshKeyPair()
+ {
+ PublicKey = "abc",
+ PrivateKey = "xyz",
+ },
+ },
+ }), 1L), new ApplicationServerConfiguration("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet", new VirtualMachineConfiguration("Standard_E32ds_v4", new ImageReference()
+ {
+ Publisher = "RedHat",
+ Offer = "RHEL-SAP",
+ Sku = "84sapha-gen2",
+ Version = "latest",
+ }, new OSProfile()
+ {
+ AdminUsername = "{your-username}",
+ OSConfiguration = new LinuxConfiguration()
+ {
+ DisablePasswordAuthentication = true,
+ SshKeyPair = new SshKeyPair()
+ {
+ PublicKey = "abc",
+ PrivateKey = "xyz",
+ },
+ },
+ }), 6L), new DatabaseConfiguration("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/dbsubnet", new VirtualMachineConfiguration("Standard_M32ts", new ImageReference()
+ {
+ Publisher = "RedHat",
+ Offer = "RHEL-SAP",
+ Sku = "84sapha-gen2",
+ Version = "latest",
+ }, new OSProfile()
+ {
+ AdminUsername = "{your-username}",
+ OSConfiguration = new LinuxConfiguration()
+ {
+ DisablePasswordAuthentication = true,
+ SshKeyPair = new SshKeyPair()
+ {
+ PublicKey = "abc",
+ PrivateKey = "xyz",
+ },
+ },
+ }), 1L)
+ {
+ DatabaseType = SAPDatabaseType.HANA,
+ }),
+ OSSapConfiguration = new OSSapConfiguration()
+ {
+ SapFqdn = "xyz.test.com",
+ },
+ })
+ {
+ ManagedResourcesNetworkAccessType = ManagedResourcesNetworkAccessType.Private,
+ },
+ Tags =
+{
+},
+ };
+ ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, sapVirtualInstanceName, data);
+ SAPVirtualInstanceResource 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
+ SAPVirtualInstanceData 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_CreateInfrastructureWithoutASAPTransportDirectoryFileshare()
+ {
+ // Generated from example definition: 2024-09-01/SapVirtualInstances_CreateInfraWithoutFileshare.json
+ // this example is just showing the usage of "SAPVirtualInstance_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
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ResourceGroupResource created on azure
+ // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource
+ string subscriptionId = "8e17e36c-42e9-4cd5-a078-7b44883414e0";
+ string resourceGroupName = "test-rg";
+ ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName);
+ ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId);
+
+ // get the collection of this SAPVirtualInstanceResource
+ SAPVirtualInstanceCollection collection = resourceGroupResource.GetSAPVirtualInstances();
+
+ // invoke the operation
+ string sapVirtualInstanceName = "X00";
+ SAPVirtualInstanceData data = new SAPVirtualInstanceData(new AzureLocation("westcentralus"))
+ {
+ Properties = new SAPVirtualInstanceProperties(SAPEnvironmentType.Prod, SAPProductType.S4HANA, new DeploymentWithOSConfiguration()
+ {
+ AppLocation = "eastus",
+ InfrastructureConfiguration = new ThreeTierConfiguration("X00-RG", new CentralServerConfiguration("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet", new VirtualMachineConfiguration("Standard_E16ds_v4", new ImageReference()
+ {
+ Publisher = "RedHat",
+ Offer = "RHEL-SAP",
+ Sku = "84sapha-gen2",
+ Version = "latest",
+ }, new OSProfile()
+ {
+ AdminUsername = "{your-username}",
+ OSConfiguration = new LinuxConfiguration()
+ {
+ DisablePasswordAuthentication = true,
+ SshKeyPair = new SshKeyPair()
+ {
+ PublicKey = "abc",
+ PrivateKey = "xyz",
+ },
+ },
+ }), 1L), new ApplicationServerConfiguration("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet", new VirtualMachineConfiguration("Standard_E32ds_v4", new ImageReference()
+ {
+ Publisher = "RedHat",
+ Offer = "RHEL-SAP",
+ Sku = "84sapha-gen2",
+ Version = "latest",
+ }, new OSProfile()
+ {
+ AdminUsername = "{your-username}",
+ OSConfiguration = new LinuxConfiguration()
+ {
+ DisablePasswordAuthentication = true,
+ SshKeyPair = new SshKeyPair()
+ {
+ PublicKey = "abc",
+ PrivateKey = "xyz",
+ },
+ },
+ }), 6L), new DatabaseConfiguration("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/dbsubnet", new VirtualMachineConfiguration("Standard_M32ts", new ImageReference()
+ {
+ Publisher = "RedHat",
+ Offer = "RHEL-SAP",
+ Sku = "84sapha-gen2",
+ Version = "latest",
+ }, new OSProfile()
+ {
+ AdminUsername = "{your-username}",
+ OSConfiguration = new LinuxConfiguration()
+ {
+ DisablePasswordAuthentication = true,
+ SshKeyPair = new SshKeyPair()
+ {
+ PublicKey = "abc",
+ PrivateKey = "xyz",
+ },
+ },
+ }), 1L)
+ {
+ DatabaseType = SAPDatabaseType.HANA,
+ })
+ {
+ StorageTransportFileShareConfiguration = new SkipFileShareConfiguration(),
+ },
+ OSSapConfiguration = new OSSapConfiguration()
+ {
+ SapFqdn = "xyz.test.com",
+ },
+ }),
+ Tags =
+{
+},
+ };
+ ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, sapVirtualInstanceName, data);
+ SAPVirtualInstanceResource 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
+ SAPVirtualInstanceData 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_InstallSAPSoftwareOnDistributedSystem()
+ {
+ // Generated from example definition: 2024-09-01/SapVirtualInstances_CreateInstallDS.json
+ // this example is just showing the usage of "SAPVirtualInstance_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
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ResourceGroupResource created on azure
+ // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource
+ string subscriptionId = "8e17e36c-42e9-4cd5-a078-7b44883414e0";
+ string resourceGroupName = "test-rg";
+ ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName);
+ ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId);
+
+ // get the collection of this SAPVirtualInstanceResource
+ SAPVirtualInstanceCollection collection = resourceGroupResource.GetSAPVirtualInstances();
+
+ // invoke the operation
+ string sapVirtualInstanceName = "X00";
+ SAPVirtualInstanceData data = new SAPVirtualInstanceData(new AzureLocation("eastus2"))
+ {
+ Properties = new SAPVirtualInstanceProperties(SAPEnvironmentType.Prod, SAPProductType.S4HANA, new DeploymentWithOSConfiguration()
+ {
+ AppLocation = "eastus",
+ InfrastructureConfiguration = new ThreeTierConfiguration("{{resourcegrp}}", new CentralServerConfiguration("/subscriptions/8e17e36c-42e9-4cd5-a078-7b44883414e0/resourceGroups/test-rg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/app", new VirtualMachineConfiguration("Standard_E4ds_v4", new ImageReference()
+ {
+ Publisher = "RedHat",
+ Offer = "RHEL-SAP-HA",
+ Sku = "8.2",
+ Version = "8.2.2021091201",
+ }, new OSProfile()
+ {
+ AdminUsername = "azureuser",
+ OSConfiguration = new LinuxConfiguration()
+ {
+ DisablePasswordAuthentication = true,
+ SshKeyPair = new SshKeyPair()
+ {
+ PublicKey = "{{sshkey}}",
+ PrivateKey = "{{privateKey}}",
+ },
+ },
+ }), 1L), new ApplicationServerConfiguration("/subscriptions/8e17e36c-42e9-4cd5-a078-7b44883414e0/resourceGroups/test-rg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/app", new VirtualMachineConfiguration("Standard_E4ds_v4", new ImageReference()
+ {
+ Publisher = "RedHat",
+ Offer = "RHEL-SAP-HA",
+ Sku = "8.2",
+ Version = "8.2.2021091201",
+ }, new OSProfile()
+ {
+ AdminUsername = "azureuser",
+ OSConfiguration = new LinuxConfiguration()
+ {
+ DisablePasswordAuthentication = true,
+ SshKeyPair = new SshKeyPair()
+ {
+ PublicKey = "{{sshkey}}",
+ PrivateKey = "{{privateKey}}",
+ },
+ },
+ }), 2L), new DatabaseConfiguration("/subscriptions/8e17e36c-42e9-4cd5-a078-7b44883414e0/resourceGroups/test-rg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/app", new VirtualMachineConfiguration("Standard_M32ts", new ImageReference()
+ {
+ Publisher = "RedHat",
+ Offer = "RHEL-SAP-HA",
+ Sku = "8.2",
+ Version = "8.2.2021091201",
+ }, new OSProfile()
+ {
+ AdminUsername = "azureuser",
+ OSConfiguration = new LinuxConfiguration()
+ {
+ DisablePasswordAuthentication = true,
+ SshKeyPair = new SshKeyPair()
+ {
+ PublicKey = "{{sshkey}}",
+ PrivateKey = "{{privateKey}}",
+ },
+ },
+ }), 1L))
+ {
+ IsSecondaryIPEnabled = true,
+ },
+ SoftwareConfiguration = new SAPInstallWithoutOSConfigSoftwareConfiguration("https://teststorageaccount.blob.core.windows.net/sapbits/sapfiles/boms/S41909SPS03_v0011ms/S41909SPS03_v0011ms.yaml", "/subscriptions/8e17e36c-42e9-4cd5-a078-7b44883414e0/resourceGroups/test-rg/providers/Microsoft.Storage/storageAccounts/teststorageaccount", "SAP S/4HANA 1909 SPS 03"),
+ OSSapConfiguration = new OSSapConfiguration()
+ {
+ SapFqdn = "sap.bpaas.com",
+ },
+ }),
+ Tags =
+{
+["created by"] = "azureuser",
+},
+ };
+ ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, sapVirtualInstanceName, data);
+ SAPVirtualInstanceResource 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
+ SAPVirtualInstanceData 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_InstallSAPSoftwareOnSingleServerSystem()
+ {
+ // Generated from example definition: 2024-09-01/SapVirtualInstances_CreateInstallSingleServer.json
+ // this example is just showing the usage of "SAPVirtualInstance_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
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ResourceGroupResource created on azure
+ // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource
+ string subscriptionId = "8e17e36c-42e9-4cd5-a078-7b44883414e0";
+ string resourceGroupName = "test-rg";
+ ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName);
+ ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId);
+
+ // get the collection of this SAPVirtualInstanceResource
+ SAPVirtualInstanceCollection collection = resourceGroupResource.GetSAPVirtualInstances();
+
+ // invoke the operation
+ string sapVirtualInstanceName = "X00";
+ SAPVirtualInstanceData data = new SAPVirtualInstanceData(new AzureLocation("eastus2"))
+ {
+ Properties = new SAPVirtualInstanceProperties(SAPEnvironmentType.NonProd, SAPProductType.S4HANA, new DeploymentWithOSConfiguration()
+ {
+ AppLocation = "eastus",
+ InfrastructureConfiguration = new SingleServerConfiguration("test-rg", "/subscriptions/8e17e36c-42e9-4cd5-a078-7b44883414e0/resourceGroups/test-rg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/testsubnet", new VirtualMachineConfiguration("Standard_E32ds_v4", new ImageReference()
+ {
+ Publisher = "SUSE",
+ Offer = "SLES-SAP",
+ Sku = "12-sp4-gen2",
+ Version = "2022.02.01",
+ }, new OSProfile()
+ {
+ AdminUsername = "azureappadmin",
+ OSConfiguration = new LinuxConfiguration()
+ {
+ DisablePasswordAuthentication = true,
+ SshKeyPair = new SshKeyPair()
+ {
+ PublicKey = "{{sshkey}}",
+ PrivateKey = "{{privateKey}}",
+ },
+ },
+ })),
+ SoftwareConfiguration = new SAPInstallWithoutOSConfigSoftwareConfiguration("https://teststorageaccount.blob.core.windows.net/sapbits/sapfiles/boms/S41909SPS03_v0011ms/S41909SPS03_v0011ms.yaml", "/subscriptions/8e17e36c-42e9-4cd5-a078-7b44883414e0/resourceGroups/test-rg/providers/Microsoft.Storage/storageAccounts/teststorageaccount", "SAP S/4HANA 1909 SPS 03"),
+ OSSapConfiguration = new OSSapConfiguration()
+ {
+ SapFqdn = "sap.bpaas.com",
+ },
+ }),
+ Tags =
+{
+},
+ };
+ ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, sapVirtualInstanceName, data);
+ SAPVirtualInstanceResource 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
+ SAPVirtualInstanceData 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_RegisterExistingSAPSystemAsVirtualInstanceForSAPSolutions()
+ {
+ // Generated from example definition: 2024-09-01/SapVirtualInstances_CreateRegisterSapSolutions.json
+ // this example is just showing the usage of "SAPVirtualInstance_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
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ResourceGroupResource created on azure
+ // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource
+ string subscriptionId = "8e17e36c-42e9-4cd5-a078-7b44883414e0";
+ string resourceGroupName = "test-rg";
+ ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName);
+ ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId);
+
+ // get the collection of this SAPVirtualInstanceResource
+ SAPVirtualInstanceCollection collection = resourceGroupResource.GetSAPVirtualInstances();
+
+ // invoke the operation
+ string sapVirtualInstanceName = "X00";
+ SAPVirtualInstanceData data = new SAPVirtualInstanceData(new AzureLocation("northeurope"))
+ {
+ Properties = new SAPVirtualInstanceProperties(SAPEnvironmentType.NonProd, SAPProductType.S4HANA, new DiscoveryConfiguration()
+ {
+ CentralServerVmId = "/subscriptions/8e17e36c-42e9-4cd5-a078-7b44883414e0/resourceGroups/test-rg/providers/Microsoft.Compute/virtualMachines/sapq20scsvm0",
+ }),
+ Tags =
+{
+["createdby"] = "abc@microsoft.com",
+["test"] = "abc",
+},
+ };
+ ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, sapVirtualInstanceName, data);
+ SAPVirtualInstanceResource 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
+ SAPVirtualInstanceData 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_RegisterExistingSAPSystemAsVirtualInstanceForSAPSolutionsWithOptionalCustomizations()
+ {
+ // Generated from example definition: 2024-09-01/SapVirtualInstances_CreateRegisterSapSolutionsCustom.json
+ // this example is just showing the usage of "SAPVirtualInstance_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
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ResourceGroupResource created on azure
+ // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource
+ string subscriptionId = "8e17e36c-42e9-4cd5-a078-7b44883414e0";
+ string resourceGroupName = "test-rg";
+ ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName);
+ ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId);
+
+ // get the collection of this SAPVirtualInstanceResource
+ SAPVirtualInstanceCollection collection = resourceGroupResource.GetSAPVirtualInstances();
+
+ // invoke the operation
+ string sapVirtualInstanceName = "X00";
+ SAPVirtualInstanceData data = new SAPVirtualInstanceData(new AzureLocation("northeurope"))
+ {
+ Properties = new SAPVirtualInstanceProperties(SAPEnvironmentType.NonProd, SAPProductType.S4HANA, new DiscoveryConfiguration()
+ {
+ CentralServerVmId = "/subscriptions/8e17e36c-42e9-4cd5-a078-7b44883414e0/resourceGroups/test-rg/providers/Microsoft.Compute/virtualMachines/sapq20scsvm0",
+ ManagedRgStorageAccountName = "q20saacssgrs",
+ }),
+ Tags =
+{
+["createdby"] = "abc@microsoft.com",
+["test"] = "abc",
+},
+ };
+ ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, sapVirtualInstanceName, data);
+ SAPVirtualInstanceResource 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
+ SAPVirtualInstanceData 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_RegisterWithTrustedAccessEnabled()
+ {
+ // Generated from example definition: 2024-09-01/SapVirtualInstances_CreateRegisterWithTrustedAccess.json
+ // this example is just showing the usage of "SAPVirtualInstance_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
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ResourceGroupResource created on azure
+ // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource
+ string subscriptionId = "8e17e36c-42e9-4cd5-a078-7b44883414e0";
+ string resourceGroupName = "test-rg";
+ ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName);
+ ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId);
+
+ // get the collection of this SAPVirtualInstanceResource
+ SAPVirtualInstanceCollection collection = resourceGroupResource.GetSAPVirtualInstances();
+
+ // invoke the operation
+ string sapVirtualInstanceName = "X00";
+ SAPVirtualInstanceData data = new SAPVirtualInstanceData(new AzureLocation("northeurope"))
+ {
+ Properties = new SAPVirtualInstanceProperties(SAPEnvironmentType.NonProd, SAPProductType.S4HANA, new DiscoveryConfiguration()
+ {
+ CentralServerVmId = "/subscriptions/8e17e36c-42e9-4cd5-a078-7b44883414e0/resourceGroups/test-rg/providers/Microsoft.Compute/virtualMachines/sapq20scsvm0",
+ })
+ {
+ ManagedResourcesNetworkAccessType = ManagedResourcesNetworkAccessType.Private,
+ },
+ Tags =
+{
+["createdby"] = "abc@microsoft.com",
+["test"] = "abc",
+},
+ };
+ ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, sapVirtualInstanceName, data);
+ SAPVirtualInstanceResource 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
+ SAPVirtualInstanceData 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 GetAll_SAPVirtualInstancesListByResourceGroup()
+ {
+ // Generated from example definition: 2024-09-01/SapVirtualInstances_ListByResourceGroup.json
+ // this example is just showing the usage of "SAPVirtualInstance_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
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ResourceGroupResource created on azure
+ // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource
+ string subscriptionId = "6d875e77-e412-4d7d-9af4-8895278b4443";
+ string resourceGroupName = "test-rg";
+ ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName);
+ ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId);
+
+ // get the collection of this SAPVirtualInstanceResource
+ SAPVirtualInstanceCollection collection = resourceGroupResource.GetSAPVirtualInstances();
+
+ // invoke the operation and iterate over the result
+ await foreach (SAPVirtualInstanceResource item in collection.GetAllAsync())
+ {
+ // the variable item 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
+ SAPVirtualInstanceData resourceData = item.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
+ Console.WriteLine("Succeeded");
+ }
+ }
+}
diff --git a/sdk/workloadssapvirtualinstance/Azure.ResourceManager.SapVirtualInstances/samples/Generated/Samples/Sample_SAPVirtualInstanceResource.cs b/sdk/workloadssapvirtualinstance/Azure.ResourceManager.SapVirtualInstances/samples/Generated/Samples/Sample_SAPVirtualInstanceResource.cs
new file mode 100644
index 000000000000..642783f0610f
--- /dev/null
+++ b/sdk/workloadssapvirtualinstance/Azure.ResourceManager.SapVirtualInstances/samples/Generated/Samples/Sample_SAPVirtualInstanceResource.cs
@@ -0,0 +1,736 @@
+// 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.Resources;
+using Azure.ResourceManager.SapVirtualInstances.Models;
+using NUnit.Framework;
+
+namespace Azure.ResourceManager.SapVirtualInstances.Samples
+{
+ public partial class Sample_SAPVirtualInstanceResource
+ {
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Get_SAPVirtualInstancesGet()
+ {
+ // Generated from example definition: 2024-09-01/SapVirtualInstances_Get.json
+ // this example is just showing the usage of "SAPVirtualInstance_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 SAPVirtualInstanceResource created on azure
+ // for more information of creating SAPVirtualInstanceResource, please refer to the document of SAPVirtualInstanceResource
+ string subscriptionId = "8e17e36c-42e9-4cd5-a078-7b44883414e0";
+ string resourceGroupName = "test-rg";
+ string sapVirtualInstanceName = "X00";
+ ResourceIdentifier sapVirtualInstanceResourceId = SAPVirtualInstanceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, sapVirtualInstanceName);
+ SAPVirtualInstanceResource sapVirtualInstance = client.GetSAPVirtualInstanceResource(sapVirtualInstanceResourceId);
+
+ // invoke the operation
+ SAPVirtualInstanceResource result = await sapVirtualInstance.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
+ SAPVirtualInstanceData 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 Get_SAPVirtualInstancesGetWithACSSInstallationBlocked()
+ {
+ // Generated from example definition: 2024-09-01/SapVirtualInstances_GetAcssInstallationBlocked.json
+ // this example is just showing the usage of "SAPVirtualInstance_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 SAPVirtualInstanceResource created on azure
+ // for more information of creating SAPVirtualInstanceResource, please refer to the document of SAPVirtualInstanceResource
+ string subscriptionId = "8e17e36c-42e9-4cd5-a078-7b44883414e0";
+ string resourceGroupName = "test-rg";
+ string sapVirtualInstanceName = "X00";
+ ResourceIdentifier sapVirtualInstanceResourceId = SAPVirtualInstanceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, sapVirtualInstanceName);
+ SAPVirtualInstanceResource sapVirtualInstance = client.GetSAPVirtualInstanceResource(sapVirtualInstanceResourceId);
+
+ // invoke the operation
+ SAPVirtualInstanceResource result = await sapVirtualInstance.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
+ SAPVirtualInstanceData 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_SAPVirtualInstancesUpdate()
+ {
+ // Generated from example definition: 2024-09-01/SapVirtualInstances_Update.json
+ // this example is just showing the usage of "SAPVirtualInstance_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 SAPVirtualInstanceResource created on azure
+ // for more information of creating SAPVirtualInstanceResource, please refer to the document of SAPVirtualInstanceResource
+ string subscriptionId = "8e17e36c-42e9-4cd5-a078-7b44883414e0";
+ string resourceGroupName = "test-rg";
+ string sapVirtualInstanceName = "X00";
+ ResourceIdentifier sapVirtualInstanceResourceId = SAPVirtualInstanceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, sapVirtualInstanceName);
+ SAPVirtualInstanceResource sapVirtualInstance = client.GetSAPVirtualInstanceResource(sapVirtualInstanceResourceId);
+
+ // invoke the operation
+ SAPVirtualInstancePatch patch = new SAPVirtualInstancePatch()
+ {
+ Tags =
+{
+["key1"] = "svi1",
+},
+ Identity = new SAPVirtualInstanceIdentity(SAPVirtualInstanceIdentityType.None),
+ };
+ ArmOperation lro = await sapVirtualInstance.UpdateAsync(WaitUntil.Completed, patch);
+ SAPVirtualInstanceResource 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
+ SAPVirtualInstanceData 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_SAPVirtualInstancesTrustedAccessEnableUpdate()
+ {
+ // Generated from example definition: 2024-09-01/SapVirtualInstances_UpdateTrustedAccess.json
+ // this example is just showing the usage of "SAPVirtualInstance_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 SAPVirtualInstanceResource created on azure
+ // for more information of creating SAPVirtualInstanceResource, please refer to the document of SAPVirtualInstanceResource
+ string subscriptionId = "8e17e36c-42e9-4cd5-a078-7b44883414e0";
+ string resourceGroupName = "test-rg";
+ string sapVirtualInstanceName = "X00";
+ ResourceIdentifier sapVirtualInstanceResourceId = SAPVirtualInstanceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, sapVirtualInstanceName);
+ SAPVirtualInstanceResource sapVirtualInstance = client.GetSAPVirtualInstanceResource(sapVirtualInstanceResourceId);
+
+ // invoke the operation
+ SAPVirtualInstancePatch patch = new SAPVirtualInstancePatch()
+ {
+ Tags =
+{
+["key1"] = "svi1",
+},
+ Identity = new SAPVirtualInstanceIdentity(SAPVirtualInstanceIdentityType.None),
+ UpdateSAPVirtualInstanceManagedResourcesNetworkAccessType = ManagedResourcesNetworkAccessType.Private,
+ };
+ ArmOperation lro = await sapVirtualInstance.UpdateAsync(WaitUntil.Completed, patch);
+ SAPVirtualInstanceResource 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
+ SAPVirtualInstanceData 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 Delete_SAPVirtualInstancesDelete()
+ {
+ // Generated from example definition: 2024-09-01/SapVirtualInstances_Delete.json
+ // this example is just showing the usage of "SAPVirtualInstance_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
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this SAPVirtualInstanceResource created on azure
+ // for more information of creating SAPVirtualInstanceResource, please refer to the document of SAPVirtualInstanceResource
+ string subscriptionId = "6d875e77-e412-4d7d-9af4-8895278b4443";
+ string resourceGroupName = "test-rg";
+ string sapVirtualInstanceName = "X00";
+ ResourceIdentifier sapVirtualInstanceResourceId = SAPVirtualInstanceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, sapVirtualInstanceName);
+ SAPVirtualInstanceResource sapVirtualInstance = client.GetSAPVirtualInstanceResource(sapVirtualInstanceResourceId);
+
+ // invoke the operation
+ await sapVirtualInstance.DeleteAsync(WaitUntil.Completed);
+
+ Console.WriteLine("Succeeded");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task GetSAPVirtualInstances_SAPVirtualInstancesListBySubscription()
+ {
+ // Generated from example definition: 2024-09-01/SapVirtualInstances_ListBySubscription.json
+ // this example is just showing the usage of "SAPVirtualInstance_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
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this SubscriptionResource created on azure
+ // for more information of creating SubscriptionResource, please refer to the document of SubscriptionResource
+ string subscriptionId = "6d875e77-e412-4d7d-9af4-8895278b4443";
+ ResourceIdentifier subscriptionResourceId = SubscriptionResource.CreateResourceIdentifier(subscriptionId);
+ SubscriptionResource subscriptionResource = client.GetSubscriptionResource(subscriptionResourceId);
+
+ // invoke the operation and iterate over the result
+ await foreach (SAPVirtualInstanceResource item in subscriptionResource.GetSAPVirtualInstancesAsync())
+ {
+ // the variable item 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
+ SAPVirtualInstanceData resourceData = item.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
+ Console.WriteLine("Succeeded");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Start_SAPVirtualInstancesStart()
+ {
+ // Generated from example definition: 2024-09-01/SapVirtualInstances_Start.json
+ // this example is just showing the usage of "SAPVirtualInstances_Start" 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 SAPVirtualInstanceResource created on azure
+ // for more information of creating SAPVirtualInstanceResource, please refer to the document of SAPVirtualInstanceResource
+ string subscriptionId = "8e17e36c-42e9-4cd5-a078-7b44883414e0";
+ string resourceGroupName = "test-rg";
+ string sapVirtualInstanceName = "X00";
+ ResourceIdentifier sapVirtualInstanceResourceId = SAPVirtualInstanceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, sapVirtualInstanceName);
+ SAPVirtualInstanceResource sapVirtualInstance = client.GetSAPVirtualInstanceResource(sapVirtualInstanceResourceId);
+
+ // invoke the operation
+ StartRequest body = new StartRequest()
+ {
+ StartVm = true,
+ };
+ ArmOperation lro = await sapVirtualInstance.StartAsync(WaitUntil.Completed, body: body);
+ OperationStatusResult result = lro.Value;
+
+ Console.WriteLine($"Succeeded: {result}");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Start_SAPVirtualInstancesStartWithInfraOperations()
+ {
+ // Generated from example definition: 2024-09-01/SapVirtualInstances_StartWithInfraOperations.json
+ // this example is just showing the usage of "SAPVirtualInstances_Start" 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 SAPVirtualInstanceResource created on azure
+ // for more information of creating SAPVirtualInstanceResource, please refer to the document of SAPVirtualInstanceResource
+ string subscriptionId = "8e17e36c-42e9-4cd5-a078-7b44883414e0";
+ string resourceGroupName = "test-rg";
+ string sapVirtualInstanceName = "X00";
+ ResourceIdentifier sapVirtualInstanceResourceId = SAPVirtualInstanceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, sapVirtualInstanceName);
+ SAPVirtualInstanceResource sapVirtualInstance = client.GetSAPVirtualInstanceResource(sapVirtualInstanceResourceId);
+
+ // invoke the operation
+ StartRequest body = new StartRequest()
+ {
+ StartVm = true,
+ };
+ ArmOperation lro = await sapVirtualInstance.StartAsync(WaitUntil.Completed, body: body);
+ OperationStatusResult result = lro.Value;
+
+ Console.WriteLine($"Succeeded: {result}");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Stop_SoftStopOfSapVirtualInstancesStop()
+ {
+ // Generated from example definition: 2024-09-01/SapVirtualInstances_SoftStop.json
+ // this example is just showing the usage of "SAPVirtualInstances_Stop" 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 SAPVirtualInstanceResource created on azure
+ // for more information of creating SAPVirtualInstanceResource, please refer to the document of SAPVirtualInstanceResource
+ string subscriptionId = "8e17e36c-42e9-4cd5-a078-7b44883414e0";
+ string resourceGroupName = "test-rg";
+ string sapVirtualInstanceName = "X00";
+ ResourceIdentifier sapVirtualInstanceResourceId = SAPVirtualInstanceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, sapVirtualInstanceName);
+ SAPVirtualInstanceResource sapVirtualInstance = client.GetSAPVirtualInstanceResource(sapVirtualInstanceResourceId);
+
+ // invoke the operation
+ StopRequest body = new StopRequest()
+ {
+ SoftStopTimeoutSeconds = 300L,
+ };
+ ArmOperation lro = await sapVirtualInstance.StopAsync(WaitUntil.Completed, body: body);
+ OperationStatusResult result = lro.Value;
+
+ Console.WriteLine($"Succeeded: {result}");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Stop_SoftStopTheVirtualMachineSAndTheSAPSystemOnIt()
+ {
+ // Generated from example definition: 2024-09-01/SapVirtualInstances_SoftStopVMAndSystem.json
+ // this example is just showing the usage of "SAPVirtualInstances_Stop" 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 SAPVirtualInstanceResource created on azure
+ // for more information of creating SAPVirtualInstanceResource, please refer to the document of SAPVirtualInstanceResource
+ string subscriptionId = "8e17e36c-42e9-4cd5-a078-7b44883414e0";
+ string resourceGroupName = "test-rg";
+ string sapVirtualInstanceName = "X00";
+ ResourceIdentifier sapVirtualInstanceResourceId = SAPVirtualInstanceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, sapVirtualInstanceName);
+ SAPVirtualInstanceResource sapVirtualInstance = client.GetSAPVirtualInstanceResource(sapVirtualInstanceResourceId);
+
+ // invoke the operation
+ StopRequest body = new StopRequest()
+ {
+ SoftStopTimeoutSeconds = 300L,
+ DeallocateVm = true,
+ };
+ ArmOperation lro = await sapVirtualInstance.StopAsync(WaitUntil.Completed, body: body);
+ OperationStatusResult result = lro.Value;
+
+ Console.WriteLine($"Succeeded: {result}");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Stop_SAPVirtualInstancesStop()
+ {
+ // Generated from example definition: 2024-09-01/SapVirtualInstances_Stop.json
+ // this example is just showing the usage of "SAPVirtualInstances_Stop" 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 SAPVirtualInstanceResource created on azure
+ // for more information of creating SAPVirtualInstanceResource, please refer to the document of SAPVirtualInstanceResource
+ string subscriptionId = "8e17e36c-42e9-4cd5-a078-7b44883414e0";
+ string resourceGroupName = "test-rg";
+ string sapVirtualInstanceName = "X00";
+ ResourceIdentifier sapVirtualInstanceResourceId = SAPVirtualInstanceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, sapVirtualInstanceName);
+ SAPVirtualInstanceResource sapVirtualInstance = client.GetSAPVirtualInstanceResource(sapVirtualInstanceResourceId);
+
+ // invoke the operation
+ StopRequest body = new StopRequest()
+ {
+ SoftStopTimeoutSeconds = 0L,
+ };
+ ArmOperation lro = await sapVirtualInstance.StopAsync(WaitUntil.Completed, body: body);
+ OperationStatusResult result = lro.Value;
+
+ Console.WriteLine($"Succeeded: {result}");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Stop_StopTheVirtualMachineSAndTheSAPSystemOnIt()
+ {
+ // Generated from example definition: 2024-09-01/SapVirtualInstances_StopVMAndSystem.json
+ // this example is just showing the usage of "SAPVirtualInstances_Stop" 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 SAPVirtualInstanceResource created on azure
+ // for more information of creating SAPVirtualInstanceResource, please refer to the document of SAPVirtualInstanceResource
+ string subscriptionId = "8e17e36c-42e9-4cd5-a078-7b44883414e0";
+ string resourceGroupName = "test-rg";
+ string sapVirtualInstanceName = "X00";
+ ResourceIdentifier sapVirtualInstanceResourceId = SAPVirtualInstanceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, sapVirtualInstanceName);
+ SAPVirtualInstanceResource sapVirtualInstance = client.GetSAPVirtualInstanceResource(sapVirtualInstanceResourceId);
+
+ // invoke the operation
+ StopRequest body = new StopRequest()
+ {
+ SoftStopTimeoutSeconds = 0L,
+ DeallocateVm = true,
+ };
+ ArmOperation lro = await sapVirtualInstance.StopAsync(WaitUntil.Completed, body: body);
+ OperationStatusResult result = lro.Value;
+
+ Console.WriteLine($"Succeeded: {result}");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task GetSizingRecommendationsSAPVirtualInstance_SAPSizingRecommendationsForNonHADistributedSystem()
+ {
+ // Generated from example definition: 2024-09-01/SapVirtualInstances_InvokeSizingRecommendations_S4HANA_Distributed.json
+ // this example is just showing the usage of "SAPVirtualInstances_GetSizingRecommendations" 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 SubscriptionResource created on azure
+ // for more information of creating SubscriptionResource, please refer to the document of SubscriptionResource
+ string subscriptionId = "8e17e36c-42e9-4cd5-a078-7b44883414e0";
+ ResourceIdentifier subscriptionResourceId = SubscriptionResource.CreateResourceIdentifier(subscriptionId);
+ SubscriptionResource subscriptionResource = client.GetSubscriptionResource(subscriptionResourceId);
+
+ // invoke the operation
+ AzureLocation location = new AzureLocation("centralus");
+ SAPSizingRecommendationContent content = new SAPSizingRecommendationContent("eastus", SAPEnvironmentType.Prod, SAPProductType.S4HANA, SAPDeploymentType.ThreeTier, 20000L, 1024L, SAPDatabaseType.HANA)
+ {
+ DbScaleMethod = SAPDatabaseScaleMethod.ScaleUp,
+ };
+ SAPSizingRecommendationResult result = await subscriptionResource.GetSizingRecommendationsSAPVirtualInstanceAsync(location, content);
+
+ Console.WriteLine($"Succeeded: {result}");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task GetSizingRecommendationsSAPVirtualInstance_SAPSizingRecommendationsForHAWithAvailabilitySet()
+ {
+ // Generated from example definition: 2024-09-01/SapVirtualInstances_InvokeSizingRecommendations_S4HANA_HA_AvSet.json
+ // this example is just showing the usage of "SAPVirtualInstances_GetSizingRecommendations" 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 SubscriptionResource created on azure
+ // for more information of creating SubscriptionResource, please refer to the document of SubscriptionResource
+ string subscriptionId = "8e17e36c-42e9-4cd5-a078-7b44883414e0";
+ ResourceIdentifier subscriptionResourceId = SubscriptionResource.CreateResourceIdentifier(subscriptionId);
+ SubscriptionResource subscriptionResource = client.GetSubscriptionResource(subscriptionResourceId);
+
+ // invoke the operation
+ AzureLocation location = new AzureLocation("centralus");
+ SAPSizingRecommendationContent content = new SAPSizingRecommendationContent("eastus", SAPEnvironmentType.Prod, SAPProductType.S4HANA, SAPDeploymentType.ThreeTier, 75000L, 1024L, SAPDatabaseType.HANA)
+ {
+ DbScaleMethod = SAPDatabaseScaleMethod.ScaleUp,
+ HighAvailabilityType = SAPHighAvailabilityType.AvailabilitySet,
+ };
+ SAPSizingRecommendationResult result = await subscriptionResource.GetSizingRecommendationsSAPVirtualInstanceAsync(location, content);
+
+ Console.WriteLine($"Succeeded: {result}");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task GetSizingRecommendationsSAPVirtualInstance_SAPSizingRecommendationsForHAWithAvailabilityZone()
+ {
+ // Generated from example definition: 2024-09-01/SapVirtualInstances_InvokeSizingRecommendations_S4HANA_HA_AvZone.json
+ // this example is just showing the usage of "SAPVirtualInstances_GetSizingRecommendations" 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 SubscriptionResource created on azure
+ // for more information of creating SubscriptionResource, please refer to the document of SubscriptionResource
+ string subscriptionId = "8e17e36c-42e9-4cd5-a078-7b44883414e0";
+ ResourceIdentifier subscriptionResourceId = SubscriptionResource.CreateResourceIdentifier(subscriptionId);
+ SubscriptionResource subscriptionResource = client.GetSubscriptionResource(subscriptionResourceId);
+
+ // invoke the operation
+ AzureLocation location = new AzureLocation("centralus");
+ SAPSizingRecommendationContent content = new SAPSizingRecommendationContent("eastus", SAPEnvironmentType.Prod, SAPProductType.S4HANA, SAPDeploymentType.ThreeTier, 75000L, 1024L, SAPDatabaseType.HANA)
+ {
+ DbScaleMethod = SAPDatabaseScaleMethod.ScaleUp,
+ HighAvailabilityType = SAPHighAvailabilityType.AvailabilityZone,
+ };
+ SAPSizingRecommendationResult result = await subscriptionResource.GetSizingRecommendationsSAPVirtualInstanceAsync(location, content);
+
+ Console.WriteLine($"Succeeded: {result}");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task GetSizingRecommendationsSAPVirtualInstance_SAPSizingRecommendationsForSingleServer()
+ {
+ // Generated from example definition: 2024-09-01/SapVirtualInstances_InvokeSizingRecommendations_S4HANA_SingleServer.json
+ // this example is just showing the usage of "SAPVirtualInstances_GetSizingRecommendations" 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 SubscriptionResource created on azure
+ // for more information of creating SubscriptionResource, please refer to the document of SubscriptionResource
+ string subscriptionId = "8e17e36c-42e9-4cd5-a078-7b44883414e0";
+ ResourceIdentifier subscriptionResourceId = SubscriptionResource.CreateResourceIdentifier(subscriptionId);
+ SubscriptionResource subscriptionResource = client.GetSubscriptionResource(subscriptionResourceId);
+
+ // invoke the operation
+ AzureLocation location = new AzureLocation("centralus");
+ SAPSizingRecommendationContent content = new SAPSizingRecommendationContent("eastus", SAPEnvironmentType.NonProd, SAPProductType.S4HANA, SAPDeploymentType.SingleServer, 60000L, 2000L, SAPDatabaseType.HANA)
+ {
+ DbScaleMethod = SAPDatabaseScaleMethod.ScaleUp,
+ };
+ SAPSizingRecommendationResult result = await subscriptionResource.GetSizingRecommendationsSAPVirtualInstanceAsync(location, content);
+
+ Console.WriteLine($"Succeeded: {result}");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task GetSapSupportedSkuSAPVirtualInstance_SAPSupportedSKUsForDistributedNonHAEnvironment()
+ {
+ // Generated from example definition: 2024-09-01/SapVirtualInstances_InvokeSapSupportedSku_Distributed.json
+ // this example is just showing the usage of "SAPVirtualInstances_GetSapSupportedSku" 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 SubscriptionResource created on azure
+ // for more information of creating SubscriptionResource, please refer to the document of SubscriptionResource
+ string subscriptionId = "8e17e36c-42e9-4cd5-a078-7b44883414e0";
+ ResourceIdentifier subscriptionResourceId = SubscriptionResource.CreateResourceIdentifier(subscriptionId);
+ SubscriptionResource subscriptionResource = client.GetSubscriptionResource(subscriptionResourceId);
+
+ // invoke the operation
+ AzureLocation location = new AzureLocation("centralus");
+ SAPSupportedSkusContent content = new SAPSupportedSkusContent("eastus", SAPEnvironmentType.Prod, SAPProductType.S4HANA, SAPDeploymentType.ThreeTier, SAPDatabaseType.HANA);
+ SAPSupportedResourceSkusResult result = await subscriptionResource.GetSapSupportedSkuSAPVirtualInstanceAsync(location, content);
+
+ Console.WriteLine($"Succeeded: {result}");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task GetSapSupportedSkuSAPVirtualInstance_SAPSupportedSKUsForDistributedHAEnvironmentWithAvailabilitySet()
+ {
+ // Generated from example definition: 2024-09-01/SapVirtualInstances_InvokeSapSupportedSku_DistributedHA_AvSet.json
+ // this example is just showing the usage of "SAPVirtualInstances_GetSapSupportedSku" 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 SubscriptionResource created on azure
+ // for more information of creating SubscriptionResource, please refer to the document of SubscriptionResource
+ string subscriptionId = "8e17e36c-42e9-4cd5-a078-7b44883414e0";
+ ResourceIdentifier subscriptionResourceId = SubscriptionResource.CreateResourceIdentifier(subscriptionId);
+ SubscriptionResource subscriptionResource = client.GetSubscriptionResource(subscriptionResourceId);
+
+ // invoke the operation
+ AzureLocation location = new AzureLocation("centralus");
+ SAPSupportedSkusContent content = new SAPSupportedSkusContent("eastus", SAPEnvironmentType.Prod, SAPProductType.S4HANA, SAPDeploymentType.ThreeTier, SAPDatabaseType.HANA)
+ {
+ HighAvailabilityType = SAPHighAvailabilityType.AvailabilitySet,
+ };
+ SAPSupportedResourceSkusResult result = await subscriptionResource.GetSapSupportedSkuSAPVirtualInstanceAsync(location, content);
+
+ Console.WriteLine($"Succeeded: {result}");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task GetSapSupportedSkuSAPVirtualInstance_SAPSupportedSkusForHAWithAvailabilityZone()
+ {
+ // Generated from example definition: 2024-09-01/SapVirtualInstances_InvokeSapSupportedSku_DistributedHA_AvZone.json
+ // this example is just showing the usage of "SAPVirtualInstances_GetSapSupportedSku" 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 SubscriptionResource created on azure
+ // for more information of creating SubscriptionResource, please refer to the document of SubscriptionResource
+ string subscriptionId = "8e17e36c-42e9-4cd5-a078-7b44883414e0";
+ ResourceIdentifier subscriptionResourceId = SubscriptionResource.CreateResourceIdentifier(subscriptionId);
+ SubscriptionResource subscriptionResource = client.GetSubscriptionResource(subscriptionResourceId);
+
+ // invoke the operation
+ AzureLocation location = new AzureLocation("centralus");
+ SAPSupportedSkusContent content = new SAPSupportedSkusContent("eastus", SAPEnvironmentType.Prod, SAPProductType.S4HANA, SAPDeploymentType.ThreeTier, SAPDatabaseType.HANA)
+ {
+ HighAvailabilityType = SAPHighAvailabilityType.AvailabilityZone,
+ };
+ SAPSupportedResourceSkusResult result = await subscriptionResource.GetSapSupportedSkuSAPVirtualInstanceAsync(location, content);
+
+ Console.WriteLine($"Succeeded: {result}");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task GetSapSupportedSkuSAPVirtualInstance_SAPSupportedSKUsForSingleServer()
+ {
+ // Generated from example definition: 2024-09-01/SapVirtualInstances_InvokeSapSupportedSku_SingleServer.json
+ // this example is just showing the usage of "SAPVirtualInstances_GetSapSupportedSku" 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 SubscriptionResource created on azure
+ // for more information of creating SubscriptionResource, please refer to the document of SubscriptionResource
+ string subscriptionId = "8e17e36c-42e9-4cd5-a078-7b44883414e0";
+ ResourceIdentifier subscriptionResourceId = SubscriptionResource.CreateResourceIdentifier(subscriptionId);
+ SubscriptionResource subscriptionResource = client.GetSubscriptionResource(subscriptionResourceId);
+
+ // invoke the operation
+ AzureLocation location = new AzureLocation("centralus");
+ SAPSupportedSkusContent content = new SAPSupportedSkusContent("eastus", SAPEnvironmentType.NonProd, SAPProductType.S4HANA, SAPDeploymentType.SingleServer, SAPDatabaseType.HANA);
+ SAPSupportedResourceSkusResult result = await subscriptionResource.GetSapSupportedSkuSAPVirtualInstanceAsync(location, content);
+
+ Console.WriteLine($"Succeeded: {result}");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task GetDiskConfigurationsSAPVirtualInstance_SAPDiskConfigurationsForInputEnvironmentNonProd()
+ {
+ // Generated from example definition: 2024-09-01/SapVirtualInstances_InvokeDiskConfigurations_NonProd.json
+ // this example is just showing the usage of "SAPVirtualInstances_GetDiskConfigurations" 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 SubscriptionResource created on azure
+ // for more information of creating SubscriptionResource, please refer to the document of SubscriptionResource
+ string subscriptionId = "8e17e36c-42e9-4cd5-a078-7b44883414e0";
+ ResourceIdentifier subscriptionResourceId = SubscriptionResource.CreateResourceIdentifier(subscriptionId);
+ SubscriptionResource subscriptionResource = client.GetSubscriptionResource(subscriptionResourceId);
+
+ // invoke the operation
+ AzureLocation location = new AzureLocation("centralus");
+ SAPDiskConfigurationsContent content = new SAPDiskConfigurationsContent("eastus", SAPEnvironmentType.NonProd, SAPProductType.S4HANA, SAPDatabaseType.HANA, SAPDeploymentType.ThreeTier, "Standard_M32ts");
+ SAPDiskConfigurationsResult result = await subscriptionResource.GetDiskConfigurationsSAPVirtualInstanceAsync(location, content);
+
+ Console.WriteLine($"Succeeded: {result}");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task GetDiskConfigurationsSAPVirtualInstance_SAPDiskConfigurationsForInputEnvironmentProd()
+ {
+ // Generated from example definition: 2024-09-01/SapVirtualInstances_InvokeDiskConfigurations_Prod.json
+ // this example is just showing the usage of "SAPVirtualInstances_GetDiskConfigurations" 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 SubscriptionResource created on azure
+ // for more information of creating SubscriptionResource, please refer to the document of SubscriptionResource
+ string subscriptionId = "8e17e36c-42e9-4cd5-a078-7b44883414e0";
+ ResourceIdentifier subscriptionResourceId = SubscriptionResource.CreateResourceIdentifier(subscriptionId);
+ SubscriptionResource subscriptionResource = client.GetSubscriptionResource(subscriptionResourceId);
+
+ // invoke the operation
+ AzureLocation location = new AzureLocation("centralus");
+ SAPDiskConfigurationsContent content = new SAPDiskConfigurationsContent("eastus", SAPEnvironmentType.Prod, SAPProductType.S4HANA, SAPDatabaseType.HANA, SAPDeploymentType.ThreeTier, "Standard_M32ts");
+ SAPDiskConfigurationsResult result = await subscriptionResource.GetDiskConfigurationsSAPVirtualInstanceAsync(location, content);
+
+ Console.WriteLine($"Succeeded: {result}");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task GetAvailabilityZoneDetailsSAPVirtualInstance_SAPAvailabilityZoneDetailsInEastUs()
+ {
+ // Generated from example definition: 2024-09-01/SapVirtualInstances_InvokeAvailabilityZoneDetails_eastus.json
+ // this example is just showing the usage of "SAPVirtualInstances_GetAvailabilityZoneDetails" 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 SubscriptionResource created on azure
+ // for more information of creating SubscriptionResource, please refer to the document of SubscriptionResource
+ string subscriptionId = "8e17e36c-42e9-4cd5-a078-7b44883414e0";
+ ResourceIdentifier subscriptionResourceId = SubscriptionResource.CreateResourceIdentifier(subscriptionId);
+ SubscriptionResource subscriptionResource = client.GetSubscriptionResource(subscriptionResourceId);
+
+ // invoke the operation
+ AzureLocation location = new AzureLocation("eastus");
+ SAPAvailabilityZoneDetailsContent content = new SAPAvailabilityZoneDetailsContent("eastus", SAPProductType.S4HANA, SAPDatabaseType.HANA);
+ SAPAvailabilityZoneDetailsResult result = await subscriptionResource.GetAvailabilityZoneDetailsSAPVirtualInstanceAsync(location, content);
+
+ Console.WriteLine($"Succeeded: {result}");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task GetAvailabilityZoneDetailsSAPVirtualInstance_SAPAvailabilityZoneDetailsInNorthEurope()
+ {
+ // Generated from example definition: 2024-09-01/SapVirtualInstances_InvokeAvailabilityZoneDetails_northeurope.json
+ // this example is just showing the usage of "SAPVirtualInstances_GetAvailabilityZoneDetails" 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 SubscriptionResource created on azure
+ // for more information of creating SubscriptionResource, please refer to the document of SubscriptionResource
+ string subscriptionId = "8e17e36c-42e9-4cd5-a078-7b44883414e0";
+ ResourceIdentifier subscriptionResourceId = SubscriptionResource.CreateResourceIdentifier(subscriptionId);
+ SubscriptionResource subscriptionResource = client.GetSubscriptionResource(subscriptionResourceId);
+
+ // invoke the operation
+ AzureLocation location = new AzureLocation("northeurope");
+ SAPAvailabilityZoneDetailsContent content = new SAPAvailabilityZoneDetailsContent("northeurope", SAPProductType.S4HANA, SAPDatabaseType.HANA);
+ SAPAvailabilityZoneDetailsResult result = await subscriptionResource.GetAvailabilityZoneDetailsSAPVirtualInstanceAsync(location, content);
+
+ Console.WriteLine($"Succeeded: {result}");
+ }
+ }
+}
diff --git a/sdk/workloadssapvirtualinstance/Azure.ResourceManager.SapVirtualInstances/src/Azure.ResourceManager.SapVirtualInstances.csproj b/sdk/workloadssapvirtualinstance/Azure.ResourceManager.SapVirtualInstances/src/Azure.ResourceManager.SapVirtualInstances.csproj
new file mode 100644
index 000000000000..6b36dd4baaa4
--- /dev/null
+++ b/sdk/workloadssapvirtualinstance/Azure.ResourceManager.SapVirtualInstances/src/Azure.ResourceManager.SapVirtualInstances.csproj
@@ -0,0 +1,10 @@
+
+
+ This is the Azure.ResourceManager.SapVirtualInstances client library for developing .NET applications with rich experience.
+ Azure SDK Code Generation Azure.ResourceManager.SapVirtualInstances for Azure Data Plane
+ 1.0.0-beta.1
+ Azure.ResourceManager.SapVirtualInstances
+ $(RequiredTargetFrameworks)
+ true
+
+
diff --git a/sdk/workloadssapvirtualinstance/Azure.ResourceManager.SapVirtualInstances/src/Generated/ArmSapVirtualInstancesModelFactory.cs b/sdk/workloadssapvirtualinstance/Azure.ResourceManager.SapVirtualInstances/src/Generated/ArmSapVirtualInstancesModelFactory.cs
new file mode 100644
index 000000000000..ab6d36a82aab
--- /dev/null
+++ b/sdk/workloadssapvirtualinstance/Azure.ResourceManager.SapVirtualInstances/src/Generated/ArmSapVirtualInstancesModelFactory.cs
@@ -0,0 +1,563 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using Azure.Core;
+using Azure.ResourceManager.Models;
+using Azure.ResourceManager.Resources.Models;
+
+namespace Azure.ResourceManager.SapVirtualInstances.Models
+{
+ /// Model factory for models.
+ public static partial class ArmSapVirtualInstancesModelFactory
+ {
+ /// Initializes a new instance of .
+ /// The id.
+ /// The name.
+ /// The resourceType.
+ /// The systemData.
+ /// The tags.
+ /// The location.
+ /// The resource-specific properties for this resource.
+ /// A new instance for mocking.
+ public static SAPApplicationServerInstanceData SAPApplicationServerInstanceData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, SAPApplicationServerProperties properties = null)
+ {
+ tags ??= new Dictionary();
+
+ return new SAPApplicationServerInstanceData(
+ id,
+ name,
+ resourceType,
+ systemData,
+ tags,
+ location,
+ properties,
+ serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// Application server Instance Number.
+ /// Application server Subnet.
+ /// Application server instance SAP hostname.
+ /// Application server instance SAP Kernel Version.
+ /// Application server instance SAP Kernel Patch level.
+ /// Application server instance SAP IP Address.
+ /// Application server instance gateway Port.
+ /// Application server instance ICM HTTP Port.
+ /// Application server instance ICM HTTPS Port.
+ /// Application server instance dispatcher status.
+ /// The Load Balancer details such as LoadBalancer ID attached to Application Server Virtual Machines.
+ /// The list of virtual machines.
+ /// Defines the SAP Instance status.
+ /// Defines the health of SAP Instances.
+ /// Defines the provisioning states.
+ /// Defines the Application Instance errors.
+ /// A new instance for mocking.
+ public static SAPApplicationServerProperties SAPApplicationServerProperties(string instanceNo = null, string subnet = null, string hostname = null, string kernelVersion = null, string kernelPatch = null, string ipAddress = null, long? gatewayPort = null, long? icmHttpPort = null, long? icmHttpsPort = null, string dispatcherStatus = null, ResourceIdentifier loadBalancerDetailsId = null, IEnumerable vmDetails = null, SAPVirtualInstanceStatus? status = null, SAPHealthState? health = null, SapVirtualInstanceProvisioningState? provisioningState = null, ErrorDefinition errorsProperties = null)
+ {
+ vmDetails ??= new List();
+
+ return new SAPApplicationServerProperties(
+ instanceNo,
+ subnet,
+ hostname,
+ kernelVersion,
+ kernelPatch,
+ ipAddress,
+ gatewayPort,
+ icmHttpPort,
+ icmHttpsPort,
+ dispatcherStatus,
+ loadBalancerDetailsId != null ? ResourceManagerModelFactory.SubResource(loadBalancerDetailsId) : null,
+ vmDetails?.ToList(),
+ status,
+ health,
+ provisioningState,
+ errorsProperties != null ? new SAPVirtualInstanceError(errorsProperties, serializedAdditionalRawData: null) : null,
+ serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// Defines the type of application server VM.
+ /// The virtual machine id.
+ /// Storage details of all the Storage Accounts attached to the App Virtual Machine. For e.g. NFS on AFS Shared Storage.
+ /// A new instance for mocking.
+ public static ApplicationServerVmDetails ApplicationServerVmDetails(ApplicationServerVirtualMachineType? type = null, string virtualMachineId = null, IEnumerable storageDetails = null)
+ {
+ storageDetails ??= new List();
+
+ return new ApplicationServerVmDetails(type, virtualMachineId, storageDetails?.ToList(), serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// Service specific error code which serves as the substatus for the HTTP error code.
+ /// Description of the error.
+ /// Internal error details.
+ /// A new instance for mocking.
+ public static ErrorDefinition ErrorDefinition(string code = null, string message = null, IEnumerable details = null)
+ {
+ details ??= new List();
+
+ return new ErrorDefinition(code, message, details?.ToList(), serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// Fully qualified ID for the async operation.
+ /// Name of the async operation.
+ /// Operation status.
+ /// Percent of the operation that is complete.
+ /// The start time of the operation.
+ /// The end time of the operation.
+ /// The operations list.
+ /// If present, details of the operation error.
+ /// A new instance for mocking.
+ public static OperationStatusResult OperationStatusResult(string id = null, string name = null, string status = null, double? percentComplete = null, DateTimeOffset? startOn = null, DateTimeOffset? endOn = null, IEnumerable operations = null, ResponseError error = null)
+ {
+ operations ??= new List();
+
+ return new OperationStatusResult(
+ id,
+ name,
+ status,
+ percentComplete,
+ startOn,
+ endOn,
+ operations?.ToList(),
+ error,
+ serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// The id.
+ /// The name.
+ /// The resourceType.
+ /// The systemData.
+ /// The tags.
+ /// The location.
+ /// The resource-specific properties for this resource.
+ /// A new instance for mocking.
+ public static SAPDatabaseInstanceData SAPDatabaseInstanceData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, SAPDatabaseProperties properties = null)
+ {
+ tags ??= new Dictionary();
+
+ return new SAPDatabaseInstanceData(
+ id,
+ name,
+ resourceType,
+ systemData,
+ tags,
+ location,
+ properties,
+ serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// Database subnet.
+ /// Database SID name.
+ /// Database type, that is if the DB is HANA, DB2, Oracle, SAP ASE, Max DB or MS SQL Server.
+ /// Database IP Address.
+ /// The Load Balancer details such as LoadBalancer ID attached to Database Virtual Machines.
+ /// The list of virtual machines corresponding to the Database resource.
+ /// Defines the SAP Instance status.
+ /// Defines the provisioning states.
+ /// Defines the errors related to Database resource.
+ /// A new instance for mocking.
+ public static SAPDatabaseProperties SAPDatabaseProperties(string subnet = null, string databaseSid = null, string databaseType = null, string ipAddress = null, ResourceIdentifier loadBalancerDetailsId = null, IEnumerable vmDetails = null, SAPVirtualInstanceStatus? status = null, SapVirtualInstanceProvisioningState? provisioningState = null, ErrorDefinition errorsProperties = null)
+ {
+ vmDetails ??= new List();
+
+ return new SAPDatabaseProperties(
+ subnet,
+ databaseSid,
+ databaseType,
+ ipAddress,
+ loadBalancerDetailsId != null ? ResourceManagerModelFactory.SubResource(loadBalancerDetailsId) : null,
+ vmDetails?.ToList(),
+ status,
+ provisioningState,
+ errorsProperties != null ? new SAPVirtualInstanceError(errorsProperties, serializedAdditionalRawData: null) : null,
+ serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// The virtual machine id.
+ /// Defines the SAP Instance status.
+ /// Storage details of all the Storage Accounts attached to the Database Virtual Machine. For e.g. NFS on AFS Shared Storage.
+ /// A new instance for mocking.
+ public static DatabaseVmDetails DatabaseVmDetails(string virtualMachineId = null, SAPVirtualInstanceStatus? status = null, IEnumerable storageDetails = null)
+ {
+ storageDetails ??= new List();
+
+ return new DatabaseVmDetails(virtualMachineId, status, storageDetails?.ToList(), serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// The id.
+ /// The name.
+ /// The resourceType.
+ /// The systemData.
+ /// The tags.
+ /// The location.
+ /// The resource-specific properties for this resource.
+ /// A new instance for mocking.
+ public static SAPCentralServerInstanceData SAPCentralServerInstanceData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, SAPCentralServerProperties properties = null)
+ {
+ tags ??= new Dictionary();
+
+ return new SAPCentralServerInstanceData(
+ id,
+ name,
+ resourceType,
+ systemData,
+ tags,
+ location,
+ properties,
+ serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// The central services instance number.
+ /// The central services instance subnet.
+ /// Defines the SAP message server properties.
+ /// Defines the SAP Enqueue Server properties.
+ /// Defines the SAP Gateway Server properties.
+ /// Defines the SAP Enqueue Replication Server (ERS) properties.
+ /// The central services instance Kernel Version.
+ /// The central services instance Kernel Patch level.
+ /// The Load Balancer details such as LoadBalancer ID attached to ASCS Virtual Machines.
+ /// The list of virtual machines corresponding to the Central Services instance.
+ /// Defines the SAP Instance status.
+ /// Defines the health of SAP Instances.
+ /// Defines the provisioning states.
+ /// Defines the errors related to SAP Central Services Instance resource.
+ /// A new instance for mocking.
+ public static SAPCentralServerProperties SAPCentralServerProperties(string instanceNo = null, string subnet = null, MessageServerProperties messageServerProperties = null, EnqueueServerProperties enqueueServerProperties = null, GatewayServerProperties gatewayServerProperties = null, EnqueueReplicationServerProperties enqueueReplicationServerProperties = null, string kernelVersion = null, string kernelPatch = null, ResourceIdentifier loadBalancerDetailsId = null, IEnumerable vmDetails = null, SAPVirtualInstanceStatus? status = null, SAPHealthState? health = null, SapVirtualInstanceProvisioningState? provisioningState = null, ErrorDefinition errorsProperties = null)
+ {
+ vmDetails ??= new List();
+
+ return new SAPCentralServerProperties(
+ instanceNo,
+ subnet,
+ messageServerProperties,
+ enqueueServerProperties,
+ gatewayServerProperties,
+ enqueueReplicationServerProperties,
+ kernelVersion,
+ kernelPatch,
+ loadBalancerDetailsId != null ? ResourceManagerModelFactory.SubResource(loadBalancerDetailsId) : null,
+ vmDetails?.ToList(),
+ status,
+ health,
+ provisioningState,
+ errorsProperties != null ? new SAPVirtualInstanceError(errorsProperties, serializedAdditionalRawData: null) : null,
+ serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// message server port.
+ /// message server internal MS port.
+ /// message server HTTP Port.
+ /// message server HTTPS Port.
+ /// message server SAP Hostname.
+ /// message server IP Address.
+ /// Defines the health of SAP Instances.
+ /// A new instance for mocking.
+ public static MessageServerProperties MessageServerProperties(long? msPort = null, long? internalMsPort = null, long? httpPort = null, long? httpsPort = null, string hostname = null, string ipAddress = null, SAPHealthState? health = null)
+ {
+ return new MessageServerProperties(
+ msPort,
+ internalMsPort,
+ httpPort,
+ httpsPort,
+ hostname,
+ ipAddress,
+ health,
+ serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// Enqueue Server SAP Hostname.
+ /// Enqueue Server SAP IP Address.
+ /// Enqueue Server Port.
+ /// Defines the health of SAP Instances.
+ /// A new instance for mocking.
+ public static EnqueueServerProperties EnqueueServerProperties(string hostname = null, string ipAddress = null, long? port = null, SAPHealthState? health = null)
+ {
+ return new EnqueueServerProperties(hostname, ipAddress, port, health, serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// Gateway Port.
+ /// Defines the health of SAP Instances.
+ /// A new instance for mocking.
+ public static GatewayServerProperties GatewayServerProperties(long? port = null, SAPHealthState? health = null)
+ {
+ return new GatewayServerProperties(port, health, serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// Defines the type of Enqueue Replication Server.
+ /// ERS Instance Number.
+ /// ERS SAP Hostname.
+ /// ERS SAP Kernel Version.
+ /// ERS SAP Kernel Patch level.
+ /// ERS SAP IP Address.
+ /// Defines the health of SAP Instances.
+ /// A new instance for mocking.
+ public static EnqueueReplicationServerProperties EnqueueReplicationServerProperties(EnqueueReplicationServerType? ersVersion = null, string instanceNo = null, string hostname = null, string kernelVersion = null, string kernelPatch = null, string ipAddress = null, SAPHealthState? health = null)
+ {
+ return new EnqueueReplicationServerProperties(
+ ersVersion,
+ instanceNo,
+ hostname,
+ kernelVersion,
+ kernelPatch,
+ ipAddress,
+ health,
+ serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// Defines the type of central server VM.
+ /// The virtual machine id.
+ /// Storage details of all the Storage Accounts attached to the ASCS Virtual Machine. For e.g. NFS on AFS Shared Storage.
+ /// A new instance for mocking.
+ public static CentralServerVmDetails CentralServerVmDetails(CentralServerVirtualMachineType? type = null, string virtualMachineId = null, IEnumerable storageDetails = null)
+ {
+ storageDetails ??= new List();
+
+ return new CentralServerVmDetails(type, virtualMachineId, storageDetails?.ToList(), serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// The id.
+ /// The name.
+ /// The resourceType.
+ /// The systemData.
+ /// The tags.
+ /// The location.
+ /// The resource-specific properties for this resource.
+ /// The managed service identities assigned to this resource.
+ /// A new instance for mocking.
+ public static SAPVirtualInstanceData SAPVirtualInstanceData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, SAPVirtualInstanceProperties properties = null, SAPVirtualInstanceIdentity identity = null)
+ {
+ tags ??= new Dictionary();
+
+ return new SAPVirtualInstanceData(
+ id,
+ name,
+ resourceType,
+ systemData,
+ tags,
+ location,
+ properties,
+ identity,
+ serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// Defines the environment type - Production/Non Production.
+ /// Defines the SAP Product type.
+ /// Specifies the network access configuration for the resources that will be deployed in the Managed Resource Group. The options to choose from are Public and Private. If 'Private' is chosen, the Storage Account service tag should be enabled on the subnets in which the SAP VMs exist. This is required for establishing connectivity between VM extensions and the managed resource group storage account. This setting is currently applicable only to Storage Account. Learn more here https://go.microsoft.com/fwlink/?linkid=2247228.
+ ///
+ /// Defines if the SAP system is being created using Azure Center for SAP solutions (ACSS) or if an existing SAP system is being registered with ACSS
+ /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes.
+ /// The available derived classes include , and .
+ ///
+ /// Managed resource group configuration.
+ /// Defines the SAP Instance status.
+ /// Defines the health of SAP Instances.
+ /// Defines the Virtual Instance for SAP state.
+ /// Defines the provisioning states.
+ /// Indicates any errors on the Virtual Instance for SAP solutions resource.
+ /// A new instance for mocking.
+ public static SAPVirtualInstanceProperties SAPVirtualInstanceProperties(SAPEnvironmentType environment = default, SAPProductType sapProduct = default, ManagedResourcesNetworkAccessType? managedResourcesNetworkAccessType = null, SAPConfiguration configuration = null, string managedResourceGroupName = null, SAPVirtualInstanceStatus? status = null, SAPHealthState? health = null, SAPVirtualInstanceState? state = null, SapVirtualInstanceProvisioningState? provisioningState = null, ErrorDefinition errorsProperties = null)
+ {
+ return new SAPVirtualInstanceProperties(
+ environment,
+ sapProduct,
+ managedResourcesNetworkAccessType,
+ configuration,
+ managedResourceGroupName != null ? new ManagedRGConfiguration(managedResourceGroupName, serializedAdditionalRawData: null) : null,
+ status,
+ health,
+ state,
+ provisioningState,
+ errorsProperties != null ? new SAPVirtualInstanceError(errorsProperties, serializedAdditionalRawData: null) : null,
+ serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// The virtual machine ID of the Central Server.
+ /// The custom storage account name for the storage account created by the service in the managed resource group created as part of VIS deployment.<br><br>Refer to the storage account naming rules [here](https://learn.microsoft.com/azure/azure-resource-manager/management/resource-name-rules#microsoftstorage).<br><br>If not provided, the service will create the storage account with a random name.
+ /// The geo-location where the SAP system exists.
+ /// A new instance for mocking.
+ public static DiscoveryConfiguration DiscoveryConfiguration(string centralServerVmId = null, string managedRgStorageAccountName = null, string appLocation = null)
+ {
+ return new DiscoveryConfiguration(SAPConfigurationType.Discovery, serializedAdditionalRawData: null, centralServerVmId, managedRgStorageAccountName, appLocation);
+ }
+
+ /// Initializes a new instance of .
+ /// The geo-location where the resource is to be created.
+ /// Defines the environment type - Production/Non Production.
+ /// Defines the SAP Product type.
+ /// The deployment type. Eg: SingleServer/ThreeTier.
+ /// The SAP Application Performance Standard measurement.
+ /// The database memory configuration.
+ /// The database type.
+ /// The DB scale method.
+ /// The high availability type.
+ /// A new instance for mocking.
+ public static SAPSizingRecommendationContent SAPSizingRecommendationContent(string appLocation = null, SAPEnvironmentType environment = default, SAPProductType sapProduct = default, SAPDeploymentType deploymentType = default, long saps = default, long dbMemory = default, SAPDatabaseType databaseType = default, SAPDatabaseScaleMethod? dbScaleMethod = null, SAPHighAvailabilityType? highAvailabilityType = null)
+ {
+ return new SAPSizingRecommendationContent(
+ appLocation,
+ environment,
+ sapProduct,
+ deploymentType,
+ saps,
+ dbMemory,
+ databaseType,
+ dbScaleMethod,
+ highAvailabilityType,
+ serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// The recommended VM SKU for single server.
+ /// A new instance for mocking.
+ public static SingleServerRecommendationResult SingleServerRecommendationResult(string vmSku = null)
+ {
+ return new SingleServerRecommendationResult(SAPDeploymentType.SingleServer, serializedAdditionalRawData: null, vmSku);
+ }
+
+ /// Initializes a new instance of .
+ /// The database VM SKU.
+ /// The database server instance count.
+ /// The central server VM SKU.
+ /// The central server instance count.
+ /// The application server VM SKU.
+ /// The application server instance count.
+ /// A new instance for mocking.
+ public static ThreeTierRecommendationResult ThreeTierRecommendationResult(string dbVmSku = null, long? databaseInstanceCount = null, string centralServerVmSku = null, long? centralServerInstanceCount = null, string applicationServerVmSku = null, long? applicationServerInstanceCount = null)
+ {
+ return new ThreeTierRecommendationResult(
+ SAPDeploymentType.ThreeTier,
+ serializedAdditionalRawData: null,
+ dbVmSku,
+ databaseInstanceCount,
+ centralServerVmSku,
+ centralServerInstanceCount,
+ applicationServerVmSku,
+ applicationServerInstanceCount);
+ }
+
+ /// Initializes a new instance of .
+ /// The geo-location where the resource is to be created.
+ /// Defines the environment type - Production/Non Production.
+ /// Defines the SAP Product type.
+ /// The deployment type. Eg: SingleServer/ThreeTier.
+ /// The database type. Eg: HANA, DB2, etc.
+ /// The high availability type.
+ /// A new instance for mocking.
+ public static SAPSupportedSkusContent SAPSupportedSkusContent(string appLocation = null, SAPEnvironmentType environment = default, SAPProductType sapProduct = default, SAPDeploymentType deploymentType = default, SAPDatabaseType databaseType = default, SAPHighAvailabilityType? highAvailabilityType = null)
+ {
+ return new SAPSupportedSkusContent(
+ appLocation,
+ environment,
+ sapProduct,
+ deploymentType,
+ databaseType,
+ highAvailabilityType,
+ serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// Gets the list of SAP supported SKUs.
+ /// A new instance for mocking.
+ public static SAPSupportedResourceSkusResult SAPSupportedResourceSkusResult(IEnumerable supportedSkus = null)
+ {
+ supportedSkus ??= new List();
+
+ return new SAPSupportedResourceSkusResult(supportedSkus?.ToList(), serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// The VM Sku.
+ /// True if the Sku is certified for App server in the SAP system.
+ /// True if the Sku is certified for Database server in the SAP system.
+ /// A new instance for mocking.
+ public static SAPSupportedSku SAPSupportedSku(string vmSku = null, bool? isAppServerCertified = null, bool? isDatabaseCertified = null)
+ {
+ return new SAPSupportedSku(vmSku, isAppServerCertified, isDatabaseCertified, serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// The disk configuration for the db volume. For HANA, Required volumes are: ['hana/data', 'hana/log', hana/shared', 'usr/sap', 'os'], Optional volume : ['backup'].
+ /// A new instance for mocking.
+ public static SAPDiskConfigurationsResult SAPDiskConfigurationsResult(IReadOnlyDictionary volumeConfigurations = null)
+ {
+ volumeConfigurations ??= new Dictionary();
+
+ return new SAPDiskConfigurationsResult(volumeConfigurations, serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// The recommended disk details for a given VM Sku.
+ /// The list of supported disks for a given VM Sku.
+ /// A new instance for mocking.
+ public static SAPDiskConfiguration SAPDiskConfiguration(DiskVolumeConfiguration recommendedConfiguration = null, IEnumerable supportedConfigurations = null)
+ {
+ supportedConfigurations ??= new List();
+
+ return new SAPDiskConfiguration(recommendedConfiguration, supportedConfigurations?.ToList(), serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// The type of disk sku. For example, Standard_LRS, Standard_ZRS, Premium_LRS, Premium_ZRS.
+ /// The disk size in GB.
+ /// The minimum supported disk count.
+ /// The maximum supported disk count.
+ /// The disk Iops.
+ /// The disk provisioned throughput in MBps.
+ /// The disk tier, e.g. P10, E10.
+ /// A new instance for mocking.
+ public static DiskDetails DiskDetails(DiskSkuName? skuName = null, long? sizeGB = null, long? minimumSupportedDiskCount = null, long? maximumSupportedDiskCount = null, long? iopsReadWrite = null, long? mbpsReadWrite = null, string diskTier = null)
+ {
+ return new DiskDetails(
+ skuName != null ? new DiskSku(skuName, serializedAdditionalRawData: null) : null,
+ sizeGB,
+ minimumSupportedDiskCount,
+ maximumSupportedDiskCount,
+ iopsReadWrite,
+ mbpsReadWrite,
+ diskTier,
+ serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// Gets the list of availability zone pairs.
+ /// A new instance for mocking.
+ public static SAPAvailabilityZoneDetailsResult SAPAvailabilityZoneDetailsResult(IEnumerable availabilityZonePairs = null)
+ {
+ availabilityZonePairs ??= new List();
+
+ return new SAPAvailabilityZoneDetailsResult(availabilityZonePairs?.ToList(), serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// The zone A.
+ /// The zone B.
+ /// A new instance for mocking.
+ public static SAPAvailabilityZonePair SAPAvailabilityZonePair(long? zoneA = null, long? zoneB = null)
+ {
+ return new SAPAvailabilityZonePair(zoneA, zoneB, serializedAdditionalRawData: null);
+ }
+ }
+}
diff --git a/sdk/workloadssapvirtualinstance/Azure.ResourceManager.SapVirtualInstances/src/Generated/Extensions/MockableSapVirtualInstancesArmClient.cs b/sdk/workloadssapvirtualinstance/Azure.ResourceManager.SapVirtualInstances/src/Generated/Extensions/MockableSapVirtualInstancesArmClient.cs
new file mode 100644
index 000000000000..4e13cd0b074d
--- /dev/null
+++ b/sdk/workloadssapvirtualinstance/Azure.ResourceManager.SapVirtualInstances/src/Generated/Extensions/MockableSapVirtualInstancesArmClient.cs
@@ -0,0 +1,85 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using Azure.Core;
+
+namespace Azure.ResourceManager.SapVirtualInstances.Mocking
+{
+ /// A class to add extension methods to ArmClient.
+ public partial class MockableSapVirtualInstancesArmClient : ArmResource
+ {
+ /// Initializes a new instance of the class for mocking.
+ protected MockableSapVirtualInstancesArmClient()
+ {
+ }
+
+ /// 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 MockableSapVirtualInstancesArmClient(ArmClient client, ResourceIdentifier id) : base(client, id)
+ {
+ }
+
+ internal MockableSapVirtualInstancesArmClient(ArmClient client) : this(client, ResourceIdentifier.Root)
+ {
+ }
+
+ private string GetApiVersionOrNull(ResourceType resourceType)
+ {
+ TryGetApiVersion(resourceType, out string apiVersion);
+ return apiVersion;
+ }
+
+ ///
+ /// 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 SAPVirtualInstanceResource GetSAPVirtualInstanceResource(ResourceIdentifier id)
+ {
+ SAPVirtualInstanceResource.ValidateResourceId(id);
+ return new SAPVirtualInstanceResource(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 SAPCentralServerInstanceResource GetSAPCentralServerInstanceResource(ResourceIdentifier id)
+ {
+ SAPCentralServerInstanceResource.ValidateResourceId(id);
+ return new SAPCentralServerInstanceResource(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 SAPDatabaseInstanceResource GetSAPDatabaseInstanceResource(ResourceIdentifier id)
+ {
+ SAPDatabaseInstanceResource.ValidateResourceId(id);
+ return new SAPDatabaseInstanceResource(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 SAPApplicationServerInstanceResource GetSAPApplicationServerInstanceResource(ResourceIdentifier id)
+ {
+ SAPApplicationServerInstanceResource.ValidateResourceId(id);
+ return new SAPApplicationServerInstanceResource(Client, id);
+ }
+ }
+}
diff --git a/sdk/workloadssapvirtualinstance/Azure.ResourceManager.SapVirtualInstances/src/Generated/Extensions/MockableSapVirtualInstancesResourceGroupResource.cs b/sdk/workloadssapvirtualinstance/Azure.ResourceManager.SapVirtualInstances/src/Generated/Extensions/MockableSapVirtualInstancesResourceGroupResource.cs
new file mode 100644
index 000000000000..c81f190f55bc
--- /dev/null
+++ b/sdk/workloadssapvirtualinstance/Azure.ResourceManager.SapVirtualInstances/src/Generated/Extensions/MockableSapVirtualInstancesResourceGroupResource.cs
@@ -0,0 +1,105 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Threading;
+using System.Threading.Tasks;
+using Azure.Core;
+
+namespace Azure.ResourceManager.SapVirtualInstances.Mocking
+{
+ /// A class to add extension methods to ResourceGroupResource.
+ public partial class MockableSapVirtualInstancesResourceGroupResource : ArmResource
+ {
+ /// Initializes a new instance of the class for mocking.
+ protected MockableSapVirtualInstancesResourceGroupResource()
+ {
+ }
+
+ /// 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 MockableSapVirtualInstancesResourceGroupResource(ArmClient client, ResourceIdentifier id) : base(client, id)
+ {
+ }
+
+ private string GetApiVersionOrNull(ResourceType resourceType)
+ {
+ TryGetApiVersion(resourceType, out string apiVersion);
+ return apiVersion;
+ }
+
+ /// Gets a collection of SAPVirtualInstanceResources in the ResourceGroupResource.
+ /// An object representing collection of SAPVirtualInstanceResources and their operations over a SAPVirtualInstanceResource.
+ public virtual SAPVirtualInstanceCollection GetSAPVirtualInstances()
+ {
+ return GetCachedClient(client => new SAPVirtualInstanceCollection(client, Id));
+ }
+
+ ///
+ /// Gets a Virtual Instance for SAP solutions resource
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Workloads/sapVirtualInstances/{sapVirtualInstanceName}
+ ///
+ /// -
+ /// Operation Id
+ /// SAPVirtualInstance_Get
+ ///
+ /// -
+ /// Default Api Version
+ /// 2024-09-01
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// The name of the Virtual Instances for SAP solutions resource.
+ /// The cancellation token to use.
+ /// is null.
+ /// is an empty string, and was expected to be non-empty.
+ [ForwardsClientCalls]
+ public virtual async Task> GetSAPVirtualInstanceAsync(string sapVirtualInstanceName, CancellationToken cancellationToken = default)
+ {
+ return await GetSAPVirtualInstances().GetAsync(sapVirtualInstanceName, cancellationToken).ConfigureAwait(false);
+ }
+
+ ///
+ /// Gets a Virtual Instance for SAP solutions resource
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Workloads/sapVirtualInstances/{sapVirtualInstanceName}
+ ///
+ /// -
+ /// Operation Id
+ /// SAPVirtualInstance_Get
+ ///
+ /// -
+ /// Default Api Version
+ /// 2024-09-01
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// The name of the Virtual Instances for SAP solutions resource.
+ /// The cancellation token to use.
+ /// is null.
+ /// is an empty string, and was expected to be non-empty.
+ [ForwardsClientCalls]
+ public virtual Response GetSAPVirtualInstance(string sapVirtualInstanceName, CancellationToken cancellationToken = default)
+ {
+ return GetSAPVirtualInstances().Get(sapVirtualInstanceName, cancellationToken);
+ }
+ }
+}
diff --git a/sdk/workloadssapvirtualinstance/Azure.ResourceManager.SapVirtualInstances/src/Generated/Extensions/MockableSapVirtualInstancesSubscriptionResource.cs b/sdk/workloadssapvirtualinstance/Azure.ResourceManager.SapVirtualInstances/src/Generated/Extensions/MockableSapVirtualInstancesSubscriptionResource.cs
new file mode 100644
index 000000000000..a4a23d3e530d
--- /dev/null
+++ b/sdk/workloadssapvirtualinstance/Azure.ResourceManager.SapVirtualInstances/src/Generated/Extensions/MockableSapVirtualInstancesSubscriptionResource.cs
@@ -0,0 +1,449 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Threading;
+using System.Threading.Tasks;
+using Autorest.CSharp.Core;
+using Azure.Core;
+using Azure.Core.Pipeline;
+using Azure.ResourceManager.SapVirtualInstances.Models;
+
+namespace Azure.ResourceManager.SapVirtualInstances.Mocking
+{
+ /// A class to add extension methods to SubscriptionResource.
+ public partial class MockableSapVirtualInstancesSubscriptionResource : ArmResource
+ {
+ private ClientDiagnostics _sapVirtualInstanceClientDiagnostics;
+ private SAPVirtualInstancesRestOperations _sapVirtualInstanceRestClient;
+
+ /// Initializes a new instance of the class for mocking.
+ protected MockableSapVirtualInstancesSubscriptionResource()
+ {
+ }
+
+ /// 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 MockableSapVirtualInstancesSubscriptionResource(ArmClient client, ResourceIdentifier id) : base(client, id)
+ {
+ }
+
+ private ClientDiagnostics SAPVirtualInstanceClientDiagnostics => _sapVirtualInstanceClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.SapVirtualInstances", SAPVirtualInstanceResource.ResourceType.Namespace, Diagnostics);
+ private SAPVirtualInstancesRestOperations SAPVirtualInstanceRestClient => _sapVirtualInstanceRestClient ??= new SAPVirtualInstancesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, GetApiVersionOrNull(SAPVirtualInstanceResource.ResourceType));
+
+ private string GetApiVersionOrNull(ResourceType resourceType)
+ {
+ TryGetApiVersion(resourceType, out string apiVersion);
+ return apiVersion;
+ }
+
+ ///
+ /// Gets all Virtual Instances for SAP solutions resources in a Subscription.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.Workloads/sapVirtualInstances
+ ///
+ /// -
+ /// Operation Id
+ /// SAPVirtualInstance_ListBySubscription
+ ///
+ /// -
+ /// Default Api Version
+ /// 2024-09-01
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// The cancellation token to use.
+ /// An async collection of that may take multiple service requests to iterate over.
+ public virtual AsyncPageable GetSAPVirtualInstancesAsync(CancellationToken cancellationToken = default)
+ {
+ HttpMessage FirstPageRequest(int? pageSizeHint) => SAPVirtualInstanceRestClient.CreateListBySubscriptionRequest(Id.SubscriptionId);
+ HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => SAPVirtualInstanceRestClient.CreateListBySubscriptionNextPageRequest(nextLink, Id.SubscriptionId);
+ return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new SAPVirtualInstanceResource(Client, SAPVirtualInstanceData.DeserializeSAPVirtualInstanceData(e)), SAPVirtualInstanceClientDiagnostics, Pipeline, "MockableSapVirtualInstancesSubscriptionResource.GetSAPVirtualInstances", "value", "nextLink", cancellationToken);
+ }
+
+ ///
+ /// Gets all Virtual Instances for SAP solutions resources in a Subscription.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.Workloads/sapVirtualInstances
+ ///
+ /// -
+ /// Operation Id
+ /// SAPVirtualInstance_ListBySubscription
+ ///
+ /// -
+ /// Default Api Version
+ /// 2024-09-01
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// The cancellation token to use.
+ /// A collection of that may take multiple service requests to iterate over.
+ public virtual Pageable GetSAPVirtualInstances(CancellationToken cancellationToken = default)
+ {
+ HttpMessage FirstPageRequest(int? pageSizeHint) => SAPVirtualInstanceRestClient.CreateListBySubscriptionRequest(Id.SubscriptionId);
+ HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => SAPVirtualInstanceRestClient.CreateListBySubscriptionNextPageRequest(nextLink, Id.SubscriptionId);
+ return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new SAPVirtualInstanceResource(Client, SAPVirtualInstanceData.DeserializeSAPVirtualInstanceData(e)), SAPVirtualInstanceClientDiagnostics, Pipeline, "MockableSapVirtualInstancesSubscriptionResource.GetSAPVirtualInstances", "value", "nextLink", cancellationToken);
+ }
+
+ ///
+ /// Gets the sizing recommendations.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.Workloads/locations/{location}/sapVirtualInstanceMetadata/default/getSizingRecommendations
+ ///
+ /// -
+ /// Operation Id
+ /// SAPVirtualInstances_GetSizingRecommendations
+ ///
+ /// -
+ /// Default Api Version
+ /// 2024-09-01
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// The name of the Azure region.
+ /// The content of the action request.
+ /// The cancellation token to use.
+ /// is null.
+ public virtual async Task> GetSizingRecommendationsSAPVirtualInstanceAsync(AzureLocation location, SAPSizingRecommendationContent content, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(content, nameof(content));
+
+ using var scope = SAPVirtualInstanceClientDiagnostics.CreateScope("MockableSapVirtualInstancesSubscriptionResource.GetSizingRecommendationsSAPVirtualInstance");
+ scope.Start();
+ try
+ {
+ var response = await SAPVirtualInstanceRestClient.GetSizingRecommendationsAsync(Id.SubscriptionId, location, content, cancellationToken).ConfigureAwait(false);
+ return response;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Gets the sizing recommendations.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.Workloads/locations/{location}/sapVirtualInstanceMetadata/default/getSizingRecommendations
+ ///
+ /// -
+ /// Operation Id
+ /// SAPVirtualInstances_GetSizingRecommendations
+ ///
+ /// -
+ /// Default Api Version
+ /// 2024-09-01
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// The name of the Azure region.
+ /// The content of the action request.
+ /// The cancellation token to use.
+ /// is null.
+ public virtual Response GetSizingRecommendationsSAPVirtualInstance(AzureLocation location, SAPSizingRecommendationContent content, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(content, nameof(content));
+
+ using var scope = SAPVirtualInstanceClientDiagnostics.CreateScope("MockableSapVirtualInstancesSubscriptionResource.GetSizingRecommendationsSAPVirtualInstance");
+ scope.Start();
+ try
+ {
+ var response = SAPVirtualInstanceRestClient.GetSizingRecommendations(Id.SubscriptionId, location, content, cancellationToken);
+ return response;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Get a list of SAP supported SKUs for ASCS, Application and Database tier.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.Workloads/locations/{location}/sapVirtualInstanceMetadata/default/getSapSupportedSku
+ ///
+ /// -
+ /// Operation Id
+ /// SAPVirtualInstances_GetSapSupportedSku
+ ///
+ /// -
+ /// Default Api Version
+ /// 2024-09-01
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// The name of the Azure region.
+ /// The content of the action request.
+ /// The cancellation token to use.
+ /// is null.
+ public virtual async Task> GetSapSupportedSkuSAPVirtualInstanceAsync(AzureLocation location, SAPSupportedSkusContent content, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(content, nameof(content));
+
+ using var scope = SAPVirtualInstanceClientDiagnostics.CreateScope("MockableSapVirtualInstancesSubscriptionResource.GetSapSupportedSkuSAPVirtualInstance");
+ scope.Start();
+ try
+ {
+ var response = await SAPVirtualInstanceRestClient.GetSapSupportedSkuAsync(Id.SubscriptionId, location, content, cancellationToken).ConfigureAwait(false);
+ return response;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Get a list of SAP supported SKUs for ASCS, Application and Database tier.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.Workloads/locations/{location}/sapVirtualInstanceMetadata/default/getSapSupportedSku
+ ///
+ /// -
+ /// Operation Id
+ /// SAPVirtualInstances_GetSapSupportedSku
+ ///
+ /// -
+ /// Default Api Version
+ /// 2024-09-01
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// The name of the Azure region.
+ /// The content of the action request.
+ /// The cancellation token to use.
+ /// is null.
+ public virtual Response GetSapSupportedSkuSAPVirtualInstance(AzureLocation location, SAPSupportedSkusContent content, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(content, nameof(content));
+
+ using var scope = SAPVirtualInstanceClientDiagnostics.CreateScope("MockableSapVirtualInstancesSubscriptionResource.GetSapSupportedSkuSAPVirtualInstance");
+ scope.Start();
+ try
+ {
+ var response = SAPVirtualInstanceRestClient.GetSapSupportedSku(Id.SubscriptionId, location, content, cancellationToken);
+ return response;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Get the SAP Disk Configuration Layout prod/non-prod SAP System.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.Workloads/locations/{location}/sapVirtualInstanceMetadata/default/getDiskConfigurations
+ ///
+ /// -
+ /// Operation Id
+ /// SAPVirtualInstances_GetDiskConfigurations
+ ///
+ /// -
+ /// Default Api Version
+ /// 2024-09-01
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// The name of the Azure region.
+ /// The content of the action request.
+ /// The cancellation token to use.
+ /// is null.
+ public virtual async Task> GetDiskConfigurationsSAPVirtualInstanceAsync(AzureLocation location, SAPDiskConfigurationsContent content, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(content, nameof(content));
+
+ using var scope = SAPVirtualInstanceClientDiagnostics.CreateScope("MockableSapVirtualInstancesSubscriptionResource.GetDiskConfigurationsSAPVirtualInstance");
+ scope.Start();
+ try
+ {
+ var response = await SAPVirtualInstanceRestClient.GetDiskConfigurationsAsync(Id.SubscriptionId, location, content, cancellationToken).ConfigureAwait(false);
+ return response;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Get the SAP Disk Configuration Layout prod/non-prod SAP System.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.Workloads/locations/{location}/sapVirtualInstanceMetadata/default/getDiskConfigurations
+ ///
+ /// -
+ /// Operation Id
+ /// SAPVirtualInstances_GetDiskConfigurations
+ ///
+ /// -
+ /// Default Api Version
+ /// 2024-09-01
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// The name of the Azure region.
+ /// The content of the action request.
+ /// The cancellation token to use.
+ /// is null.
+ public virtual Response GetDiskConfigurationsSAPVirtualInstance(AzureLocation location, SAPDiskConfigurationsContent content, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(content, nameof(content));
+
+ using var scope = SAPVirtualInstanceClientDiagnostics.CreateScope("MockableSapVirtualInstancesSubscriptionResource.GetDiskConfigurationsSAPVirtualInstance");
+ scope.Start();
+ try
+ {
+ var response = SAPVirtualInstanceRestClient.GetDiskConfigurations(Id.SubscriptionId, location, content, cancellationToken);
+ return response;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Get the recommended SAP Availability Zone Pair Details for your region.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.Workloads/locations/{location}/sapVirtualInstanceMetadata/default/getAvailabilityZoneDetails
+ ///
+ /// -
+ /// Operation Id
+ /// SAPVirtualInstances_GetAvailabilityZoneDetails
+ ///
+ /// -
+ /// Default Api Version
+ /// 2024-09-01
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// The name of the Azure region.
+ /// The content of the action request.
+ /// The cancellation token to use.
+ /// is null.
+ public virtual async Task> GetAvailabilityZoneDetailsSAPVirtualInstanceAsync(AzureLocation location, SAPAvailabilityZoneDetailsContent content, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(content, nameof(content));
+
+ using var scope = SAPVirtualInstanceClientDiagnostics.CreateScope("MockableSapVirtualInstancesSubscriptionResource.GetAvailabilityZoneDetailsSAPVirtualInstance");
+ scope.Start();
+ try
+ {
+ var response = await SAPVirtualInstanceRestClient.GetAvailabilityZoneDetailsAsync(Id.SubscriptionId, location, content, cancellationToken).ConfigureAwait(false);
+ return response;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Get the recommended SAP Availability Zone Pair Details for your region.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.Workloads/locations/{location}/sapVirtualInstanceMetadata/default/getAvailabilityZoneDetails
+ ///
+ /// -
+ /// Operation Id
+ /// SAPVirtualInstances_GetAvailabilityZoneDetails
+ ///
+ /// -
+ /// Default Api Version
+ /// 2024-09-01
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// The name of the Azure region.
+ /// The content of the action request.
+ /// The cancellation token to use.
+ /// is null.
+ public virtual Response GetAvailabilityZoneDetailsSAPVirtualInstance(AzureLocation location, SAPAvailabilityZoneDetailsContent content, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(content, nameof(content));
+
+ using var scope = SAPVirtualInstanceClientDiagnostics.CreateScope("MockableSapVirtualInstancesSubscriptionResource.GetAvailabilityZoneDetailsSAPVirtualInstance");
+ scope.Start();
+ try
+ {
+ var response = SAPVirtualInstanceRestClient.GetAvailabilityZoneDetails(Id.SubscriptionId, location, content, cancellationToken);
+ return response;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+ }
+}
diff --git a/sdk/workloadssapvirtualinstance/Azure.ResourceManager.SapVirtualInstances/src/Generated/Extensions/SapVirtualInstancesExtensions.cs b/sdk/workloadssapvirtualinstance/Azure.ResourceManager.SapVirtualInstances/src/Generated/Extensions/SapVirtualInstancesExtensions.cs
new file mode 100644
index 000000000000..a165b788cdda
--- /dev/null
+++ b/sdk/workloadssapvirtualinstance/Azure.ResourceManager.SapVirtualInstances/src/Generated/Extensions/SapVirtualInstancesExtensions.cs
@@ -0,0 +1,573 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Threading;
+using System.Threading.Tasks;
+using Azure.Core;
+using Azure.ResourceManager.Resources;
+using Azure.ResourceManager.SapVirtualInstances.Mocking;
+using Azure.ResourceManager.SapVirtualInstances.Models;
+
+namespace Azure.ResourceManager.SapVirtualInstances
+{
+ /// A class to add extension methods to Azure.ResourceManager.SapVirtualInstances.
+ public static partial class SapVirtualInstancesExtensions
+ {
+ private static MockableSapVirtualInstancesArmClient GetMockableSapVirtualInstancesArmClient(ArmClient client)
+ {
+ return client.GetCachedClient(client0 => new MockableSapVirtualInstancesArmClient(client0));
+ }
+
+ private static MockableSapVirtualInstancesResourceGroupResource GetMockableSapVirtualInstancesResourceGroupResource(ArmResource resource)
+ {
+ return resource.GetCachedClient(client => new MockableSapVirtualInstancesResourceGroupResource(client, resource.Id));
+ }
+
+ private static MockableSapVirtualInstancesSubscriptionResource GetMockableSapVirtualInstancesSubscriptionResource(ArmResource resource)
+ {
+ return resource.GetCachedClient(client => new MockableSapVirtualInstancesSubscriptionResource(client, resource.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 SAPVirtualInstanceResource GetSAPVirtualInstanceResource(this ArmClient client, ResourceIdentifier id)
+ {
+ Argument.AssertNotNull(client, nameof(client));
+
+ return GetMockableSapVirtualInstancesArmClient(client).GetSAPVirtualInstanceResource(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 SAPCentralServerInstanceResource GetSAPCentralServerInstanceResource(this ArmClient client, ResourceIdentifier id)
+ {
+ Argument.AssertNotNull(client, nameof(client));
+
+ return GetMockableSapVirtualInstancesArmClient(client).GetSAPCentralServerInstanceResource(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 SAPDatabaseInstanceResource GetSAPDatabaseInstanceResource(this ArmClient client, ResourceIdentifier id)
+ {
+ Argument.AssertNotNull(client, nameof(client));
+
+ return GetMockableSapVirtualInstancesArmClient(client).GetSAPDatabaseInstanceResource(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 SAPApplicationServerInstanceResource GetSAPApplicationServerInstanceResource(this ArmClient client, ResourceIdentifier id)
+ {
+ Argument.AssertNotNull(client, nameof(client));
+
+ return GetMockableSapVirtualInstancesArmClient(client).GetSAPApplicationServerInstanceResource(id);
+ }
+
+ ///
+ /// Gets a collection of SAPVirtualInstanceResources in the ResourceGroupResource.
+ /// -
+ /// Mocking
+ /// To mock this method, please mock instead.
+ ///
+ ///
+ /// The instance the method will execute against.
+ /// is null.
+ /// An object representing collection of SAPVirtualInstanceResources and their operations over a SAPVirtualInstanceResource.
+ public static SAPVirtualInstanceCollection GetSAPVirtualInstances(this ResourceGroupResource resourceGroupResource)
+ {
+ Argument.AssertNotNull(resourceGroupResource, nameof(resourceGroupResource));
+
+ return GetMockableSapVirtualInstancesResourceGroupResource(resourceGroupResource).GetSAPVirtualInstances();
+ }
+
+ ///
+ /// Gets a Virtual Instance for SAP solutions resource
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Workloads/sapVirtualInstances/{sapVirtualInstanceName}
+ ///
+ /// -
+ /// Operation Id
+ /// SAPVirtualInstance_Get
+ ///
+ /// -
+ /// Default Api Version
+ /// 2024-09-01
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ /// -
+ /// Mocking
+ /// To mock this method, please mock instead.
+ ///
+ ///
+ /// The instance the method will execute against.
+ /// The name of the Virtual Instances for SAP solutions resource.
+ /// The cancellation token to use.
+ /// or is null.
+ /// is an empty string, and was expected to be non-empty.
+ [ForwardsClientCalls]
+ public static async Task> GetSAPVirtualInstanceAsync(this ResourceGroupResource resourceGroupResource, string sapVirtualInstanceName, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(resourceGroupResource, nameof(resourceGroupResource));
+
+ return await GetMockableSapVirtualInstancesResourceGroupResource(resourceGroupResource).GetSAPVirtualInstanceAsync(sapVirtualInstanceName, cancellationToken).ConfigureAwait(false);
+ }
+
+ ///
+ /// Gets a Virtual Instance for SAP solutions resource
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Workloads/sapVirtualInstances/{sapVirtualInstanceName}
+ ///
+ /// -
+ /// Operation Id
+ /// SAPVirtualInstance_Get
+ ///
+ /// -
+ /// Default Api Version
+ /// 2024-09-01
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ /// -
+ /// Mocking
+ /// To mock this method, please mock instead.
+ ///
+ ///
+ /// The instance the method will execute against.
+ /// The name of the Virtual Instances for SAP solutions resource.
+ /// The cancellation token to use.
+ /// or is null.
+ /// is an empty string, and was expected to be non-empty.
+ [ForwardsClientCalls]
+ public static Response GetSAPVirtualInstance(this ResourceGroupResource resourceGroupResource, string sapVirtualInstanceName, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(resourceGroupResource, nameof(resourceGroupResource));
+
+ return GetMockableSapVirtualInstancesResourceGroupResource(resourceGroupResource).GetSAPVirtualInstance(sapVirtualInstanceName, cancellationToken);
+ }
+
+ ///
+ /// Gets all Virtual Instances for SAP solutions resources in a Subscription.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.Workloads/sapVirtualInstances
+ ///
+ /// -
+ /// Operation Id
+ /// SAPVirtualInstance_ListBySubscription
+ ///
+ /// -
+ /// Default Api Version
+ /// 2024-09-01
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ /// -
+ /// Mocking
+ /// To mock this method, please mock instead.
+ ///
+ ///
+ /// The instance the method will execute against.
+ /// The cancellation token to use.
+ /// is null.
+ /// An async collection of that may take multiple service requests to iterate over.
+ public static AsyncPageable GetSAPVirtualInstancesAsync(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource));
+
+ return GetMockableSapVirtualInstancesSubscriptionResource(subscriptionResource).GetSAPVirtualInstancesAsync(cancellationToken);
+ }
+
+ ///
+ /// Gets all Virtual Instances for SAP solutions resources in a Subscription.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.Workloads/sapVirtualInstances
+ ///
+ /// -
+ /// Operation Id
+ /// SAPVirtualInstance_ListBySubscription
+ ///
+ /// -
+ /// Default Api Version
+ /// 2024-09-01
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ /// -
+ /// Mocking
+ /// To mock this method, please mock instead.
+ ///
+ ///
+ /// The instance the method will execute against.
+ /// The cancellation token to use.
+ /// is null.
+ /// A collection of that may take multiple service requests to iterate over.
+ public static Pageable GetSAPVirtualInstances(this SubscriptionResource subscriptionResource, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource));
+
+ return GetMockableSapVirtualInstancesSubscriptionResource(subscriptionResource).GetSAPVirtualInstances(cancellationToken);
+ }
+
+ ///
+ /// Gets the sizing recommendations.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.Workloads/locations/{location}/sapVirtualInstanceMetadata/default/getSizingRecommendations
+ ///
+ /// -
+ /// Operation Id
+ /// SAPVirtualInstances_GetSizingRecommendations
+ ///
+ /// -
+ /// Default Api Version
+ /// 2024-09-01
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ /// -
+ /// Mocking
+ /// To mock this method, please mock instead.
+ ///
+ ///
+ /// The instance the method will execute against.
+ /// The name of the Azure region.
+ /// The content of the action request.
+ /// The cancellation token to use.
+ /// or is null.
+ public static async Task> GetSizingRecommendationsSAPVirtualInstanceAsync(this SubscriptionResource subscriptionResource, AzureLocation location, SAPSizingRecommendationContent content, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource));
+
+ return await GetMockableSapVirtualInstancesSubscriptionResource(subscriptionResource).GetSizingRecommendationsSAPVirtualInstanceAsync(location, content, cancellationToken).ConfigureAwait(false);
+ }
+
+ ///
+ /// Gets the sizing recommendations.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.Workloads/locations/{location}/sapVirtualInstanceMetadata/default/getSizingRecommendations
+ ///
+ /// -
+ /// Operation Id
+ /// SAPVirtualInstances_GetSizingRecommendations
+ ///
+ /// -
+ /// Default Api Version
+ /// 2024-09-01
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ /// -
+ /// Mocking
+ /// To mock this method, please mock instead.
+ ///
+ ///
+ /// The instance the method will execute against.
+ /// The name of the Azure region.
+ /// The content of the action request.
+ /// The cancellation token to use.
+ /// or is null.
+ public static Response GetSizingRecommendationsSAPVirtualInstance(this SubscriptionResource subscriptionResource, AzureLocation location, SAPSizingRecommendationContent content, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource));
+
+ return GetMockableSapVirtualInstancesSubscriptionResource(subscriptionResource).GetSizingRecommendationsSAPVirtualInstance(location, content, cancellationToken);
+ }
+
+ ///
+ /// Get a list of SAP supported SKUs for ASCS, Application and Database tier.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.Workloads/locations/{location}/sapVirtualInstanceMetadata/default/getSapSupportedSku
+ ///
+ /// -
+ /// Operation Id
+ /// SAPVirtualInstances_GetSapSupportedSku
+ ///
+ /// -
+ /// Default Api Version
+ /// 2024-09-01
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ /// -
+ /// Mocking
+ /// To mock this method, please mock instead.
+ ///
+ ///
+ /// The instance the method will execute against.
+ /// The name of the Azure region.
+ /// The content of the action request.
+ /// The cancellation token to use.
+ /// or is null.
+ public static async Task> GetSapSupportedSkuSAPVirtualInstanceAsync(this SubscriptionResource subscriptionResource, AzureLocation location, SAPSupportedSkusContent content, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource));
+
+ return await GetMockableSapVirtualInstancesSubscriptionResource(subscriptionResource).GetSapSupportedSkuSAPVirtualInstanceAsync(location, content, cancellationToken).ConfigureAwait(false);
+ }
+
+ ///
+ /// Get a list of SAP supported SKUs for ASCS, Application and Database tier.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.Workloads/locations/{location}/sapVirtualInstanceMetadata/default/getSapSupportedSku
+ ///
+ /// -
+ /// Operation Id
+ /// SAPVirtualInstances_GetSapSupportedSku
+ ///
+ /// -
+ /// Default Api Version
+ /// 2024-09-01
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ /// -
+ /// Mocking
+ /// To mock this method, please mock instead.
+ ///
+ ///
+ /// The instance the method will execute against.
+ /// The name of the Azure region.
+ /// The content of the action request.
+ /// The cancellation token to use.
+ /// or is null.
+ public static Response GetSapSupportedSkuSAPVirtualInstance(this SubscriptionResource subscriptionResource, AzureLocation location, SAPSupportedSkusContent content, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource));
+
+ return GetMockableSapVirtualInstancesSubscriptionResource(subscriptionResource).GetSapSupportedSkuSAPVirtualInstance(location, content, cancellationToken);
+ }
+
+ ///
+ /// Get the SAP Disk Configuration Layout prod/non-prod SAP System.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.Workloads/locations/{location}/sapVirtualInstanceMetadata/default/getDiskConfigurations
+ ///
+ /// -
+ /// Operation Id
+ /// SAPVirtualInstances_GetDiskConfigurations
+ ///
+ /// -
+ /// Default Api Version
+ /// 2024-09-01
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ /// -
+ /// Mocking
+ /// To mock this method, please mock instead.
+ ///
+ ///
+ /// The instance the method will execute against.
+ /// The name of the Azure region.
+ /// The content of the action request.
+ /// The cancellation token to use.
+ /// or is null.
+ public static async Task> GetDiskConfigurationsSAPVirtualInstanceAsync(this SubscriptionResource subscriptionResource, AzureLocation location, SAPDiskConfigurationsContent content, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource));
+
+ return await GetMockableSapVirtualInstancesSubscriptionResource(subscriptionResource).GetDiskConfigurationsSAPVirtualInstanceAsync(location, content, cancellationToken).ConfigureAwait(false);
+ }
+
+ ///
+ /// Get the SAP Disk Configuration Layout prod/non-prod SAP System.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.Workloads/locations/{location}/sapVirtualInstanceMetadata/default/getDiskConfigurations
+ ///
+ /// -
+ /// Operation Id
+ /// SAPVirtualInstances_GetDiskConfigurations
+ ///
+ /// -
+ /// Default Api Version
+ /// 2024-09-01
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ /// -
+ /// Mocking
+ /// To mock this method, please mock instead.
+ ///
+ ///
+ /// The instance the method will execute against.
+ /// The name of the Azure region.
+ /// The content of the action request.
+ /// The cancellation token to use.
+ /// or is null.
+ public static Response GetDiskConfigurationsSAPVirtualInstance(this SubscriptionResource subscriptionResource, AzureLocation location, SAPDiskConfigurationsContent content, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource));
+
+ return GetMockableSapVirtualInstancesSubscriptionResource(subscriptionResource).GetDiskConfigurationsSAPVirtualInstance(location, content, cancellationToken);
+ }
+
+ ///
+ /// Get the recommended SAP Availability Zone Pair Details for your region.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.Workloads/locations/{location}/sapVirtualInstanceMetadata/default/getAvailabilityZoneDetails
+ ///
+ /// -
+ /// Operation Id
+ /// SAPVirtualInstances_GetAvailabilityZoneDetails
+ ///
+ /// -
+ /// Default Api Version
+ /// 2024-09-01
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ /// -
+ /// Mocking
+ /// To mock this method, please mock instead.
+ ///
+ ///
+ /// The instance the method will execute against.
+ /// The name of the Azure region.
+ /// The content of the action request.
+ /// The cancellation token to use.
+ /// or is null.
+ public static async Task> GetAvailabilityZoneDetailsSAPVirtualInstanceAsync(this SubscriptionResource subscriptionResource, AzureLocation location, SAPAvailabilityZoneDetailsContent content, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource));
+
+ return await GetMockableSapVirtualInstancesSubscriptionResource(subscriptionResource).GetAvailabilityZoneDetailsSAPVirtualInstanceAsync(location, content, cancellationToken).ConfigureAwait(false);
+ }
+
+ ///
+ /// Get the recommended SAP Availability Zone Pair Details for your region.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/providers/Microsoft.Workloads/locations/{location}/sapVirtualInstanceMetadata/default/getAvailabilityZoneDetails
+ ///
+ /// -
+ /// Operation Id
+ /// SAPVirtualInstances_GetAvailabilityZoneDetails
+ ///
+ /// -
+ /// Default Api Version
+ /// 2024-09-01
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ /// -
+ /// Mocking
+ /// To mock this method, please mock instead.
+ ///
+ ///
+ /// The instance the method will execute against.
+ /// The name of the Azure region.
+ /// The content of the action request.
+ /// The cancellation token to use.
+ /// or is null.
+ public static Response GetAvailabilityZoneDetailsSAPVirtualInstance(this SubscriptionResource subscriptionResource, AzureLocation location, SAPAvailabilityZoneDetailsContent content, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(subscriptionResource, nameof(subscriptionResource));
+
+ return GetMockableSapVirtualInstancesSubscriptionResource(subscriptionResource).GetAvailabilityZoneDetailsSAPVirtualInstance(location, content, cancellationToken);
+ }
+ }
+}
diff --git a/sdk/workloadssapvirtualinstance/Azure.ResourceManager.SapVirtualInstances/src/Generated/Internal/Argument.cs b/sdk/workloadssapvirtualinstance/Azure.ResourceManager.SapVirtualInstances/src/Generated/Internal/Argument.cs
new file mode 100644
index 000000000000..058a05ba4c78
--- /dev/null
+++ b/sdk/workloadssapvirtualinstance/Azure.ResourceManager.SapVirtualInstances/src/Generated/Internal/Argument.cs
@@ -0,0 +1,129 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections;
+using System.Collections.Generic;
+
+namespace Azure.ResourceManager.SapVirtualInstances
+{
+ internal static class Argument
+ {
+ public static void AssertNotNull(T value, string name)
+ {
+ if (value is null)
+ {
+ throw new ArgumentNullException(name);
+ }
+ }
+
+ public static void AssertNotNull(T? value, string name)
+ where T : struct
+ {
+ if (!value.HasValue)
+ {
+ throw new ArgumentNullException(name);
+ }
+ }
+
+ public static void AssertNotNullOrEmpty(IEnumerable value, string name)
+ {
+ if (value is null)
+ {
+ throw new ArgumentNullException(name);
+ }
+ if (value is ICollection collectionOfT && collectionOfT.Count == 0)
+ {
+ throw new ArgumentException("Value cannot be an empty collection.", name);
+ }
+ if (value is ICollection collection && collection.Count == 0)
+ {
+ throw new ArgumentException("Value cannot be an empty collection.", name);
+ }
+ using IEnumerator e = value.GetEnumerator();
+ if (!e.MoveNext())
+ {
+ throw new ArgumentException("Value cannot be an empty collection.", name);
+ }
+ }
+
+ public static void AssertNotNullOrEmpty(string value, string name)
+ {
+ if (value is null)
+ {
+ throw new ArgumentNullException(name);
+ }
+ if (value.Length == 0)
+ {
+ throw new ArgumentException("Value cannot be an empty string.", name);
+ }
+ }
+
+ public static void AssertNotNullOrWhiteSpace(string value, string name)
+ {
+ if (value is null)
+ {
+ throw new ArgumentNullException(name);
+ }
+ if (string.IsNullOrWhiteSpace(value))
+ {
+ throw new ArgumentException("Value cannot be empty or contain only white-space characters.", name);
+ }
+ }
+
+ public static void AssertNotDefault(ref T value, string name)
+ where T : struct, IEquatable
+ {
+ if (value.Equals(default))
+ {
+ throw new ArgumentException("Value cannot be empty.", name);
+ }
+ }
+
+ public static void AssertInRange(T value, T minimum, T maximum, string name)
+ where T : notnull, IComparable
+ {
+ if (minimum.CompareTo(value) > 0)
+ {
+ throw new ArgumentOutOfRangeException(name, "Value is less than the minimum allowed.");
+ }
+ if (maximum.CompareTo(value) < 0)
+ {
+ throw new ArgumentOutOfRangeException(name, "Value is greater than the maximum allowed.");
+ }
+ }
+
+ public static void AssertEnumDefined(Type enumType, object value, string name)
+ {
+ if (!Enum.IsDefined(enumType, value))
+ {
+ throw new ArgumentException($"Value not defined for {enumType.FullName}.", name);
+ }
+ }
+
+ public static T CheckNotNull(T value, string name)
+ where T : class
+ {
+ AssertNotNull(value, name);
+ return value;
+ }
+
+ public static string CheckNotNullOrEmpty(string value, string name)
+ {
+ AssertNotNullOrEmpty(value, name);
+ return value;
+ }
+
+ public static void AssertNull(T value, string name, string message = null)
+ {
+ if (value != null)
+ {
+ throw new ArgumentException(message ?? "Value must be null.", name);
+ }
+ }
+ }
+}
diff --git a/sdk/workloadssapvirtualinstance/Azure.ResourceManager.SapVirtualInstances/src/Generated/Internal/ChangeTrackingDictionary.cs b/sdk/workloadssapvirtualinstance/Azure.ResourceManager.SapVirtualInstances/src/Generated/Internal/ChangeTrackingDictionary.cs
new file mode 100644
index 000000000000..dd179878f74f
--- /dev/null
+++ b/sdk/workloadssapvirtualinstance/Azure.ResourceManager.SapVirtualInstances/src/Generated/Internal/ChangeTrackingDictionary.cs
@@ -0,0 +1,167 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections;
+using System.Collections.Generic;
+
+namespace Azure.ResourceManager.SapVirtualInstances
+{
+ internal class ChangeTrackingDictionary : IDictionary, IReadOnlyDictionary where TKey : notnull
+ {
+ private IDictionary _innerDictionary;
+
+ public ChangeTrackingDictionary()
+ {
+ }
+
+ public ChangeTrackingDictionary(IDictionary dictionary)
+ {
+ if (dictionary == null)
+ {
+ return;
+ }
+ _innerDictionary = new Dictionary(dictionary);
+ }
+
+ public ChangeTrackingDictionary(IReadOnlyDictionary dictionary)
+ {
+ if (dictionary == null)
+ {
+ return;
+ }
+ _innerDictionary = new Dictionary();
+ foreach (var pair in dictionary)
+ {
+ _innerDictionary.Add(pair);
+ }
+ }
+
+ public bool IsUndefined => _innerDictionary == null;
+
+ public int Count => IsUndefined ? 0 : EnsureDictionary().Count;
+
+ public bool IsReadOnly => IsUndefined ? false : EnsureDictionary().IsReadOnly;
+
+ public ICollection Keys => IsUndefined ? Array.Empty() : EnsureDictionary().Keys;
+
+ public ICollection Values => IsUndefined ? Array.Empty() : EnsureDictionary().Values;
+
+ public TValue this[TKey key]
+ {
+ get
+ {
+ if (IsUndefined)
+ {
+ throw new KeyNotFoundException(nameof(key));
+ }
+ return EnsureDictionary()[key];
+ }
+ set
+ {
+ EnsureDictionary()[key] = value;
+ }
+ }
+
+ IEnumerable IReadOnlyDictionary.Keys => Keys;
+
+ IEnumerable IReadOnlyDictionary.Values => Values;
+
+ public IEnumerator> GetEnumerator()
+ {
+ if (IsUndefined)
+ {
+ IEnumerator> enumerateEmpty()
+ {
+ yield break;
+ }
+ return enumerateEmpty();
+ }
+ return EnsureDictionary().GetEnumerator();
+ }
+
+ IEnumerator IEnumerable.GetEnumerator()
+ {
+ return GetEnumerator();
+ }
+
+ public void Add(KeyValuePair item)
+ {
+ EnsureDictionary().Add(item);
+ }
+
+ public void Clear()
+ {
+ EnsureDictionary().Clear();
+ }
+
+ public bool Contains(KeyValuePair item)
+ {
+ if (IsUndefined)
+ {
+ return false;
+ }
+ return EnsureDictionary().Contains(item);
+ }
+
+ public void CopyTo(KeyValuePair[] array, int index)
+ {
+ if (IsUndefined)
+ {
+ return;
+ }
+ EnsureDictionary().CopyTo(array, index);
+ }
+
+ public bool Remove(KeyValuePair item)
+ {
+ if (IsUndefined)
+ {
+ return false;
+ }
+ return EnsureDictionary().Remove(item);
+ }
+
+ public void Add(TKey key, TValue value)
+ {
+ EnsureDictionary().Add(key, value);
+ }
+
+ public bool ContainsKey(TKey key)
+ {
+ if (IsUndefined)
+ {
+ return false;
+ }
+ return EnsureDictionary().ContainsKey(key);
+ }
+
+ public bool Remove(TKey key)
+ {
+ if (IsUndefined)
+ {
+ return false;
+ }
+ return EnsureDictionary().Remove(key);
+ }
+
+ public bool TryGetValue(TKey key, out TValue value)
+ {
+ if (IsUndefined)
+ {
+ value = default;
+ return false;
+ }
+ return EnsureDictionary().TryGetValue(key, out value);
+ }
+
+ public IDictionary EnsureDictionary()
+ {
+ return _innerDictionary ??= new Dictionary();
+ }
+ }
+}
diff --git a/sdk/workloadssapvirtualinstance/Azure.ResourceManager.SapVirtualInstances/src/Generated/Internal/ChangeTrackingList.cs b/sdk/workloadssapvirtualinstance/Azure.ResourceManager.SapVirtualInstances/src/Generated/Internal/ChangeTrackingList.cs
new file mode 100644
index 000000000000..7579b8ecf8b4
--- /dev/null
+++ b/sdk/workloadssapvirtualinstance/Azure.ResourceManager.SapVirtualInstances/src/Generated/Internal/ChangeTrackingList.cs
@@ -0,0 +1,153 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections;
+using System.Collections.Generic;
+using System.Linq;
+
+namespace Azure.ResourceManager.SapVirtualInstances
+{
+ internal class ChangeTrackingList : IList, IReadOnlyList
+ {
+ private IList _innerList;
+
+ public ChangeTrackingList()
+ {
+ }
+
+ public ChangeTrackingList(IList innerList)
+ {
+ if (innerList != null)
+ {
+ _innerList = innerList;
+ }
+ }
+
+ public ChangeTrackingList(IReadOnlyList innerList)
+ {
+ if (innerList != null)
+ {
+ _innerList = innerList.ToList();
+ }
+ }
+
+ public bool IsUndefined => _innerList == null;
+
+ public int Count => IsUndefined ? 0 : EnsureList().Count;
+
+ public bool IsReadOnly => IsUndefined ? false : EnsureList().IsReadOnly;
+
+ public T this[int index]
+ {
+ get
+ {
+ if (IsUndefined)
+ {
+ throw new ArgumentOutOfRangeException(nameof(index));
+ }
+ return EnsureList()[index];
+ }
+ set
+ {
+ if (IsUndefined)
+ {
+ throw new ArgumentOutOfRangeException(nameof(index));
+ }
+ EnsureList()[index] = value;
+ }
+ }
+
+ public void Reset()
+ {
+ _innerList = null;
+ }
+
+ public IEnumerator GetEnumerator()
+ {
+ if (IsUndefined)
+ {
+ IEnumerator enumerateEmpty()
+ {
+ yield break;
+ }
+ return enumerateEmpty();
+ }
+ return EnsureList().GetEnumerator();
+ }
+
+ IEnumerator IEnumerable.GetEnumerator()
+ {
+ return GetEnumerator();
+ }
+
+ public void Add(T item)
+ {
+ EnsureList().Add(item);
+ }
+
+ public void Clear()
+ {
+ EnsureList().Clear();
+ }
+
+ public bool Contains(T item)
+ {
+ if (IsUndefined)
+ {
+ return false;
+ }
+ return EnsureList().Contains(item);
+ }
+
+ public void CopyTo(T[] array, int arrayIndex)
+ {
+ if (IsUndefined)
+ {
+ return;
+ }
+ EnsureList().CopyTo(array, arrayIndex);
+ }
+
+ public bool Remove(T item)
+ {
+ if (IsUndefined)
+ {
+ return false;
+ }
+ return EnsureList().Remove(item);
+ }
+
+ public int IndexOf(T item)
+ {
+ if (IsUndefined)
+ {
+ return -1;
+ }
+ return EnsureList().IndexOf(item);
+ }
+
+ public void Insert(int index, T item)
+ {
+ EnsureList().Insert(index, item);
+ }
+
+ public void RemoveAt(int index)
+ {
+ if (IsUndefined)
+ {
+ throw new ArgumentOutOfRangeException(nameof(index));
+ }
+ EnsureList().RemoveAt(index);
+ }
+
+ public IList EnsureList()
+ {
+ return _innerList ??= new List();
+ }
+ }
+}
diff --git a/sdk/workloadssapvirtualinstance/Azure.ResourceManager.SapVirtualInstances/src/Generated/Internal/ModelSerializationExtensions.cs b/sdk/workloadssapvirtualinstance/Azure.ResourceManager.SapVirtualInstances/src/Generated/Internal/ModelSerializationExtensions.cs
new file mode 100644
index 000000000000..5facb4eb97d3
--- /dev/null
+++ b/sdk/workloadssapvirtualinstance/Azure.ResourceManager.SapVirtualInstances/src/Generated/Internal/ModelSerializationExtensions.cs
@@ -0,0 +1,398 @@
+// 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.Diagnostics;
+using System.Globalization;
+using System.Text.Json;
+using System.Xml;
+using Azure.Core;
+
+namespace Azure.ResourceManager.SapVirtualInstances
+{
+ internal static class ModelSerializationExtensions
+ {
+ internal static readonly ModelReaderWriterOptions WireOptions = new ModelReaderWriterOptions("W");
+
+ public static object GetObject(this JsonElement element)
+ {
+ switch (element.ValueKind)
+ {
+ case JsonValueKind.String:
+ return element.GetString();
+ case JsonValueKind.Number:
+ if (element.TryGetInt32(out int intValue))
+ {
+ return intValue;
+ }
+ if (element.TryGetInt64(out long longValue))
+ {
+ return longValue;
+ }
+ return element.GetDouble();
+ case JsonValueKind.True:
+ return true;
+ case JsonValueKind.False:
+ return false;
+ case JsonValueKind.Undefined:
+ case JsonValueKind.Null:
+ return null;
+ case JsonValueKind.Object:
+ var dictionary = new Dictionary();
+ foreach (var jsonProperty in element.EnumerateObject())
+ {
+ dictionary.Add(jsonProperty.Name, jsonProperty.Value.GetObject());
+ }
+ return dictionary;
+ case JsonValueKind.Array:
+ var list = new List