wet-sunset-4939
08/15/2021, 1:01 AMazure-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
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 }
);
};