2 writes to Subscription
Aspire.Hosting.Azure (2)
AzureBicepResourceScope.cs (2)
33
Subscription
= subscription;
55
Subscription
= subscription;
18 references to Subscription
Aspire.Hosting.Azure (17)
AzureBicepResource.cs (1)
286
WriteScopeValue(context, "subscription", Scope.
Subscription
);
AzureProvisioningResource.cs (8)
244
ScopeValueEquals(expected.
Subscription
, actual.
Subscription
) &&
265
if (scope.HasResourceGroup && scope.
Subscription
is not null)
267
return (scope.
Subscription
, scope.ResourceGroup) switch
273
_ => throw new NotSupportedException($"Scope value types '{scope.
Subscription
.GetType()}' and '{scope.ResourceGroup.GetType()}' are not supported.")
287
if (scope.
Subscription
is not null)
289
return scope.
Subscription
switch
293
_ => throw new NotSupportedException($"Subscription type '{scope.
Subscription
.GetType()}' is not supported.")
AzurePublishingContext.cs (5)
218
await VisitAsync(scope.
Subscription
, MapParameterAsync, cancellationToken).ConfigureAwait(false);
322
if (scope.HasResourceGroup && scope.
Subscription
is not null)
326
ResolveValue(Eval(scope.
Subscription
)).Compile(),
335
if (scope.
Subscription
is not null)
337
return new FunctionCallExpression(new IdentifierExpression("subscription"), ResolveValue(Eval(scope.
Subscription
)).Compile());
Provisioning\BicepUtilities.cs (1)
112
await SetScopeValueAsync(scope, "subscription", targetScope.
Subscription
, cancellationToken).ConfigureAwait(false);
Provisioning\Provisioners\BicepProvisioner.cs (2)
511
targetScope is {
Subscription
: not null, HasResourceGroup: false };
513
if (targetScope?.
Subscription
is { } existingSubscription)
Aspire.Hosting.Azure.Kubernetes (1)
AzureKubernetesEnvironmentResource.AksPipeline.cs (1)
755
: (Scope.
Subscription
, Scope.HasResourceGroup ? Scope.ResourceGroup : null);