AzureApiManagementTests.cs (50)
375var exception = await Assert.ThrowsAsync<InvalidOperationException>(() => GetManifestWithBicep(apim.Resource));
399var (_, bicep) = await GetManifestWithBicep(apim.Resource);
533var (_, bicep) = await GetManifestWithBicep(resource);
578var (_, bicep) = await GetManifestWithBicep(apim.Resource);
579var (_, privateEndpointBicep) = await GetManifestWithBicep(privateEndpoint.Resource);
620var (_, apimBicep) = await GetManifestWithBicep(apim.Resource);
621var (_, virtualNetworkBicep) = await GetManifestWithBicep(virtualNetwork.Resource);
622var (_, networkSecurityGroupBicep) = await GetManifestWithBicep(subnet.Resource.NetworkSecurityGroup!);
647var (_, apimBicep) = await GetManifestWithBicep(apim.Resource);
648var (_, virtualNetworkBicep) = await GetManifestWithBicep(virtualNetwork.Resource);
649var (_, networkSecurityGroupBicep) = await GetManifestWithBicep(subnet.Resource.NetworkSecurityGroup!);
717var (_, bicep) = await GetManifestWithBicep(subnet.Resource.NetworkSecurityGroup);
865var (_, bicep) = await GetManifestWithBicep(apim.Resource);
901var (_, bicep) = await GetManifestWithBicep(apim.Resource);
1030var (_, bicep) = await GetManifestWithBicep(apim.Resource);
1068var (manifest, bicep) = await GetManifestWithBicep(apim.Resource);
1322var (_, bicep) = await GetManifestWithBicep(apim.Resource);
1350var (_, bicep) = await GetManifestWithBicep(apim.Resource);
1640var (manifest, bicep) = await GetManifestWithBicep(apim.Resource);
1685var (_, bicep) = await GetManifestWithBicep(apim.Resource);
1715var (manifest, bicep) = await GetManifestWithBicep(apim.Resource);
1787var (manifest, bicep) = await GetManifestWithBicep(apim.Resource);
1794var (_, rolesBicep) = await GetManifestWithBicep(roles, skipPreparer: true);
1840var (_, apimBicep) = await GetManifestWithBicep(apim.Resource);
1841var (rolesManifest, rolesBicep) = await GetManifestWithBicep(roleAssignments, skipPreparer: true);
1906var (manifest, bicep) = await GetManifestWithBicep(roles, skipPreparer: true);
1948var (_, apimBicep) = await GetManifestWithBicep(apim.Resource, skipPreparer: true);
1949var (rolesManifest, rolesBicep) = await GetManifestWithBicep(roleAssignments, skipPreparer: true);
1976var (_, apimBicep) = await GetManifestWithBicep(apim.Resource);
1981var (_, rolesBicep) = await GetManifestWithBicep(roles, skipPreparer: true);
2026var (_, apimBicep) = await GetManifestWithBicep(apim.Resource);
2027var (rolesManifest, rolesBicep) = await GetManifestWithBicep(roleAssignments, skipPreparer: true);
2122var (_, apimBicep) = await GetManifestWithBicep(apim.Resource);
2128var (_, rolesBicep) = await GetManifestWithBicep(roles, skipPreparer: true);
2147var (_, bicep) = await GetManifestWithBicep(apim.Resource);
2173var (_, apimBicep) = await GetManifestWithBicep(apim.Resource);
2174var (_, rolesBicep) = await GetManifestWithBicep(roleAssignments, skipPreparer: true);
2208var (_, bicep) = await GetManifestWithBicep(apim.Resource);
2281var (_, bicep) = await GetManifestWithBicep(apim.Resource);
2324var (_, bicep) = await GetManifestWithBicep(consumer.Resource, skipPreparer: true);
2348var (_, bicep) = await GetManifestWithBicep(consumer.Resource, skipPreparer: true);
2370var (manifest, bicep) = await GetManifestWithBicep(apim.Resource);
2581var (_, bicep) = await GetManifestWithBicep(apim.Resource, skipPreparer: true);
2667var (_, bicep) = await GetManifestWithBicep(apim.Resource, skipPreparer: true);
2798var (manifest, bicep) = await GetManifestWithBicep(apim.Resource);
2809var (_, roleBicep) = await GetManifestWithBicep(role, skipPreparer: true);
2847var (_, bicep) = await GetManifestWithBicep(apim.Resource);
2955var (_, environmentBicep) = await GetManifestWithBicep(environment.Resource);
2956var (_, privateDnsBicep) = await GetManifestWithBicep(privateDns);
2981() => GetManifestWithBicep(privateDns));
AzureContainerAppEnvironmentExtensionsTests.cs (17)
48var (manifest, bicep) = await AzureManifestUtils.GetManifestWithBicep(module.Resource, skipPreparer: true);
84var (manifest, bicep) = await AzureManifestUtils.GetManifestWithBicep(containerAppEnvironment.Resource);
152var (_, envBicep) = await AzureManifestUtils.GetManifestWithBicep(containerAppEnvironment.Resource);
153var (_, vnetBicep) = await AzureManifestUtils.GetManifestWithBicep(vnet.Resource);
174var (manifest, bicep) = await AzureManifestUtils.GetManifestWithBicep(env.Resource);
199var (manifest, bicep) = await AzureManifestUtils.GetManifestWithBicep(env.Resource);
219var (manifest, bicep) = await AzureManifestUtils.GetManifestWithBicep(env.Resource);
250var (manifest, bicep) = await AzureManifestUtils.GetManifestWithBicep(env.Resource);
281var (_, envBicep) = await AzureManifestUtils.GetManifestWithBicep(env.Resource, skipPreparer: true);
282var (_, identityBicep) = await AzureManifestUtils.GetManifestWithBicep(identity, skipPreparer: true);
283var (rolesManifest, rolesBicep) = await AzureManifestUtils.GetManifestWithBicep(roles, skipPreparer: true);
307var (rolesManifest, _) = await AzureManifestUtils.GetManifestWithBicep(roles, skipPreparer: true);
350var (_, identityBicep) = await AzureManifestUtils.GetManifestWithBicep(identity, skipPreparer: true);
376var (_, identityBicep) = await AzureManifestUtils.GetManifestWithBicep(identity, skipPreparer: true);
475() => AzureManifestUtils.GetManifestWithBicep(env.Resource));
504() => AzureManifestUtils.GetManifestWithBicep(env.Resource, skipPreparer: true));
528() => AzureManifestUtils.GetManifestWithBicep(env.Resource));
AzureContainerAppExpressEndpointTests.cs (7)
63var (manifest, bicep) = await GetManifestWithBicep(webTarget, skipPreparer: true);
120var (_, firstBicep) = await GetManifestWithBicep(target, skipPreparer: true);
121var (_, secondBicep) = await GetManifestWithBicep(target, skipPreparer: true);
256var (_, bicep) = await GetManifestWithBicep(webTarget, skipPreparer: true);
292var (manifest, bicep) = await GetManifestWithBicep(target, skipPreparer: true);
324var (_, bicep) = await GetManifestWithBicep(target, skipPreparer: true);
352var (_, bicep) = await GetManifestWithBicep(target, skipPreparer: true);
AzureContainerRegistryTests.cs (10)
63var (manifest, bicep) = await GetManifestWithBicep(acr.Resource);
90var (rolesManifest, rolesBicep) = await GetManifestWithBicep(rolesResource);
127var (manifest, bicep) = await AzureManifestUtils.GetManifestWithBicep(module.Resource, skipPreparer: true);
240var (_, bicep) = await GetManifestWithBicep(acr.Resource);
255var (_, bicep) = await GetManifestWithBicep(acr.Resource);
256var (_, defaultBicep) = await GetManifestWithBicep(defaultAcr.Resource);
270var (_, bicep) = await GetManifestWithBicep(acr.Resource);
283var (_, bicep) = await GetManifestWithBicep(acr.Resource);
346await Assert.ThrowsAsync<ArgumentException>(async () => await GetManifestWithBicep(acr.Resource));
357var (_, bicep) = await GetManifestWithBicep(acr.Resource);
AzureFrontDoorAppServicePrivateLinkTests.cs (8)
59var (_, frontDoorBicep) = await GetManifestWithBicep(frontDoor.Resource);
60var (_, apiBicep) = await GetManifestWithBicep(GetWebsite(api.Resource, environment.Resource));
61var (_, webBicep) = await GetManifestWithBicep(GetWebsite(web.Resource, environment.Resource));
82var (_, bicep) = await GetManifestWithBicep(GetWebsite(api.Resource, environment.Resource));
109var (_, bicep) = await GetManifestWithBicep(GetWebsite(api.Resource, environment.Resource));
131var (_, frontDoorBicep) = await GetManifestWithBicep(frontDoor.Resource);
132var (_, publicWebsiteBicep) = await GetManifestWithBicep(GetWebsite(publicApp.Resource, publicEnvironment.Resource));
150var (_, bicep) = await GetManifestWithBicep(GetWebsite(other.Resource, environment.Resource));
AzureFrontDoorPrivateLinkTests.cs (14)
38var (_, bicep) = await GetManifestWithBicep(frontDoor.Resource);
61var (_, bicep) = await GetManifestWithBicep(environment.Resource);
83var (_, bicep) = await GetManifestWithBicep(frontDoor.Resource);
126var (_, bicep) = await GetManifestWithBicep(frontDoor.Resource);
156var (_, bicep) = await GetManifestWithBicep(GetContainerApp(web.Resource));
185var (_, frontDoorBicep) = await GetManifestWithBicep(frontDoor.Resource);
186var (_, publicEnvironmentBicep) = await GetManifestWithBicep(publicEnvironment.Resource);
215var (_, firstBicep) = await GetManifestWithBicep(first.Resource);
216var (_, secondBicep) = await GetManifestWithBicep(second.Resource);
251var (_, bicep) = await GetManifestWithBicep(frontDoor.Resource);
453var (_, bicep) = await GetManifestWithBicep(frontDoor.Resource);
479var (_, bicep) = await GetManifestWithBicep(frontDoor.Resource);
512var (_, bicep) = await GetManifestWithBicep(frontDoor.Resource);
549var (_, bicep) = await GetManifestWithBicep(frontDoor.Resource);
AzureKeyVaultTests.cs (10)
21var (manifest, bicep) = await AzureManifestUtils.GetManifestWithBicep(mykv.Resource);
39var (kvRolesManifest, kvRolesBicep) = await AzureManifestUtils.GetManifestWithBicep(kvRoles, skipPreparer: true);
120var (manifest, bicep) = await AzureManifestUtils.GetManifestWithBicep(module.Resource, skipPreparer: true);
160var (manifest, bicep) = await AzureManifestUtils.GetManifestWithBicep(module.Resource, skipPreparer: true);
161var (manifest2, bicep2) = await AzureManifestUtils.GetManifestWithBicep(module2.Resource, skipPreparer: true);
189var (manifest, bicep) = await AzureManifestUtils.GetManifestWithBicep(module.Resource, skipPreparer: true);
237var (manifest, bicep) = await AzureManifestUtils.GetManifestWithBicep(kv.Resource);
252var (manifest, bicep) = await AzureManifestUtils.GetManifestWithBicep(kv.Resource);
286var (manifest, bicep) = await AzureManifestUtils.GetManifestWithBicep(kv.Resource);
384var (manifest, bicep) = await AzureManifestUtils.GetManifestWithBicep(module.Resource, skipPreparer: true);
AzureSandboxesTests.cs (7)
271var (_, bicep) = await AzureManifestUtils.GetManifestWithBicep(sandboxGroup.Resource, skipPreparer: true);
284var (_, bicep) = await AzureManifestUtils.GetManifestWithBicep(sandboxGroup.Resource, skipPreparer: true);
309var (_, bicep) = await AzureManifestUtils.GetManifestWithBicep(sandboxGroup.Resource, skipPreparer: true);
331var (_, bicep) = await AzureManifestUtils.GetManifestWithBicep(sandboxGroup.Resource, skipPreparer: true);
461var (_, sandboxBicep) = await AzureManifestUtils.GetManifestWithBicep(sandboxGroup.Resource, skipPreparer: true);
462var (_, identityBicep) = await AzureManifestUtils.GetManifestWithBicep(identity, skipPreparer: true);
463var (rolesManifest, rolesBicep) = await AzureManifestUtils.GetManifestWithBicep(roles, skipPreparer: true);
AzureServiceBusExtensionsTests.cs (9)
42var manifest = await AzureManifestUtils.GetManifestWithBicep(serviceBus.Resource);
67var manifest = await AzureManifestUtils.GetManifestWithBicep(serviceBus.Resource);
269var manifest = await AzureManifestUtils.GetManifestWithBicep(serviceBus.Resource);
1107var sbRolesManifest = await GetManifestWithBicep(sbRoles, skipPreparer: true);
1288var (manifest, bicep) = await AzureManifestUtils.GetManifestWithBicep(module.Resource, skipPreparer: true);
1310var (manifest, bicep) = await AzureManifestUtils.GetManifestWithBicep(module.Resource, skipPreparer: true);
1329var (manifest, bicep) = await AzureManifestUtils.GetManifestWithBicep(module.Resource, skipPreparer: true);
1350var (manifest, bicep) = await AzureManifestUtils.GetManifestWithBicep(module.Resource, skipPreparer: true);
1370var (manifest, bicep) = await AzureManifestUtils.GetManifestWithBicep(module.Resource, skipPreparer: true);
AzureSignalRExtensionsTests.cs (5)
24var (manifest, bicep) = await GetManifestWithBicep(signalr.Resource, skipPreparer: true);
26var (signalrRolesManifest, signalrRolesBicep) = await GetManifestWithBicep(signalrRoles, skipPreparer: true);
46var (manifest, bicep) = await GetManifestWithBicep(signalr.Resource, skipPreparer: true);
48var (signalrRolesManifest, signalrRolesBicep) = await GetManifestWithBicep(signalrRoles, skipPreparer: true);
99var (manifest, bicep) = await AzureManifestUtils.GetManifestWithBicep(module.Resource, skipPreparer: true);
AzureUserAssignedIdentityTests.cs (18)
35var (_, bicep) = await GetManifestWithBicep(resource);
53var (_, bicep) = await GetManifestWithBicep(resource);
86var (_, identityBicep) = await GetManifestWithBicep(identityResource, skipPreparer: true);
89var (_, registryBicep) = await GetManifestWithBicep(registryResource, skipPreparer: true);
94var (_, identityRoleAssignmentsBicep) = await GetManifestWithBicep(identityRoleAssignments, skipPreparer: true);
179var (_, computeResourceBicep) = await GetManifestWithBicep(deploymentTarget.DeploymentTarget, skipPreparer: true);
233var (_, computeResourceBicep) = await GetManifestWithBicep(deploymentTarget.DeploymentTarget, skipPreparer: true);
234var (_, identityBicep) = await GetManifestWithBicep(identityResource, skipPreparer: true);
235var (_, roleBicep) = await GetManifestWithBicep(roleAssignmentResource, skipPreparer: true);
291var (_, computeResourceBicep) = await GetManifestWithBicep(deploymentTarget.DeploymentTarget, skipPreparer: true);
292var (_, identityBicep) = await GetManifestWithBicep(identityResource, skipPreparer: true);
293var (_, roleBicep) = await GetManifestWithBicep(roleAssignmentResource, skipPreparer: true);
382var (_, computeResourceBicep) = await GetManifestWithBicep(deploymentTarget.DeploymentTarget, skipPreparer: true);
383var (_, computeResourceBicep2) = await GetManifestWithBicep(deploymentTarget2.DeploymentTarget, skipPreparer: true);
384var (_, identityBicep) = await GetManifestWithBicep(identityResource, skipPreparer: true);
385var (_, roleBicep) = await GetManifestWithBicep(roleAssignmentResource, skipPreparer: true);
386var (_, roleBicep2) = await GetManifestWithBicep(roleAssignmentResource2, skipPreparer: true);
425var (manifest, bicep) = await AzureManifestUtils.GetManifestWithBicep(module.Resource, skipPreparer: true);
ExistingAzureResourceTests.cs (31)
23var (manifest, bicep) = await AzureManifestUtils.GetManifestWithBicep(serviceBus.Resource);
40var (manifest, bicep) = await AzureManifestUtils.GetManifestWithBicep(serviceBus.Resource);
57var (manifest, bicep) = await AzureManifestUtils.GetManifestWithBicep(serviceBus.Resource);
81var (rolesManifest, rolesBicep) = await GetManifestWithBicep(messagingRoles, skipPreparer: true);
97var (manifest, bicep) = await AzureManifestUtils.GetManifestWithBicep(serviceBus.Resource);
114var (manifest, bicep) = await AzureManifestUtils.GetManifestWithBicep(storageAccount.Resource);
129var (manifest, bicep) = await AzureManifestUtils.GetManifestWithBicep(storageAccount.Resource);
146var (manifest, bicep) = await AzureManifestUtils.GetManifestWithBicep(appConfiguration.Resource);
163var (manifest, bicep) = await AzureManifestUtils.GetManifestWithBicep(eventHubs.Resource);
180var (manifest, bicep) = await AzureManifestUtils.GetManifestWithBicep(keyVault.Resource);
197var (manifest, bicep) = await AzureManifestUtils.GetManifestWithBicep(logAnalytics.Resource);
214var (manifest, bicep) = await AzureManifestUtils.GetManifestWithBicep(postgresSql.Resource);
235var (manifest, bicep) = await AzureManifestUtils.GetManifestWithBicep(postgresSql.Resource);
252var (manifest, bicep) = await AzureManifestUtils.GetManifestWithBicep(search.Resource);
269var (manifest, bicep) = await AzureManifestUtils.GetManifestWithBicep(signalR.Resource);
286var (manifest, bicep) = await AzureManifestUtils.GetManifestWithBicep(webPubSub.Resource);
303var (manifest, bicep) = await AzureManifestUtils.GetManifestWithBicep(sqlServer.Resource);
319var (manifest, bicep) = await AzureManifestUtils.GetManifestWithBicep(sqlServer.Resource);
337var (manifest, bicep) = await AzureManifestUtils.GetManifestWithBicep(redis.Resource);
354var (manifest, bicep) = await AzureManifestUtils.GetManifestWithBicep(redis.Resource);
371var (manifest, bicep) = await AzureManifestUtils.GetManifestWithBicep(redis.Resource);
386var (manifest, bicep) = await AzureManifestUtils.GetManifestWithBicep(redis.Resource);
402var (manifest, bicep) = await AzureManifestUtils.GetManifestWithBicep(appInsights.Resource);
425var (manifest, bicep) = await AzureManifestUtils.GetManifestWithBicep(openAI.Resource);
445var (manifest, bicep) = await AzureManifestUtils.GetManifestWithBicep(cosmos.Resource);
466var (manifest, bicep) = await AzureManifestUtils.GetManifestWithBicep(cosmos.Resource);
482var (manifest, bicep) = await AzureManifestUtils.GetManifestWithBicep(acr.Resource);
499var (manifest, bicep) = await AzureManifestUtils.GetManifestWithBicep(acr.Resource);
565var (rolesManifest, rolesBicep) = await GetManifestWithBicep(messagingRoles, skipPreparer: true);
590var (manifest, bicep) = await AzureManifestUtils.GetManifestWithBicep(resource.Resource, skipPreparer: true);
609var (manifest, bicep) = await AzureManifestUtils.GetManifestWithBicep(resource.Resource, skipPreparer: true);