diff --git a/sdk/attestation/Azure.ResourceManager.Attestation/src/autorest.md b/sdk/attestation/Azure.ResourceManager.Attestation/src/autorest.md
index e0867a569090b..3d400e29b0c75 100644
--- a/sdk/attestation/Azure.ResourceManager.Attestation/src/autorest.md
+++ b/sdk/attestation/Azure.ResourceManager.Attestation/src/autorest.md
@@ -16,8 +16,6 @@ clear-output-folder: true
sample-gen:
output-folder: $(this-folder)/../samples/Generated
clear-output-folder: true
- skipped-operations:
- - EligibleChildResources_Get
skip-csproj: true
modelerfour:
flatten-payloads: false
diff --git a/sdk/authorization/Azure.ResourceManager.Authorization/samples/Generated/Samples/Sample_ArmResourceExtensions.cs b/sdk/authorization/Azure.ResourceManager.Authorization/samples/Generated/Samples/Sample_ArmResourceExtensions.cs
new file mode 100644
index 0000000000000..cd8ab4c9bd348
--- /dev/null
+++ b/sdk/authorization/Azure.ResourceManager.Authorization/samples/Generated/Samples/Sample_ArmResourceExtensions.cs
@@ -0,0 +1,44 @@
+// 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;
+using Azure.ResourceManager.Authorization.Models;
+
+namespace Azure.ResourceManager.Authorization.Samples
+{
+ public partial class Sample_ArmResourceExtensions
+ {
+ // GetEligibleChildResourcesByScope
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task GetEligibleChildResources_GetEligibleChildResourcesByScope()
+ {
+ // Generated from example definition: specification/authorization/resource-manager/Microsoft.Authorization/stable/2020-10-01/examples/GetEligibleChildResourcesByScope.json
+ // this example is just showing the usage of "EligibleChildResources_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);
+
+ // invoke the operation and iterate over the result
+ string scope = "providers/Microsoft.Subscription/subscriptions/dfa2a084-766f-4003-8ae1-c4aeb893a99f";
+ ResourceIdentifier scope0 = new ResourceIdentifier(string.Format("/{0}", scope));
+ string filter = "resourceType+eq+'resourcegroup'";
+ await foreach (EligibleChildResource item in client.GetEligibleChildResourcesAsync(scope0, filter: filter))
+ {
+ Console.WriteLine($"Succeeded: {item}");
+ }
+
+ Console.WriteLine($"Succeeded");
+ }
+ }
+}
diff --git a/sdk/dns/Azure.ResourceManager.Dns/src/autorest.md b/sdk/dns/Azure.ResourceManager.Dns/src/autorest.md
index 0b97d5d0df967..80147fdbf72a6 100644
--- a/sdk/dns/Azure.ResourceManager.Dns/src/autorest.md
+++ b/sdk/dns/Azure.ResourceManager.Dns/src/autorest.md
@@ -12,6 +12,7 @@ clear-output-folder: true
sample-gen:
output-folder: $(this-folder)/../samples/Generated
clear-output-folder: true
+ sample: false
skip-csproj: true
modelerfour:
flatten-payloads: false
diff --git a/sdk/privatedns/Azure.ResourceManager.PrivateDns/src/autorest.md b/sdk/privatedns/Azure.ResourceManager.PrivateDns/src/autorest.md
index 2be94ed1f0219..b4d3521f05922 100644
--- a/sdk/privatedns/Azure.ResourceManager.PrivateDns/src/autorest.md
+++ b/sdk/privatedns/Azure.ResourceManager.PrivateDns/src/autorest.md
@@ -14,6 +14,7 @@ clear-output-folder: true
sample-gen:
output-folder: $(this-folder)/../samples/Generated
clear-output-folder: true
+ sample: false
skip-csproj: true
modelerfour:
flatten-payloads: false
@@ -28,7 +29,7 @@ format-by-name-rules:
'ifMatch': 'etag'
'IPv6Address': 'ip-address'
'IPv4Address': 'ip-address'
-
+
acronym-mapping:
CPU: Cpu
CPUs: Cpus
@@ -59,7 +60,7 @@ acronym-mapping:
SoaRecord: PrivateDnsSoaRecordInfo
SrvRecord: PrivateDnsSrvRecordInfo
TxtRecord: PrivateDnsTxtRecordInfo
- ProvisioningState : PrivateDnsProvisioningState
+ ProvisioningState : PrivateDnsProvisioningState
override-operation-name:
RecordSets_List: GetRecords
diff --git a/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/Azure.ResourceManager.SecurityDevOps.sln b/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/Azure.ResourceManager.SecurityDevOps.sln
index 1485ae167440c..e872cc2fca14e 100644
--- a/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/Azure.ResourceManager.SecurityDevOps.sln
+++ b/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/Azure.ResourceManager.SecurityDevOps.sln
@@ -7,7 +7,7 @@ Project("{E298A5B7-DDEE-4DDB-ADB5-86437D7668A3}") = "Azure.ResourceManager.Secur
EndProject
Project("{E298A5B7-DDEE-4DDB-ADB5-86437D7668A3}") = "Azure.ResourceManager.SecurityDevOps.Tests", "tests\Azure.ResourceManager.SecurityDevOps.Tests.csproj", "{29307F4D-07DD-433A-BE5A-401689A3B737}"
EndProject
-Project("{E298A5B7-DDEE-4DDB-ADB5-86437D7668A3}") = "Azure.ResourceManager.SecurityDevOps.Samples", "Samples\Azure.ResourceManager.SecurityDevOps.Samples.csproj", "{F340C8EB-943B-41CF-B9B3-CB5E5BF339BF}"
+Project("{E298A5B7-DDEE-4DDB-ADB5-86437D7668A3}") = "Azure.ResourceManager.SecurityDevOps.Samples", "samples\Azure.ResourceManager.SecurityDevOps.Samples.csproj", "{F340C8EB-943B-41CF-B9B3-CB5E5BF339BF}"
EndProject
Global
GlobalSection(SolutionProperties) = preSolution
diff --git a/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/Samples/Azure.ResourceManager.SecurityDevOps.Samples.csproj b/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/samples/Azure.ResourceManager.SecurityDevOps.Samples.csproj
similarity index 89%
rename from sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/Samples/Azure.ResourceManager.SecurityDevOps.Samples.csproj
rename to sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/samples/Azure.ResourceManager.SecurityDevOps.Samples.csproj
index 5ed002d2e5942..07959df64d38f 100644
--- a/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/Samples/Azure.ResourceManager.SecurityDevOps.Samples.csproj
+++ b/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/samples/Azure.ResourceManager.SecurityDevOps.Samples.csproj
@@ -1,4 +1,4 @@
-
+
diff --git a/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/Samples/Generated/Samples/Sample_AzureDevOpsConnectorCollection.cs b/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/samples/Generated/Samples/Sample_AzureDevOpsConnectorCollection.cs
similarity index 100%
rename from sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/Samples/Generated/Samples/Sample_AzureDevOpsConnectorCollection.cs
rename to sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/samples/Generated/Samples/Sample_AzureDevOpsConnectorCollection.cs
diff --git a/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/Samples/Generated/Samples/Sample_AzureDevOpsConnectorResource.cs b/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/samples/Generated/Samples/Sample_AzureDevOpsConnectorResource.cs
similarity index 100%
rename from sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/Samples/Generated/Samples/Sample_AzureDevOpsConnectorResource.cs
rename to sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/samples/Generated/Samples/Sample_AzureDevOpsConnectorResource.cs
diff --git a/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/Samples/Generated/Samples/Sample_AzureDevOpsOrgCollection.cs b/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/samples/Generated/Samples/Sample_AzureDevOpsOrgCollection.cs
similarity index 100%
rename from sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/Samples/Generated/Samples/Sample_AzureDevOpsOrgCollection.cs
rename to sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/samples/Generated/Samples/Sample_AzureDevOpsOrgCollection.cs
diff --git a/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/Samples/Generated/Samples/Sample_AzureDevOpsOrgResource.cs b/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/samples/Generated/Samples/Sample_AzureDevOpsOrgResource.cs
similarity index 100%
rename from sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/Samples/Generated/Samples/Sample_AzureDevOpsOrgResource.cs
rename to sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/samples/Generated/Samples/Sample_AzureDevOpsOrgResource.cs
diff --git a/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/Samples/Generated/Samples/Sample_AzureDevOpsProjectCollection.cs b/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/samples/Generated/Samples/Sample_AzureDevOpsProjectCollection.cs
similarity index 100%
rename from sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/Samples/Generated/Samples/Sample_AzureDevOpsProjectCollection.cs
rename to sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/samples/Generated/Samples/Sample_AzureDevOpsProjectCollection.cs
diff --git a/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/Samples/Generated/Samples/Sample_AzureDevOpsProjectResource.cs b/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/samples/Generated/Samples/Sample_AzureDevOpsProjectResource.cs
similarity index 100%
rename from sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/Samples/Generated/Samples/Sample_AzureDevOpsProjectResource.cs
rename to sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/samples/Generated/Samples/Sample_AzureDevOpsProjectResource.cs
diff --git a/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/Samples/Generated/Samples/Sample_AzureDevOpsRepoCollection.cs b/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/samples/Generated/Samples/Sample_AzureDevOpsRepoCollection.cs
similarity index 100%
rename from sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/Samples/Generated/Samples/Sample_AzureDevOpsRepoCollection.cs
rename to sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/samples/Generated/Samples/Sample_AzureDevOpsRepoCollection.cs
diff --git a/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/Samples/Generated/Samples/Sample_AzureDevOpsRepoResource.cs b/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/samples/Generated/Samples/Sample_AzureDevOpsRepoResource.cs
similarity index 100%
rename from sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/Samples/Generated/Samples/Sample_AzureDevOpsRepoResource.cs
rename to sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/samples/Generated/Samples/Sample_AzureDevOpsRepoResource.cs
diff --git a/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/Samples/Generated/Samples/Sample_GitHubConnectorCollection.cs b/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/samples/Generated/Samples/Sample_GitHubConnectorCollection.cs
similarity index 100%
rename from sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/Samples/Generated/Samples/Sample_GitHubConnectorCollection.cs
rename to sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/samples/Generated/Samples/Sample_GitHubConnectorCollection.cs
diff --git a/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/Samples/Generated/Samples/Sample_GitHubConnectorResource.cs b/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/samples/Generated/Samples/Sample_GitHubConnectorResource.cs
similarity index 100%
rename from sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/Samples/Generated/Samples/Sample_GitHubConnectorResource.cs
rename to sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/samples/Generated/Samples/Sample_GitHubConnectorResource.cs
diff --git a/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/Samples/Generated/Samples/Sample_GitHubOwnerCollection.cs b/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/samples/Generated/Samples/Sample_GitHubOwnerCollection.cs
similarity index 100%
rename from sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/Samples/Generated/Samples/Sample_GitHubOwnerCollection.cs
rename to sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/samples/Generated/Samples/Sample_GitHubOwnerCollection.cs
diff --git a/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/Samples/Generated/Samples/Sample_GitHubOwnerResource.cs b/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/samples/Generated/Samples/Sample_GitHubOwnerResource.cs
similarity index 100%
rename from sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/Samples/Generated/Samples/Sample_GitHubOwnerResource.cs
rename to sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/samples/Generated/Samples/Sample_GitHubOwnerResource.cs
diff --git a/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/Samples/Generated/Samples/Sample_GitHubRepoCollection.cs b/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/samples/Generated/Samples/Sample_GitHubRepoCollection.cs
similarity index 100%
rename from sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/Samples/Generated/Samples/Sample_GitHubRepoCollection.cs
rename to sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/samples/Generated/Samples/Sample_GitHubRepoCollection.cs
diff --git a/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/Samples/Generated/Samples/Sample_GitHubRepoResource.cs b/sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/samples/Generated/Samples/Sample_GitHubRepoResource.cs
similarity index 100%
rename from sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/Samples/Generated/Samples/Sample_GitHubRepoResource.cs
rename to sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/samples/Generated/Samples/Sample_GitHubRepoResource.cs