Skip to content

Commit

Permalink
Disable local auth for service bus. (dotnet#4938)
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchdenny committed Jul 17, 2024
1 parent 752bc58 commit cd6f024
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions playground/bicep/BicepSample.AppHost/sb.module.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ resource serviceBusNamespace_1RzZvI0LZ 'Microsoft.ServiceBus/namespaces@2021-11-
name: sku
}
properties: {
disableLocalAuth: true
}
}

Expand Down
1 change: 1 addition & 0 deletions playground/bicep/BicepSample.AppHost/storage.module.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ resource storageAccount_1XR3Um8QY 'Microsoft.Storage/storageAccounts@2022-09-01'
networkAcls: {
defaultAction: 'Allow'
}
minimumTlsVersion: 'TLS1_2'
}
}

Expand Down
1 change: 1 addition & 0 deletions playground/cdk/CdkSample.AppHost/servicebus.module.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ resource serviceBusNamespace_eRbchjzJN 'Microsoft.ServiceBus/namespaces@2021-11-
name: sku
}
properties: {
disableLocalAuth: true
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ public static IResourceBuilder<AzureServiceBusResource> AddAzureServiceBus(this
serviceBusNamespace.Properties.Tags["aspire-resource-name"] = construct.Resource.Name;
serviceBusNamespace.AssignProperty(p => p.Sku.Name, new Parameter("sku", defaultValue: "Standard"));
serviceBusNamespace.AssignProperty(p => p.DisableLocalAuth, "true");
var serviceBusDataOwnerRole = serviceBusNamespace.AssignRole(RoleDefinition.ServiceBusDataOwner);
serviceBusDataOwnerRole.AssignProperty(p => p.PrincipalId, construct.PrincipalIdParameter);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1712,6 +1712,7 @@ param principalType string
name: sku
}
properties: {
disableLocalAuth: true
}
}

Expand Down

0 comments on commit cd6f024

Please sign in to comment.