payload: {"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible/issues/62861","repository_url":"https://api.github.com/repos/ansible/ansible","labels_url":"https://api.github.com/repos/ansible/ansible/issues/62861/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible/issues/62861/comments","events_url":"https://api.github.com/repos/ansible/ansible/issues/62861/events","html_url":"https://github.com/ansible/ansible/issues/62861","id":498785237,"node_id":"MDU6SXNzdWU0OTg3ODUyMzc=","number":62861,"title":"Feature Request: azure_rm_publicip to include zonal support","user":{"login":"JonTheNiceGuy","id":228671,"node_id":"MDQ6VXNlcjIyODY3MQ==","avatar_url":"https://avatars3.githubusercontent.com/u/228671?v=4","gravatar_id":"","url":"https://api.github.com/users/JonTheNiceGuy","html_url":"https://github.com/JonTheNiceGuy","followers_url":"https://api.github.com/users/JonTheNiceGuy/followers","following_url":"https://api.github.com/users/JonTheNiceGuy/following{/other_user}","gists_url":"https://api.github.com/users/JonTheNiceGuy/gists{/gist_id}","starred_url":"https://api.github.com/users/JonTheNiceGuy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JonTheNiceGuy/subscriptions","organizations_url":"https://api.github.com/users/JonTheNiceGuy/orgs","repos_url":"https://api.github.com/users/JonTheNiceGuy/repos","events_url":"https://api.github.com/users/JonTheNiceGuy/events{/privacy}","received_events_url":"https://api.github.com/users/JonTheNiceGuy/received_events","type":"User","site_admin":false},"labels":[{"id":1528399399,"node_id":"MDU6TGFiZWwxNTI4Mzk5Mzk5","url":"https://api.github.com/repos/ansible/ansible/labels/affects_2.10","name":"affects_2.10","color":"5319e7","default":false},{"id":379680468,"node_id":"MDU6TGFiZWwzNzk2ODA0Njg=","url":"https://api.github.com/repos/ansible/ansible/labels/azure","name":"azure","color":"c5def5","default":false},{"id":61528803,"node_id":"MDU6TGFiZWw2MTUyODgwMw==","url":"https://api.github.com/repos/ansible/ansible/labels/cloud","name":"cloud","color":"4071a5","default":false},{"id":852590921,"node_id":"MDU6TGFiZWw4NTI1OTA5MjE=","url":"https://api.github.com/repos/ansible/ansible/labels/feature","name":"feature","color":"006b75","default":false},{"id":496359346,"node_id":"MDU6TGFiZWw0OTYzNTkzNDY=","url":"https://api.github.com/repos/ansible/ansible/labels/module","name":"module","color":"1d76db","default":false},{"id":503572087,"node_id":"MDU6TGFiZWw1MDM1NzIwODc=","url":"https://api.github.com/repos/ansible/ansible/labels/needs_triage","name":"needs_triage","color":"0e8a16","default":false},{"id":636327968,"node_id":"MDU6TGFiZWw2MzYzMjc5Njg=","url":"https://api.github.com/repos/ansible/ansible/labels/support:community","name":"support:community","color":"ededed","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2019-09-26T09:59:46Z","updated_at":"2019-10-14T22:37:29Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"<!--- Verify first that your feature was not already discussed on GitHub -->\r\n<!--- Complete *all* sections as described, this form is processed automatically -->\r\n\r\n##### SUMMARY\r\n<!--- Describe the new feature/improvement briefly below -->\r\nazure_rm_publicip does not currently support availability zones. It would be useful if it did. A similar change to managed disks was raised under #53788.\r\n\r\n##### ISSUE TYPE\r\n- Feature Idea\r\n\r\n##### COMPONENT NAME\r\n<!--- Write the short name of the module, plugin, task or feature below, use your best guess if unsure -->\r\nazure_rm_publicipaddress\r\n\r\n##### ADDITIONAL INFORMATION\r\n<!--- Describe how the feature would be used, why it is needed and what it would solve -->\r\nIf you're creating AZ specific VMs (using the value `zones: ['1']`, for example), and you've manually attached an Interface with a Public IP, this also needs to hold the Zone of the IP.\r\n\r\n<!--- Paste example playbooks or commands between quotes below -->\r\n```yaml\r\n- azure_rm_securitygroup:\r\n    resource_group: \"{{ rg_demoresourcegroup.state.name }}\"\r\n    location: \"{{ Region }}\"\r\n    name: HostNSG\r\n    rules:\r\n    - name: Host-I-100\r\n      priority: 100\r\n      direction: Inbound\r\n      access: Allow\r\n      protocol: Tcp\r\n      destination_port_range: 22\r\n      source_address_prefix: 0.0.0.0/0\r\n  register: nsg_hostnsg\r\n\r\n- azure_rm_publicipaddress:\r\n    resource_group: \"{{ rg_demoresourcegroup.state.name }}\"\r\n    location: \"{{ Region }}\"\r\n    name: PubIP\r\n    allocation_method: Dynamic\r\n    zone: \"{{ Az1 }}\"\r\n  register: ip_pubip\r\n\r\n- azure_rm_networkinterface:\r\n    resource_group: \"{{ rg_demoresourcegroup.state.name }}\"\r\n    location: \"{{ Region }}\"\r\n    name: HostNIC\r\n    virtual_network: \"{{ vnet_demonetwork.state.name }}\"\r\n    subnet_name: \"{{ subnet_public.state.name }}\"\r\n    security_group: \"{{ nsg_hostnsg.state.name }}\"\r\n    ip_configurations:\r\n    - name: host-nic-ip\r\n      public_ip_address_name: \"{{ ip_pubip.state.name }}\"\r\n      primary: yes\r\n  register: nic_hostnic\r\n\r\n- azure_rm_virtualmachine:\r\n    resource_group: \"{{ rg_demoresourcegroup.state.name }}\"\r\n    location: \"{{ Region }}\"\r\n    name: Host\r\n    vm_size: Standard_B1s\r\n    zones: \r\n    - \"{{ Az1 }}\"\r\n    network_interface_names: \"{{ nic_hostnic.state.name }}\"\r\n\r\n    image:\r\n      publisher: \"Canonical\"\r\n      offer: \"UbuntuServer\"\r\n      sku: \"18.04-LTS\"\r\n      version: \"latest\"\r\n\r\n    admin_username: \"{{ VmUser }}\"\r\n    ssh_public_keys: \r\n    - path: \"/home/{{ VmUser }}/.ssh/authorized_keys\"\r\n      key_data: \"{{ PublicKey }}\"\r\n    ssh_password_enabled: false\r\n```\r\n\r\n<!--- HINT: You can also paste gist.github.com links for larger files -->\r\n"},"comment":{"url":"https://api.github.com/repos/ansible/ansible/issues/comments/541961371","html_url":"https://github.com/ansible/ansible/issues/62861#issuecomment-541961371","issue_url":"https://api.github.com/repos/ansible/ansible/issues/62861","id":541961371,"node_id":"MDEyOklzc3VlQ29tbWVudDU0MTk2MTM3MQ==","user":{"login":"JonTheNiceGuy","id":228671,"node_id":"MDQ6VXNlcjIyODY3MQ==","avatar_url":"https://avatars3.githubusercontent.com/u/228671?v=4","gravatar_id":"","url":"https://api.github.com/users/JonTheNiceGuy","html_url":"https://github.com/JonTheNiceGuy","followers_url":"https://api.github.com/users/JonTheNiceGuy/followers","following_url":"https://api.github.com/users/JonTheNiceGuy/following{/other_user}","gists_url":"https://api.github.com/users/JonTheNiceGuy/gists{/gist_id}","starred_url":"https://api.github.com/users/JonTheNiceGuy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JonTheNiceGuy/subscriptions","organizations_url":"https://api.github.com/users/JonTheNiceGuy/orgs","repos_url":"https://api.github.com/users/JonTheNiceGuy/repos","events_url":"https://api.github.com/users/JonTheNiceGuy/events{/privacy}","received_events_url":"https://api.github.com/users/JonTheNiceGuy/received_events","type":"User","site_admin":false},"created_at":"2019-10-14T22:37:29Z","updated_at":"2019-10-14T22:37:29Z","author_association":"CONTRIBUTOR","body":"> @JonTheNiceGuy Thanks for your contribution. Can you help explain why this parameter was added? Where will it apply? Thank you very much!\r\n\r\nHi @Fred-sun, thanks for the question - apologies for the delay - I was at a conference!\r\n\r\nThe parameter is required if you're creating an AZ bound VM, and want to assign an AZ bound Public IP to it. It's available to Terraform and ARM templates directly.\r\n\r\nThe parameter is listed here: https://docs.microsoft.com/en-us/azure/templates/microsoft.network/2019-04-01/publicipaddresses#property-values"}}
other: {"actor":{"display_login":"JonTheNiceGuy"}}