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)
288
WriteScopeValue(context, "subscription", Scope.
Subscription
);
AzureProvisioningResource.cs (8)
203
ScopeValueEquals(expected.
Subscription
, actual.
Subscription
) &&
224
if (scope.HasResourceGroup && scope.
Subscription
is not null)
226
return (scope.
Subscription
, scope.ResourceGroup) switch
232
_ => throw new NotSupportedException($"Scope value types '{scope.
Subscription
.GetType()}' and '{scope.ResourceGroup.GetType()}' are not supported.")
246
if (scope.
Subscription
is not null)
248
return scope.
Subscription
switch
252
_ => throw new NotSupportedException($"Subscription type '{scope.
Subscription
.GetType()}' is not supported.")
AzurePublishingContext.cs (5)
188
await VisitAsync(scope.
Subscription
, MapParameterAsync, cancellationToken).ConfigureAwait(false);
276
if (scope.HasResourceGroup && scope.
Subscription
is not null)
280
ResolveValue(Eval(scope.
Subscription
)).Compile(),
289
if (scope.
Subscription
is not null)
291
return new FunctionCallExpression(new IdentifierExpression("subscription"), ResolveValue(Eval(scope.
Subscription
)).Compile());
Provisioning\BicepUtilities.cs (1)
93
await SetScopeValueAsync(scope, "subscription", targetScope.
Subscription
, cancellationToken).ConfigureAwait(false);
Provisioning\Provisioners\BicepProvisioner.cs (2)
514
targetScope is {
Subscription
: not null, HasResourceGroup: false };
516
if (targetScope?.
Subscription
is { } existingSubscription)
Aspire.Hosting.Azure.Kubernetes (1)
AzureKubernetesEnvironmentResource.AksPipeline.cs (1)
591
: (Scope.
Subscription
, Scope.HasResourceGroup ? Scope.ResourceGroup : null);