Hi <@UB39JFCKC> When creating bastion host I got t...
# general
w
Hi @tall-librarian-49374 When creating bastion host I got this error:
Copy code
azure-native:network:BastionHost (sandbox-codehub-bst-hbd):
    error: Code="InvalidRequestFormat" Message="Cannot parse the request." Details=[]
Not sure what is wrong. Here is my code
Copy code
export default ({ name, group, subnetId }: Props) => {

  const ipAddress = IpAddress({
    name,
    group,
    sku: { name: 'Standard', tier: 'Regional' },
  });

  return new network.BastionHost(
    name,
    {
      bastionHostName: name,
      ...group,
      dnsName: name,
      ipConfigurations: [
        {
          publicIPAddress: { id: ipAddress.id },
          subnet: { id: subnetId },
        },
      ],
      tags: defaultTags,
    },
    { dependsOn: ipAddress }
  );
};