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