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